/* ============================================
   PORTFOLIO - SAHIL SURESH RANE
   Premium Theme Portfolio with Card Deck
   Supports Light & Dark Mode
   ============================================ */


/* CSS Variables - Dark Mode (Default) */
:root {
    /* Custom Crystal Dark Violet Cursors (Base64 for 100% browser rendering) */
    --custom-arrow: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDIwIDI0Ij48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9ImFCb2R5IiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjYzA4NGZjIi8+PHN0b3Agb2Zmc2V0PSI0MCUiIHN0b3AtY29sb3I9IiNhODU1ZjciLz48c3RvcCBvZmZzZXQ9Ijc1JSIgc3RvcC1jb2xvcj0iIzdlMjJjZSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzU4MWM4NyIvPjwvbGluZWFyR3JhZGllbnQ+PGZpbHRlciBpZD0iYUdsb3ciIHg9Ii0zMCUiIHk9Ii0zMCUiIHdpZHRoPSIxNjAlIiBoZWlnaHQ9IjE2MCUiPjxmZURyb3BTaGFkb3cgZHg9IjAiIGR5PSIxIiBzdGREZXZpYXRpb249IjEiIGZsb29kLWNvbG9yPSIjNmIyMWE4IiBmbG9vZC1vcGFjaXR5PSIwLjgiLz48L2ZpbHRlcj48L2RlZnM+PHBhdGggZmlsdGVyPSJ1cmwoI2FHbG93KSIgZD0iTTIgMSBMMiAxOCBMNS44IDE0LjIgTDkuMiAyMSBMMTEuNSAxOS44IEw4LjIgMTMgTDEzLjUgMTMgWiIgZmlsbD0idXJsKCNhQm9keSkiIHN0cm9rZT0iI2U5ZDVmZiIgc3Ryb2tlLXdpZHRoPSIwLjgiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=") 1 1, auto;

    --custom-pointer: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyNiIgdmlld0JveD0iMCAwIDIyIDI2Ij48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InBCb2R5IiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj48c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjYzA4NGZjIi8+PHN0b3Agb2Zmc2V0PSI0MCUiIHN0b3AtY29sb3I9IiNhODU1ZjciLz48c3RvcCBvZmZzZXQ9Ijc1JSIgc3RvcC1jb2xvcj0iIzdlMjJjZSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzU4MWM4NyIvPjwvbGluZWFyR3JhZGllbnQ+PGZpbHRlciBpZD0icEdsb3ciIHg9Ii0zMCUiIHk9Ii0zMCUiIHdpZHRoPSIxNjAlIiBoZWlnaHQ9IjE2MCUiPjxmZURyb3BTaGFkb3cgZHg9IjAiIGR5PSIxIiBzdGREZXZpYXRpb249IjEiIGZsb29kLWNvbG9yPSIjNmIyMWE4IiBmbG9vZC1vcGFjaXR5PSIwLjgiLz48L2ZpbHRlcj48L2RlZnM+PHBhdGggZmlsdGVyPSJ1cmwoI3BHbG93KSIgZD0iTTcgMSBDNi4yIDEgNS41IDEuNyA1LjUgMi41IEw1LjUgMTAuNSBDNS4xIDEwLjEgNC40IDkuOCAzLjcgOS44IEMyLjQgOS44IDEuNSAxMC44IDEuNSAxMi4xIEMxLjUgMTIuNyAxLjcgMTMuMyAyLjEgMTMuOCBMNiAyMCBDNy4yIDIyIDkuMiAyMyAxMS41IDIzIEwxNCAyMyBDMTcuMiAyMyAxOS41IDIwLjcgMTkuNSAxNy41IEwxOS41IDExLjUgQzE5LjUgMTAuNCAxOC42IDkuNSAxNy41IDkuNSBDMTcuMSA5LjUgMTYuNyA5LjYgMTYuNCA5LjlDMTYuNCA4LjkgMTUuNSA4LjIgMTQuNCA4LjIgQzEzLjQgOC4yIDEyLjkgOC40IDEyLjUgOC44IEMxMi4xIDcuOSAxMS41IDcuMyAxMC40IDcuMyBDOS44IDcuMyA5LjMgNy41IDguOSA3LjkgTDguOSAyLjUgQzguOSAxLjcgOC4yIDEgNy40IDEgWiIgZmlsbD0idXJsKCNwQm9keSkiIHN0cm9rZT0iI2U5ZDVmZiIgc3Ryb2tlLXdpZHRoPSIwLjgiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=") 7 1, pointer;

    /* Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    
    /* Background colors - darker for galaxy effect */
    --bg-dark: #050510;
    --bg-darker: #020206;
    --bg-card: #0d0d15;
    --bg-card-hover: #15151f;
    
    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-text: linear-gradient(90deg, #6366f1, #06b6d4);
    --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;
    
    /* Theme transition */
    --theme-transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);

    /* Fluid Type Scales using clamp() to prevent mobile clipping and desktop bloat */
    --font-hero-title: clamp(2rem, 4.5vw + 1rem, 4.5rem);
    --font-section-heading: clamp(1.75rem, 3.5vw, 3rem);
    --font-body-copy: clamp(0.95rem, 0.85rem + 0.5vw, 1.15rem);

    /* Adaptive Spacing Matrix */
    --fluid-gutter: clamp(1rem, 4vw, 3.5rem);
    --card-min-width: clamp(260px, 28vw, 360px);
}

/* ============================================
   LIGHT MODE THEME - Cosmic Twilight Nebula Palette
   Calming Celestial Twilight Lavender & Royal Purple-Pink
   Zero Eye Strain • Authentic Space Theme • Silky 120fps
   ============================================ */
body.light-mode {
    /* ── Calming Cosmic Twilight Lavender Canvas (Soft, Serene, Zero Eye Glare) ── */
    --bg-dark:        #EAE6F4;
    --bg-darker:      #DFDAED;
    --bg-card:        #F3EFF9;
    --bg-card-hover:  #F8F5FC;

    /* ── Deep Cosmic Obsidian-Violet Typography (Maximum Crisp Contrast, No Harsh Black) ── */
    --text-primary:   #1A1230;
    --text-secondary: #4A3F66;
    --text-muted:     #766C91;

    /* ── Cosmic Purple-Pink Jeweled Accents (Harmonized with Dark Mode) ── */
    --primary:        #7C3AED;
    --primary-light:  #9333EA;
    --primary-dark:   #5B21B6;
    --accent:         #EC4899;
    --accent-light:   #F472B6;

    /* ── Cosmic Nebula Layered Shadows ── */
    --shadow-sm:   0 2px 8px rgba(91, 33, 182, 0.06),   0 1px 3px rgba(0, 0, 0, 0.03);
    --shadow-md:   0 6px 20px rgba(91, 33, 182, 0.08),  0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg:   0 12px 36px rgba(91, 33, 182, 0.11), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 35px rgba(124, 58, 237, 0.22);

    /* ── Luminous Ambient Stardust Glow ── */
    --gradient-glow: radial-gradient(circle at center, rgba(168, 85, 247, 0.18) 0%, transparent 70%);

    /* ── Base Calming Twilight Nebula Background ── */
    background: 
        radial-gradient(ellipse 90% 60% at 15% 20%, rgba(147, 51, 234, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 75% 55% at 85% 75%, rgba(236, 72, 153, 0.10) 0%, transparent 58%),
        radial-gradient(ellipse 80% 70% at 50% 10%, rgba(99, 102, 241, 0.09) 0%, transparent 65%),
        #EAE6F4 !important;
}

/* ============================================
   LIGHT MODE - Zero-Lag High-Performance Surfaces
   Disable backdrop-filter on card containers to guarantee 60-120fps during scroll
   ============================================ */
body.light-mode .section,
body.light-mode .card-section,
body.light-mode .skill-card-compact,
body.light-mode .project-card-compact,
body.light-mode .about-card-compact,
body.light-mode .hackathon-card-compact,
body.light-mode .contact-box-compact,
body.light-mode .project-card-structured,
body.light-mode .telemetry-terminal,
body.light-mode .github-diagram-card,
body.light-mode .cert-card-compact,
body.light-mode .achievement-card-compact,
body.light-mode .stat-box,
body.light-mode .value-statement,
body.light-mode .glass-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* ============================================
   LIGHT MODE - Navbar Styles
   ============================================ */
body.light-mode .navbar {
    background: rgba(234, 230, 244, 0.92);
    border: 1px solid rgba(147, 51, 234, 0.20);
    box-shadow:
        0 8px 30px rgba(76, 29, 149, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.light-mode .logo-text {
    color: var(--text-primary);
    font-weight: 700;
}

body.light-mode .nav-link {
    color: var(--text-secondary);
}

body.light-mode .nav-link:hover {
    color: var(--primary);
    background: rgba(147, 51, 234, 0.10);
}

body.light-mode .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #EC4899 100%) !important;
    box-shadow: 0 3px 14px rgba(124, 58, 237, 0.35), 0 1px 4px rgba(236, 72, 153, 0.22) !important;
}

body.light-mode .nav-contact-item {
    color: var(--text-secondary);
}

body.light-mode .nav-contact-item:hover {
    color: var(--primary);
}

/* Light mode - Page dots */
body.light-mode .page-dot {
    background: rgba(147, 51, 234, 0.24);
}

body.light-mode .page-dot.active {
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
}

/* Light mode - Scroll hint */
body.light-mode .scroll-hint {
    color: var(--text-muted);
}

/* Light mode - Card section base */
body.light-mode .section,
body.light-mode .card-section {
    background: transparent;
    box-shadow: none;
}

/* ============================================
   LIGHT MODE - Cards & Celestial Amethyst Surfaces
   ============================================ */
body.light-mode .skill-card-compact,
body.light-mode .project-card-compact,
body.light-mode .about-card-compact,
body.light-mode .hackathon-card-compact,
body.light-mode .contact-box-compact,
body.light-mode .project-card-structured,
body.light-mode .cert-card-compact,
body.light-mode .achievement-card-compact,
body.light-mode .stat-box,
body.light-mode .telemetry-terminal,
body.light-mode .github-diagram-card,
body.light-mode .glass-card {
    background: #F3EFF9 !important;
    border: 1px solid rgba(147, 51, 234, 0.18) !important;
    box-shadow: 0 4px 18px rgba(76, 29, 149, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .skill-card-compact:hover,
body.light-mode .project-card-compact:hover,
body.light-mode .about-card-compact:hover,
body.light-mode .hackathon-card-compact:hover,
body.light-mode .contact-box-compact:hover,
body.light-mode .project-card-structured:hover,
body.light-mode .cert-card-compact:hover,
body.light-mode .achievement-card-compact:hover,
body.light-mode .stat-box:hover,
body.light-mode .github-diagram-card:hover {
    background: #F8F5FC !important;
    border-color: rgba(217, 70, 239, 0.42) !important;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.16), 0 2px 8px rgba(236, 72, 153, 0.10) !important;
}

/* Interactive Card highlight aura */
body.light-mode .skill-card-compact::before,
body.light-mode .project-card-compact::before,
body.light-mode .about-card-compact::before,
body.light-mode .hackathon-card-compact::before {
    background: radial-gradient(
        350px circle at var(--x, 50%) var(--y, 50%),
        rgba(147, 51, 234, 0.10) 0%,
        rgba(236, 72, 153, 0.07) 35%,
        transparent 65%
    );
}

/* ============================================
   LIGHT MODE - Hero Section
   ============================================ */
body.light-mode .hero-tagline {
    color: #7C3AED;
    background: rgba(147, 51, 234, 0.09);
    border: 1px solid rgba(147, 51, 234, 0.22);
}

body.light-mode .title-line {
    color: #1A1230;
}

/* Signature Cosmic Purple-Pink Name Gradient */
body.light-mode .highlight-name {
    background: linear-gradient(
        135deg,
        #6D28D9 0%,
        #9333EA 35%,
        #C026D3 65%,
        #DB2777 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(147, 51, 234, 0.20));
}

body.light-mode .hero-description {
    color: #4A3F66;
}

/* Buttons */
body.light-mode .btn-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #EC4899 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.32), 0 2px 8px rgba(236, 72, 153, 0.22) !important;
    border: none !important;
}

body.light-mode .btn-primary:hover {
    background: linear-gradient(135deg, #6D28D9 0%, #9333EA 50%, #DB2777 100%) !important;
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.42), 0 4px 12px rgba(236, 72, 153, 0.28) !important;
    transform: translateY(-2px);
}

body.light-mode .btn-outline {
    border: 1.5px solid rgba(147, 51, 234, 0.30) !important;
    color: #7C3AED !important;
    background: #F3EFF9 !important;
}

body.light-mode .btn-outline:hover {
    border-color: #7C3AED !important;
    background: rgba(147, 51, 234, 0.12) !important;
    color: #5B21B6 !important;
}

/* Section Headers */
body.light-mode .section-header-compact h2,
body.light-mode .section-number {
    color: var(--text-primary);
}

body.light-mode .section-header-compact p {
    color: var(--text-secondary);
}

/* ============================================
   LIGHT MODE - GitHub Stats Hologram Cards
   ============================================ */
body.light-mode .stat-box {
    background: #F3EFF9 !important;
    border: 1.5px solid rgba(147, 51, 234, 0.20) !important;
    box-shadow: 0 4px 18px rgba(76, 29, 149, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .stat-box::before {
    background: linear-gradient(135deg, #7C3AED, #EC4899, #8B5CF6);
    opacity: 0;
}

body.light-mode .stat-box:hover {
    background: #F8F5FC !important;
    border-color: rgba(217, 70, 239, 0.45) !important;
    box-shadow: 0 14px 40px rgba(124, 58, 237, 0.16) !important;
}

body.light-mode .stat-box:hover::before {
    opacity: 0.08;
}

body.light-mode .stat-orbital-ring {
    border-top-color: rgba(147, 51, 234, 0.50);
    border-right-color: rgba(236, 72, 153, 0.35);
}

body.light-mode .stat-orbital-ring.ring-2 {
    border-top-color: rgba(236, 72, 153, 0.50);
    border-right-color: rgba(147, 51, 234, 0.35);
}

body.light-mode .stat-hologram {
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(147, 51, 234, 0.07) 50%,
        transparent 70%
    );
}

body.light-mode .stat-box i {
    color: #7C3AED;
}

body.light-mode .stat-num {
    background: linear-gradient(135deg, #6D28D9 0%, #C026D3 50%, #DB2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    font-weight: 800;
}

body.light-mode .stat-plus {
    color: #EC4899;
    -webkit-text-fill-color: #EC4899;
    font-weight: 700;
}

body.light-mode .stat-lbl {
    color: #7C3AED;
    font-weight: 700;
}

/* ============================================
   LIGHT MODE - Skill Cards & Tech Pills
   ============================================ */
body.light-mode .skill-icon-compact {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.12), rgba(236, 72, 153, 0.10));
    border: 1px solid rgba(147, 51, 234, 0.22);
    color: #7C3AED;
}

body.light-mode .skill-title-compact {
    color: #1A1230;
    font-weight: 700;
}

body.light-mode .skill-techs-compact {
    color: #4A3F66;
}

/* Skill tags - Purple-pink space contrast */
body.light-mode .skill-tags-compact span {
    background: rgba(147, 51, 234, 0.09);
    border: 1px solid rgba(147, 51, 234, 0.20);
    color: #6D28D9;
    font-weight: 600;
}

body.light-mode .skill-tags-compact span:hover {
    background: rgba(147, 51, 234, 0.18);
    border-color: #7C3AED;
    color: #4C1D95;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.20);
}

/* ============================================
   LIGHT MODE - Project Cards & Actions
   ============================================ */
body.light-mode .project-image-compact {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.08), rgba(236, 72, 153, 0.06));
}

body.light-mode .project-title-compact,
body.light-mode .project-card-title {
    color: #1A1230;
    font-weight: 700;
}

body.light-mode .project-desc-compact,
body.light-mode .project-card-summary {
    color: #4A3F66;
}

body.light-mode .project-tech-compact span,
body.light-mode .project-tech-pill {
    background: rgba(147, 51, 234, 0.09);
    color: #6D28D9;
    border: 1px solid rgba(147, 51, 234, 0.20);
    font-weight: 600;
}

body.light-mode .project-link-compact {
    color: #7C3AED;
}

body.light-mode .project-badge-domain {
    background: rgba(124, 58, 237, 0.10);
    color: #6D28D9;
    border: 1px solid rgba(124, 58, 237, 0.24);
}

body.light-mode .project-badge-feat {
    background: rgba(236, 72, 153, 0.12);
    color: #BE185D;
    border: 1px solid rgba(236, 72, 153, 0.28);
}

body.light-mode .project-action-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #EC4899 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.30) !important;
}

body.light-mode .project-action-ghost {
    background: #F3EFF9 !important;
    border: 1.5px solid rgba(147, 51, 234, 0.24) !important;
    color: #7C3AED !important;
}

body.light-mode .project-action-ghost:hover {
    background: rgba(147, 51, 234, 0.12) !important;
    border-color: #7C3AED !important;
    color: #5B21B6 !important;
}

/* ============================================
   LIGHT MODE - About Me & Telemetry Terminal
   ============================================ */
body.light-mode .about-card-compact h3 {
    color: #1A1230;
}

body.light-mode .about-card-compact p,
body.light-mode .about-card-compact li {
    color: #4A3F66;
}

/* Telemetry Tabs (About Section) */
body.light-mode .sat-tab {
    background: #EDE8F6 !important;
    border: 1px solid rgba(147, 51, 234, 0.20) !important;
    color: #4A3F66 !important;
    box-shadow: 0 2px 6px rgba(76, 29, 149, 0.04);
}

body.light-mode .sat-tab:hover {
    background: #F7F4FC !important;
    border-color: rgba(217, 70, 239, 0.45) !important;
    color: #7C3AED !important;
}

body.light-mode .sat-tab.active {
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #EC4899 100%) !important;
    color: #FFFFFF !important;
    border-color: transparent !important;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.36), 0 2px 8px rgba(236, 72, 153, 0.24) !important;
}

body.light-mode .telemetry-terminal {
    background: #F3EFF9 !important;
    border: 1px solid rgba(147, 51, 234, 0.18) !important;
    box-shadow: 0 8px 28px rgba(76, 29, 149, 0.07) !important;
}

body.light-mode .terminal-header {
    border-bottom-color: rgba(147, 51, 234, 0.14);
    color: #4A3F66;
}

body.light-mode .timeline-step {
    background: rgba(147, 51, 234, 0.05);
    border: 1px solid rgba(147, 51, 234, 0.14);
}

body.light-mode .timeline-step .badge {
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    color: #ffffff;
}

/* ============================================
   LIGHT MODE - Contact Section
   ============================================ */
body.light-mode .contact-box-compact {
    background: #F3EFF9 !important;
}

body.light-mode .contact-icon-compact {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.14), rgba(236, 72, 153, 0.12));
    color: #7C3AED;
}

body.light-mode .contact-label-compact {
    color: #766C91;
}

body.light-mode .contact-value-compact {
    color: #1A1230;
    font-weight: 600;
}

/* ============================================
   LIGHT MODE - Hackathons & Achievements
   ============================================ */
body.light-mode .hackathon-card-compact h3 {
    color: #1A1230;
}

body.light-mode .hackathon-card-compact p {
    color: #4A3F66;
}

body.light-mode .hackathon-award-compact {
    background: rgba(236, 72, 153, 0.12);
    color: #BE185D;
    border: 1px solid rgba(236, 72, 153, 0.28);
    font-weight: 700;
}

/* Hero visual elements */
body.light-mode .hero-visual::before {
    border-color: rgba(147, 51, 234, 0.16);
}

body.light-mode .photo-placeholder {
    background: linear-gradient(135deg, #F8F5FC 0%, #EDE7F6 100%);
    border-color: rgba(147, 51, 234, 0.20);
    color: #766C91;
}

body.light-mode .orbit-ring {
    border-color: rgba(147, 51, 234, 0.16);
}

body.light-mode .orbit-dot {
    background: #7C3AED;
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.50);
}

body.light-mode .dev-badge {
    background: #F3EFF9;
    border-color: rgba(147, 51, 234, 0.18);
    box-shadow: 0 6px 24px rgba(76, 29, 149, 0.08);
}

body.light-mode .dev-badge span {
    color: #766C91;
}

/* Code styling */
body.light-mode .code-bracket {
    color: #7C3AED;
}

body.light-mode .typing-text {
    color: #1A1230;
}

/* Scrollbar for light mode */
body.light-mode::-webkit-scrollbar-track {
    background: #DFDAED;
}

body.light-mode::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.35);
    border-radius: 8px;
}

body.light-mode::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.60);
}

/* Theme transition overlay */
.theme-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
}

/* Apply smooth transitions to themed elements */
body,
.navbar,
.nav-container,
.section,
.card-section,
.glass-card,
.telemetry-terminal,
.sat-tab,
.proj-cat-tab,
.project-category-tabs,
.project-card-structured,
.skill-card-compact,
.project-card-compact,
.about-card-compact,
.hackathon-card-compact,
.contact-box-compact,
.stat-box,
.achievement-card-compact,
.cert-card-compact,
.page-dot,
.nav-link,
.btn,
.magnetic-btn,
.theme-toggle,
.section-title,
.section-title-compact,
.subsection-title,
.hero-description,
.card-content,
.timeline-step {
    transition: 
        background-color var(--theme-transition),
        border-color var(--theme-transition),
        color var(--theme-transition),
        box-shadow var(--theme-transition);
}

/* Reset & Base Styles - 120fps Optimized */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ============================================
   3D GALAXY WEBGL CANVAS (FIXED BEHIND CONTENT)
   ============================================ */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Glassmorphism containers over 3D canvas */
.glass-card {
    background: rgba(11, 15, 25, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
}

/* Light mode body background - Calming Cosmic Twilight Nebula Canvas */
body.light-mode {
    background:
        radial-gradient(ellipse 90% 60% at 15% 25%, rgba(147, 51, 234, 0.12) 0%, transparent 65%),
        radial-gradient(ellipse 70% 50% at 85% 75%, rgba(236, 72, 153, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 80% 70% at 50% 5%,  rgba(99, 102, 241, 0.09) 0%, transparent 70%),
        #EAE6F4 !important;
}

body.light-mode .glass-card {
    background: #F3EFF9;
    border: 1px solid rgba(147, 51, 234, 0.18);
    box-shadow: 0 4px 20px rgba(76, 29, 149, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* Epic transition overlay flash effect */
.transition-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 999;
    opacity: 0;
}

/* Depth shadow for 3D effect */
.card-section {
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

/* ============================================
   NAVBAR - Floating Glass Pill Island Container
   ============================================ */

.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(94%, 1280px);
    height: 64px;
    z-index: 1000;
    background: rgba(10, 10, 22, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 50px;
    padding: 0 24px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(99, 102, 241, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode .navbar {
    background: rgba(247, 245, 238, 0.88);
    border: 1px solid rgba(91, 71, 214, 0.18);
    box-shadow:
        0 8px 28px rgba(91, 71, 214, 0.09),
        0 2px 6px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding-left: 6px;
}

.logo-text {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.logo-dot {
    color: var(--primary);
    font-size: 1.8rem;
    margin-left: 2px;
}

/* Floating Navigation Pill Tabs */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

body.light-mode .nav-links {
    background: rgba(91, 71, 214, 0.07);
    border: 1px solid rgba(91, 71, 214, 0.16);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 7px 18px;
    border-radius: 22px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.18);
}

body.light-mode .nav-link:hover {
    color: #1A1A2E;
    background: rgba(91, 71, 214, 0.12);
}

.nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(6, 182, 212, 0.9)) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

body.light-mode .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #5B47D6 0%, #0D9A7B 100%) !important;
    box-shadow: 0 4px 16px rgba(91, 71, 214, 0.35), 0 0 12px rgba(13, 154, 123, 0.18);
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 6px;
}

.nav-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s ease;
}

body.light-mode .nav-contact-item {
    background: rgba(91, 71, 214, 0.05);
    border: 1px solid rgba(91, 71, 214, 0.12);
    color: #4E5769;
}

.nav-contact-item:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.nav-contact-item i {
    color: var(--primary);
    font-size: 0.85rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(10, 10, 24, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    padding: 22px 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 25px rgba(99, 102, 241, 0.15);
    transform: translateY(-12px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

body.light-mode .mobile-menu {
    background: rgba(247, 245, 238, 0.97);
    border: 1px solid rgba(91, 71, 214, 0.18);
    box-shadow: 0 16px 40px rgba(91, 71, 214, 0.12), 0 2px 8px rgba(0,0,0,0.06);
}

.mobile-menu.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav-links {
    list-style: none;
    margin: 0 0 18px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-links li {
    margin: 0;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.12);
}

body.light-mode .mobile-nav-links a {
    color: #4E5769;
}

body.light-mode .mobile-nav-links a:hover,
body.light-mode .mobile-nav-links a.active {
    color: #5B47D6;
    background: rgba(91, 71, 214, 0.09);
}

.mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .mobile-contact {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.mobile-contact i {
    color: var(--primary);
    font-size: 0.9rem;
    width: 16px;
}

/* ============================================
   SINGLE-PAGE SCROLL LAYOUT
   ============================================ */

#main-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 70px; /* navbar height */
}

.section {
    position: relative;
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px var(--fluid-gutter);
    overflow: hidden;
    /* 90% Clear / Transparent overlay for full galaxy particle clarity */
    background: rgba(5, 5, 16, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.05);
}

.section:nth-child(odd),
.section:nth-child(even) {
    background: transparent;
}

/* Subtle glow overlay per section */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Card content wrapper */
.card-content {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 40px;
    position: relative;
    z-index: 1;
}

.card-content .section-header-compact {
    margin-bottom: 50px;
}

/* Push "My Journey" title down on About section */
.about-content .section-header-compact {
    margin-top: 5px;
    margin-bottom: 15px;
}

.card-content .skill-card-compact,
.card-content .about-card-compact,
.card-content .project-card-compact,
.card-content .hackathon-card-compact {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-content .skill-card-compact:hover,
.card-content .about-card-compact:hover,
.card-content .project-card-compact:hover,
.card-content .hackathon-card-compact:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Page Indicators - HIDDEN */
.page-indicators {
    display: none !important;
    visibility: hidden !important;
}

.page-dot {
    display: none !important;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.page-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.page-dot:hover {
    background: transparent;
    border-color: var(--primary);
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.page-dot:hover::before {
    transform: translate(-50%, -50%) scale(0.5);
}

.page-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6),
                0 0 40px rgba(99, 102, 241, 0.3);
    transform: scale(1.3);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.6), 0 0 40px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.8), 0 0 50px rgba(99, 102, 241, 0.4); }
}

/* Scroll Hint */
.scroll-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.6;
}

.scroll-hint-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
}

.scroll-hint-icon i {
    animation: scrollBounce 1.5s ease-in-out infinite;
    font-size: 0.7rem;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(4px); opacity: 1; }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    min-height: 100%;
    padding-top: 8vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 20px;
}

.badge-line {
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.title-line {
    font-size: var(--font-hero-title);
    font-weight: 800;
    line-height: 1.1;
    font-family: 'Poppins', sans-serif;
}

/* Glassy Text Effect on Name */
.highlight-name {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-hero-title);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: transparent;
    background: linear-gradient(
        135deg,
        rgba(138, 43, 226, 0.5) 0%,
        rgba(148, 87, 235, 0.5) 25%,
        rgba(168, 85, 247, 0.5) 50%,
        rgba(147, 51, 234, 0.5) 75%,
        rgba(138, 43, 226, 0.5) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.15));
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

/* ========================================
   MAGNETIC INTERACTIVE BUTTONS
   ======================================== */

.magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.magnetic-btn .btn-text {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.magnetic-btn .btn-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.magnetic-btn:hover .btn-icon {
    transform: translateX(8px) scale(1.2) rotate(5deg);
}

/* Glow Button (Primary) - Morphing Shape */
.btn-glow {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: white;
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.4),
        0 0 0 0 rgba(139, 92, 246, 0);
    border-radius: 30px 50px 30px 50px;
    animation: morphShape 8s ease-in-out infinite;
}

@keyframes morphShape {
    0%, 100% { border-radius: 30px 50px 30px 50px; }
    25% { border-radius: 50px 30px 50px 30px; }
    50% { border-radius: 30px 50px 30px 50px; }
    75% { border-radius: 50px 30px 50px 30px; }
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #a855f7, #ec4899);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(15px);
}

.btn-glow .btn-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: inherit;
}

.btn-glow .btn-glow-effect {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 3;
}

.btn-glow:hover {
    box-shadow: 
        0 10px 40px rgba(99, 102, 241, 0.6),
        0 0 60px rgba(139, 92, 246, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.05);
    border-radius: 50px;
    animation: none;
}

.btn-glow:hover::after {
    opacity: 1;
    animation: glowPulse 1.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; filter: blur(15px); }
    50% { opacity: 1; filter: blur(20px); }
}

.btn-glow:hover .btn-gradient {
    opacity: 1;
}

.btn-glow:hover .btn-text {
    transform: scale(1.05);
}

.btn-glow:active {
    transform: translateY(-2px) scale(0.95);
    box-shadow: 
        0 5px 20px rgba(99, 102, 241, 0.4),
        inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Glass Button (Outline) - Skewed Shape */
.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px 20px 40px 20px;
}

.btn-glass .btn-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glass::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-glass:hover::before {
    opacity: 1;
}

.btn-glass:hover::after {
    width: 300px;
    height: 300px;
}

.btn-glass:hover .btn-border {
    opacity: 1;
    animation: borderRotate 2s linear infinite;
}

.btn-glass:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 
        0 0 30px rgba(99, 102, 241, 0.3),
        inset 0 0 30px rgba(99, 102, 241, 0.1);
    transform: translateY(-5px) rotate(-2deg);
    border-radius: 25px;
}

.btn-glass:hover .btn-text {
    transform: scale(1.05);
    color: #a855f7;
}

.btn-glass:active {
    transform: translateY(-2px) rotate(0deg) scale(0.95);
    border-radius: 40px 20px 40px 20px;
}

@keyframes borderRotate {
    0% { background: linear-gradient(0deg, transparent, rgba(99, 102, 241, 0.5), transparent); }
    25% { background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent); }
    50% { background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.5), transparent); }
    75% { background: linear-gradient(270deg, transparent, rgba(139, 92, 246, 0.5), transparent); }
    100% { background: linear-gradient(360deg, transparent, rgba(99, 102, 241, 0.5), transparent); }
}

/* Neon Button (Download Resume) */
.btn-neon {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 100%);
    color: #00ffff;
    border: 2px solid #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    box-shadow: 
        0 0 5px #00ffff,
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.btn-neon .btn-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 50px;
}

.btn-neon .btn-particles::before,
.btn-neon .btn-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffff;
    opacity: 0;
}

.btn-neon .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-neon:hover {
    background: linear-gradient(135deg, #00ffff 0%, #00cccc 100%);
    color: #0f0f23;
    text-shadow: none;
    border-color: #00ffff;
    box-shadow: 
        0 0 10px #00ffff,
        0 0 40px rgba(0, 255, 255, 0.5),
        0 0 80px rgba(0, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.btn-neon:hover .btn-shine {
    left: 100%;
}

.btn-neon:hover .btn-icon {
    animation: bounce 0.5s ease infinite;
}

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

/* Magnetic effect active state */
.magnetic-btn.magnetic-active {
    transition: transform 0.1s ease-out;
}

/* Ripple effect on click */
.magnetic-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
    z-index: 10;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Light mode adjustments */
body.light-mode .btn-glass {
    background: rgba(255, 255, 255, 0.70);
    border-color: rgba(91, 71, 214, 0.22);
    color: #1A1A2E;
}

body.light-mode .btn-neon {
    background: linear-gradient(135deg, #5B47D6 0%, #0D9A7B 100%);
    border-color: transparent;
    color: #ffffff;
    text-shadow: none;
    box-shadow:
        0 6px 20px rgba(91, 71, 214, 0.32),
        0 2px 8px rgba(13, 154, 123, 0.18);
}

body.light-mode .btn-neon:hover {
    background: linear-gradient(135deg, #4733C0 0%, #0B7A5E 100%);
    color: #ffffff;
    box-shadow: 0 10px 32px rgba(91, 71, 214, 0.45);
    transform: translateY(-2px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.value-statement {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: -5px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.code-bracket {
    color: var(--primary);
}

.typing-text {
    color: var(--accent);
}

/* Hero Image - Simple & Clean */
.hero-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 40px;
}

.image-wrapper-simple {
    position: relative;
    width: 456px;
    height: 570px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Photo - Simple display */
.profile-photo {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    display: block;
    border-radius: 0;
    transition: opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1), filter 0.45s ease;
}

/* Dark mode - show dark image shifted right */
.profile-photo-dark {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    transform: translateX(170px);
    -webkit-mask-image: radial-gradient(ellipse 65% 75% at center 35%, black 30%, black 45%, transparent 85%);
    mask-image: radial-gradient(ellipse 65% 75% at center 35%, black 30%, black 45%, transparent 85%);
}

.profile-photo-light {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: translateX(170px);
    -webkit-mask-image: radial-gradient(ellipse 65% 75% at center 35%, black 30%, black 45%, transparent 85%);
    mask-image: radial-gradient(ellipse 65% 75% at center 35%, black 30%, black 45%, transparent 85%);
}

/* Light mode - show light image shifted right */
body.light-mode .profile-photo-dark {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

body.light-mode .profile-photo-light {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    transform: translateX(170px);
}

/* Light mode shadow adjustment and edge blending */
body.light-mode .profile-photo {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

body.light-mode .profile-photo-light {
    -webkit-mask-image: radial-gradient(ellipse 65% 75% at center 35%, black 30%, black 45%, transparent 85%);
    mask-image: radial-gradient(ellipse 65% 75% at center 35%, black 30%, black 45%, transparent 85%);
}

/* Profile Glow Effect */
.profile-glow-effect {
    position: absolute;
    width: 400px;
    height: 400px;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(168, 85, 247, 0.12) 30%,
        rgba(99, 102, 241, 0.08) 50%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: 0;
    animation: profileGlowPulse 4s ease-in-out infinite;
    filter: blur(40px);
    pointer-events: none;
}

@keyframes profileGlowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.85;
    }
}

/* Light mode glow adjustment */
body.light-mode .profile-glow-effect {
    background: radial-gradient(
        circle,
        rgba(99, 102, 241, 0.12) 0%,
        rgba(168, 85, 247, 0.1) 30%,
        rgba(99, 102, 241, 0.06) 50%,
        transparent 70%
    );
    opacity: 0.7;
}

/* Profile Floating Particles */
.profile-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.6);
    border-radius: 50%;
    box-shadow: 
        0 0 8px rgba(99, 102, 241, 0.6),
        0 0 15px rgba(99, 102, 241, 0.4);
    animation: floatParticle 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 15%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.particle:nth-child(2) {
    right: 20%;
    top: 30%;
    animation-delay: 1s;
    animation-duration: 6s;
}

.particle:nth-child(3) {
    left: 25%;
    bottom: 25%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    right: 15%;
    bottom: 35%;
    animation-delay: 3s;
    animation-duration: 5.5s;
}

.particle:nth-child(5) {
    left: 35%;
    top: 40%;
    animation-delay: 1.5s;
    animation-duration: 6.5s;
}

.particle:nth-child(6) {
    right: 30%;
    top: 55%;
    animation-delay: 2.5s;
    animation-duration: 5.8s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-15px) translateX(10px) scale(1.2);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-25px) translateX(-8px) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-10px) translateX(12px) scale(1.1);
        opacity: 0.6;
    }
}

/* Light mode particles adjustment */
body.light-mode .particle {
    background: rgba(99, 102, 241, 0.5);
    box-shadow: 
        0 0 6px rgba(99, 102, 241, 0.5),
        0 0 12px rgba(99, 102, 241, 0.3);
}

/* Subtle hover effect - only change filter */
.profile-photo:hover {
    filter: drop-shadow(0 15px 40px rgba(99, 102, 241, 0.3));
}

body.light-mode .profile-photo:hover {
    filter: drop-shadow(0 15px 40px rgba(99, 102, 241, 0.2));
}

/* Responsive */
@media (max-width: 1024px) {
    .image-wrapper-simple {
        width: 350px;
        height: 450px;
    }
}

@media (max-width: 768px) {
    .image-wrapper-simple {
        width: 280px;
        height: 380px;
    }
}

/* Old styles - keep for backward compatibility */
.image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Photo Container */
.profile-photo-container {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
}

.profile-photo-container .profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 3;
    animation: fadeInScale 1s ease-out;
    filter: brightness(1.05) contrast(1.1);
}

/* Animated Glow Background */
.photo-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at center, 
        rgba(168, 85, 247, 0.4) 0%,
        rgba(236, 72, 153, 0.3) 30%,
        rgba(99, 102, 241, 0.2) 60%,
        transparent 80%
    );
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 3s ease-in-out infinite;
    filter: blur(30px);
}

/* Rotating Ring */
.photo-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
                linear-gradient(135deg, 
                    rgba(168, 85, 247, 0.6) 0%,
                    rgba(236, 72, 153, 0.6) 50%,
                    rgba(99, 102, 241, 0.6) 100%
                ) border-box;
    z-index: 2;
    animation: rotateRing 8s linear infinite;
}

/* Floating Particles */
.photo-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 4;
}

.photo-particles::before,
.photo-particles::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
    animation: floatParticle 4s ease-in-out infinite;
}

.photo-particles::before {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.photo-particles::after {
    bottom: 15%;
    right: 10%;
    animation-delay: 2s;
}

/* Animations */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

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

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* Hover Effect */
.profile-photo-container:hover .profile-photo {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.profile-photo-container:hover .photo-glow {
    animation: pulseGlow 1.5s ease-in-out infinite;
}

/* Old placeholder styles - keep for fallback */
.image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-darker) 100%);
    border: 3px solid rgba(99, 102, 241, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.image-placeholder i {
    font-size: 3rem;
    color: var(--primary);
}

.image-decoration {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

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

/* ============================================
   ROTATING BADGE - Premium Animated Design
   ============================================ */
.rotating-badge {
    position: absolute;
    width: 160px;
    height: 160px;
    right: -80px;
    bottom: 40px;
    z-index: 10;
}

/* Outer glow ring */
.badge-glow-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--accent),
        transparent,
        var(--accent),
        transparent
    );
    animation: rotateGlow 4s linear infinite;
    opacity: 0.4;
    filter: blur(8px);
}

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

/* Orbital particles container */
.badge-orbit {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    animation: spin 8s linear infinite;
}

.badge-orbit-reverse {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    animation: spinReverse 6s linear infinite;
}

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

/* Orbital dots */
.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 
        0 0 10px var(--accent),
        0 0 20px var(--accent),
        0 0 30px var(--accent);
    animation: pulseDot 2s ease-in-out infinite;
}

.orbit-dot-small {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 
        0 0 8px var(--accent),
        0 0 15px var(--accent);
    opacity: 0.7;
    animation: pulseDot 1.5s ease-in-out infinite;
}

.dot-1 { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.dot-2 { bottom: 15%; right: 5%; animation-delay: 0.7s; }
.dot-3 { bottom: 15%; left: 5%; animation-delay: 1.4s; }
.dot-4 { top: 50%; right: 0; transform: translateY(-50%); animation-delay: 0.3s; }
.dot-5 { top: 50%; left: 0; transform: translateY(-50%); animation-delay: 1s; }

@keyframes pulseDot {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: scale(1.5);
        opacity: 1;
    }
}

.badge-svg {
    width: 100%;
    height: 100%;
    animation: spin 15s linear infinite;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
}

.badge-text {
    fill: url(#textGradient);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: textShimmer 3s ease-in-out infinite;
}

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

/* Center badge - Glassmorphism */
.badge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-center-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    filter: blur(15px);
    opacity: 0.6;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.9;
    }
}

.badge-center-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.5);
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.15);
        opacity: 0.2;
    }
}

.badge-icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 
        0 4px 15px rgba(168, 85, 247, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: iconFloat 4s ease-in-out infinite;
    z-index: 2;
}

.badge-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(168, 85, 247, 0.8),
        rgba(99, 102, 241, 0.8),
        rgba(168, 85, 247, 0.8)
    );
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

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

@keyframes iconFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    50% { 
        transform: translateY(-3px) scale(1.05);
    }
}

/* Hover effects */
.rotating-badge:hover .badge-svg {
    animation-duration: 8s;
}

.rotating-badge:hover .badge-glow-ring {
    opacity: 0.7;
    animation-duration: 2s;
}

.rotating-badge:hover .badge-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 
        0 8px 30px rgba(168, 85, 247, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.rotating-badge:hover .orbit-dot,
.rotating-badge:hover .orbit-dot-small {
    box-shadow: 
        0 0 15px var(--accent),
        0 0 30px var(--accent),
        0 0 45px var(--accent);
}

.floating-star {
    position: absolute;
    color: var(--accent);
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.star-1 {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.star-2 {
    bottom: 50px;
    right: 50px;
    animation-delay: 1.5s;
}

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

/* ============================================
   COMPACT SECTION HEADERS - Premium Typography
   ============================================ */

.section-header-compact {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.section-title-compact {
    font-size: var(--font-section-heading);
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

/* Animated underline for titles */
.section-title-compact::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.8;
}

.section-desc-compact {
    color: var(--text-secondary);
    font-size: var(--font-body-copy);
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.highlight {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    font-weight: 600;
}

/* ============================================
   TEXT ANIMATION CLASSES
   ============================================ */

/* Split text letter animation */
.text-reveal .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

/* Gradient text shimmer */
.text-shimmer {
    background: linear-gradient(
        90deg,
        var(--text-primary) 0%,
        var(--primary) 25%,
        var(--accent) 50%,
        var(--primary) 75%,
        var(--text-primary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shimmer.animate {
    animation: textShimmer 3s ease-in-out infinite;
}

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

/* Typewriter cursor */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--primary);
    margin-left: 2px;
    animation: cursorBlink 1s step-end infinite;
}

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

/* Fade up animation class */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ============================================
   SKILLS SECTION - Compact 3x2 Grid
   ============================================ */

.skills-content {
    padding: 20px 0;
}

.skills-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr));
    gap: 1.5rem;
}

.skill-card-compact {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    /* Performance */
    contain: layout style paint;
    will-change: transform;
    --x: 50%;
    --y: 50%;
}

/* Simplified gradient hover - no animation for performance */
.skill-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        300px circle at var(--x) var(--y),
        rgba(6, 182, 212, 0.15) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 0;
}

.skill-card-compact:hover::before {
    opacity: 1;
}

.skill-card-compact:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.skill-card-compact > * {
    position: relative;
    z-index: 1;
}

.skill-icon-compact {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-icon-compact i {
    font-size: 1.3rem;
    color: var(--accent);
}

.skill-info h3 {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 6px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.skill-info p {
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

.skill-tags-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tags-compact span {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

/* ============================================
   ABOUT SECTION - 2x2 Grid
   ============================================ */

.about-content {
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible;
}

.about-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    flex: 1;
    align-content: start;
    padding-top: 10px;
}

.about-card-compact {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    contain: layout style paint;
    will-change: transform;
    --x: 50%;
    --y: 50%;
}

/* Simplified gradient hover */
.about-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        300px circle at var(--x) var(--y),
        rgba(6, 182, 212, 0.15) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 0;
}

.about-card-compact:hover::before {
    opacity: 1;
}

.about-card-compact:hover {
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.about-card-compact > * {
    position: relative;
    z-index: 1;
}

.about-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.about-icon i {
    font-size: 1.1rem;
    color: var(--accent);
}

.about-card-compact h3 {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.about-card-compact p {
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   PROJECTS SECTION - 3 Cards in Row
   ============================================ */

.projects-content {
    padding: 20px 0;
}

/* ============================================
   UFO SCENE — Hovering Craft | Idle & Abduction Beams
   ============================================ */
.ufo-scene {
    position: relative;
    overflow: visible;
}

/* ── Craft base ── */
.ufo-craft {
    position: absolute;
    top: -110px;
    left: 50%;
    width: 160px;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    /* JS overrides this per-action (warp vs spring) */
    transition: left 0.45s cubic-bezier(0.34,1.4,0.64,1),
                top  0.38s cubic-bezier(0.22,1,0.36,1),
                opacity 0.3s ease;
    will-change: left, top, opacity;
}

.ufo-craft.ufo-active { opacity: 1; }

/* ── Idle bob ── */
@keyframes ufo-bob {
    0%   { transform: translateY(0px)  rotate(-1deg); }
    30%  { transform: translateY(-7px) rotate(1deg); }
    60%  { transform: translateY(-3px) rotate(-0.5deg); }
    100% { transform: translateY(0px)  rotate(-1deg); }
}
.ufo-craft.ufo-active .ufo-svg {
    animation: ufo-bob 3.2s ease-in-out infinite;
}

/* ── Warp streak: blazing horizontal motion blur during teleport ── */
@keyframes ufo-warp-flash {
    0%   { filter: drop-shadow(0 0 18px rgba(99,102,241,0.5)) drop-shadow(0 0 8px rgba(6,182,212,0.4))
                   blur(0px) brightness(1); }
    40%  { filter: drop-shadow(0 0 60px rgba(6,182,212,1))   drop-shadow(0 0 30px rgba(255,255,255,0.9))
                   blur(5px) brightness(3); }
    100% { filter: drop-shadow(0 0 18px rgba(99,102,241,0.5)) drop-shadow(0 0 8px rgba(6,182,212,0.4))
                   blur(0px) brightness(1); }
}
.ufo-craft.ufo-warping .ufo-svg {
    animation: ufo-warp-flash 0.15s ease-out forwards !important;
}

/* ── Tilt during travel ── */
.ufo-craft.ufo-tilt-left  .ufo-svg { transform: rotate(-16deg) !important; animation: none !important; }
.ufo-craft.ufo-tilt-right .ufo-svg { transform: rotate(16deg)  !important; animation: none !important; }

/* ── Base SVG glow ── */
.ufo-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 18px rgba(99,102,241,0.5)) drop-shadow(0 0 8px rgba(6,182,212,0.4));
    transition: filter 0.2s ease;
}

/* ── Rim light sequence ── */
@keyframes rim-spin {
    0%,100%   { opacity: 1;   }
    12.5%     { opacity: 0.2; }
    25%       { opacity: 0.9; }
    37.5%     { opacity: 0.2; }
    50%       { opacity: 1;   }
    62.5%     { opacity: 0.2; }
    75%       { opacity: 0.9; }
    87.5%     { opacity: 0.2; }
}
.ufo-rim-lights circle:nth-child(1) { animation: rim-spin 1.6s 0.00s linear infinite; }
.ufo-rim-lights circle:nth-child(2) { animation: rim-spin 1.6s 0.20s linear infinite; }
.ufo-rim-lights circle:nth-child(3) { animation: rim-spin 1.6s 0.40s linear infinite; }
.ufo-rim-lights circle:nth-child(4) { animation: rim-spin 1.6s 0.60s linear infinite; }
.ufo-rim-lights circle:nth-child(5) { animation: rim-spin 1.6s 0.80s linear infinite; }
.ufo-rim-lights circle:nth-child(6) { animation: rim-spin 1.6s 1.00s linear infinite; }
.ufo-rim-lights circle:nth-child(7) { animation: rim-spin 1.6s 1.20s linear infinite; }
.ufo-rim-lights circle:nth-child(8) { animation: rim-spin 1.6s 1.40s linear infinite; }

/* ════════════════════════════════════════
   TRACTOR BEAM
   ════════════════════════════════════════ */
.ufo-tractor-beam {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 0;
    pointer-events: none;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.3s ease, height 0.38s cubic-bezier(0.22,1,0.36,1), width 0.3s ease;
}
.ufo-tractor-beam.beam-on { opacity: 1; }

/* ── ABDUCTION BEAM (hovered card) — wide cyan/indigo cone ── */
.beam-inner {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(6, 182, 212, 0.65) 0%,
        rgba(99, 102, 241, 0.4) 30%,
        rgba(6, 182, 212, 0.22) 60%,
        rgba(6, 182, 212, 0.04) 100%
    );
    clip-path: polygon(12% 0%, 88% 0%, 100% 100%, 0% 100%);
    filter: blur(3px);
    transition: background 0.4s ease;
}

/* outer volumetric glow */
.beam-inner::after {
    content: '';
    position: absolute; inset: 0;
    background: inherit;
    filter: blur(16px);
    opacity: 0.55;
    clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
}

/* ── IDLE SCAN BEAM (edge lurk) — narrow lime-green survey beam ── */
.ufo-tractor-beam.beam-idle {
    width: 40px;
}
.ufo-tractor-beam.beam-idle .beam-inner {
    background: linear-gradient(
        to bottom,
        rgba(74, 222, 128, 0.7)  0%,
        rgba(16, 185, 129, 0.45) 40%,
        rgba(74, 222, 128, 0.12) 75%,
        transparent 100%
    );
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}
.ufo-tractor-beam.beam-idle .beam-inner::after {
    filter: blur(10px);
    opacity: 0.7;
    background: linear-gradient(to bottom, rgba(74,222,128,0.8), transparent);
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

/* idle scan sweep animation */
@keyframes idle-scan {
    0%   { transform: translateX(-50%) rotate(-4deg); }
    50%  { transform: translateX(-50%) rotate(4deg);  }
    100% { transform: translateX(-50%) rotate(-4deg); }
}
.ufo-tractor-beam.beam-idle.beam-on .beam-inner {
    animation: idle-scan 2.4s ease-in-out infinite;
    transform-origin: top center;
}

/* ── Rising particles (abduction mode) ── */
.beam-particles { position: absolute; inset: 0; pointer-events: none; }

@keyframes beam-particle-rise {
    0%   { transform: translateX(var(--px, 50%)) translateY(92%) scale(0.9); opacity: 0.85; }
    100% { transform: translateX(var(--px, 50%)) translateY(4%) scale(0.2);  opacity: 0; }
}
.beam-dot {
    position: absolute;
    bottom: 0; left: 0;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #7dd3fc;
    box-shadow: 0 0 8px 2px rgba(125,211,252,0.9);
    animation: beam-particle-rise 1.8s var(--delay,0s) ease-in infinite;
}
.beam-dot:nth-child(1) { --px: 20%; --delay: 0.00s; }
.beam-dot:nth-child(2) { --px: 38%; --delay: 0.36s; }
.beam-dot:nth-child(3) { --px: 55%; --delay: 0.72s; }
.beam-dot:nth-child(4) { --px: 72%; --delay: 1.08s; }
.beam-dot:nth-child(5) { --px: 88%; --delay: 1.44s; }

/* hide particles in idle mode */
.ufo-tractor-beam.beam-idle .beam-particles { display: none; }

/* ── Card glow when being abducted ── */
.project-card-structured.ufo-targeted {
    box-shadow:
        0 0 40px rgba(6,182,212,0.45),
        0 0 90px rgba(99,102,241,0.22),
        0 4px 20px rgba(0,0,0,0.3) !important;
    border-color: rgba(6,182,212,0.75) !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

/* ── Warp exit ring flash ── */
@keyframes warp-ring {
    0%   { transform: translateX(-50%) scaleX(0.2) scaleY(0.5); opacity: 0.9; }
    60%  { transform: translateX(-50%) scaleX(1.8) scaleY(0.15); opacity: 0.4; }
    100% { transform: translateX(-50%) scaleX(2.5) scaleY(0); opacity: 0; }
}
.ufo-craft.ufo-warping::after {
    content: '';
    position: absolute;
    bottom: 20px; left: 50%;
    width: 140px; height: 20px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(6,182,212,0.8) 0%, transparent 70%);
    animation: warp-ring 0.18s ease-out forwards;
    pointer-events: none;
}

/* ── Mobile: hide UFO ── */
@media (max-width: 640px) { .ufo-craft { display: none; } }

/* ============================================
   STRUCTURED MY WORK / PROJECTS SECTION (THEME MATCHED ULTRA-TRANSPARENT GLASS & FOCUS BLUR)
   ============================================ */
.projects-header-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

/* Category Filter Tabs - Theme Matched Frosted Glass */
.project-category-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(11, 15, 25, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    align-items: center;
    flex-wrap: wrap;
    width: fit-content;
}

.project-category-tabs:hover .proj-cat-tab:not(:hover):not(.active) {
    opacity: 0.4;
    filter: blur(1px);
}

.proj-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 9px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.proj-cat-tab:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translateY(-1px);
}

.proj-cat-tab.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.25));
    border-color: var(--accent);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
    opacity: 1 !important;
    filter: blur(0) !important;
}

.proj-cat-tab i {
    font-size: 0.75rem;
}

/* Grid & Interactive Focus Blur Spotlight */
.projects-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* When hovering any card, blur and dim sibling cards to focus user attention */
.projects-grid-compact:hover .project-card-structured:not(:hover) {
    filter: blur(4px) opacity(0.38);
    transform: scale(0.975);
}

@media (max-width: 480px) {
    .projects-grid-compact {
        grid-template-columns: 1fr;
    }
    .project-category-tabs {
        width: 100%;
    }
    .proj-cat-tab {
        flex: 1;
        justify-content: center;
        padding: 6px 10px;
        font-size: 0.78rem;
    }
}

/* Structured Project Card - Ultra-Transparent Theme Matched Glass */
.project-card-structured {
    background: rgba(11, 15, 25, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease, 
                background 0.3s ease,
                filter 0.3s ease, 
                opacity 0.3s ease;
    will-change: transform, filter, opacity;
    --x: 50%;
    --y: 50%;
}

/* Moving radial cyan light on mouse hover (matches .about-card-compact) */
.project-card-structured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
        350px circle at var(--x, 50%) var(--y, 50%),
        rgba(6, 182, 212, 0.14) 0%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

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

.project-card-structured:hover {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(11, 15, 25, 0.35);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.2);
    filter: blur(0px) opacity(1) !important;
    z-index: 10;
}

.project-card-structured > * {
    position: relative;
    z-index: 2;
}

/* Card Header */
.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1rem;
}

.project-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card-structured:hover .project-icon-badge {
    border-color: var(--accent);
    color: var(--accent-light);
    transform: scale(1.08) rotate(3deg);
}

.project-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.project-badge-domain {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
    letter-spacing: 0.02em;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-badge-feat {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.02em;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card Title & Content - Ultra-High Contrast with Text Shadows */
.project-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    transition: color 0.15s ease;
    overflow-wrap: break-word;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.project-card-structured:hover .project-card-title {
    color: var(--accent-light);
}

.project-card-summary {
    font-size: 0.88rem;
    font-family: 'Outfit', sans-serif;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Key Highlights List - Sharp & Distinct */
.project-card-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 1.1rem;
    padding: 0;
}

.project-card-highlights li {
    font-size: 0.8rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
    overflow-wrap: break-word;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.project-card-highlights li i {
    color: var(--accent);
    font-size: 0.72rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Tech Stack Tags */
.project-card-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 0.9rem;
    margin-bottom: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-tech-pill {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    transition: all 0.15s ease;
}

.project-card-structured:hover .project-tech-pill {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-light);
}

/* Card Action CTA Buttons */
.project-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.project-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    user-select: none;
}

.project-action-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.project-action-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(6, 182, 212, 0.4);
}

.project-action-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--text-primary) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.project-action-ghost:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* ============================================
   LIGHT MODE OVERRIDES - MATCHED PALETTE
   ============================================ */
body.light-mode .project-category-tabs {
    background: rgba(237, 232, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(147, 51, 234, 0.22);
    box-shadow: 0 4px 20px rgba(76, 29, 149, 0.07);
}

body.light-mode .proj-cat-tab {
    color: #55496F;
}

body.light-mode .proj-cat-tab:hover {
    color: #7C3AED;
    background: rgba(147, 51, 234, 0.10);
}

body.light-mode .proj-cat-tab.active {
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #EC4899 100%) !important;
    border-color: transparent !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35), 0 2px 6px rgba(236, 72, 153, 0.22) !important;
}

body.light-mode .project-card-structured {
    background: #F3EFF9 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(147, 51, 234, 0.18) !important;
    box-shadow: 0 4px 18px rgba(76, 29, 149, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .project-card-structured:hover {
    border-color: rgba(217, 70, 239, 0.45) !important;
    background: #F8F5FC !important;
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.16), 0 4px 10px rgba(236, 72, 153, 0.10) !important;
}

body.light-mode .project-icon-badge {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.14), rgba(236, 72, 153, 0.12));
    border-color: rgba(147, 51, 234, 0.22);
    color: #7C3AED;
}

body.light-mode .project-card-structured:hover .project-icon-badge {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.22), rgba(236, 72, 153, 0.20));
    border-color: #7C3AED;
}

body.light-mode .project-badge-domain {
    background: rgba(124, 58, 237, 0.10);
    color: #6D28D9;
    border-color: rgba(124, 58, 237, 0.24);
}

body.light-mode .project-badge-feat {
    background: rgba(236, 72, 153, 0.12);
    color: #BE185D;
    border-color: rgba(236, 72, 153, 0.28);
}

body.light-mode .project-card-title {
    color: #1A1230;
    text-shadow: none;
    font-weight: 700;
}

body.light-mode .project-card-structured:hover .project-card-title {
    color: #7C3AED;
}

body.light-mode .project-card-summary {
    color: #4A3F66;
    text-shadow: none;
}

body.light-mode .project-card-highlights li {
    color: #4A3F66;
    text-shadow: none;
}

body.light-mode .project-card-highlights li i {
    color: #7C3AED;
}

body.light-mode .project-card-techs {
    border-top-color: rgba(147, 51, 234, 0.14);
}

body.light-mode .project-tech-pill {
    background: rgba(147, 51, 234, 0.09);
    border-color: rgba(147, 51, 234, 0.20);
    color: #6D28D9;
    font-weight: 600;
}

body.light-mode .project-card-structured:hover .project-tech-pill {
    background: rgba(147, 51, 234, 0.18);
    border-color: #7C3AED;
    color: #4C1D95;
}

body.light-mode .project-action-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #EC4899 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.30) !important;
}

body.light-mode .project-action-ghost {
    background: #F3EFF9 !important;
    border: 1.5px solid rgba(147, 51, 234, 0.24) !important;
    color: #7C3AED !important;
}

body.light-mode .project-action-ghost:hover {
    background: rgba(147, 51, 234, 0.12) !important;
    border-color: #7C3AED !important;
    color: #5B21B6 !important;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-normal);
}

.project-links a:hover {
    color: var(--accent);
}

/* ============================================
   HACKATHON PLANETARY ORBIT SHOWCASE
   (Continuous Orbital Drift Stream with 10+ Realistic Planets,
    3D Tilted Rings, Revolving Moons, & High-Contrast Horizon Core)
   ============================================ */

.planets-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.planets-section-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.planets-controls-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.planets-drift-status {
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    color: var(--accent-light, #22d3ee);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.04em;
}

.planets-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.planet-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.85rem;
}

.planet-nav-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(6, 182, 212, 0.4));
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
    transform: scale(1.08);
}

/* Viewport & Orbit Track */
.hackathon-planets-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 45px 0 55px 0;
    margin-top: 1rem;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 1) 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 1) 95%, transparent 100%);
}

.orbital-path-line {
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.25) 20%, rgba(6, 182, 212, 0.35) 50%, rgba(99, 102, 241, 0.25) 80%, transparent);
    pointer-events: none;
    z-index: 1;
    transform: translateY(-50%);
}

.orbital-path-line::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 30%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.8), transparent);
    animation: orbital-pulse-drift 6s linear infinite;
}

@keyframes orbital-pulse-drift {
    0% { left: -30%; }
    100% { left: 100%; }
}

.hackathon-planets-track {
    display: flex;
    gap: 4.5rem;
    width: max-content;
    align-items: center;
    cursor: grab;
    user-select: none;
    will-change: transform;
    padding: 20px 20px;
    transition: transform 0.1s linear;
}

.hackathon-planets-track:active {
    cursor: grabbing;
}

/* Planet Item Container (Holds Planet Sphere + Tilted Rings + Revolving Moons) */
.hackathon-planet-item {
    position: relative;
    flex: 0 0 310px;
    width: 310px;
    height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.4s;
    z-index: 2;
}

.hackathon-planet-item:hover {
    transform: scale(1.09) translateY(-8px);
    z-index: 20;
}

/* Realistic 3D Planet Sphere */
.planet-sphere {
    width: 250px;
    height: 250px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 
        inset -25px -25px 45px rgba(0, 0, 0, 0.85),
        inset 15px 15px 30px rgba(255, 255, 255, 0.28),
        0 0 35px var(--planet-glow, rgba(6, 182, 212, 0.35));
    transition: box-shadow 0.4s ease;
}

.hackathon-planet-item:hover .planet-sphere {
    box-shadow: 
        inset -25px -25px 45px rgba(0, 0, 0, 0.9),
        inset 18px 18px 36px rgba(255, 255, 255, 0.45),
        0 0 50px var(--planet-glow-hover, rgba(6, 182, 212, 0.65));
}

/* Atmospheric Horizon Text Core (Always 100% Readable, Never Distorts Circle) */
.planet-text-core {
    width: 78%;
    height: 78%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 9, 18, 0.88) 0%, rgba(6, 9, 18, 0.95) 75%, rgba(6, 9, 18, 0.65) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.5);
    z-index: 5;
    pointer-events: auto;
}

.planet-hackathon-badge {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-light, #38bdf8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 5px;
    white-space: nowrap;
}

.planet-hackathon-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    max-height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.planet-hackathon-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.74rem;
    line-height: 1.4;
    color: #e2e8f0;
    margin: 0;
    max-height: 4.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

/* ═════════════════════════════════════════════════
   ATTACHED CELESTIAL EFFECTS (RINGS, MOONS, BELTS)
   ═════════════════════════════════════════════════ */

/* Realistic 3D SVG Planetary Rings (Continuous, Never Cropped) */
.planet-ring-svg {
    position: absolute;
    width: 440px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    overflow: visible;
    filter: drop-shadow(0 0 10px var(--ring-glow, rgba(34, 211, 238, 0.5)));
    transition: filter 0.4s ease;
}

.planet-ring-back {
    z-index: 1; /* Sits behind planet-sphere */
}

.planet-ring-front {
    z-index: 10; /* Sits in front of planet-sphere */
}

.hackathon-planet-item:hover .planet-ring-svg {
    filter: drop-shadow(0 0 18px var(--ring-glow, rgba(34, 211, 238, 0.85)));
}

/* Orbiting Revolving Moon System */
.planet-moon-orbit {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 15;
    animation: moon-orbit-spin 14s linear infinite;
    transform-style: preserve-3d;
}

.planet-moon {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff, #94a3b8 65%, #334155);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

/* Twin Moon */
.planet-moon-twin {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fed7aa, #ea580c 70%, #451a03);
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.7);
}

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

/* Asteroid Belt Orbit */
.planet-asteroid-belt {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    pointer-events: none;
    border: 2px dashed rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    transform: rotateX(68deg) rotateY(12deg);
    animation: asteroid-spin 25s linear infinite;
    z-index: 12;
}

@keyframes asteroid-spin {
    0% { transform: rotateX(68deg) rotateY(12deg) rotate(0deg); }
    100% { transform: rotateX(68deg) rotateY(12deg) rotate(360deg); }
}

/* ═════════════════════════════════════════════════
   10 PROCEDURAL REALISTIC PLANET STYLES
   ═════════════════════════════════════════════════ */

/* 1. Neon Cyan Gas Giant */
.planet-gas-giant {
    --planet-glow: rgba(6, 182, 212, 0.4);
    --planet-glow-hover: rgba(34, 211, 238, 0.75);
    --ring-color: rgba(6, 182, 212, 0.5);
    --ring-glow: rgba(34, 211, 238, 0.7);
    background: 
        radial-gradient(circle at 30% 25%, rgba(103, 232, 249, 0.95), transparent 55%),
        repeating-linear-gradient(0deg, #082f49 0px, #0369a1 18px, #0891b2 34px, #0e7490 52px, #0f172a 70px);
}

/* 2. Molten Magma World */
.planet-magma {
    --planet-glow: rgba(239, 68, 68, 0.45);
    --planet-glow-hover: rgba(249, 115, 22, 0.8);
    --ring-color: rgba(234, 88, 12, 0.5);
    --ring-glow: rgba(249, 115, 22, 0.75);
    background: 
        radial-gradient(circle at 35% 30%, rgba(253, 186, 116, 0.95), transparent 50%),
        repeating-linear-gradient(45deg, #450a0a 0px, #991b1b 16px, #ea580c 32px, #7c2d12 48px, #292524 64px);
}

/* 3. Cyber Amethyst Sphere */
.planet-amethyst {
    --planet-glow: rgba(168, 85, 247, 0.45);
    --planet-glow-hover: rgba(192, 132, 252, 0.75);
    --ring-color: rgba(168, 85, 247, 0.5);
    --ring-glow: rgba(216, 180, 254, 0.7);
    background: 
        radial-gradient(circle at 30% 30%, rgba(233, 213, 255, 0.95), transparent 50%),
        repeating-linear-gradient(135deg, #3b0764 0px, #6b21a8 20px, #9333ea 38px, #581c87 56px, #18052e 72px);
}

/* 4. Emerald Biosphere */
.planet-emerald {
    --planet-glow: rgba(16, 185, 129, 0.4);
    --planet-glow-hover: rgba(52, 211, 153, 0.75);
    --ring-color: rgba(16, 185, 129, 0.5);
    --ring-glow: rgba(52, 211, 153, 0.7);
    background: 
        radial-gradient(circle at 35% 30%, rgba(167, 243, 208, 0.95), transparent 55%),
        repeating-linear-gradient(30deg, #022c22 0px, #065f46 18px, #10b981 36px, #047857 52px, #064e3b 70px);
}

/* 5. Golden Solar Titan */
.planet-golden {
    --planet-glow: rgba(245, 158, 11, 0.45);
    --planet-glow-hover: rgba(251, 191, 36, 0.8);
    --ring-color: rgba(245, 158, 11, 0.5);
    --ring-glow: rgba(251, 191, 36, 0.75);
    background: 
        radial-gradient(circle at 30% 25%, rgba(254, 240, 138, 0.95), transparent 50%),
        repeating-linear-gradient(90deg, #451a03 0px, #92400e 16px, #f59e0b 32px, #b45309 50px, #78350f 68px);
}

/* 6. Glacial Ice World */
.planet-ice {
    --planet-glow: rgba(56, 189, 248, 0.45);
    --planet-glow-hover: rgba(186, 230, 253, 0.85);
    --ring-color: rgba(56, 189, 248, 0.5);
    --ring-glow: rgba(186, 230, 253, 0.75);
    background: 
        radial-gradient(circle at 25% 25%, #ffffff 0%, rgba(186, 230, 253, 0.9) 30%, transparent 60%),
        repeating-linear-gradient(60deg, #082f49 0px, #0284c7 18px, #38bdf8 34px, #bae6fd 50px, #0c4a6e 68px);
}

/* 7. Rose Nebula Orb */
.planet-rose-nebula {
    --planet-glow: rgba(244, 114, 182, 0.45);
    --planet-glow-hover: rgba(251, 113, 133, 0.8);
    --ring-color: rgba(244, 114, 182, 0.5);
    --ring-glow: rgba(251, 113, 133, 0.75);
    background: 
        radial-gradient(circle at 35% 30%, rgba(254, 205, 211, 0.95), transparent 50%),
        repeating-linear-gradient(-45deg, #4c0519 0px, #9f1239 18px, #f43f5e 36px, #be123c 54px, #1e030a 72px);
}

/* 8. Dark Matter Pulsar */
.planet-dark-pulsar {
    --planet-glow: rgba(99, 102, 241, 0.5);
    --planet-glow-hover: rgba(129, 140, 248, 0.85);
    --ring-color: rgba(99, 102, 241, 0.55);
    --ring-glow: rgba(129, 140, 248, 0.8);
    background: 
        radial-gradient(circle at 28% 28%, rgba(199, 210, 254, 0.95), transparent 45%),
        radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.6), transparent 50%),
        repeating-linear-gradient(110deg, #09090b 0px, #1e1b4b 20px, #312e81 40px, #030712 60px);
}

/* 9. Terraform Earth-like */
.planet-earth {
    --planet-glow: rgba(14, 165, 233, 0.45);
    --planet-glow-hover: rgba(56, 189, 248, 0.8);
    --ring-color: rgba(14, 165, 233, 0.5);
    --ring-glow: rgba(56, 189, 248, 0.7);
    background: 
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95) 0%, rgba(125, 211, 252, 0.8) 25%, transparent 55%),
        repeating-linear-gradient(20deg, #075985 0px, #0284c7 20px, #059669 36px, #0369a1 54px, #0f172a 72px);
}

/* 10. Celestial Prism */
.planet-celestial-prism {
    --planet-glow: rgba(236, 72, 153, 0.45);
    --planet-glow-hover: rgba(244, 114, 182, 0.85);
    --ring-color: rgba(236, 72, 153, 0.5);
    --ring-glow: rgba(244, 114, 182, 0.75);
    background: 
        radial-gradient(circle at 28% 28%, #ffffff 0%, rgba(255, 255, 255, 0.6) 20%, transparent 60%),
        linear-gradient(135deg, #06b6d4, #8b5cf6 35%, #ec4899 70%, #f59e0b 100%);
}

/* Light Mode Overrides for Planets Section */
body.light-mode .planet-nav-btn {
    background: rgba(255, 255, 255, 0.80);
    border-color: rgba(91, 71, 214, 0.22);
    color: #5B47D6;
    box-shadow: 0 4px 16px rgba(91, 71, 214, 0.10);
}

body.light-mode .planet-text-core {
    background: radial-gradient(circle, rgba(247, 245, 238, 0.92) 0%, rgba(247, 245, 238, 0.96) 75%, rgba(247, 245, 238, 0.72) 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .planets-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .planets-controls-bar {
        width: 100%;
        justify-content: space-between;
    }

    .hackathon-planet-item {
        flex: 0 0 280px;
        width: 280px;
        height: 280px;
    }

    .planet-sphere {
        width: 220px;
        height: 220px;
    }

    .planet-ring-svg {
        width: 380px;
        height: 190px;
    }
}
/* ============================================
   CONTACT SECTION - Centered Layout
   ============================================ */

.contact-content {
    text-align: center;
    padding: 20px 0;
}

.contact-grid-compact {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.contact-box-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
    --x: 50%;
    --y: 50%;
}

/* Cursor-Tracked Liquid Gradient Layer */
.contact-box-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        200px circle at var(--x) var(--y),
        rgba(6, 182, 212, 0.35) 0%,
        rgba(99, 102, 241, 0.2) 30%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.contact-box-compact:hover::before {
    opacity: 1;
}

.contact-box-compact:hover {
    border-color: rgba(6, 182, 212, 0.5);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.15);
}

.contact-box-compact > * {
    position: relative;
    z-index: 1;
}

.contact-box-compact i {
    font-size: 1.2rem;
    color: var(--primary);
}

.contact-box-compact span {
    font-size: 0.9rem;
}

.contact-actions {
    margin-bottom: 25px;
}

.social-links-compact {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link-compact {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

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

.copyright-compact {
    color: rgba(224, 242, 254, 0.75);
    font-size: 0.8rem;
    position: relative;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* ============================================
   HYPER-REALISTIC EARTH HORIZON ARC (REAL LAND, WATER, CLOUDS & ATMOSPHERE)
   ============================================ */

.earth-horizon-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 360px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    user-select: none;
    contain: layout style paint;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 8%, black 20%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 8%, black 20%, black 100%);
}

/* 1. Exosphere Deep Cosmic Backscatter Diffuse Glow */
.earth-exosphere-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 380px;
    background: radial-gradient(
        ellipse 70% 50% at 50% 100%,
        rgba(14, 165, 233, 0.28) 0%,
        rgba(2, 132, 199, 0.14) 30%,
        rgba(30, 58, 138, 0.08) 55%,
        rgba(99, 102, 241, 0.03) 75%,
        transparent 90%
    );
    pointer-events: none;
    z-index: 1;
    animation: earthExoPulse 10s ease-in-out infinite alternate;
}

@keyframes earthExoPulse {
    0% {
        opacity: 0.85;
        transform: translateX(-50%) scaleY(0.97);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1.03);
    }
}

/* 2. Real Earth Globe Arc Container */
.earth-globe-arc-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
}

/* 3. Photorealistic Earth Image (Land, Water, Swirling Clouds & Atmospheric Limb) */
.earth-realistic-img {
    width: min(1500px, 120vw);
    min-width: 1000px;
    height: 250px;
    object-fit: fill;
    display: block;
    filter: drop-shadow(0 -4px 25px rgba(14, 165, 233, 0.7))
            drop-shadow(0 -1px 8px rgba(56, 189, 248, 0.95));
    user-select: none;
    pointer-events: none;
    animation: earthAtmosphereBreathe 10s ease-in-out infinite alternate;
}

@keyframes earthAtmosphereBreathe {
    0% {
        filter: drop-shadow(0 -4px 22px rgba(14, 165, 233, 0.6))
                drop-shadow(0 -1px 6px rgba(56, 189, 248, 0.85));
    }
    100% {
        filter: drop-shadow(0 -6px 35px rgba(14, 165, 233, 0.85))
                drop-shadow(0 -2px 12px rgba(125, 211, 252, 1));
    }
}

/* 4. Blurry Volumetric Atmospheric Layer (Rayleigh scattering halo) */
.earth-atmosphere-blur-aura {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1500px, 120vw);
    min-width: 1000px;
    height: 180px;
    background: radial-gradient(
        ellipse 60% 45% at 50% 75%,
        rgba(56, 189, 248, 0.32) 0%,
        rgba(14, 165, 233, 0.18) 35%,
        rgba(2, 132, 199, 0.06) 60%,
        transparent 80%
    );
    filter: blur(16px);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 3;
}

/* 5. Orbital Sunrise / Dawn Specular Glint */
.earth-dawn-glint {
    position: absolute;
    left: 36.5%;
    bottom: 155px;
    transform: translate(-50%, 50%);
    z-index: 5;
    pointer-events: none;
    animation: dawnGlintShimmer 6s ease-in-out infinite alternate;
}

@keyframes dawnGlintShimmer {
    0% {
        opacity: 0.88;
        transform: translate(-50%, 50%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 50%) scale(1.08);
    }
}

.dawn-flare-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow:
        0 0 14px 4px #ffffff,
        0 0 32px 10px #67e8f9,
        0 0 65px 24px rgba(14, 165, 233, 0.9);
}

.dawn-flare-streak {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(4deg);
    width: 280px;
    height: 1.5px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(56, 189, 248, 0.25) 18%,
        rgba(224, 242, 254, 0.95) 50%,
        rgba(56, 189, 248, 0.25) 82%,
        transparent 100%
    );
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
}

.dawn-flare-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: radial-gradient(
        circle,
        rgba(103, 232, 249, 0.35) 0%,
        rgba(14, 165, 233, 0.15) 40%,
        transparent 70%
    );
    border-radius: 50%;
}

.dawn-flare-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

.dawn-flare-cross::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(90deg);
    background: inherit;
}

/* Ensure Contact UI elements maintain crisp z-index and readability */
#contact .card-content {
    position: relative;
    z-index: 10;
}

#contact .social-links-compact {
    position: relative;
    z-index: 10;
}

/* Light mode adaptability */
body.light-mode .earth-horizon-wrapper {
    opacity: 0.85;
    filter: saturate(1.2) brightness(1.05);
}

/* Responsive Scaling for Small Screens */
@media (max-width: 768px) {
    .earth-horizon-wrapper {
        height: 220px;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    .earth-realistic-img {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100vw !important;
        height: 150px;
        object-fit: cover;
    }
    .earth-atmosphere-blur-aura {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100vw !important;
        height: 120px;
        bottom: 50px;
    }
    .earth-dawn-glint {
        bottom: 90px;
        left: 36.5%;
    }
    .dawn-flare-streak {
        width: 160px;
    }
}




/* Click ripple effect */
.click-ripple {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.8);
    animation: clickRipple 0.6s ease-out forwards;
}

.click-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(168, 85, 247, 0.6);
    border-radius: 50%;
    animation: clickDot 0.3s ease-out forwards;
}

/* Spark particles */
.click-spark {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #a855f7;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 0 4px rgba(168, 85, 247, 0.8);
}

/* Subtle cursor trail particles */
.cursor-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    /* soft radial aura: bright center, violet falloff */
    background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.85) 0%, rgba(139,92,246,0.85) 25%, rgba(139,92,246,0.35) 60%, rgba(99,102,241,0.12) 100%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: 99998;
    will-change: transform, opacity;
    filter: blur(3px);
    animation: cursorParticle 420ms cubic-bezier(.22,.9,.3,1) forwards;
    opacity: 0.7;
}

@keyframes cursorParticle {
    0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.85); }
    60% { opacity: 0.35; transform: translate(calc(-50% + 3px), calc(-50% - 3px)) scale(1); }
    100% { opacity: 0; transform: translate(calc(-50% + 6px), calc(-50% - 6px)) scale(1.08); }
}

@keyframes clickRipple {
    0% {
        width: 0px;
        height: 0px;
        opacity: 1;
    }
    100% {
        width: 50px;
        height: 50px;
        opacity: 0;
    }
}

@keyframes clickDot {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Trail point */
.trail-point {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot {
        display: none !important;
    }
    body { cursor: auto !important; }
}

/* Use custom crystal glass dark violet SVG cursors globally */
body {
    cursor: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='22' viewBox='0 0 18 22'%3E%3Cdefs%3E%3ClinearGradient id='vBody' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%239333ea' stop-opacity='0.95'/%3E%3Cstop offset='30%25' stop-color='%236b21a8' stop-opacity='0.92'/%3E%3Cstop offset='70%25' stop-color='%233b0764' stop-opacity='0.90'/%3E%3Cstop offset='100%25' stop-color='%231e1b4b' stop-opacity='0.95'/%3E%3C/linearGradient%3E%3ClinearGradient id='vShine' x1='0%25' y1='0%25' x2='75%25' y2='75%25'%3E%3Cstop offset='0%25' stop-color='%23e9d5ff' stop-opacity='0.80'/%3E%3Cstop offset='50%25' stop-color='%23c084fc' stop-opacity='0.30'/%3E%3Cstop offset='100%25' stop-color='%23a855f7' stop-opacity='0.0'/%3E%3C/linearGradient%3E%3Cfilter id='vGlow' x='-40%25' y='-40%25' width='180%25' height='180%25'%3E%3CfeDropShadow dx='0' dy='1' stdDeviation='1.2' flood-color='%237e22ce' flood-opacity='0.85'/%3E%3CfeDropShadow dx='0' dy='2' stdDeviation='2.5' flood-color='%23000000' flood-opacity='0.6'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url(%23vGlow)' d='M1.5 1 L1.5 17 L5.2 13.2 L8.5 19.5 L10.8 18.2 L7.5 12 L12.5 12 Z' fill='url(%23vBody)' stroke='%23c084fc' stroke-width='0.6' stroke-linejoin='round'/%3E%3Cpath d='M1.5 1 L7.5 12 L5.2 13.2 Z' fill='url(%23vShine)' opacity='0.75'/%3E%3Cpath d='M1.5 1 L12.5 12 L7.5 12' fill='none' stroke='url(%23vShine)' stroke-width='0.6' stroke-linecap='round'/%3E%3C/svg%3E") 1 1, auto;
}

/* Interactive elements show compact crystal glass dark violet pointing hand finger cursor */
a, button, input, textarea, select, label, .btn, .magnetic-btn, [role="button"],
.project-card-compact, .skill-card-compact, .hackathon-card-compact,
.about-card-compact, .contact-box-compact, .nav-link, .page-dot,
.theme-toggle, .nav-logo, .achievement-card-compact, .social-link-compact,
.page-nav-arrow, .nav-toggle, .nav-contact-item, .sat-tab, .cert-card-compact,
.timeline-step, [onclick] {
    cursor: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Cdefs%3E%3ClinearGradient id='vBody' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%239333ea' stop-opacity='0.95'/%3E%3Cstop offset='30%25' stop-color='%236b21a8' stop-opacity='0.92'/%3E%3Cstop offset='70%25' stop-color='%233b0764' stop-opacity='0.90'/%3E%3Cstop offset='100%25' stop-color='%231e1b4b' stop-opacity='0.95'/%3E%3C/linearGradient%3E%3ClinearGradient id='vShine' x1='0%25' y1='0%25' x2='80%25' y2='80%25'%3E%3Cstop offset='0%25' stop-color='%23e9d5ff' stop-opacity='0.80'/%3E%3Cstop offset='50%25' stop-color='%23c084fc' stop-opacity='0.30'/%3E%3Cstop offset='100%25' stop-color='%23a855f7' stop-opacity='0.0'/%3E%3C/filter%3E%3Cfilter id='vGlow' x='-40%25' y='-40%25' width='180%25' height='180%25'%3E%3CfeDropShadow dx='0' dy='1' stdDeviation='1.2' flood-color='%237e22ce' flood-opacity='0.85'/%3E%3CfeDropShadow dx='0' dy='2' stdDeviation='2.5' flood-color='%23000000' flood-opacity='0.6'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url(%23vGlow)' d='M6.5 1 C5.8 1 5.2 1.6 5.2 2.3 L5.2 9.8 C4.9 9.4 4.3 9.2 3.7 9.2 C2.6 9.2 1.8 10.1 1.8 11.2 C1.8 11.7 2 12.2 2.4 12.6 L6.1 18.5 C7.2 20.3 9 21.3 11 21.3 L13.5 21.3 C16.5 21.3 18.5 19.3 18.5 16.3 L18.5 10.8 C18.5 9.9 17.7 9.1 16.8 9.1 C16.5 9.1 16.2 9.2 15.9 9.4 C15.5 8.5 14.7 7.9 13.8 7.9 C13.3 7.9 12.8 8.1 12.5 8.4 C12.1 7.6 11.3 7.1 10.4 7.1 C9.9 7.1 9.4 7.3 9.1 7.6 L9.1 2.3 C9.1 1.6 8.5 1 7.8 1 Z' fill='url(%23vBody)' stroke='%23c084fc' stroke-width='0.6' stroke-linejoin='round'/%3E%3Cpath d='M6.5 1 C5.8 1 5.2 1.6 5.2 2.3 L5.2 12 C6.2 13.6 8.5 17.5 11 21.3' fill='none' stroke='url(%23vShine)' stroke-width='0.6' stroke-linecap='round'/%3E%3Cpath d='M5.2 2.3 L9.1 7.6 L9.1 2.3 C9.1 1.6 8.5 1 7.8 1 Z' fill='url(%23vShine)' opacity='0.85'/%3E%3C/svg%3E") 6 1, pointer;
}

/* interactive-element custom cursor removed; only the body arrow cursor remains */

/* (old overlay cursor rules removed) */

/* ============================================
   GALAXY STARS CANVAS
   ============================================ */

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.8s ease;
}



body.light-mode #particles-canvas {
    opacity: 0.08;
    filter: invert(1) brightness(0.5);
}

/* ============================================
   THEME TOGGLE BUTTON - Creative Animation
   (Base styles handled in the NAV ACTIONS block around line 6605)
   ============================================ */

/* Moon icon - visible in dark mode */
.theme-toggle .fa-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #818cf8;
}

/* Sun icon - hidden in dark mode */
.theme-toggle .fa-sun {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
    color: #f59e0b;
}

/* Light mode: swap icons with rotation */
body.light-mode .theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

body.light-mode .theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

body.light-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(168, 85, 247, 0.28);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(251, 191, 36, 0.2);
}

body.light-mode .theme-toggle:hover {
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(251, 191, 36, 0.3);
}

/* ============================================
   PAGE LOADER
   ============================================ */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
}

@keyframes loaderSpin {
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .nav-contact {
        display: none;
    }
}

@media (max-width: 900px) {
    .navbar {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .image-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .about-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .contact-grid-compact {
        flex-direction: column;
        align-items: center;
    }
    
    .page-indicators {
        right: 15px;
    }
}

@media (max-width: 600px) {
    .card-section {
        padding: 20px;
    }
    
    .skill-card-compact {
        flex-direction: column;
        text-align: center;
    }
    
    .skill-icon-compact {
        margin: 0 auto;
    }
    
    .title-line {
        font-size: 1.8rem;
    }
    
    .scroll-hint {
        display: none;
    }
}
/* ============================================
   CARD DECK SHUFFLE TRANSITION SYSTEM
   Premium Card Deck Animation
   ============================================ */

/* Card Section 3D Setup */
.card-section {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* ============================================
   REDUCED MOTION - Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .card-section {
        transition: opacity 200ms ease !important;
    }
}

/* ============================================
   NEW SECTIONS - Timeline, Achievements, GitHub, Testimonials
   ============================================ */

/* Scrollable Section Container - Expanded for continuous single page flow */
.scrollable-section {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
}

/* Page Navigation Arrows - HIDDEN FOR CONTINUOUS SINGLE PAGE FLOW */
.page-nav-arrows,
.page-indicators,
.page-nav-arrow,
.page-indicator-dot {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Section pages - Fully visible continuously */
.section-page {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: 2rem;
}

.section-page.active {
    display: block !important;
    opacity: 1 !important;
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(168, 85, 247, 0.3) 50%, 
        transparent 100%
    );
    margin: 3rem 0;
}

.subsection-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Combined About & Timeline */
.about-timeline-combined {
    padding: 1rem;
}

.timeline-wrapper-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-item-compact {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.timeline-item-compact:hover {
    background: var(--bg-card-hover);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
    transform: translateY(-5px);
}

.timeline-year {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a855f7;
    margin-bottom: 0.8rem;
}

.timeline-item-compact h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-item-compact p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Combined Projects & GitHub */
.projects-github-combined {
    padding: 1rem;
}

.github-stats-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    perspective: 1000px;
}

.stat-box {
    position: relative;
    background: rgba(15, 10, 30, 0.18);
    border: 2px solid rgba(168, 85, 247, 0.35);
    border-radius: 20px;
    padding: 2rem 1.25rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform-style: preserve-3d;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.stat-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #a855f7, #ec4899, #f97316);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    filter: blur(20px);
}

.stat-box:hover {
    transform: translateY(-15px) rotateX(5deg);
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.4),
                0 0 80px rgba(168, 85, 247, 0.2);
}

.stat-box:hover::before {
    opacity: 0.6;
}

/* Orbital Rings */
.stat-orbital-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    border: 2px solid transparent;
    border-top-color: rgba(168, 85, 247, 0.6);
    border-right-color: rgba(236, 72, 153, 0.3);
    border-radius: 50%;
    animation: orbit 4s linear infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-box:hover .stat-orbital-ring {
    opacity: 1;
}

.stat-orbital-ring.ring-2 {
    width: 160px;
    height: 160px;
    margin: -80px 0 0 -80px;
    border-top-color: rgba(236, 72, 153, 0.6);
    border-right-color: rgba(249, 115, 22, 0.3);
    animation: orbit 6s linear infinite reverse;
}

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

/* Holographic Overlay */
.stat-hologram {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(168, 85, 247, 0.1) 50%,
        transparent 70%
    );
    background-size: 200% 200%;
    animation: hologramShift 3s ease-in-out infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-box:hover .stat-hologram {
    opacity: 1;
}

@keyframes hologramShift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Particles */
.stat-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-box:hover .stat-particles {
    opacity: 1;
}

.stat-particles::before,
.stat-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #a855f7;
    border-radius: 50%;
    box-shadow: 
        20px 30px 0 rgba(168, 85, 247, 0.8),
        -30px 20px 0 rgba(236, 72, 153, 0.8),
        40px -20px 0 rgba(249, 115, 22, 0.8),
        -20px -30px 0 rgba(168, 85, 247, 0.6),
        0px 40px 0 rgba(236, 72, 153, 0.6);
    animation: particleFloat 3s ease-in-out infinite;
}

.stat-particles::after {
    animation-delay: 1.5s;
    animation-direction: reverse;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(10px, -20px) scale(0.8);
        opacity: 0.6;
    }
}

/* Glow Pulse */
.stat-glow-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent 70%);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
    opacity: 0;
}

.stat-box:hover .stat-glow-pulse {
    opacity: 1;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

.stat-box i {
    position: relative;
    font-size: 2.5rem;
    color: #a855f7;
    margin-bottom: 1rem;
    display: block;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
    transition: all 0.5s ease;
}

.stat-box:hover i {
    transform: scale(1.2) rotateY(360deg);
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8));
}

.stat-num {
    position: relative;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #a855f7, #ec4899, #f97316);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    line-height: 1;
    z-index: 2;
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
    display: inline-block;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.stat-plus {
    position: relative;
    display: inline-block;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: -0.2rem;
    z-index: 2;
}

.stat-lbl {
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(168, 85, 247, 0.8);
    margin-top: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
}

/* Combined Achievements & Hackathons */
.achievements-hackathons-combined {
    padding: 1rem;
}

.achievements-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.achievement-card-compact {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Animated gradient background on hover */
.achievement-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, 
        transparent 0%,
        rgba(168, 85, 247, 0.1) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.achievement-card-compact:hover::before {
    left: 100%;
}

.achievement-card-compact:hover {
    background: var(--bg-card-hover);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 15px 50px rgba(168, 85, 247, 0.25),
                0 0 0 1px rgba(168, 85, 247, 0.2);
    transform: translateY(-8px) scale(1.02);
}

.achievement-icon-compact {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #a855f7;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.2);
}

/* Rotating ring effect */
.achievement-icon-compact::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        #a855f7 0%, 
        #ec4899 50%, 
        #6366f1 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: rotateRing 3s linear infinite;
    z-index: -1;
}

.achievement-card-compact:hover .achievement-icon-compact::before {
    opacity: 0.6;
}

.achievement-card-compact:hover .achievement-icon-compact {
    transform: scale(1.15) rotateY(360deg);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.achievement-card-compact h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    position: relative;
    transition: color 0.3s ease;
}

.achievement-card-compact:hover h3 {
    color: #a855f7;
}

.achievement-card-compact p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    position: relative;
}

/* Combined Contact & Testimonials */
#contact.section {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-testimonials-combined {
    padding: 1rem;
    width: 100%;
}

.testimonials-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 900px;
}

.testimonial-compact {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.testimonial-compact:hover {
    background: var(--bg-card-hover);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
    transform: translateY(-3px);
}

.testimonial-compact p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-compact h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.testimonial-compact span {
    font-size: 0.85rem;
    color: #a855f7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scrollable-section {
        padding: 1.5rem 1rem;
        max-height: calc(100vh - 100px);
    }
    
    .timeline-wrapper-compact,
    .achievements-grid-compact,
    .testimonials-compact {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-divider {
        margin: 2rem 0;
    }
}

/* Old sections - keep for backward compatibility but hide if not needed */

/* Timeline Section */
.timeline-content {
    padding: 3rem 2rem;
}

.timeline-wrapper {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
    padding: 0 1rem;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(168, 85, 247, 0.4) 10%, 
        rgba(168, 85, 247, 0.4) 90%, 
        transparent 100%
    );
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    z-index: 2;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    width: 45%;
    position: relative;
    transition: all var(--transition-normal);
}

.timeline-item:nth-child(odd) .timeline-card {
    margin-right: 55%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-card {
    margin-left: 55%;
    text-align: left;
}

.timeline-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
    transform: translateY(-5px);
}

.timeline-year {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a855f7;
    margin-bottom: 0.8rem;
}

.timeline-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-company {
    font-size: 0.9rem;
    color: #a855f7;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.timeline-card p:last-child {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Achievements Section */
.achievements-content {
    padding: 3rem 2rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.achievement-card:hover::before {
    left: 100%;
}

.achievement-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
    transform: translateY(-8px);
}

.achievement-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #a855f7;
}

.achievement-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cert-issuer {
    font-size: 0.9rem;
    color: #a855f7;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.achievement-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cert-year {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a855f7;
}

/* GitHub Section */
.github-content {
    padding: 3rem 2rem;
}

.github-stats-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.github-stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.github-stat-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: #a855f7;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.github-repos {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.repos-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.repo-card {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    display: block;
}

.repo-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
    transform: translateY(-5px);
}

.repo-card i {
    font-size: 2rem;
    color: #a855f7;
    margin-bottom: 1rem;
    display: block;
}

.repo-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.repo-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.repo-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.repo-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Testimonials Section */
.testimonials-content {
    padding: 3rem 2rem;
}

.testimonials-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 2rem;
    color: rgba(168, 85, 247, 0.3);
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #a855f7;
}

.author-info h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CERTIFICATES GALLERY - Premium Framed Display
   ============================================ */

.certificates-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 20px 0;
}

.certificate-frame {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e 0%, #0d0d15 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 500px;
    overflow: hidden;
}

.certificate-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(99, 102, 241, 0.1),
        transparent,
        rgba(6, 182, 212, 0.1),
        transparent
    );
    animation: rotateGlow 8s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.certificate-frame:hover::before {
    opacity: 1;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.certificate-frame:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(99, 102, 241, 0.3),
        0 0 40px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.certificate-frame-inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #2a2a40 0%, #1a1a2e 100%);
    border-radius: 12px;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.2);
}

.certificate-image,
.certificate-frame img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    aspect-ratio: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.certificate-frame:hover .certificate-image {
    transform: scale(1.02);
}

.certificate-info {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.certificate-info h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.certificate-info p {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* Light mode certificate styles */
body.light-mode .certificate-frame {
    background: linear-gradient(145deg, #F5F2FB 0%, #ECE7F5 100%);
    box-shadow:
        0 20px 56px rgba(124, 58, 237, 0.10),
        0 0 0 1px rgba(147, 51, 234, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.light-mode .certificate-frame:hover {
    box-shadow:
        0 30px 72px rgba(124, 58, 237, 0.18),
        0 0 0 1px rgba(217, 70, 239, 0.35),
        0 0 40px rgba(124, 58, 237, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.light-mode .certificate-frame-inner {
    background: linear-gradient(135deg, #F8F6FD 0%, #EFEBF7 100%);
    border-color: rgba(147, 51, 234, 0.14);
    box-shadow:
        inset 0 2px 10px rgba(124, 58, 237, 0.04),
        0 4px 20px rgba(76, 29, 149, 0.04);
}

body.light-mode .certificate-info {
    border-top-color: rgba(147, 51, 234, 0.14);
}

/* Responsive certificate styles */
@media (max-width: 768px) {
    .certificates-gallery {
        padding: 15px 0;
    }
    
    .certificate-frame {
        max-width: 100%;
        padding: 15px;
    }
    
    .certificate-frame-inner {
        padding: 10px;
    }
    
    .certificate-info h4 {
        font-size: 1.1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-wrapper::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
        transform: translateX(0);
    }
    
    .timeline-item:nth-child(odd) .timeline-card,
    .timeline-item:nth-child(even) .timeline-card {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
        width: calc(100% - 50px);
    }
    
    .achievements-grid,
    .github-stats-wrapper,
    .repos-grid,
    .testimonials-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE/TABLET FIT OVERRIDES
   ============================================ */

@media (max-width: 1024px) {
    .journey-grid,
    .about-grid-compact,
    .github-stats-wrapper,
    .github-stats-compact,
    .repos-grid,
    .achievements-grid,
    .achievements-grid-compact,
    .testimonials-wrapper,
    .testimonials-compact,
    .timeline-wrapper-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .contact-grid-compact {
        flex-wrap: wrap;
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .section-header-compact {
        margin-bottom: 20px;
    }

    .projects-grid-compact,
    .hackathons-grid-compact,
    .skills-grid-compact,
    .journey-grid,
    .about-grid-compact,
    .github-stats-wrapper,
    .repos-grid,
    .achievements-grid,
    .achievements-grid-compact,
    .testimonials-wrapper,
    .testimonials-compact,
    .timeline-wrapper-compact,
    .projects-github-combined,
    .achievements-hackathons-combined,
    .contact-testimonials-combined {
        grid-template-columns: 1fr !important;
    }

    .project-info,
    .hackathon-card-compact,
    .skill-card-compact,
    .about-card-compact {
        padding: 16px;
    }

    .project-links {
        flex-wrap: wrap;
        gap: 10px;
    }

    .contact-grid-compact {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-box-compact {
        justify-content: center;
        width: 100%;
        padding: 13px 15px;
    }

    .social-links-compact {
        flex-wrap: wrap;
    }

    .scrollable-section {
        max-height: none;
    }
}

@media (max-width: 480px) {
    .card-section {
        padding: 14px 10px;
    }

    .card-content {
        padding: 10px 0 24px;
    }

    .hero-badge {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .project-image-compact {
        height: 100px;
    }

    .project-image-compact i {
        font-size: 2rem;
    }

    .social-link-compact {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   LIVE CONTENT ENGINE STYLES
   Certificate Cards, Lightbox, Admin Link
   ============================================ */

/* ── Live Certificate Grid ─────────────────── */
.live-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

/* ── Certificate Card ──────────────────────── */
.cert-card-live {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.cert-card-live:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.18);
}

/* Thumbnail — preserves aspect ratio via padding-top hack */
.cert-card-live-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: rgba(5, 5, 16, 0.8);
}

.cert-card-live-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* UNCROPPED — fills without cropping */
    object-position: center;
    transition: transform 0.4s ease;
}

.cert-card-live:hover .cert-card-live-thumb img {
    transform: scale(1.04);
}

.cert-thumb-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(99, 102, 241, 0.4);
    font-size: 2.5rem;
}

/* Card body */
.cert-card-live-body {
    padding: 0.85rem 1rem;
}

.cert-card-live-body h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cert-card-live-body .cert-issuer {
    font-size: 0.75rem;
    color: var(--primary-light, #818cf8);
    margin-bottom: 0.2rem;
}

.cert-card-live-body .cert-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.cert-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light, #818cf8);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    font-family: inherit;
}

.cert-view-btn:hover {
    background: rgba(99, 102, 241, 0.22);
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-1px);
}

/* Light mode overrides for cert cards */
body.light-mode .cert-card-live {
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body.light-mode .cert-card-live:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

body.light-mode .cert-card-live-thumb {
    background: #f8fafc;
}

/* ── Certificate Lightbox ──────────────────── */
.cert-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 16, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cert-lightbox-inner {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 900px);
    width: 100%;
    background: rgba(13, 13, 21, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(99, 102, 241, 0.12);
}

.cert-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
}

.cert-lightbox-close:hover {
    background: rgba(239, 68, 68, 0.4);
    transform: scale(1.1);
}

.cert-lightbox-img-wrap {
    width: 100%;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050508;
    overflow: hidden;
}

.cert-lightbox-img-wrap img {
    width: 100%;
    height: 100%;
    max-height: 75vh;
    object-fit: contain; /* FULLY UNCROPPED */
    object-position: center;
    display: block;
}

.cert-lightbox-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(99, 102, 241, 0.12);
    background: rgba(0, 0, 0, 0.3);
}

.cert-lightbox-meta strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cert-lightbox-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Light mode lightbox */
body.light-mode .cert-lightbox-inner {
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.2);
}

body.light-mode .cert-lightbox-img-wrap {
    background: #f8fafc;
}

body.light-mode .cert-lightbox-close {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

body.light-mode .cert-lightbox-meta {
    border-color: rgba(0, 0, 0, 0.08);
    background: #f8fafc;
}

/* ── GitHub Diagrams Grid ──────────────────── */
.github-diagrams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* On desktop, calendar spans 2 columns */
.calendar-card {
    grid-column: span 2;
}

.github-diagram-card {
    position: relative;
    background: rgba(11, 15, 25, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Heatmap header: title left, yearly total right */
.heatmap-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 14px;
    width: 100%;
}

.heatmap-header h4 {
    margin-bottom: 0;
}

.heatmap-total {
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    color: #a5b4fc;
    font-weight: 600;
}

/* Heatmap footer: streak badges left, legend right */
.heatmap-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    width: 100%;
    margin-top: 10px;
}

.streak-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}

.streak-badge i {
    font-size: 0.7rem;
    color: #a78bfa;
}

.streak-badge.streak-current i {
    color: #fbbf24;
}

/* GitHub-style contribution tooltip */
.heatmap-tooltip {
    position: absolute;
    z-index: 30;
    pointer-events: none;
    background: #1e1b34;
    color: #f1f5f9;
    border: 1px solid rgba(129, 140, 248, 0.45);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    padding: 7px 11px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.heatmap-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.heatmap-tooltip strong {
    color: #fff;
    font-weight: 700;
}

.heatmap-tooltip span {
    color: #94a3b8;
}

.github-diagram-card h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    align-self: flex-start;
    font-weight: 600;
}

.github-diagram-card img {
    max-width: 100%;
    height: auto;
    display: block;
}

.github-diagram-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
}

/* Scroll wrapper for the calendar on small screens */
.diagram-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.4) transparent;
}

.diagram-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.diagram-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.diagram-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 3px;
}

/* Light mode overrides */
body.light-mode .github-diagram-card {
    background: #F3EFF9 !important;
    border: 1px solid rgba(147, 51, 234, 0.18) !important;
    box-shadow: 0 4px 20px rgba(76, 29, 149, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.light-mode .github-diagram-card:hover {
    background: #F8F5FC !important;
    border-color: rgba(217, 70, 239, 0.42) !important;
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.16) !important;
}

body.light-mode .heatmap-total {
    color: #1A1A2E;
}

body.light-mode .streak-badge {
    color: #4733C0;
    background: rgba(91, 71, 214, 0.09);
    border-color: rgba(91, 71, 214, 0.22);
}

body.light-mode .streak-badge i {
    color: #5B47D6;
}

body.light-mode .heatmap-legend {
    color: #8492A6;
}

body.light-mode .heatmap-tooltip {
    background: rgba(255, 255, 255, 0.97);
    color: #1A1A2E;
    border-color: rgba(91, 71, 214, 0.22);
    box-shadow: 0 8px 28px rgba(91, 71, 214, 0.14);
}

body.light-mode .heatmap-tooltip strong {
    color: #1A1A2E;
}

body.light-mode .heatmap-tooltip span {
    color: #4E5769;
}

body.light-mode .lang-legend .lang-item,
body.light-mode .perf-labels .perf-item {
    color: #4E5769;
}

body.light-mode .lang-legend .lang-pct {
    color: #5B47D6;
}

body.light-mode .perf-labels .perf-val {
    color: #5B47D6;
}

/* Canvas Charts Shared */
#contribution-heatmap {
    display: block;
    width: 100%;
    border-radius: 6px;
}

#lang-donut-chart,
#perf-radar-chart {
    max-width: 260px;
    max-height: 260px;
    margin: 0 auto;
    display: block;
}

/* Heatmap Legend */
.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 0;
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
}

.heatmap-legend .hm-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Language Legend */
.lang-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: center;
    margin-top: 14px;
}

.lang-legend .lang-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 500;
}

.lang-legend .lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lang-legend .lang-pct {
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
}

/* Perf Labels */
.perf-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: center;
    margin-top: 14px;
}

.perf-labels .perf-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #cbd5e1;
    font-weight: 500;
}

.perf-labels .perf-val {
    color: #a78bfa;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .github-diagrams-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-card {
        grid-column: span 1;
    }

    #lang-donut-chart,
    #perf-radar-chart {
        max-width: 220px;
        max-height: 220px;
    }
}

/* ============================================
   TECH BADGES & BRAND LOGOS (MY SPECIALITIES)
   ============================================ */

.skills-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-card-compact {
    background: rgba(13, 13, 22, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card-compact:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.2), 0 0 20px rgba(6, 182, 212, 0.15);
}

body.light-mode .skill-card-compact {
    background: #F3EFF9 !important;
    border: 1px solid rgba(147, 51, 234, 0.18) !important;
    box-shadow: 0 4px 18px rgba(76, 29, 149, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.light-mode .skill-card-compact:hover {
    background: #F8F5FC !important;
    border-color: rgba(217, 70, 239, 0.42) !important;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.16), 0 2px 6px rgba(236, 72, 153, 0.10) !important;
}

.skill-icon-compact {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.25));
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

body.light-mode .skill-icon-compact {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(2, 132, 199, 0.12));
    border-color: rgba(79, 70, 229, 0.2);
    color: var(--primary-dark);
}

.skill-info {
    flex: 1;
}

.skill-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.skill-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 1rem;
}

.skill-tags-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tags-compact span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-tags-compact span i {
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.skill-tags-compact span:hover {
    transform: translateY(-2px);
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

body.light-mode .skill-tags-compact span {
    background: rgba(91, 71, 214, 0.08);
    border: 1px solid rgba(91, 71, 214, 0.18);
    color: #4733C0;
}

body.light-mode .skill-tags-compact span:hover {
    background: rgba(91, 71, 214, 0.16);
    border-color: #5B47D6;
    box-shadow: 0 4px 14px rgba(91, 71, 214, 0.20);
    color: #3A27A8;
}

/* ============================================
   SECTION TITLES - Soft Edge-Fading Ambient Shadow
   ============================================ */

.section-header-compact {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title-compact,
.subsection-title {
    position: relative;
    display: inline-block;
    padding: 8px 24px;
    font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    margin-bottom: 0.5rem;
    z-index: 1;
}

/* Soft Edge-Fading Radial Shadow Backdrop */
.section-title-compact::before,
.subsection-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 180%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.35) 0%, rgba(6, 182, 212, 0.15) 40%, transparent 75%);
    filter: blur(18px);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-title-compact:hover::before,
.subsection-title:hover::before {
    transform: translate(-50%, -50%) scale(1.08);
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.45) 0%, rgba(6, 182, 212, 0.22) 45%, transparent 75%);
}

.section-desc-compact {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Light mode soft edge-fading shadow */
body.light-mode .section-title-compact::before,
body.light-mode .subsection-title::before {
    background: radial-gradient(ellipse at center, rgba(91, 71, 214, 0.18) 0%, rgba(13, 154, 123, 0.10) 45%, transparent 75%);
    filter: blur(18px);
}

/* ============================================
   NAV ACTIONS & THEME TOGGLE BUTTON
   ============================================ */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1002;
    flex-shrink: 0;
}

.theme-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(10, 10, 22, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 14px rgba(99, 102, 241, 0.2);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    flex-shrink: 0;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.08);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(6, 182, 212, 0.35);
}

.theme-toggle-icon {
    font-size: 1.15rem;
    position: absolute;
    inset: 0;
    margin: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease !important;
}

.theme-toggle .fa-sun {
    color: #f59e0b;
    opacity: 0;
    transform: rotate(-120deg) scale(0.3);
}

.theme-toggle .fa-moon {
    color: #818cf8;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Light mode theme toggle button */
body.light-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(168, 85, 247, 0.32);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 0 18px rgba(168, 85, 247, 0.18);
}

body.light-mode .theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(120deg) scale(0.3);
}

body.light-mode .theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #d97706;
}

/* ============================================
   SATELLITE TELEMETRY ARRAY SYSTEM
   ============================================ */

.about-satellite-section {
  position: relative;
  padding: 60px 0;
  overflow: visible;
}

.satellite-orbit-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  max-width: 850px;
  margin: 0 auto;
  width: 100%;
}

/* 3D Photorealistic WebGL Satellite Canvas Container (Background Deep-Space Orbit) */
.satellite-unit {
  position: absolute;
  top: -95px;
  left: 50%;
  width: clamp(620px, 76vw, 1060px);
  height: clamp(270px, 32vw, 420px);
  z-index: 0; /* Strictly behind all interactive foreground text, tabs, and terminal */
  pointer-events: none;
  opacity: 0.96;
  will-change: transform;
  transform: translate3d(-50%, 0, 0);
  transition: opacity 0.8s ease;
}

.satellite-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 0 35px rgba(6, 182, 212, 0.5));
}

/* Signal Waves Emitting Downwards */
.signal-waves {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.satellite-unit.transmitting .signal-waves {
  opacity: 1;
}

.wave {
  border-radius: 50%;
  border: 2px solid #06b6d4;
  border-top-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  animation: waveEmit 1s infinite linear;
}

.wave-1 { width: 50px; height: 18px; animation-delay: 0s; }
.wave-2 { width: 80px; height: 26px; animation-delay: 0.2s; }
.wave-3 { width: 110px; height: 34px; animation-delay: 0.4s; }

@keyframes waveEmit {
  0% { opacity: 1; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* Telemetry Tabs (Foreground Translucent Glass) */
.telemetry-tabs {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.sat-tab {
  background: rgba(11, 15, 25, 0.45);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #cbd5e1;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.sat-tab:hover, .sat-tab.active {
  background: rgba(99, 102, 241, 0.35);
  border-color: #06b6d4;
  color: #fff;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

/* HUD Terminal Viewport (Foreground Glass Container) */
.telemetry-terminal {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 220px;
  background: rgba(9, 13, 24, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 16px;
  padding: 24px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: #94a3b8;
  letter-spacing: 1px;
}

.blink-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #06b6d4;
  border-radius: 50%;
  margin-right: 6px;
  animation: blink 1s infinite alternate;
}

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

.sat-content {
  display: none;
  animation: telemetryDecode 0.4s ease forwards;
}

.sat-content.active { display: block; }

.sat-content h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.sat-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.02rem;
}

.compact-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.timeline-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.timeline-step .badge {
  background: rgba(6, 182, 212, 0.2);
  color: #06b6d4;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.timeline-step h4 {
  margin: 10px 0 6px 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.timeline-step p {
  font-size: 0.88rem;
}

@keyframes telemetryDecode {
  from { opacity: 0; transform: translateY(6px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.text-cyan { color: #06b6d4; }

/* Light Mode Overrides for Satellite Telemetry */
body.light-mode .sat-tab {
  background: #EDE8F6 !important;
  border: 1px solid rgba(147, 51, 234, 0.20) !important;
  color: #4A3F66 !important;
}

body.light-mode .sat-tab:hover {
  background: #F7F4FC !important;
  border-color: rgba(217, 70, 239, 0.45) !important;
  color: #7C3AED !important;
}

body.light-mode .sat-tab.active {
  background: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #EC4899 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.36), 0 2px 8px rgba(236, 72, 153, 0.24) !important;
}

body.light-mode .telemetry-terminal {
  background: #F3EFF9 !important;
  border: 1px solid rgba(147, 51, 234, 0.18) !important;
  box-shadow: 0 8px 28px rgba(76, 29, 149, 0.07) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.light-mode .terminal-header {
  border-bottom-color: rgba(147, 51, 234, 0.14);
  color: #4A3F66;
}

body.light-mode .timeline-step {
  background: rgba(147, 51, 234, 0.05);
  border: 1px solid rgba(147, 51, 234, 0.14);
}

body.light-mode .timeline-step .badge {
  background: linear-gradient(135deg, #7C3AED, #EC4899);
  color: #ffffff;
}


/* ============================================
   FLOATING ASTRONAUT SYSTEM
   ============================================ */

.astronaut-float-section {
  position: relative;
  overflow: visible;
}

.astronaut-float-section .card-content {
  position: relative;
}

.astronaut-unit {
  position: absolute;
  top: 260px;
  right: 50%;
  width: clamp(220px, 28vw, 400px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 0.88;
  filter: drop-shadow(0 0 35px rgba(6, 182, 212, 0.45));
  will-change: transform;
  transform: translate3d(50%, 0, 0);
  transition: opacity 0.8s ease;
}

.astronaut-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* Scrollable content stays on top of astronaut */
.astronaut-float-section .scrollable-section {
  position: relative;
  z-index: 2;
}

/* ============================================
   PROFESSIONAL RESPONSIVE OVERHAUL
   Unified, cascading breakpoints — mobile-first fixes
   Placed last for clean specificity override
   ============================================ */

/* ── 1200px: Large Tablet / Small Desktop ──────── */
@media (max-width: 1200px) {
    .hero-container {
        gap: 30px;
    }
    .satellite-unit {
        width: clamp(480px, 60vw, 800px);
        height: clamp(210px, 26vw, 340px);
    }
}

/* ── 1024px: Tablet Landscape ──────────────────── */
@media (max-width: 1024px) {
    /* Keep hero 2-column until 900px */
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding-top: 4vh;
    }

    /* Theme toggle inside nav-actions — only resize */
    .theme-toggle {
        width: 42px;
        height: 42px;
    }

    /* Skills: 2-col grid on tablet */
    .skills-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Projects: safer minmax for tablet */
    .projects-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    /* About satellite: scale down */
    .satellite-unit {
        width: clamp(400px, 55vw, 650px);
        height: clamp(180px, 22vw, 280px);
        top: -70px;
    }

    /* Telemetry tabs: tighter */
    .sat-tab {
        padding: 8px 14px;
        font-size: 0.82rem;
    }
}

/* ── 900px: Tablet Portrait / Hamburger Appears ── */
@media (max-width: 900px) {
    /* Navbar: hamburger visible, links hidden */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .nav-contact {
        display: none;
    }

    /* Hero: stack to single column */
    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding-top: 1vh;
        width: 100%;
    }

    .hero-content {
        display: contents;
    }

    .hero-badge {
        order: 1;
        justify-content: center;
        margin-bottom: 2px;
    }

    .hero-title {
        order: 2;
        margin-bottom: 6px;
    }

    /* Image placed perfectly in between "This is your developer" and "Code optimize deploy repeat" */
    .hero-image {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-right: 0;
        margin: 6px auto;
        position: relative;
    }

    .value-statement {
        order: 4;
        margin: 6px auto 14px;
        font-size: 0.88rem;
    }

    .hero-description {
        order: 5;
        max-width: 92%;
        margin: 0 auto 16px;
        line-height: 1.6;
    }

    .hero-cta {
        order: 6;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 8px;
    }

    /* Centered image wrapper for tablet/mobile */
    .image-wrapper-simple {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        width: min(65vw, 300px);
        height: min(80vw, 380px);
    }

    .image-wrapper-simple .profile-photo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 0;
        margin: 0 auto;
    }

    .image-wrapper-simple .profile-photo-dark,
    body.light-mode .image-wrapper-simple .profile-photo-light,
    .image-wrapper-simple .profile-photo-light {
        transform: translate(-50%, -50%) !important;
    }

    .image-wrapper-simple .profile-glow-effect {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
    }

    .rotating-badge {
        width: 96px;
        height: 96px;
        right: max(10px, calc(50% - 150px));
        bottom: 0;
    }

    /* Skills: 2 columns */
    .skills-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* About satellite: smaller */
    .satellite-unit {
        width: clamp(340px, 50vw, 500px);
        height: clamp(150px, 20vw, 220px);
        top: -55px;
    }

    /* Tabs: scrollable row */
    .telemetry-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding-bottom: 4px;
        gap: 8px;
    }
    .telemetry-tabs::-webkit-scrollbar {
        display: none;
    }
    .sat-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Contact grid: stack */
    .contact-grid-compact {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-box-compact {
        width: 100%;
        justify-content: center;
    }
}

/* ── 768px: Large Phone / Small Tablet ─────────── */
@media (max-width: 768px) {
    /* Global lock for horizontal overflow */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        position: relative;
    }

    /* Navbar: compact */
    .navbar {
        height: 56px;
        padding: 0 16px;
        border-radius: 40px;
        top: 10px;
        width: min(96%, 100vw - 16px);
        max-width: calc(100vw - 16px);
        box-sizing: border-box;
    }

    .nav-container {
        padding: 0 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Theme toggle: compact */
    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .theme-toggle-icon {
        font-size: 1rem;
    }

    /* Section & Content Containers */
    .section {
        padding: 40px var(--fluid-gutter, 16px);
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    #main-content {
        padding-top: 60px;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .card-content {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding: 10px 4px 20px;
    }

    /* Hero: compact mobile layout */
    .hero-container {
        gap: 16px;
        padding-top: 0;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .hero-title {
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .title-line,
    .highlight-name {
        font-size: clamp(1.4rem, 5.2vw, 1.85rem) !important;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
        line-height: 1.25;
    }

    .hero-cta {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .magnetic-btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 18px;
    }

    /* Hero image & badges: prevent clipping */
    .image-wrapper-simple {
        width: min(70vw, 260px);
        height: min(82vw, 340px);
    }

    .profile-glow-effect {
        width: min(60vw, 240px);
        height: min(60vw, 240px);
    }

    .rotating-badge {
        width: 84px;
        height: 84px;
        right: max(6px, calc(50% - 130px));
        bottom: 0;
        max-width: 90vw;
    }

    .floating-star {
        display: none !important;
    }

    /* Skills: single column */
    .skills-grid-compact {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 14px !important;
    }

    .skill-card-compact {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Projects: single column */
    .projects-grid-compact {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 16px !important;
    }

    .projects-header-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Project category tabs: 2-Column Grid on Mobile */
    .project-category-tabs {
        width: 100% !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px 10px !important;
        padding: 6px !important;
        overflow-x: visible !important;
        box-sizing: border-box !important;
        background: rgba(11, 15, 25, 0.45) !important;
        border-radius: 14px !important;
        border: 1px solid rgba(99, 102, 241, 0.25) !important;
    }
    .project-category-tabs::-webkit-scrollbar {
        display: none !important;
    }
    .proj-cat-tab {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 6px !important;
        padding: 8px 8px !important;
        font-size: 0.78rem !important;
        white-space: normal !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
        min-height: 40px !important;
    }

    /* Project card structured */
    .project-card-structured {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 1.3rem !important;
    }

    .project-card-top {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .project-card-badges {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .project-badge-domain,
    .project-badge-feat {
        white-space: normal !important;
        max-width: 100% !important;
        word-break: break-word !important;
        font-size: 0.72rem !important;
        display: inline-block !important;
    }

    .project-card-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .project-action-btn {
        flex: 1 1 calc(50% - 6px) !important;
        min-width: 110px !important;
        text-align: center !important;
        justify-content: center !important;
        font-size: 0.8rem !important;
        padding: 8px 10px !important;
    }

    /* About Satellite: properly scaled & contained */
    .about-satellite-section {
        padding: 35px 0;
        overflow: hidden;
        max-width: 100vw;
    }

    .satellite-orbit-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        gap: 16px;
    }

    .satellite-unit {
        width: min(88vw, 360px) !important;
        height: clamp(110px, 28vw, 160px) !important;
        top: -30px;
        max-width: 100vw;
        overflow: hidden;
    }

    /* Telemetry tabs: 2-Column Grid on Mobile */
    .telemetry-tabs {
        width: 100% !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px 10px !important;
        padding: 4px 0 10px !important;
        overflow-x: visible !important;
        box-sizing: border-box !important;
    }
    .telemetry-tabs::-webkit-scrollbar {
        display: none !important;
    }
    .sat-tab {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 6px !important;
        padding: 8px 8px !important;
        font-size: 0.78rem !important;
        white-space: normal !important;
        box-sizing: border-box !important;
        border-radius: 12px !important;
        min-height: 40px !important;
    }
    .sat-tab:last-child:nth-child(odd) {
        grid-column: 1 / -1 !important;
    }

    .telemetry-terminal {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 170px;
        padding: 16px 14px;
        font-size: 0.9rem;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    /* Achievements & Hackathon Planetary Orbit */
    .achievements-grid,
    .achievements-grid-compact {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 12px !important;
    }

    .achievement-card-compact {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .live-cert-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .planets-header-top {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .planets-controls-bar {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .hackathon-planets-viewport {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .hackathon-planets-track {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Section & Subsection Titles */
    .section-title,
    .section-title-compact,
    .subsection-title {
        font-size: clamp(1.15rem, 4.2vw, 1.40rem) !important;
        padding: 4px 8px !important;
        margin-bottom: 0.5rem !important;
    }

    .section-desc-compact {
        font-size: 0.80rem !important;
        line-height: 1.45 !important;
    }

    /* GitHub Stats & Activity: Guaranteed 2 Columns */
    .github-stats-compact {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .stat-box {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 13px 6px 11px !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .stat-box i {
        font-size: 1.35rem !important;
        margin-bottom: 0.3rem !important;
        filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.4)) !important;
    }

    .stat-num {
        font-size: 1.55rem !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        display: inline-block !important;
    }

    .stat-plus {
        font-size: 1.1rem !important;
        font-weight: 800 !important;
        margin-left: 1px !important;
        display: inline-block !important;
        vertical-align: super !important;
    }

    .stat-lbl {
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
        margin-top: 0.3rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
        word-break: break-word !important;
        max-width: 100% !important;
        display: block !important;
    }

    /* Skill & Project Text Sizing on Mobile */
    .skill-info h3 {
        font-size: 0.94rem !important;
        margin-bottom: 3px !important;
    }

    .skill-info p {
        font-size: 0.78rem !important;
        line-height: 1.4 !important;
    }

    .skill-tags-compact span {
        font-size: 0.70rem !important;
        padding: 3px 6px !important;
    }

    .project-card-title {
        font-size: 0.95rem !important;
        margin: 5px 0 !important;
        letter-spacing: 0.02em !important;
    }

    .project-card-summary {
        font-size: 0.80rem !important;
        line-height: 1.4 !important;
    }

    .project-card-highlights li {
        font-size: 0.76rem !important;
        line-height: 1.38 !important;
    }

    .sat-content h3 {
        font-size: 1.02rem !important;
        margin-bottom: 6px !important;
    }

    .sat-content p {
        font-size: 0.82rem !important;
        line-height: 1.48 !important;
    }

    .achievement-card-compact h3 {
        font-size: 0.88rem !important;
    }

    .achievement-card-compact p {
        font-size: 0.76rem !important;
    }

    .github-diagrams-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .github-diagram-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 16px 12px !important;
    }

    .diagram-scroll-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        box-sizing: border-box !important;
        padding-bottom: 6px;
    }

    .heatmap-header,
    .heatmap-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .heatmap-legend {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 4px 8px !important;
    }

    #lang-donut-chart,
    #perf-radar-chart {
        max-width: min(220px, 70vw) !important;
        max-height: min(220px, 70vw) !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .lang-legend,
    .perf-labels {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Contact Section */
    .contact-grid-compact {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-box-compact {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 12px 14px !important;
    }

    .contact-box-compact span {
        word-break: break-all !important;
        overflow-wrap: anywhere !important;
        min-width: 0 !important;
        font-size: clamp(0.74rem, 3.8vw, 0.88rem) !important;
    }

    .social-links-compact {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
        max-width: 100% !important;
    }

    .social-link-compact {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }

    /* Earth horizon */
    .earth-horizon-wrapper {
        height: 190px !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }
    .earth-realistic-img {
        min-width: unset !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: 120px !important;
        object-fit: cover !important;
    }
    .earth-atmosphere-blur-aura {
        min-width: unset !important;
        width: 100% !important;
        max-width: 100vw !important;
        bottom: 35px !important;
        height: 90px !important;
    }

    /* Astronaut: scale down and avoid overflow */
    .astronaut-unit {
        width: clamp(140px, 36vw, 200px);
        top: 180px;
        opacity: 0.65;
        max-width: 90vw;
    }

    .scrollable-section {
        max-height: none;
        overflow-y: visible;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .value-statement {
        font-size: 0.82rem;
        max-width: 95vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .page-indicators {
        display: none;
    }
}

/* ── 480px: Standard Phone ─────────────────────── */
@media (max-width: 480px) {
    .navbar {
        height: 52px;
        padding: 0 12px;
        top: 8px;
        border-radius: 30px;
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
    }

    .nav-container {
        padding: 0 4px;
    }

    .nav-logo {
        font-size: 1.15rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-toggle-icon {
        font-size: 0.9rem;
    }

    .section {
        padding: 30px 14px;
    }

    #main-content {
        padding-top: 55px;
    }

    .card-content {
        padding: 8px 2px 20px;
    }

    .hero-badge {
        font-size: 0.72rem;
        letter-spacing: 1px;
        margin-top: 8px;
    }

    .title-line,
    .highlight-name {
        font-size: clamp(1.35rem, 5.8vw, 1.75rem) !important;
    }

    .hero-description {
        font-size: 0.86rem;
        line-height: 1.55;
    }

    .image-wrapper-simple {
        width: min(72vw, 230px);
        height: min(85vw, 300px);
        margin: 0 auto;
    }

    .rotating-badge {
        width: 76px;
        height: 76px;
        right: max(4px, calc(50% - 120px));
        bottom: 0;
    }

    .satellite-unit {
        width: min(85vw, 260px) !important;
        height: 110px !important;
        top: -25px;
        opacity: 0.6;
    }

    .telemetry-tabs,
    .project-category-tabs {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px 8px !important;
    }

    .sat-tab,
    .proj-cat-tab {
        padding: 7px 6px !important;
        font-size: 0.74rem !important;
        min-height: 38px !important;
        border-radius: 10px !important;
    }

    .telemetry-terminal {
        min-height: 155px;
        padding: 14px 12px;
        border-radius: 12px;
    }

    .project-card-structured {
        padding: 1.1rem !important;
    }

    .achievement-card-compact {
        padding: 14px;
    }

    .section-title,
    .section-title-compact {
        font-size: clamp(1.12rem, 4.4vw, 1.35rem) !important;
    }

    .subsection-title {
        font-size: clamp(1.08rem, 4.2vw, 1.30rem) !important;
        padding: 4px 8px !important;
    }

    .github-stats-compact {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .stat-box {
        padding: 12px 5px 10px !important;
        border-radius: 11px !important;
    }

    .stat-box i {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }

    .stat-num {
        font-size: 1.45rem !important;
    }

    .stat-plus {
        font-size: 1.05rem !important;
    }

    .stat-lbl {
        font-size: 0.63rem !important;
        letter-spacing: 0.25px !important;
        margin-top: 0.25rem !important;
    }

    .earth-horizon-wrapper {
        height: 160px !important;
    }
    .earth-realistic-img {
        min-width: unset !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: 100px !important;
    }
    .earth-atmosphere-blur-aura {
        min-width: unset !important;
        width: 100% !important;
        max-width: 100vw !important;
        bottom: 25px !important;
        height: 80px !important;
    }
}

/* ── 360px: Small Phone ────────────────────────── */
@media (max-width: 360px) {
    .navbar {
        height: 48px;
        padding: 0 8px;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    .title-line,
    .highlight-name {
        font-size: clamp(1.25rem, 5.2vw, 1.55rem) !important;
    }

    .hero-description {
        font-size: 0.8rem;
    }

    .github-stats-compact {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .stat-box {
        padding: 10px 4px 8px !important;
        border-radius: 10px !important;
    }

    .stat-box i {
        font-size: 1.2rem !important;
        margin-bottom: 0.2rem !important;
    }

    .stat-num {
        font-size: 1.35rem !important;
    }

    .stat-plus {
        font-size: 0.95rem !important;
    }

    .stat-lbl {
        font-size: 0.60rem !important;
        letter-spacing: 0.15px !important;
    }

    .image-wrapper-simple {
        width: min(70vw, 190px);
        height: min(80vw, 250px);
        margin: 0 auto;
    }

    .rotating-badge {
        width: 66px;
        height: 66px;
        right: max(2px, calc(50% - 100px));
        bottom: 0;
    }

    .satellite-unit {
        display: none !important;
    }

    .telemetry-tabs,
    .project-category-tabs {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 5px 6px !important;
    }

    .sat-tab,
    .proj-cat-tab {
        padding: 6px 4px !important;
        font-size: 0.70rem !important;
        min-height: 35px !important;
    }

    .earth-horizon-wrapper {
        height: 140px !important;
    }
    .earth-realistic-img {
        min-width: unset !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: 85px !important;
    }
    .earth-atmosphere-blur-aura {
        min-width: unset !important;
        width: 100% !important;
        max-width: 100vw !important;
        bottom: 20px !important;
        height: 70px !important;
    }
}

/* ── Mobile: Lightweight CSS Cosmic Background (replaces Three.js WebGL) ── */
@media (max-width: 900px), (pointer: coarse) {
    /* Hide canvas entirely — mobile devices skip WebGL */
    #bg-canvas {
        display: none !important;
    }

    /* Buttery CSS cosmic nebula gradient — 0% GPU overhead */
    body {
        background: 
            radial-gradient(ellipse 80% 50% at 20% 30%, rgba(79, 70, 229, 0.18) 0%, transparent 60%),
            radial-gradient(ellipse 60% 40% at 80% 70%, rgba(168, 85, 247, 0.14) 0%, transparent 55%),
            radial-gradient(ellipse 100% 80% at 50% 10%, rgba(6, 182, 212, 0.08) 0%, transparent 70%),
            #060713 !important;
    }

    /* Light Mode Mobile: Calming Cosmic Twilight Nebula Canvas */
    body.light-mode {
        background: 
            radial-gradient(ellipse 80% 50% at 20% 30%, rgba(147, 51, 234, 0.12) 0%, transparent 60%),
            radial-gradient(ellipse 60% 40% at 80% 70%, rgba(236, 72, 153, 0.10) 0%, transparent 55%),
            radial-gradient(ellipse 100% 80% at 50% 10%, rgba(99, 102, 241, 0.09) 0%, transparent 70%),
            #EAE6F4 !important;
    }

    /* Value statement: no clipping on small screens */
    .value-statement {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 95vw;
        justify-content: center;
    }

    /* Hero CTA: row on tablet, column on small */
    .hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .magnetic-btn {
        min-width: 140px;
        flex: 0 1 auto;
    }
}

/* ── Value statement wrapping fix for wider text on mobile ── */
@media (max-width: 480px) {
    .value-statement {
        font-size: 0.78rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 92vw;
    }

    /* CTA: vertical stacking at 480px to avoid overflow */
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}

/* ── Touch Devices: Performance & UX ───────────── */
@media (hover: none) and (pointer: coarse) {
    /* Hide custom cursors on touch — save paint cycles */
    .cursor-follower,
    .cursor-dot {
        display: none !important;
    }

    html, body {
        cursor: auto !important;
    }

    a, button, input, select, textarea, label, [role="button"],
    .btn, .magnetic-btn, .project-card-compact, .skill-card-compact,
    .hackathon-card-compact, .about-card-compact, .contact-box-compact,
    .nav-link, .page-dot, .theme-toggle, .nav-logo, .achievement-card-compact,
    .social-link-compact, .page-nav-arrow, .nav-toggle, .nav-contact-item,
    .sat-tab, .cert-card-compact, .timeline-step, .project-card, .skill-card,
    .hackathon-card, .cert-card, .contact-box, [onclick],
    [style*="cursor: pointer"], [style*="cursor:pointer"] {
        cursor: auto !important;
    }

    /* Disable hover-based blur effects on touch (confusing without mouse) */
    .projects-grid-compact:hover .project-card-structured:not(:hover) {
        filter: none;
        transform: none;
    }

    .project-category-tabs:hover .proj-cat-tab:not(:hover):not(.active) {
        opacity: 1;
        filter: none;
    }

    /* Ensure minimum 44x44 touch targets */
    .nav-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }

    .theme-toggle {
        min-width: 44px;
        min-height: 44px;
    }

    .social-link-compact {
        min-width: 44px;
        min-height: 44px;
    }

    .sat-tab {
        min-height: 40px;
    }

    .magnetic-btn {
        min-height: 48px;
    }

    /* Reduce heavy animations on mobile */
    .profile-particles,
    .floating-star {
        display: none;
    }
}

/* ── Landscape phones: prevent content overflow ── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding-top: 0;
        text-align: left;
    }

    .hero-content {
        align-items: flex-start;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: flex-start;
    }

    .image-wrapper-simple {
        width: min(35vh, 200px);
        height: min(45vh, 260px);
    }

    .section {
        padding: 20px var(--fluid-gutter);
    }

    #main-content {
        padding-top: 50px;
    }
}

/* ============================================
   GLOBAL CURSOR OVERRIDE - Guaranteed Violet Hand
   ============================================ */
html, body {
    cursor: var(--custom-arrow) !important;
}

a, button, input, select, textarea, label, [role="button"],
.btn, .magnetic-btn, .project-card-compact, .skill-card-compact,
.hackathon-card-compact, .about-card-compact, .contact-box-compact,
.nav-link, .page-dot, .theme-toggle, .nav-logo, .achievement-card-compact,
.social-link-compact, .page-nav-arrow, .nav-toggle, .nav-contact-item,
.sat-tab, .cert-card-compact, .timeline-step, .project-card, .skill-card,
.hackathon-card, .cert-card, .contact-box, [onclick],
[style*="cursor: pointer"], [style*="cursor:pointer"] {
    cursor: var(--custom-pointer) !important;
}

/* ════════════════════════════════════════════════════════════
   RESUME LIGHTBOX & PREVIEWER STYLES
════════════════════════════════════════════════════════════ */
.resume-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.resume-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 12, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.resume-lightbox-inner {
    position: relative;
    z-index: 1;
    width: min(94vw, 1050px);
    height: min(90vh, 850px);
    background: rgba(11, 11, 19, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 40px 100px rgba(0, 0, 0, 0.75),
        0 0 60px rgba(99, 102, 241, 0.2);
}

.resume-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    background: rgba(15, 15, 26, 0.9);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    gap: 12px;
}

.resume-lightbox-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
}

.resume-lightbox-title i {
    font-size: 1.25rem;
    color: #38bdf8;
}

.resume-lightbox-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resume-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.825rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.resume-action-btn-primary {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.resume-action-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.resume-action-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.resume-action-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.resume-lightbox-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    margin-left: 4px;
}

.resume-lightbox-close:hover {
    background: rgba(239, 68, 68, 0.4);
    transform: scale(1.08);
}

.resume-lightbox-body {
    flex: 1;
    position: relative;
    background: #07070c;
    overflow: hidden;
}

.resume-pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #111118;
}

.resume-mobile-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
    height: 100%;
    color: #94a3b8;
}

.resume-mobile-fallback i {
    font-size: 3.5rem;
    color: #38bdf8;
    margin-bottom: 1.2rem;
}

.resume-mobile-fallback h3 {
    color: #f8fafc;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.resume-mobile-fallback p {
    font-size: 0.9rem;
    max-width: 400px;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ─── ABOUT TELEMETRY RESUME CARD ─── */
.sat-resume-card {
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
}

.sat-resume-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.sat-resume-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #38bdf8;
    flex-shrink: 0;
}

.sat-resume-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 4px;
}

.sat-resume-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sat-resume-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-sat-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-sat-primary {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.btn-sat-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.4);
}

.btn-sat-glass {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
    color: #f1f5f9;
}

.btn-sat-glass:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Light mode support for Resume Lightbox */
body.light-mode .resume-lightbox-inner {
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

body.light-mode .resume-lightbox-header {
    background: #f8fafc;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .resume-lightbox-title {
    color: #0f172a;
}

body.light-mode .resume-action-btn-ghost {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

body.light-mode .resume-action-btn-ghost:hover {
    background: #e2e8f0;
    color: #0f172a;
}

body.light-mode .resume-lightbox-close {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    color: #0f172a;
}

body.light-mode .sat-resume-card {
    background: #f8fafc;
    border-color: rgba(99, 102, 241, 0.2);
}

body.light-mode .sat-resume-details h4 {
    color: #0f172a;
}

body.light-mode .btn-sat-glass {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    color: #1e293b;
}

@media (max-width: 640px) {
    .resume-lightbox-inner {
        height: 94vh;
        border-radius: 16px;
    }
    .resume-lightbox-header {
        padding: 0.85rem 1rem;
    }
    .resume-action-btn span {
        display: none;
    }
    .sat-resume-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .sat-resume-actions {
        width: 100%;
    }
    .btn-sat-action {
        flex: 1;
        justify-content: center;
    }
}

