/* ==========================================================================
   Space Theme CSS Variables & Global Styles
   ========================================================================== */
:root {
    /* Cosmic Color Palette */
    --bg-dark: #03010b;         /* Deep Space Void */
    --bg-surface: #0a0718;      /* Dark Nebula */
    --text-main: #f0f8ff;       /* Starlight White */
    --text-muted: #8b9bb4;      /* Distant Star Gray */
    
    /* Neon/Cosmic Accents */
    --primary: #00e5ff;         /* Cyan Star */
    --secondary: #9d4edd;       /* Purple Nebula */
    --accent: #ff007a;          /* Supernova Pink */
    
    /* Cosmic Glassmorphism */
    --glass-bg: rgba(15, 12, 35, 0.4);
    --glass-border: rgba(0, 229, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    
    /* Space-Themed Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Subtle stardust noise overlay could go here, keeping it clean for performance */
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Selection */
::selection { background: var(--primary); color: var(--bg-dark); }

/* ==========================================================================
   Utility Classes & Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 6.5rem 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.primary-color { color: var(--primary) !important; }
.secondary-color { color: var(--secondary) !important; }
.accent-color { color: var(--accent) !important; }

/* Glass Panel (Space Cabin Window Effect) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Neon Hover Glow */
.hover-glow {
    transition: var(--transition);
}
.hover-glow:hover {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.1), inset 0 0 15px rgba(157, 78, 221, 0.05);
    transform: translateY(-5px);
}

/* Typography Elements */
h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-heading); 
    font-weight: 600; 
    letter-spacing: -0.5px;
}

/* Cosmic Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--primary), #b070ff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientFlow 4s linear infinite;
}
.cosmic-glow {
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.3));
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.section-header { margin-bottom: 4rem; }
.section-header h2 { font-size: 2.8rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 2px;}
.header-line { width: 80px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 2px; box-shadow: 0 0 10px var(--primary); }

/* Glowing Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    z-index: 1;
    gap: 0.5rem;
}

.btn-primary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2), inset 0 0 10px rgba(0, 229, 255, 0.1);
}
.btn-primary:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}
.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--text-main);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    letter-spacing: 1px;
}
.btn-text i { transition: transform 0.3s ease; }
.btn-text:hover { color: #fff; text-shadow: 0 0 8px var(--primary); }
.btn-text:hover i { transform: translateX(5px); }

/* Scroll Progress & Nebula Cursor */
.progress-bar {
    position: fixed;
    top: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 10px var(--primary);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s;
}

.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, rgba(0, 229, 255, 0.05) 40%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    mix-blend-mode: screen;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(3, 1, 11, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { text-decoration: none; font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; letter-spacing: 2px;}

.nav-links { display: flex; gap: 2.5rem; }
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text-main); text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.nav-link::after {
    content: ''; position: absolute;
    width: 0; height: 2px;
    bottom: -6px; left: 0;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    transition: var(--transition);
}
.nav-link.active::after { width: 100%; }

.hamburger { display: none; cursor: pointer; gap: 6px; flex-direction: column; }
.hamburger span { width: 30px; height: 2px; background: var(--text-main); transition: var(--transition); border-radius: 2px;}

/* ==========================================================================
   Hero Section (Space Canvas)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
    overflow: hidden;
}
.hero-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
}
.space-gradient {
    position: absolute; width: 100%; height: 100%;
    background: radial-gradient(ellipse at top right, rgba(20, 15, 50, 0.8) 0%, var(--bg-dark) 60%);
    z-index: -1;
}
#space-canvas { display: block; width: 100%; height: 100%; }

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.hero-content { max-width: 650px; }
.subtitle { font-family: var(--font-heading); color: var(--accent); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 1.5rem; text-shadow: 0 0 10px rgba(255, 0, 122, 0.4);}
.title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1rem; }
.role { font-size: 1.3rem; font-weight: 400; color: var(--text-muted); margin-bottom: 1.5rem; font-family: var(--font-heading); letter-spacing: 1px;}
.divider { color: var(--primary); margin: 0 0.8rem; text-shadow: 0 0 5px var(--primary);}
.intro { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1.5rem; }

/* CSS Art: Planetary Orbital System */
.hero-visual { position: relative; height: 450px; display: flex; justify-content: center; align-items: center; perspective: 1000px;}
.orbital-system { position: relative; width: 350px; height: 350px; transform-style: preserve-3d; transform: rotateX(60deg) rotateY(-10deg);}

.sun-core {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotateX(-60deg);
    width: 80px; height: 80px;
    background: radial-gradient(circle, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 2.5rem; color: #fff;
    box-shadow: 0 0 50px var(--primary), 0 0 100px var(--secondary);
    animation: pulse 4s ease-in-out infinite alternate;
}

.orbit {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 50%;
    transform-style: preserve-3d;
}
.ring-1 { width: 220px; height: 220px; animation: orbitSpin 12s linear infinite; }
.ring-2 { width: 340px; height: 340px; border-color: rgba(157, 78, 221, 0.3); animation: orbitSpin 20s linear infinite reverse; }

.planet {
    position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%) rotateX(-90deg); /* Counter-rotate to face camera */
    width: 50px; height: 50px;
    background: rgba(10, 7, 24, 0.8); backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
}
.python-planet { color: #306998; border-color: rgba(48, 105, 152, 0.5); box-shadow: 0 0 20px rgba(48, 105, 152, 0.4);}
.data-planet { color: var(--accent); border-color: rgba(255, 0, 122, 0.5); box-shadow: 0 0 20px rgba(255, 0, 122, 0.4);}

@keyframes orbitSpin { 100% { transform: translate(-50%, -50%) rotateZ(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 40px var(--primary), 0 0 80px var(--secondary); } 100% { box-shadow: 0 0 60px var(--primary), 0 0 120px var(--secondary); } }

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 2rem; }
.about-text p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.05rem; }
.interests-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.interest-tag {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem; font-family: var(--font-heading);
    display: flex; align-items: center; gap: 0.5rem;
    transition: var(--transition); text-transform: uppercase; letter-spacing: 1px;
}
.interest-tag:hover { background: rgba(0, 229, 255, 0.1); border-color: var(--primary); color: var(--primary); box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);}

.about-stats { display: flex; flex-direction: column; gap: 1.5rem; }
.stat-card { text-align: center; padding: 2.5rem 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stat-card i { font-size: 2.8rem; color: var(--secondary); margin-bottom: 1rem; filter: drop-shadow(0 0 10px var(--secondary));}
.stat-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.stat-card p { font-size: 0.95rem; color: var(--text-muted); }

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}
.skill-category { padding: 2rem; border-top: 3px solid transparent; transition: border 0.3s; }
.skill-category:hover { border-top-color: var(--primary); }
.skill-category h3 { font-size: 1.2rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.8rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; letter-spacing: 1px;}
.skill-category h3 i { font-size: 1.5rem; filter: drop-shadow(0 0 5px currentColor);}
.skill-chips { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.skill-chips span {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem; font-family: var(--font-heading);
    transition: var(--transition);
}
.skill-chips span:hover {
    background: rgba(157, 78, 221, 0.15);
    border-color: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
}

/* ==========================================================================
   Projects Section (Mission Logs)
   ========================================================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.project-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.project-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.8), 0 0 20px rgba(0, 229, 255, 0.15); }

/* Space Theme Abstract Visuals */
.project-visual {
    height: 220px; width: 100%;
    position: relative;
    display: flex; justify-content: center; align-items: center;
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    background: #05030e;
}

.abstract-ui { position: relative; z-index: 2; font-size: 3.5rem; color: rgba(255,255,255,0.9); filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));}

/* OCR Visual: Scanning Grid / Laser */
.ocr-visual .cosmic-scanner { position: absolute; width: 200%; height: 2px; background: var(--primary); box-shadow: 0 0 15px var(--primary); animation: cosmicScan 3s infinite linear; opacity: 0.8;}
@keyframes cosmicScan { 0% { top: -10%; transform: rotate(15deg); } 100% { top: 110%; transform: rotate(15deg); } }

/* Stream Visual: Glowing Eclipse */
.stream-visual .cosmic-eclipse { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: #000; box-shadow: 0 0 30px var(--secondary), -10px -10px 40px var(--primary); animation: eclipseGlow 4s infinite alternate; }
@keyframes eclipseGlow { 100% { box-shadow: 0 0 50px var(--secondary), -5px -5px 60px var(--primary); } }

/* Ecommerce Visual: Star Network */
.ecommerce-visual .cosmic-network {
    position: absolute; width: 150px; height: 150px;
    background: radial-gradient(circle, transparent 30%, rgba(255, 0, 122, 0.2) 70%);
    border: 1px dashed var(--accent); border-radius: 50%; animation: spinNet 15s linear infinite;
}
@keyframes spinNet { 100% { transform: rotate(360deg); } }

.project-info { padding: 2.5rem; flex: 1; display: flex; flex-direction: column; background: rgba(5, 3, 15, 0.5); }
.project-badge {
    align-self: flex-start; font-size: 0.75rem; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 2px;
    background: rgba(0, 229, 255, 0.1); color: var(--primary); border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 0.4rem 0.8rem; border-radius: 4px; margin-bottom: 1.2rem;
}
.project-info h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.project-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.project-tech span { font-size: 0.75rem; font-family: var(--font-heading); color: #ccc; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 0.3rem 0.6rem; border-radius: 2px; text-transform: uppercase; letter-spacing: 1px;}

/* ==========================================================================
   Education & Achievements Section
   ========================================================================== */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

/* Timeline (Tractor Beam) */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
    box-shadow: 0 0 10px var(--primary);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; padding: 2rem; }
.star-dot {
    position: absolute; left: -2.5rem; top: 2rem; width: 16px; height: 16px;
    background: var(--primary); border: 3px solid var(--bg-dark); border-radius: 50%;
    transform: translateX(-50%); box-shadow: 0 0 15px var(--primary);
}
.timeline-date { display: inline-block; font-size: 0.85rem; color: var(--primary); font-family: var(--font-heading); letter-spacing: 1.5px; margin-bottom: 0.8rem; text-transform: uppercase;}
.timeline-item h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.timeline-item h4 { font-size: 1rem; font-weight: 400; color: #ddd; margin-bottom: 0.8rem; }
.timeline-item p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.cosmic-grade { display: inline-block; background: rgba(255, 0, 122, 0.1); border: 1px solid var(--accent); padding: 0.4rem 1rem; border-radius: 4px; font-size: 0.85rem; font-weight: 600; color: var(--accent); font-family: var(--font-heading); letter-spacing: 1px;}

/* Cert Cards */
.cert-card { display: flex; gap: 1.5rem; align-items: flex-start; padding: 2rem; }
.cert-icon-wrapper { width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; border-radius: 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.1); }
.cert-icon { font-size: 2rem; }
.primary-glow { color: var(--primary); box-shadow: inset 0 0 15px rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.3);}
.secondary-glow { color: var(--secondary); box-shadow: inset 0 0 15px rgba(157,78,221,0.1); border-color: rgba(157,78,221,0.3);}
.accent-glow { color: var(--accent); box-shadow: inset 0 0 15px rgba(255,0,122,0.1); border-color: rgba(255,0,122,0.3);}
.cert-date { font-size: 0.8rem; font-family: var(--font-heading); color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; display: block; margin-bottom: 0.5rem; }
.cert-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.cert-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ==========================================================================
   Contact Section (Terminal)
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: rgba(7, 5, 20, 0.6);
}
.contact-info { padding: 4rem 3rem; border-right: 1px solid var(--glass-border); }
.contact-info h3 { font-size: 2rem; margin-bottom: 1.5rem; text-transform: uppercase;}
.contact-info p { color: var(--text-muted); margin-bottom: 3rem; font-size: 1rem; }
.contact-details { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1.5rem; text-decoration: none; color: var(--text-main); transition: var(--transition); font-family: var(--font-heading); letter-spacing: 1px;}
.icon-box {
    width: 50px; height: 50px; background: rgba(0,0,0,0.3); border-radius: 8px;
    display: flex; justify-content: center; align-items: center; font-size: 1.5rem;
    transition: var(--transition); border: 1px solid var(--glass-border);
}
.contact-item:hover .icon-box { background: var(--primary); color: var(--bg-dark); box-shadow: 0 0 20px rgba(0, 229, 255, 0.5); border-color: var(--primary);}
.contact-item:hover span { color: var(--primary); text-shadow: 0 0 8px rgba(0,229,255,0.4);}

.contact-form { padding: 4rem 3rem; display: flex; flex-direction: column; gap: 2rem; }
.form-group { position: relative; }
.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 1.2rem 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    resize: none;
    transition: var(--transition);
}
.form-group label {
    position: absolute; left: 1rem; top: 1.2rem;
    color: var(--text-muted); pointer-events: none;
    transition: var(--transition); font-size: 0.95rem; font-family: var(--font-heading); letter-spacing: 1px;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(0, 229, 255, 0.1) inset; background: rgba(0,229,255,0.02);}
.form-group input:focus ~ label, .form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label, .form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.6rem; left: 0.8rem; font-size: 0.75rem; color: var(--primary); background: var(--bg-surface); padding: 0 0.4rem; border-radius: 2px;
}
.submit-btn { margin-top: 1rem; width: 100%; padding: 1.2rem; font-size: 1.1rem;}
.form-status { display: none; text-align: center; color: var(--accent); font-family: var(--font-heading); font-size: 1rem; margin-top: 1rem; text-shadow: 0 0 10px rgba(255,0,122,0.5);}

/* ==========================================================================
   Footer
   ========================================================================== */
footer { border-top: 1px solid rgba(0,229,255,0.1); padding: 5rem 0 2rem; background: #010005; }
.footer-container { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.footer-brand h2 { font-size: 1.8rem; letter-spacing: 2px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; font-family: var(--font-heading);}
.footer-social { display: flex; gap: 1.2rem; }
.footer-social a {
    width: 45px; height: 45px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: center; align-items: center; color: var(--text-main);
    text-decoration: none; transition: var(--transition); font-size: 1.5rem;
}
.footer-social a:hover { background: var(--secondary); color: #fff; transform: translateY(-5px); border-color: var(--secondary); box-shadow: 0 0 20px rgba(157,78,221,0.5);}
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); color: #556; font-size: 0.85rem; font-family: var(--font-heading); letter-spacing: 1px;}

/* ==========================================================================
   Project Modal Component
   ========================================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
    z-index: 1000; opacity: 0; visibility: hidden;
    display: flex; justify-content: center; align-items: center;
    transition: var(--transition); padding: 1rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
    width: 100%; max-width: 750px; max-height: 90vh; overflow-y: auto;
    position: relative; transform: scale(0.9); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #080614; border: 1px solid var(--primary); box-shadow: 0 0 40px rgba(0,229,255,0.2);
}
.modal-overlay.active .modal-content { transform: scale(1); }
.close-modal {
    position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); color: #fff; width: 40px; height: 40px; border-radius: 4px;
    cursor: pointer; font-size: 1.5rem; display: flex; justify-content: center; align-items: center;
    transition: var(--transition); z-index: 10;
}
.close-modal:hover { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 15px var(--accent);}
.modal-body { padding: 3rem; }
.modal-body h2 { font-size: 2rem; margin-bottom: 0.8rem; color: var(--primary); text-transform: uppercase;}
.modal-body .role-tag { display: inline-block; background: rgba(157,78,221,0.2); border: 1px solid var(--secondary); padding: 0.4rem 1rem; border-radius: 4px; font-size: 0.85rem; font-family: var(--font-heading); margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 1px;}
.modal-body h4 { margin-top: 2rem; margin-bottom: 1rem; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px;}
.modal-body ul { padding-left: 1.5rem; color: var(--text-muted); font-size: 1rem; }
.modal-body li { margin-bottom: 0.8rem; }
.modal-tech { color: var(--primary); font-size: 0.95rem; font-family: var(--font-heading); letter-spacing: 1px;}

/* ==========================================================================
   Animations & Reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
    .hero-background, .cursor-glow, .orbital-system * { animation: none; display: none; }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .title { font-size: 3.5rem; }
    .grid-2-col { grid-template-columns: 1fr; gap: 3rem; }
    .about-grid { grid-template-columns: 1fr; }
    .hero-container { grid-template-columns: 3fr 2fr; }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 75%; height: 100vh;
        background: rgba(3, 1, 11, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0); border-left: 1px solid rgba(0,229,255,0.2);
    }
    .nav-links.active { right: 0; box-shadow: -10px 0 30px rgba(0,0,0,0.8); }
    .hamburger { display: flex; z-index: 101; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--primary);}
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--primary);}
    
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-buttons { justify-content: center; }
    .hero-visual { display: none; }
    
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { border-right: none; border-bottom: 1px solid var(--glass-border); padding: 3rem 2rem;}
    .contact-form { padding: 3rem 2rem; }
    .footer-container { flex-direction: column; gap: 2rem; text-align: center; }
}

@media (max-width: 480px) {
    .title { font-size: 2.8rem; }
    .btn { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
    .modal-body { padding: 2rem; }
    .project-card, .glass-panel, .contact-wrapper { border-radius: 8px; }
}