/* Base Variables */
:root {
    --bg-color: #030305;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-primary: #8b5cf6;
    --accent-secondary: #00f0ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-spread: rgba(139, 92, 246, 0.15);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Canvas Background */
#stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

/* Cosmic Glow Overlay */
.glow-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, var(--glow-spread) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.highlight {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Section Common */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, #fff, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 92, 246, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.name {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    letter-spacing: -2px;
}

.title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-secondary);
    font-weight: 400;
    min-height: 1.4em;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.1em;
}

.typing-text {
    white-space: nowrap;
}

.typing-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-primary);
    font-weight: 600;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.bio {
    font-size: 1.1rem;
    max-width: 600px;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Buttons */
.cta-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: var(--text-primary);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.primary-btn:hover {
    background: var(--accent-secondary);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
    transform: scale(1.05);
}

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.secondary-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* About Section */
#about {
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: var(--text-primary);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    text-align: center;
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-header h3 {
    font-size: 1.4rem;
    color: var(--accent-secondary);
}

.badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rust-badge {
    background: rgba(222, 165, 132, 0.15);
    color: #dea584;
    border: 1px solid rgba(222, 165, 132, 0.3);
}

.profile-badge {
    background: rgba(139, 92, 246, 0.15);
    color: #b794f4;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.project-card p {
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 2rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.stars {
    font-size: 0.9rem;
    color: #ffd700;
}

.link-text {
    font-size: 0.9rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.project-card:hover .link-text {
    transform: translateX(5px);
}

/* Footer */
.glass-footer {
    margin-top: 4rem;
    padding: 3rem 0;
    text-align: center;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.heart {
    color: #ff4b4b;
    animation: pulse 1.5s infinite;
    display: inline-block;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Scroll Animations */
.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .about-content {
        padding: 2rem;
    }
}
