/* ================================
   CSS VARIABLES & DESIGN SYSTEM
   ================================ */
:root {
    /* Brand Colors - Tech-Education Fusion */
    --primary: #8b5cf6;        /* Purple - Innovation */
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    
    --secondary: #14b8a6;      /* Teal - Education */
    --secondary-light: #2dd4bf;
    --secondary-dark: #0d9488;
    
    --accent: #f59e0b;         /* Amber - Energy */
    --accent-light: #fbbf24;
    
    /* Neutrals */
    --bg-dark: #0f0f23;
    --bg-darker: #050510;
    --surface: rgba(30, 30, 60, 0.8);
    --surface-light: rgba(40, 40, 80, 0.6);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Text */
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    /* Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
}

/* ================================
   RESET & BASE
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: -0.011em;
    overflow-x: hidden;
    position: relative;
}

/* ================================
   SCROLLBAR - STATE OF THE ART DESIGN
   ================================ */
/* WebKit Browsers (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--primary) 0%,
        var(--secondary) 50%,
        var(--accent) 100%
    );
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-darker);
    box-shadow: 
        0 0 10px rgba(139, 92, 246, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        var(--primary-light) 0%,
        var(--secondary-light) 50%,
        var(--accent-light) 100%
    );
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.8),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    transform: scaleY(1.05);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(
        180deg,
        var(--primary-dark) 0%,
        var(--secondary-dark) 50%,
        var(--accent) 100%
    );
    box-shadow: 
        0 0 15px rgba(139, 92, 246, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-corner {
    background: var(--bg-darker);
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-darker);
}

/* Firefox Scrollbar Enhancement on Hover */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-darker);
}

/* ================================
   ANIMATED BACKGROUND - NEURAL NETWORK
   ================================ */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.neural-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: grid-flow 60s linear infinite;
}

.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float-orb 25s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6), transparent);
    top: 10%;
    left: 5%;
    animation-duration: 30s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.5), transparent);
    top: 50%;
    right: 5%;
    animation-duration: 35s;
    animation-delay: -10s;
}

.orb-3 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.4), transparent);
    bottom: 10%;
    left: 40%;
    animation-duration: 40s;
    animation-delay: -20s;
}

.code-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--primary);
    overflow: hidden;
}

@keyframes grid-flow {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-40px, 40px) scale(0.95); }
}

/* ================================
   SKIP LINK
   ================================ */
.skip-link {
    position: absolute;
    top: -60px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 var(--radius-md) 0;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ================================
   SITE PRELOADER
   ================================ */
body.preloader-active {
    overflow: hidden;
}

.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.site-preloader__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% 20%, rgba(139, 92, 246, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 80% 90%, rgba(20, 184, 166, 0.12) 0%, transparent 50%),
        linear-gradient(165deg, var(--bg-darker) 0%, #0a0a1a 45%, var(--bg-dark) 100%);
}

.site-preloader__backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.6;
    pointer-events: none;
}

.site-preloader__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    max-width: 90vw;
}

.preloader-emblem {
    perspective: 900px;
    margin-bottom: 1.25rem;
}

.preloader-pyramid {
    display: block;
    width: min(42vw, 11.25rem);
    height: auto;
    filter:
        drop-shadow(0 0 20px rgba(45, 212, 191, 0.35))
        drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.preloader-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 6.5vw, 3.5rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
    justify-content: center;
    margin: 0;
    will-change: transform, opacity;
}

.preloader-name-part {
    display: inline-block;
}

.preloader-name-part--accent {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-rule {
    margin-top: 1.35rem;
    width: min(12rem, 50vw);
    height: 2px;
    border-radius: var(--radius-full);
    background: linear-gradient(
        90deg,
        transparent,
        var(--secondary-light),
        var(--primary-light),
        var(--secondary-light),
        transparent
    );
    opacity: 0.9;
    transform-origin: center;
    box-shadow: 0 0 16px rgba(45, 212, 191, 0.35);
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .preloader-pyramid,
    .preloader-name,
    .preloader-rule {
        will-change: auto;
    }

    .hero-text {
        opacity: 1;
        filter: none;
    }
}

/* ================================
   HEADER
   ================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(15, 15, 35, 0.98);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 2rem;
    width: auto;
    display: block;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
    letter-spacing: 0.02em;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--text);
}

nav a:hover::after {
    width: 100%;
}

.cta-header {
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.cta-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    z-index: 1001;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s ease;
}

/* ================================
   CONTAINER & LAYOUT
   ================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--space-3xl) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-label {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
    padding-top: 8rem;
    min-height: 100vh;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

/* Start hidden/blurred so first paint matches GSAP intro (no sharp flash under preloader) */
.hero-text {
    opacity: 0;
    filter: blur(12px);
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: var(--space-lg);
    align-items: center;
}

.role-badge {
    padding: 0.5rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.role-badge.primary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    border-color: var(--primary);
    color: var(--primary-light);
}

.role-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    max-width: 650px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-dim);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    min-height: 44px;
    font-family: var(--font-sans);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
    background: var(--surface);
    border: 2px solid var(--glass-border);
    color: var(--text);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--surface-light);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    perspective: 2000px;
    transform-style: preserve-3d;
}

.hero-animation-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.hero-image.hero-base {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.2));
    position: relative;
    z-index: 1;
    animation: float-gentle 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes float-gentle {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

/* ================================
   BRAIN CORE ANIMATION
   ================================ */
.brain-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    z-index: 10;
    pointer-events: none;
    transform-style: preserve-3d;
    opacity: 1 !important;
    visibility: visible !important;
}

.brain-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.9) 0%, rgba(139, 92, 246, 0.6) 40%, transparent 70%);
    animation: brain-pulse 3s ease-in-out infinite;
    filter: blur(20px);
    opacity: 1 !important;
}

.brain-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 3px solid rgba(139, 92, 246, 0.8);
    border-radius: 50%;
    animation: pulse-ring 1s ease-out infinite;
    opacity: 1 !important;
}

.brain-pulse-ring:nth-child(2) {
    animation-delay: 0.5s;
    border-color: rgba(20, 184, 166, 0.8);
}

.brain-pulse-ring:nth-child(3) {
    animation-delay: 1s;
    border-color: rgba(245, 158, 11, 0.8);
}

@keyframes brain-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 1;
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 1;
    }
}

/* ================================
   ORBITAL SYSTEM
   ================================ */
.orbital-system {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.orbital-element {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform-origin: center;
    pointer-events: none;
    z-index: 6;
    opacity: 1 !important;
    visibility: visible !important;
}

.orbital-element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.9) 0%, rgba(139, 92, 246, 0.6) 50%, transparent 70%);
    animation: element-float 4s ease-in-out infinite;
    opacity: 1 !important;
    visibility: visible !important;
}

.globe-element::before {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.7) 0%, rgba(20, 184, 166, 0.4) 50%, transparent 70%);
    animation-delay: 0s;
}

.laptop-element::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.7) 0%, rgba(245, 158, 11, 0.4) 50%, transparent 70%);
    animation-delay: 1.3s;
}

.books-element::before {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.7) 0%, rgba(139, 92, 246, 0.4) 50%, transparent 70%);
    animation-delay: 2.6s;
}

.element-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.7) 0%, rgba(139, 92, 246, 0.5) 50%, transparent 70%);
    filter: blur(15px);
    animation: glow-pulse 2.5s ease-in-out infinite;
    z-index: -1;
    opacity: 1 !important;
}

.globe-element .element-glow {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.7) 0%, rgba(20, 184, 166, 0.5) 50%, transparent 70%);
    animation-delay: 0s;
}

.laptop-element .element-glow {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.7) 0%, rgba(245, 158, 11, 0.5) 50%, transparent 70%);
    animation-delay: 1.3s;
}

.books-element .element-glow {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.7) 0%, rgba(139, 92, 246, 0.5) 50%, transparent 70%);
    animation-delay: 2.6s;
}

.element-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid rgba(139, 92, 246, 0.6);
    border-radius: 50%;
    animation: halo-rotate 8s linear infinite;
    z-index: -2;
    opacity: 1 !important;
}

.globe-element .element-halo {
    border-color: rgba(20, 184, 166, 0.6);
    animation-duration: 10s;
}

.laptop-element .element-halo {
    border-color: rgba(245, 158, 11, 0.6);
    animation-duration: 12s;
}

.books-element .element-halo {
    border-color: rgba(139, 92, 246, 0.6);
    animation-duration: 9s;
}

@keyframes element-float {
    0%, 100% {
        transform: translate(-50%, -50%) translateZ(0) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) translateZ(20px) scale(1.1);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

@keyframes halo-rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 1;
    }
}

/* ================================
   PARTICLE SYSTEM
   ================================ */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    border-radius: var(--radius-lg);
    opacity: 1 !important;
    visibility: visible !important;
}

/* ================================
   ORBITAL PATHS
   ================================ */
.orbital-paths {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
}

.orbit-path {
    fill: none;
    stroke: rgba(139, 92, 246, 0.6);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    animation: path-rotate 20s linear infinite;
}

.orbit-path:nth-child(2) {
    stroke: rgba(20, 184, 166, 0.6);
    animation-duration: 25s;
    animation-direction: reverse;
}

.orbit-path:nth-child(3) {
    stroke: rgba(245, 158, 11, 0.6);
    animation-duration: 18s;
}

@keyframes path-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .hero-animation-container {
        min-height: 400px;
    }
    
    .brain-core {
        width: 150px;
        height: 150px;
    }
    
    .brain-glow,
    .brain-pulse-ring {
        width: 150px;
        height: 150px;
    }
    
    .orbital-element {
        width: 60px;
        height: 60px;
    }
    
    .orbital-element::before {
        width: 45px;
        height: 45px;
    }
    
    .element-glow {
        width: 80px;
        height: 80px;
    }
    
    .element-halo {
        width: 90px;
        height: 90px;
    }
}

/* Tech Stack Grid */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tech-card {
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.tech-name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.tech-category {
    font-size: var(--text-xs);
    color: var(--text-dim);
}

/* ================================
   GLASS CARD SYSTEM
   ================================ */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    /* Ensure cards are visible by default */
    opacity: 1;
    transform: translateY(0);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(139, 92, 246, 0.12),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.glass-card:hover::after {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: var(--shadow-xl);
}

/* ================================
   EMAIL MODAL
   ================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: var(--space-md);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    max-width: 500px;
    width: 100%;
    padding: var(--space-2xl);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    z-index: 1;
}

.modal-close:hover {
    background: var(--surface-light);
    color: var(--text);
    transform: rotate(90deg);
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 4px 20px rgba(139, 92, 246, 0.4));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.modal-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.modal-description {
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.6;
    margin: 0;
}

.email-display-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-md) 0;
}

.email-display {
    background: var(--bg-darker);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    font-family: 'Courier New', monospace;
    font-size: var(--text-lg);
    color: var(--text);
    letter-spacing: 0.05em;
    word-break: break-all;
    transition: all 0.3s ease;
}

.email-display:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.btn-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    width: 100%;
}

.btn-copy:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-copy:active {
    transform: translateY(-1px);
}

.btn-copy.copied {
    background: linear-gradient(135deg, var(--success), #059669);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.copy-icon {
    font-size: var(--text-xl);
}

.copy-feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    color: var(--success);
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    width: 100%;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.feedback-icon {
    font-size: var(--text-xl);
    font-weight: bold;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        padding: var(--space-xl);
        max-width: 100%;
    }
    
    .modal-title {
        font-size: var(--text-2xl);
    }
    
    .modal-icon {
        font-size: 3rem;
    }
}

/* ================================
   AI TOOLS SHOWCASE
   ================================ */
.ai-tools-section {
    background: rgba(5, 5, 16, 0.8);
}

.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.ai-tool-card {
    text-align: center;
    /* Ensure AI tool cards are visible by default */
    opacity: 1;
    transform: translateY(0);
}

.tool-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-glow);
}

.tool-name {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.tool-description {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

.proficiency-bar {
    height: 4px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-full);
    margin-top: var(--space-md);
    overflow: hidden;
}

.proficiency-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

/* ================================
   PROJECTS SHOWCASE
   ================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.project-card {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    /* Ensure project cards are visible by default */
    opacity: 1;
    transform: translateY(0);
}

.project-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(20, 184, 166, 0.2));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(139, 92, 246, 0.3));
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.project-content h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text);
    flex-shrink: 0;
}

.project-description {
    font-size: var(--text-base);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    flex: 1 1 auto;
    min-height: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
    flex-shrink: 0;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--primary-light);
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: var(--space-md);
    border-top: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--success);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: var(--text-xs);
    color: var(--text-dim);
}

/* ================================
   PROJECT FILTERS & ENHANCED FEATURES
   ================================ */
.project-filters-wrapper {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.project-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-sans);
}

.filter-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.filter-instruction {
    flex-shrink: 0;
    padding: 0.875rem 1.25rem;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.4);
    border-radius: var(--radius-md);
    animation: pulse 2s ease-in-out infinite;
    text-align: center;
    z-index: 1;
    white-space: nowrap;
}

.filter-instruction p {
    margin: 0;
    color: rgba(20, 184, 166, 0.9);
    font-size: var(--text-base);
    font-weight: 600;
    font-family: var(--font-sans);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4);
    }
    50% {
        opacity: 0.95;
        box-shadow: 0 0 0 6px rgba(20, 184, 166, 0);
    }
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    flex-shrink: 0;
}

.media-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.btn-download,
.btn-view {
    padding: 0.625rem 1.25rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
}

.btn-download:hover,
.btn-view:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-view {
    background: var(--secondary);
}

.btn-view:hover {
    background: var(--secondary-light);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

/* Project Card Filtering */
.project-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.hidden {
    display: none;
}

/* Project Modal */
.project-modal {
    display: none; /* Will be set to flex by JavaScript */
}

.project-modal .modal-container {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-large {
    max-width: 1000px;
}

/* Artifact Preview Modal */
.artifact-modal {
    display: none; /* Will be set to flex by JavaScript */
}

.artifact-modal .modal-container {
    max-width: 1200px;
    max-height: 95vh;
    overflow-y: auto;
    padding: var(--space-xl);
}

.artifact-modal .modal-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--glass-border);
}

.artifact-modal .modal-content {
    width: 100%;
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.project-modal .modal-content {
    padding: 2rem;
}

.project-collection-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.collection-item {
    padding: 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.collection-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.collection-item h4 {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
    color: var(--text);
}

.collection-item p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.collection-item a,
.collection-item button {
    color: var(--primary-light);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-sans);
}

.collection-item a:hover,
.collection-item button:hover {
    color: var(--primary);
}

.collection-item button.btn-view {
    padding: 0.5rem 1rem;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.collection-item button.btn-view:hover {
    background: var(--secondary-light);
    color: white;
    transform: translateY(-2px);
}

/* Responsive adjustments for filters */
/* Medium screens - adjust layout */
@media (max-width: 1024px) and (min-width: 769px) {
    .project-filters-wrapper {
        gap: 1.5rem;
    }
    
    .filter-instruction {
        font-size: var(--text-sm);
        padding: 0.75rem 1rem;
    }
}

/* Small screens - stack instruction above filters */
@media (max-width: 768px) {
    .project-filters-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-instruction {
        width: 100%;
        text-align: center;
        margin-bottom: 0;
    }
    
    .project-filters {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: var(--text-xs);
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .btn-download,
    .btn-view {
        width: 100%;
        justify-content: center;
    }
}

/* ================================
   SKILLS MATRIX
   ================================ */
.skills-section {
    background: rgba(5, 5, 16, 0.8);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-category h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    font-size: 1.75rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-size: var(--text-base);
    color: var(--text-muted);
    font-weight: 500;
}

.skill-level {
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: 700;
}

/* ================================
   CONTACT SECTION
   ================================ */
.contact-section {
    background: rgba(5, 5, 16, 0.8);
    padding-top: var(--space-xl);
    padding-bottom: var(--space-lg);
    min-height: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-details p,
.contact-details a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: var(--primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: rgba(30, 30, 60, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: var(--text-base);
    font-family: var(--font-sans);
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(30, 30, 60, 0.8);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ================================
   FOOTER
   ================================ */
footer {
    background: rgba(5, 5, 16, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 1.25rem 0;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: 0.75rem;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Premium Tooltip Styles for Social Links */
.social-link[data-tooltip] {
    position: relative;
}

.social-link[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px) scale(0.8);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 
        0 4px 20px rgba(139, 92, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    letter-spacing: 0.02em;
}

.social-link[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px) scale(0.8);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--primary-dark);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.social-link[data-tooltip]:hover::before,
.social-link[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.social-link[data-tooltip]:hover::before {
    transform: translateX(-50%) translateY(0) scale(1);
}

.footer-links h4 {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 0.5rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-dim);
    font-size: var(--text-sm);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .hero-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }
    
    .header-container {
        padding: 1rem;
    }
    
    nav {
        display: none;
    }
    
    nav.mobile-active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 35, 0.98);
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: var(--shadow-lg);
    }
    
    nav.mobile-active ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .hero-section {
        padding-top: 6rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .tech-stack-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid,
    .ai-tools-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ================================
   UTILITIES
   ================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    * {
        background: white !important;
        color: black !important;
    }
    
    .animated-background,
    header,
    .mobile-menu-toggle,
    .btn,
    footer {
        display: none !important;
    }
}

/* ================================
   QUOTE CARD SECTION
   ================================ */
.quote-section {
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.quote-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(20, 184, 166, 0.08), rgba(99, 102, 241, 0.08));
    background-size: 200% 200%;
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem 2.5rem;
    position: relative;
    overflow: hidden;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        0 0 0 0 rgba(139, 92, 246, 0);
    min-height: 200px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    /* Animated gradient background */
    animation: gradientShift 8s ease infinite;
}

/* Animated gradient background */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Top border glow - animated */
.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 92, 246, 0.4),
        rgba(20, 184, 166, 0.6),
        rgba(99, 102, 241, 0.4),
        transparent
    );
    background-size: 200% 100%;
    animation: borderFlow 3s linear infinite;
    z-index: 2;
}

/* Bottom border glow - animated */
.quote-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(20, 184, 166, 0.4),
        rgba(139, 92, 246, 0.6),
        rgba(99, 102, 241, 0.4),
        transparent
    );
    background-size: 200% 100%;
    animation: borderFlow 3s linear infinite reverse;
    z-index: 2;
}

@keyframes borderFlow {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Mouse-tracking radial glow */
.quote-card .quote-glow {
    position: absolute;
    inset: -2px;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(139, 92, 246, 0.15),
        rgba(20, 184, 166, 0.12),
        rgba(99, 102, 241, 0.1),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
    border-radius: var(--radius-md);
}

.quote-card:hover .quote-glow {
    opacity: 1;
}

/* Shimmer effect */
.quote-card .quote-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 2;
}

.quote-card:hover .quote-shimmer {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating particles container */
.quote-card .quote-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
}

/* Individual particles */
.quote-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.8), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 6s ease-in-out infinite;
}

.quote-particle:nth-child(2) {
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.8), transparent);
    animation-delay: 1s;
    animation-duration: 7s;
}

.quote-particle:nth-child(3) {
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.7), transparent);
    animation-delay: 2s;
    animation-duration: 8s;
}

.quote-particle:nth-child(4) {
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.6), transparent);
    animation-delay: 3s;
    animation-duration: 6.5s;
}

.quote-particle:nth-child(5) {
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.7), transparent);
    animation-delay: 1.5s;
    animation-duration: 7.5s;
}

.quote-particle:nth-child(6) {
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6), transparent);
    animation-delay: 2.5s;
    animation-duration: 8.5s;
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translate(0, 100%) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--particle-x, 50px), var(--particle-y, -50px)) scale(1);
    }
}

/* Enhanced hover state */
.quote-card:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(20, 184, 166, 0.12), rgba(99, 102, 241, 0.12));
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(139, 92, 246, 0.2),
        0 0 60px rgba(20, 184, 166, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.quote-text {
    font-size: var(--text-base);
    font-style: italic;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 0 rgba(139, 92, 246, 0);
}

.quote-card:hover .quote-text {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        0 0 20px rgba(139, 92, 246, 0.3),
        0 0 40px rgba(20, 184, 166, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.quote-author {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.05em;
    align-self: flex-end;
    position: relative;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-card:hover .quote-author {
    color: rgba(20, 184, 166, 0.9);
    text-shadow: 0 0 15px rgba(20, 184, 166, 0.4);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .quote-text {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .quote-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.75rem;
        gap: 1rem;
    }
    
    .quote-text {
        font-size: var(--text-sm);
        white-space: normal;
        text-align: center;
    }
    
    .quote-author {
        font-size: var(--text-xs);
        align-self: flex-end;
    }
    
    .quote-card:hover .quote-text {
        transform: scale(1);
    }
}

/* ================================
   CUSTOM CURSOR
   ================================ */
/* Hide default cursor completely - DISABLED TO FIX NAVIGATION CLICKS */
/*
*,
*::before,
*::after {
    cursor: none !important;
}
*/
/*
body,
html,
a,
button,
input,
textarea,
select,
label,
div,
span,
img,
video,
canvas,
svg {
    cursor: none !important;
}
*/

/* Custom cursor container */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out, opacity 0.3s ease;
}

/* Outer circle */
.cursor-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

/* Inner dot */
.cursor-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

/* Hover state - keep white and same size */
.custom-cursor.hover .cursor-outer {
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, 0.8);
}

/* Hover state - keep white and same size */
.custom-cursor.hover .cursor-inner {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
}

/* Click state - shrink */
.custom-cursor.click .cursor-outer {
    width: 30px;
    height: 30px;
}

.custom-cursor.click .cursor-inner {
    width: 6px;
    height: 6px;
}

/* Hide cursor when leaving window */
.custom-cursor.hidden {
    opacity: 0;
}

/* Disable custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor {
        display: none;
    }
    
    body,
    a,
    button,
    input,
    textarea {
        cursor: auto !important;
    }
}

