* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar - Dark Theme (Default) */
::-webkit-scrollbar {
    width: 8px;
}

body[data-theme="dark"] ::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

body[data-theme="dark"] ::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 4px;
}

body[data-theme="dark"] ::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover {
    background: #00b8e6;
}

/* Firefox scrollbar */
html,
body[data-theme="dark"] {
    scrollbar-width: thin;
    scrollbar-color: #00d4ff rgba(0, 0, 0, 0.1);
}

:root {
    /* Design System - Color Tokens */
    --bg-primary: #0a0e27;
    --bg-secondary: #12172e;
    --bg-tertiary: #1a1f3a;
    --bg-card: rgba(18, 23, 46, 0.8);
    --bg-card-hover: rgba(18, 23, 46, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.1);
    
    /* Accent Colors */
    --accent-primary: #00d4ff;
    --accent-primary-hover: #00b8e6;
    --accent-secondary: #7b2ff7;
    --accent-secondary-hover: #6b1ce6;
    --accent-tertiary: #ff006e;
    --accent-tertiary-hover: #e6005c;
    --accent-success: #27c93f;
    --accent-warning: #ffbd2e;
    --accent-error: #ff5f56;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --text-inverse: #0a0e27;
    --text-accent: var(--accent-primary);
    
    /* Typography Scale */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;    /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;  /* 36px */
    --font-size-5xl: 3rem;     /* 48px */
    --font-size-6xl: 3.75rem;  /* 60px */
    --font-size-7xl: 4.5rem;   /* 72px */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    /* Spacing System (4px base) */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.5rem;    /* 8px */
    --radius-lg: 0.75rem;   /* 12px */
    --radius-xl: 1rem;      /* 16px */
    --radius-2xl: 1.5rem;  /* 24px */
    --radius-full: 9999px;
    
    /* Shadows & Elevation */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-glow-lg: 0 0 40px rgba(0, 212, 255, 0.4);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-bounce: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-spring: 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="light"] {
    /* Sophisticated Light Theme Color System */
    --bg-primary: #fefefe;
    --bg-secondary: #fafbfc;
    --bg-tertiary: #f5f7fa;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(255, 255, 255, 0.85);
    
    /* Enhanced text hierarchy with warm undertones */
    --text-primary: #1a1d29;
    --text-secondary: #4a5568;
    --text-muted: #6b7280;
    --text-inverse: #ffffff;
    
    /* Sophisticated multi-layer shadows with color tinting */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.12), 0 2px 4px -2px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 20px -4px rgba(0, 0, 0, 0.15), 0 4px 8px -4px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.2), 0 8px 16px -8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 32px 64px -12px rgba(0, 0, 0, 0.25), 0 16px 32px -16px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    
    /* Accent colors - navy instead of cyan */
    --accent-primary: #1e3a8a;
    --accent-primary-hover: #1e40af;
    
    /* Enhanced glow effects with navy tinting */
    --shadow-glow: 0 0 30px rgba(30, 58, 138, 0.15), 0 0 60px rgba(30, 58, 138, 0.08);
    --shadow-glow-lg: 0 0 50px rgba(30, 58, 138, 0.2), 0 0 100px rgba(30, 58, 138, 0.1);
    
    /* Light theme specific accent glows */
    --shadow-accent-navy: 0 0 30px rgba(30, 58, 138, 0.15), 0 0 60px rgba(30, 58, 138, 0.08);
}

/* Light Mode Hero Title - Masculine Gradient with Animation */
[data-theme="light"] .hero-text h1 {
    background: linear-gradient(
        90deg,
        #1e3a8a 0%,
        #0f172a 20%,
        #2563eb 40%,
        #1e3a8a 60%,
        #0f172a 80%,
        #2563eb 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: 
        heroTitleEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both,
        gradientFlow 4s linear infinite,
        titlePulseLight 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 12px rgba(30, 58, 138, 0.5));
}

/* Light theme pulse effect */
@keyframes titlePulseLight {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 12px rgba(30, 58, 138, 0.5));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 4px 20px rgba(37, 99, 235, 0.7));
    }
}

/* Enhanced Light Theme Glassmorphism */
[data-theme="light"] .hero-media-card,
[data-theme="light"] .terminal-card,
[data-theme="light"] .skill-card,
[data-theme="light"] .project-card,
[data-theme="light"] .quote-card,
[data-theme="light"] .info-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

/* Light Theme Navigation Enhancement */
[data-theme="light"] nav {
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .logo-letter {
    background: var(--accent-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Light Theme Button Enhancements */
[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    box-shadow: 
        0 4px 16px rgba(30, 58, 138, 0.3),
        0 2px 8px rgba(30, 58, 138, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .btn-secondary {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(30, 58, 138, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Light Theme Section Backgrounds */
[data-theme="light"] .skills-section {
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(30, 58, 138, 0.03) 20%, 
        rgba(30, 58, 138, 0.02) 50%, 
        rgba(15, 23, 42, 0.03) 80%, 
        transparent 100%);
}

[data-theme="light"] .playground-section {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.05) 0%, 
        rgba(30, 58, 138, 0.03) 30%, 
        rgba(15, 23, 42, 0.05) 70%, 
        rgba(30, 58, 138, 0.03) 100%);
}

/* Light Theme Card Hover Effects */
[data-theme="light"] .skill-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .info-card:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(248, 250, 252, 0.95) 100%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(30, 58, 138, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-8px) scale(1.02);
}

/* Light Theme Shimmer Effects */
[data-theme="light"] .skill-card::before,
[data-theme="light"] .project-card::before,
[data-theme="light"] .info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        rgba(30, 58, 138, 0.1), 
        transparent);
    transition: left 0.8s ease;
    z-index: 1;
}

[data-theme="light"] .skill-card:hover::before,
[data-theme="light"] .project-card:hover::before,
[data-theme="light"] .info-card:hover::before {
    left: 100%;
}

/* Light Theme Button Shimmer */
[data-theme="light"] .btn-primary::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
}

[data-theme="light"] .btn-secondary::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(30, 58, 138, 0.1), 
        transparent);
}

/* Light Theme Social Links Enhancement */
[data-theme="light"] .contact-social-link {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    border: 2px solid rgba(30, 58, 138, 0.2);
    box-shadow: 
        0 4px 16px rgba(30, 58, 138, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .contact-social-link:hover {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.1) 0%, 
        rgba(30, 58, 138, 0.05) 50%, 
        rgba(15, 23, 42, 0.1) 100%);
    border-color: rgba(30, 58, 138, 0.4);
    box-shadow: 
        0 8px 24px rgba(30, 58, 138, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-3px) scale(1.05);
}

/* Light Theme Terminal Enhancement */
[data-theme="light"] .terminal-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .terminal-card:hover {
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(30, 58, 138, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Light Theme Quote Card Enhancement */
[data-theme="light"] .quote-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .quote-card:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(30, 58, 138, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Light theme: navy outline/accent for cards */
[data-theme="light"] .terminal-card::before {
    background: linear-gradient(90deg, transparent, #1e3a8a, transparent);
}

[data-theme="light"] .terminal-card:hover {
    border-color: rgba(30, 58, 138, 0.5);
}

[data-theme="light"] .quote-card::before {
    background: #1e3a8a;
}

[data-theme="light"] .quote-card:hover {
    border-color: rgba(30, 58, 138, 0.5);
}

[data-theme="light"] .skill-card::before {
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.15), transparent);
}

[data-theme="light"] .skill-card:hover {
    border-color: rgba(30, 58, 138, 0.5);
}

[data-theme="light"] .project-card:hover {
    border-color: rgba(30, 58, 138, 0.5);
}

/* Light Theme Modal Enhancements */
[data-theme="light"] .email-modal-content,
[data-theme="light"] .screenshot-modal-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Light theme: navy outlines for email modal only */
[data-theme="light"] .email-modal-header h3 {
    border: 1px solid #1e3a8a;
    border-radius: 12px;
    padding: var(--space-3) var(--space-4);
    -webkit-text-fill-color: unset;
    background: none;
    color: #1e3a8a;
}

[data-theme="light"] .email-modal .email-display {
    border-color: #1e3a8a;
}

[data-theme="light"] .email-modal .email-display:hover {
    border-color: #1e3a8a;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.2);
}

[data-theme="light"] .email-modal .copy-email-btn {
    border: 1px solid #172554;
}

/* Dark theme: email modal — navy panel, solid cyan copy button */
[data-theme="dark"] .email-modal .email-modal-content {
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.97) 0%,
        rgba(23, 37, 84, 0.95) 50%,
        rgba(15, 23, 42, 0.97) 100%);
    border: 1px solid rgba(0, 212, 255, 0.28);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 8px 28px rgba(0, 212, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .email-modal .copy-email-btn {
    background: var(--accent-primary);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.35);
}

[data-theme="dark"] .email-modal .copy-email-btn:hover {
    background: var(--accent-primary-hover);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.45);
}

[data-theme="dark"] .email-modal .copy-email-btn:active {
    background: var(--accent-primary-hover);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.35);
}

/* Light Theme Tech Tags Enhancement */
[data-theme="light"] .tech-tag {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(30, 58, 138, 0.2);
    color: #1e3a8a;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .tech-tag:hover {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.1) 0%, 
        rgba(30, 58, 138, 0.05) 100%);
    border-color: rgba(30, 58, 138, 0.4);
    box-shadow: 
        0 4px 16px rgba(30, 58, 138, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Light Theme Typography Enhancements */
[data-theme="light"] .section-title {
    background: linear-gradient(135deg, #1a1d29 0%, #1e3a8a 60%, #0f172a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

[data-theme="light"] .section-subtitle {
    color: #4a5568;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Light theme: navy accent for design approach dropdowns */
[data-theme="light"] .design-dropdown {
    background: linear-gradient(135deg,
        rgba(30, 58, 138, 0.08),
        rgba(30, 58, 138, 0.04),
        rgba(30, 58, 138, 0.08));
    border: 1px solid rgba(30, 58, 138, 0.35);
}

[data-theme="light"] .design-dropdown:hover {
    border-color: rgba(30, 58, 138, 0.5);
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.12);
}

[data-theme="light"] .design-dropdown[open] {
    border-color: rgba(30, 58, 138, 0.5);
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.18);
}

[data-theme="light"] .design-dropdown summary::after {
    color: rgba(30, 58, 138, 0.9);
}

[data-theme="light"] .design-dropdown summary:hover {
    background: rgba(30, 58, 138, 0.06);
}

[data-theme="light"] .hero-text .subtitle {
    color: #4a5568;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hero-text .description {
    color: #6b7280;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Light Theme Code Syntax Highlighting */
[data-theme="light"] .code-keyword { 
    color: #1e3a8a; 
    font-weight: 600;
}
[data-theme="light"] .code-function { 
    color: #2563eb; 
    font-weight: 500;
}
[data-theme="light"] .code-string { 
    color: #059669; 
    font-weight: 500;
}
[data-theme="light"] .code-comment { 
    color: #9ca3af; 
    font-style: italic;
}
[data-theme="light"] .code-number { 
    color: #dc2626; 
    font-weight: 500;
}

/* Light Theme Terminal Enhancements */
[data-theme="light"] .terminal-content {
    color: #374151;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .terminal-prompt {
    color: #1e3a8a;
    text-shadow: 0 1px 2px rgba(30, 58, 138, 0.2);
}

[data-theme="light"] .terminal-input-field {
    color: #1a1d29;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Light Theme Quote Text Enhancement */
[data-theme="light"] .quote-text {
    color: #1a1d29;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .quote-attribution {
    color: #1e3a8a;
    text-shadow: 0 1px 2px rgba(30, 58, 138, 0.2);
}

/* Light Theme Stat Numbers Enhancement */
[data-theme="light"] .stat-number {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(30, 58, 138, 0.2));
}

[data-theme="light"] .satisfaction-stat {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.1), 
        rgba(30, 58, 138, 0.08), 
        rgba(30, 58, 138, 0.1));
    border: 1px solid rgba(30, 58, 138, 0.3);
    box-shadow: 
        0 8px 32px rgba(30, 58, 138, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .satisfaction-stat::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(30, 58, 138, 0.2), 
        transparent);
}

[data-theme="light"] .satisfaction-stat:hover {
    box-shadow: 
        0 15px 50px rgba(30, 58, 138, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(30, 58, 138, 0.5);
}

[data-theme="light"] .satisfaction-stat .stat-number {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(30, 58, 138, 0.2));
}

[data-theme="light"] .stat-value {
    color: #1e3a8a;
}

[data-theme="light"] .fps {
    color: #1e3a8a;
}

/* Light Theme Skill Card Text Enhancement */
[data-theme="light"] .skill-card h3 {
    color: #1a1d29;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .skill-card p {
    color: #4a5568;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Light Theme Project Card Text Enhancement */
[data-theme="light"] .project-content h3 {
    color: #1e3a8a;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .project-content p {
    color: #4a5568;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Light Theme Contact Section Enhancement */
[data-theme="light"] .contact-social-link {
    color: #1e3a8a;
    text-shadow: 0 1px 2px rgba(30, 58, 138, 0.2);
}

/* Light Theme Footer Enhancement */
[data-theme="light"] .footer-text {
    color: #6b7280;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Light Theme About Page Enhancements */
[data-theme="light"] .about-hero-text h1 {
    background: linear-gradient(90deg, 
        #1e3a8a 0%, 
        #0f172a 25%,
        #1e3a8a 50%,
        #0f172a 75%,
        #1e3a8a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aboutTitleShimmer 3s linear infinite;
    filter: drop-shadow(0 2px 4px rgba(30, 58, 138, 0.2));
}

[data-theme="light"] .about-summary {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .cert-card,
[data-theme="light"] .education-content,
[data-theme="light"] .experience-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .cert-card:hover,
[data-theme="light"] .education-content:hover,
[data-theme="light"] .experience-content:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-4px);
}

/* Light Theme Gallery Enhancements */
[data-theme="light"] .gallery-item {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .gallery-item:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(30, 58, 138, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-8px) scale(1.02);
}

/* Light Theme Image Modal Enhancements */
[data-theme="light"] .image-modal-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Light Theme Easter Egg Modal */
[data-theme="light"] .easter-egg-modal {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    border: 2px solid rgba(30, 58, 138, 0.3);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Light Theme Performance Monitor */
[data-theme="light"] .perf-monitor {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Light Theme Scrollbar Enhancement */
body[data-theme="light"] ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05) !important;
}

body[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #1e3a8a !important;
    border-radius: 4px;
}

body[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #1e40af !important;
}

html[data-theme="light"],
body[data-theme="light"] {
    scrollbar-width: thin;
    scrollbar-color: #1e3a8a rgba(0, 0, 0, 0.05) !important;
}

/* Light theme: GitHub activity squares - navy instead of cyan */
[data-theme="light"] .activity-cell {
    background: rgba(30, 58, 138, 0.1);
}

[data-theme="light"] .activity-cell.level-1 {
    background: rgba(30, 58, 138, 0.3);
}

[data-theme="light"] .activity-cell.level-2 {
    background: rgba(30, 58, 138, 0.5);
}

[data-theme="light"] .activity-cell.level-3 {
    background: rgba(30, 58, 138, 0.7);
}

[data-theme="light"] .activity-cell.level-4 {
    background: rgba(30, 58, 138, 1);
    box-shadow: 0 0 8px rgba(30, 58, 138, 0.6);
}

/* Light theme: nav link underline - navy instead of cyan */
[data-theme="light"] .nav-links a::after {
    background: #1e3a8a;
}

/* Light theme: gallery-more and expand-details-btn - navy instead of cyan */
[data-theme="light"] .gallery-more {
    background: rgba(30, 58, 138, 0.08);
    border-color: rgba(30, 58, 138, 0.4);
    color: #1e3a8a;
}

[data-theme="light"] .gallery-more:hover {
    background: rgba(30, 58, 138, 0.15);
    box-shadow: var(--shadow-accent-navy);
}

[data-theme="light"] .expand-details-btn {
    background: linear-gradient(135deg,
        rgba(30, 58, 138, 0.1),
        rgba(30, 58, 138, 0.08),
        rgba(30, 58, 138, 0.1));
    border-color: rgba(30, 58, 138, 0.3);
}

[data-theme="light"] .expand-details-btn:hover {
    background: linear-gradient(135deg,
        rgba(30, 58, 138, 0.2),
        rgba(30, 58, 138, 0.15),
        rgba(30, 58, 138, 0.2));
    border-color: rgba(30, 58, 138, 0.5);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.2);
}

/* Light theme: custom cursor - navy instead of cyan */
[data-theme="light"] .custom-cursor-dot {
    background: #1e3a8a;
}

[data-theme="light"] .custom-cursor {
    border-color: #1e3a8a;
    mix-blend-mode: normal;
}

[data-theme="light"] .custom-cursor.hover {
    background: rgba(30, 58, 138, 0.1);
    border-color: #1e3a8a;
    mix-blend-mode: normal;
}

[data-theme="light"] .custom-cursor.click {
    background: rgba(30, 58, 138, 0.2);
    mix-blend-mode: normal;
}

html {
    background: var(--bg-primary);
}

body {
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    background: transparent;
    color: var(--text-primary);
    overflow-x: hidden;
    transition: all var(--transition-normal);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body[data-theme="light"] {
    background: transparent;
}

html {
    background: var(--bg-primary);
}

html[data-theme="light"] {
    background: linear-gradient(180deg,
        #fefefe 0%,
        #fafbfc 30%,
        #f5f7fa 60%,
        #e8eef5 100%);
}

canvas#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Theme Toggle - Now integrated in nav */
.theme-toggle {
    background: var(--bg-card);
    border: none;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    min-width: 48px;
    min-height: 48px;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.theme-icon {
    display: block;
    width: var(--font-size-xl);
    height: var(--font-size-xl);
    flex-shrink: 0;
}

html[data-theme="dark"] .theme-toggle .theme-icon--sun,
html[data-theme="light"] .theme-toggle .theme-icon--moon {
    display: none;
}

/* Performance Monitor */
.perf-monitor {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s ease;
}

.perf-monitor:hover {
    opacity: 1;
}

.perf-monitor.hidden {
    display: none;
}

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

.fps {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: var(--space-5) 5%;
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: var(--space-4);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}


.nav-scroll {
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--accent-primary);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    justify-self: start;
    min-width: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    justify-self: end;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
}

.logo {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-normal);
    filter: brightness(1) contrast(1);
}

.logo:hover .logo-image {
    filter: brightness(1.1) contrast(1.1);
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-letter {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    filter: blur(10px);
    animation: trueFocus 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.logo-space {
    white-space: pre;
}

/* True Focus Animation */
@keyframes trueFocus {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* Staggered delays for each letter */
.logo-letter:nth-child(1) { animation-delay: 0.1s; }
.logo-letter:nth-child(2) { animation-delay: 0.15s; }
.logo-letter:nth-child(3) { animation-delay: 0.2s; }
.logo-letter:nth-child(4) { animation-delay: 0.25s; }
.logo-letter:nth-child(5) { animation-delay: 0.3s; }
.logo-letter:nth-child(7) { animation-delay: 0.4s; }
.logo-letter:nth-child(8) { animation-delay: 0.45s; }
.logo-letter:nth-child(9) { animation-delay: 0.5s; }
.logo-letter:nth-child(10) { animation-delay: 0.55s; }

.nav-links {
    display: flex;
    gap: var(--space-4);
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    justify-self: center;
    justify-content: center;
    min-width: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    transition: all var(--transition-normal);
    position: relative;
    padding: var(--space-3) var(--space-5);
    display: flex;
    align-items: center;
    min-height: 48px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

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

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a.about-btn {
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(100px + var(--space-12)) 5% var(--space-8);
    position: relative;
    overflow: hidden;
}

.hero-media-card {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    animation: slideInRight 1s var(--transition-spring) 0.5s both;
    position: relative;
}

.hero-media-card:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    border-color: var(--accent-primary);
}

.hero-media-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1.2s var(--transition-spring) forwards;
    position: relative;
}

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

.hero-text h1 {
    font-size: var(--font-size-7xl);
    font-weight: var(--font-weight-extrabold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-6);
    position: relative;
    background: linear-gradient(
        90deg,
        #00d4ff 0%,
        #7b2ff7 25%,
        #0ea5e9 50%,
        #7b2ff7 75%,
        #00d4ff 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: 
        heroTitleEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both,
        gradientFlow 4s linear infinite,
        titlePulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
}

/* Dramatic entrance with glitch */
@keyframes heroTitleEntrance {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(0.8);
        filter: blur(10px) drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
    }
    20% {
        opacity: 0.3;
        transform: translateX(-50px) scale(0.9);
        filter: blur(5px) drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
    }
    40% {
        opacity: 0.6;
        transform: translateX(10px) scale(1.05);
        filter: blur(2px) drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
    }
    50% {
        opacity: 0.8;
        transform: translateX(-5px) scale(1.02);
        filter: blur(1px) drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
    }
    70% {
        opacity: 1;
        transform: translateX(3px) scale(1.01);
        filter: blur(0) drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
    }
    85% {
        transform: translateX(-2px) scale(1);
        filter: blur(0) drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0) drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
    }
}

/* Fast, visible gradient flow */
@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 300% center;
    }
}

/* Breathing pulse effect */
@keyframes titlePulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
    }
    50% {
        transform: scale(1.02);
        filter: drop-shadow(0 0 50px rgba(123, 47, 247, 0.8));
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text .subtitle {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    animation: slideInLeft 1s var(--transition-spring) 0.5s both;
}

.hero-text .description {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    margin-bottom: var(--space-8);
    line-height: var(--line-height-relaxed);
    animation: slideInLeft 1s var(--transition-spring) 0.7s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--space-8) 0;
    animation: slideInLeft 1s var(--transition-spring) 0.9s both;
}

.satisfaction-stat {
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.1), 
        rgba(30, 58, 138, 0.08), 
        rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem 4rem;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 280px;
    width: 100%;
}

.satisfaction-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 212, 255, 0.2), 
        transparent);
    transition: left 0.8s ease;
}

.satisfaction-stat:hover::before {
    left: 100%;
}

.satisfaction-stat:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 50px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
}

.satisfaction-stat .stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.satisfaction-stat .stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    opacity: 0.9;
    text-align: center;
}

.stat {
    text-align: center;
    position: relative;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.stat:hover {
    transform: translateY(-4px);
    background: var(--bg-glass-hover);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: var(--space-2);
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-10);
    animation: slideInLeft 1s var(--transition-spring) 1.1s both;
}

.btn {
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-xl);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 56px;
    min-width: 160px;
    backdrop-filter: blur(10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: all var(--transition-normal);
    z-index: 0;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.btn:hover::after {
    left: 100%;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-inverse);
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow-lg);
    background: linear-gradient(135deg, var(--accent-primary-hover), var(--accent-secondary-hover));
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Interactive Terminal */
.terminal-card {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-2xl);
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px);
}

.terminal-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.terminal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.terminal-card:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    border-color: var(--accent-primary);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dots {
    display: flex;
    gap: var(--space-2);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.terminal-dot:nth-child(1) { 
    background: var(--accent-error);
    box-shadow: 0 0 8px var(--accent-error);
}
.terminal-dot:nth-child(2) { 
    background: var(--accent-warning);
    box-shadow: 0 0 8px var(--accent-warning);
}
.terminal-dot:nth-child(3) { 
    background: var(--accent-success);
    box-shadow: 0 0 8px var(--accent-success);
}

.terminal-dot:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

.terminal-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-height: 200px;
}

.terminal-line {
    margin: 0.5rem 0;
    opacity: 0;
}

.terminal-card.animate-in .terminal-line {
    animation: fadeIn 0.3s forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.5s; }
.terminal-line:nth-child(2) { animation-delay: 1s; }
.terminal-line:nth-child(3) { animation-delay: 1.5s; }
.terminal-line:nth-child(4) { animation-delay: 2s; }
.terminal-line:nth-child(5) { animation-delay: 2.5s; }
.terminal-line:nth-child(6) { animation-delay: 3s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

.terminal-input {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.terminal-prompt {
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

.terminal-input-field {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
}

.code-keyword { color: #c678dd; }
.code-function { color: #61afef; }
.code-string { color: #4ade80; }
.code-comment { color: #5c6370; }
.code-number { color: #d19a66; }

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent-primary);
    animation: blink 1s infinite;
    margin-left: 4px;
}

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

/* GitHub Activity Feed */
.github-activity {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    overflow: hidden; /* Viewport for scrolling grid - squares always visible */
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(52, 1fr);
    gap: 3px;
    overflow: visible; /* Allow grid to extend for scrolling */
    width: 100%;
    min-height: 91px; /* 7 rows × (10px + 3px gap) - 3px = 91px to ensure squares always visible */
}

/* Scrolling animation for the encoded message */
.activity-grid.scrolling-grid {
    animation: scrollTape 30s linear infinite;
    will-change: transform;
    width: auto; /* Allow grid to be wider than container */
    min-width: 100%; /* Ensure it fills at minimum */
}

@keyframes scrollTape {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%); /* Move by 1/3 since message repeats 3 times */
    }
}

/* Pause animation on hover to read the message */
.activity-grid.scrolling-grid:hover {
    animation-play-state: paused;
}

.activity-cell {
    width: 10px;
    height: 10px;
    min-width: 10px; /* Ensure squares always maintain size */
    min-height: 10px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 2px;
    transition: all 0.3s;
    cursor: pointer;
    flex-shrink: 0; /* Prevent squares from shrinking */
}

.activity-cell:hover {
    transform: scale(1.5);
    z-index: 10;
}

.activity-cell.level-1 { background: rgba(0, 212, 255, 0.3); }
.activity-cell.level-2 { background: rgba(0, 212, 255, 0.5); }
.activity-cell.level-3 { background: rgba(0, 212, 255, 0.7); }
.activity-cell.level-4 { 
    background: rgba(0, 212, 255, 1); 
    box-shadow: 0 0 4px rgba(0, 212, 255, 0.35);
}

/* Architecture Thinking Showcase */
.design-approach-wrapper {
    margin: 4rem auto 2rem auto;
    max-width: 1600px;
    padding: 0 5%;
    text-align: center;
}

.design-approach-wrapper .architecture-brain-text {
    margin-bottom: 0.25rem;
}

.design-approach-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    text-align: center;
    font-weight: var(--font-weight-medium);
    margin-top: 0;
    margin-bottom: var(--space-8);
    animation: fadeInUp 1s var(--transition-spring) 0.2s both;
}

.design-approach-dropdowns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: 1100px;
    margin: 0 auto;
}

.design-dropdown {
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.06),
        rgba(30, 58, 138, 0.04),
        rgba(0, 212, 255, 0.06));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.design-dropdown:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.design-dropdown[open] {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
}

.design-dropdown summary {
    padding: 1.5rem 2rem;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.design-dropdown summary::-webkit-details-marker {
    display: none;
}

.design-dropdown summary::after {
    content: '+';
    font-size: 1.5rem;
    color: rgba(0, 212, 255, 0.8);
    transition: transform 0.3s ease;
}

.design-dropdown[open] summary::after {
    content: '−';
}

.design-dropdown summary:hover {
    background: rgba(0, 212, 255, 0.05);
}

.design-dropdown-content {
    padding: 0 2rem 2rem;
}

.design-dropdown-content p {
    margin: 0;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

.architecture-showcase-wrapper {
    margin: 6rem auto 3rem auto;
    max-width: 1600px;
    padding: 0 2rem;
}

.architecture-showcase-wrapper .architecture-brain-text {
    margin-bottom: 0.25rem;
}

.architecture-showcase-wrapper .design-approach-subtitle {
    margin-top: 0;
    margin-bottom: var(--space-6);
    text-align: center;
    white-space: nowrap;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.architecture-showcase-container {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.architecture-item {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.architecture-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 212, 255, 0.15);
}

.architecture-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.architecture-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Brain-Like Bubble Text for Architecture Section */
.architecture-brain-text {
    font-family: 'Fredoka One', 'Baloo 2', cursive, sans-serif;
    color: #1e3a8a !important;
}

/* Dark theme: cyan for the two architecture h3 headers */
body[data-theme="dark"] .architecture-brain-text {
    color: #00d4ff !important;
    -webkit-text-fill-color: #00d4ff !important;
    text-shadow:
        2px 2px 6px rgba(0, 212, 255, 0.4),
        -1px -1px 3px rgba(0, 212, 255, 0.3),
        0 0 12px rgba(0, 212, 255, 0.5);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.architecture-brain-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1e3a8a !important;
    background-clip: unset !important;
    font-size: var(--font-size-5xl);
    letter-spacing: 0.08em;
    text-transform: none;
    font-weight: 600;
    text-shadow: 
        2px 2px 6px rgba(30, 58, 138, 0.4),
        -1px -1px 3px rgba(30, 58, 138, 0.3),
        0 0 12px rgba(30, 58, 138, 0.5);
    filter: drop-shadow(0 0 10px rgba(30, 58, 138, 0.5));
    animation: brainPulse 3s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes brainPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(30, 58, 138, 0.5));
    }
    50% { 
        transform: scale(1.02);
        filter: drop-shadow(0 0 15px rgba(30, 58, 138, 0.7));
    }
}

/* Responsive Design for Architecture Showcase */
@media (max-width: 768px) {
    .design-approach-wrapper {
        padding: 0 1rem;
        margin: 3rem auto 1.5rem auto;
    }

    .design-approach-subtitle {
        font-size: var(--font-size-base);
    }

    .design-approach-dropdowns {
        grid-template-columns: 1fr;
    }

    .architecture-showcase-wrapper {
        padding: 0 1rem;
        margin: 4rem auto 2rem auto;
    }

    .architecture-showcase-wrapper .design-approach-subtitle {
        white-space: normal;
    }
    
    .architecture-brain-text {
        font-size: var(--font-size-3xl);
    }
    
    .architecture-showcase-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Inspirational Quote Section */
.quote-section {
    padding: var(--space-12) 5%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.quote-stack {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: var(--space-12);
}

.quote-card {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s var(--transition-spring);
}

.quote-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
    opacity: 0.8;
}

.quote-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: rotate(45deg);
    animation: quoteShine 8s infinite;
    pointer-events: none;
}

@keyframes quoteShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.quote-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl), var(--shadow-glow-lg);
    border-color: var(--accent-primary);
}

.quote-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.quote-text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
    margin-bottom: var(--space-8);
    font-style: italic;
    position: relative;
    animation: fadeInUp 1.2s var(--transition-spring) 0.3s both;
}

.quote-text::before {
    content: '"';
    font-size: var(--font-size-6xl);
    color: var(--accent-primary);
    position: absolute;
    top: -20px;
    left: -20px;
    font-family: serif;
    opacity: 0.3;
}

.quote-text::after {
    content: '"';
    font-size: var(--font-size-6xl);
    color: var(--accent-primary);
    position: absolute;
    bottom: -40px;
    right: -20px;
    font-family: serif;
    opacity: 0.3;
}

.quote-attribution {
    font-size: var(--font-size-lg);
    color: var(--accent-primary);
    font-weight: var(--font-weight-semibold);
    font-style: normal;
    display: block;
    margin-top: var(--space-6);
    animation: fadeInUp 1.2s var(--transition-spring) 0.6s both;
    position: relative;
}

.quote-attribution::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -40px;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    transform: translateY(-50%);
}

.quote-attribution::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -40px;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    transform: translateY(-50%);
}

/* About Button */
.about-btn {
    padding: var(--space-2) var(--space-5);
    background: transparent;
    border: none;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    transition: all var(--transition-spring);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.about-btn:hover {
    color: var(--accent-primary-hover);
}

/* Light Theme About Button */
[data-theme="light"] .about-btn {
    color: #1e3a8a;
}

[data-theme="light"] .about-btn:hover {
    color: #2563eb;
}

/* About Page Styles */
.about-hero {
    padding: var(--space-20) 5%;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.about-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-hero-image {
    position: relative;
}

.hero-photo {
    width: 100%;
    max-width: 650px;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    transition: all var(--transition-spring);
}

.hero-photo:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.about-hero-text h1 {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-extrabold);
    background: linear-gradient(90deg, 
        var(--accent-primary) 0%, 
        var(--accent-secondary) 25%,
        var(--accent-primary) 50%,
        var(--accent-secondary) 75%,
        var(--accent-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aboutTitleShimmer 3s linear infinite;
    margin-top: var(--space-8);
    margin-bottom: var(--space-6);
    line-height: var(--line-height-tight);
}

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

.about-summary {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    background: var(--bg-card);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    margin-bottom: var(--space-8);
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.about-image-item {
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-spring);
}

.about-image-item:hover {
    transform: translateY(-4px);
}

.about-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-spring);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.image-label {
    display: block;
    margin-top: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

/* About Gallery */
.about-gallery {
    padding: var(--space-16) 5%;
    background: var(--bg-secondary);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-spring);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all var(--transition-normal);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: var(--space-6);
    transform: translateY(100%);
    transition: all var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
}

/* Certifications Section */
.certifications-section {
    padding: var(--space-16) 5%;
    background: transparent;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.cert-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all var(--transition-spring);
    text-align: center;
}

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

.cert-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
    display: block;
}

.cert-card h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    line-height: var(--line-height-snug);
}

.cert-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-4);
}

.cert-link {
    display: inline-block;
    margin-top: auto;
    padding: var(--space-2) var(--space-5);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-spring);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.cert-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.3);
    background: linear-gradient(135deg, var(--accent-primary-hover), var(--accent-secondary-hover));
}

[data-theme="light"] .cert-link {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

[data-theme="light"] .cert-link:hover {
    background: linear-gradient(135deg, var(--accent-primary-hover), var(--accent-primary));
    box-shadow: 0 6px 25px rgba(30, 58, 138, 0.3);
}

/* Education Section */
.education-section {
    padding: var(--space-16) 5%;
    background: transparent;
}

.education-timeline {
    margin-top: var(--space-12);
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #1e3a8a, #1e40af);
}

.education-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-12);
    position: relative;
}

.education-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    margin-right: var(--space-6);
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.education-content {
    flex: 1;
    background: var(--bg-card);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.education-content h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.education-institution {
    color: var(--accent-primary);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-1);
}

.education-year {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Experience Section */
.experience-section {
    padding: var(--space-16) 5%;
    background: transparent;
}

.experience-timeline {
    margin-top: var(--space-12);
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #1e3a8a, #1e40af);
}

.experience-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-12);
    position: relative;
}

.experience-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    margin-right: var(--space-6);
    flex-shrink: 0;
    z-index: 2;
    position: relative;
}

.experience-content {
    flex: 1;
    background: var(--bg-card);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.experience-content h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.experience-company {
    color: var(--accent-primary);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-1);
}

.experience-duration {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
}

.experience-details {
    list-style: none;
    padding: 0;
}

.experience-details li {
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    padding-left: var(--space-4);
    position: relative;
}

.experience-details li::before {
    content: '▸';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
}

.experience-role-block {
    margin-top: var(--space-6);
}

.experience-role-block:first-of-type {
    margin-top: 0;
}

.experience-role-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

/* About Contact */
.about-contact {
    padding: var(--space-16) 5%;
    background: transparent;
    text-align: center;
}

.contact-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.image-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.image-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1;
}

.image-modal-content {
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    border-radius: 20px;
    padding: var(--space-6);
    max-width: 90vw;
    max-height: 90vh;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-2xl);
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-spring);
    z-index: 3;
}

.image-modal-close:hover {
    background: rgba(255, 0, 110, 0.2);
    border-color: rgba(255, 0, 110, 0.5);
    color: var(--accent-secondary);
    transform: scale(1.1);
}

.image-modal-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.image-caption {
    margin-top: var(--space-4);
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-3) var(--space-4);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}

/* Certificate Modal - Enhanced Design */
.cert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.cert-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cert-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1;
}

.cert-modal-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, 
        var(--bg-card) 0%, 
        var(--bg-card-hover) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        var(--shadow-2xl),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.cert-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-primary), 
        var(--accent-secondary), 
        transparent);
    opacity: 0.8;
}

.cert-modal-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.03), 
        transparent);
    transform: rotate(45deg);
    animation: certShine 8s infinite;
    pointer-events: none;
}

@keyframes certShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cert-modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-spring);
    z-index: 3;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.cert-modal-close:hover {
    background: rgba(255, 0, 110, 0.2);
    border-color: rgba(255, 0, 110, 0.5);
    color: var(--accent-secondary);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

.cert-modal-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    padding-right: var(--space-12);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.cert-iframe-wrapper {
    position: relative;
    margin-top: var(--space-6);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-tertiary);
    padding: var(--space-2);
}

.cert-iframe {
    width: 100%;
    min-width: 60vw;
    max-width: 800px;
    height: 65vh;
    min-height: 400px;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    display: block;
}

/* Light Theme Support */
[data-theme="light"] .cert-modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .cert-modal-content {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        0 0 40px rgba(0, 212, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .cert-modal-content::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(30, 58, 138, 0.5), 
        rgba(0, 212, 255, 0.5), 
        transparent);
}

[data-theme="light"] .cert-modal-close {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

[data-theme="light"] .cert-modal-close:hover {
    background: rgba(255, 0, 110, 0.2);
    border-color: rgba(255, 0, 110, 0.5);
    color: var(--accent-secondary);
}

[data-theme="light"] .cert-modal-title {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .cert-iframe-wrapper {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cert-iframe {
    background: #ffffff;
}

/* Make button look like link but maintain consistent styling */
.cert-link {
    border: none;
    cursor: pointer;
    font-family: inherit;
    width: auto;
}

/* Responsive certificate modal */
@media (max-width: 768px) {
    .cert-modal-content {
        padding: var(--space-6) var(--space-4);
        max-width: 95vw;
    }

    .cert-iframe-wrapper {
        margin-top: var(--space-4);
    }

    .cert-iframe {
        min-width: 85vw;
        height: 55vh;
        min-height: 350px;
    }

    .cert-modal-title {
        font-size: var(--font-size-xl);
        padding-right: var(--space-10);
        margin-bottom: var(--space-4);
    }

    .cert-modal-close {
        top: var(--space-3);
        right: var(--space-3);
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .cert-modal-content {
        padding: var(--space-5) var(--space-3);
    }

    .cert-iframe {
        height: 50vh;
        min-height: 300px;
    }

    .cert-modal-title {
        font-size: var(--font-size-lg);
        padding-right: var(--space-8);
    }
}

/* Skills Section */
.skills-section {
    padding: var(--space-16) 5%;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, var(--bg-tertiary) 50%, transparent 100%);
}

.skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.section-title {
    text-align: center;
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary) 40%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: fadeInUp 1s var(--transition-spring) both;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-20);
    animation: fadeInUp 1s var(--transition-spring) 0.2s both;
}

.skills-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    animation: fadeInUp 1s var(--transition-spring) 0.4s both;
}

.skill-card {
    background: var(--bg-card);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

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

.skill-card:hover::after {
    opacity: 0.05;
}

.skill-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    background: var(--bg-card-hover);
}

.skill-icon {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--space-6);
    display: block;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

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

.skill-card:nth-child(2) .skill-icon { animation-delay: 0.5s; }
.skill-card:nth-child(3) .skill-icon { animation-delay: 1s; }
.skill-card:nth-child(4) .skill-icon { animation-delay: 1.5s; }
.skill-card:nth-child(5) .skill-icon { animation-delay: 2s; }
.skill-card:nth-child(6) .skill-icon { animation-delay: 2.5s; }

.skill-card h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
    text-align: center;
    position: relative;
    z-index: 2;
    color: var(--text-primary);
}

.skill-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
    margin-bottom: var(--space-6);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    position: relative;
    z-index: 2;
}

.tech-tag {
    padding: var(--space-2) var(--space-3);
    background: var(--bg-glass);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--accent-primary);
    font-family: 'JetBrains Mono', monospace;
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-spring);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.4s;
}

.tech-tag:hover::before {
    left: 100%;
}

.tech-tag:hover {
    background: rgba(0, 212, 255, 0.15);
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

/* Tech tag tooltip (hover + keyboard + tap) */
.tech-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    pointer-events: none;

    max-width: min(320px, calc(100vw - 24px));
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.25;
    font-family: 'JetBrains Mono', monospace;

    color: #fff;
    background: rgba(10, 14, 39, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.98);
    transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
}

.tech-tooltip--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 140ms ease, transform 140ms ease, visibility 0s;
}

.tech-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(10, 14, 39, 0.95);
    border-left: 1px solid rgba(0, 212, 255, 0.35);
    border-top: 1px solid rgba(0, 212, 255, 0.35);
}

[data-theme="light"] .tech-tooltip {
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid rgba(30, 58, 138, 0.35);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .tech-tooltip::after {
    background: var(--bg-card);
    border-left: 1px solid rgba(30, 58, 138, 0.35);
    border-top: 1px solid rgba(30, 58, 138, 0.35);
}

/* Optional: make it obvious tags are explainable */
.tech-tag {
    cursor: help;
}

/* Skills tags should be STATIC (no hover effects, no "help" cursor) */
#skills .tech-tag {
    cursor: default;
}

#skills .tech-tag:hover {
    background: var(--bg-glass);
    transform: none;
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: none;
}

#skills .tech-tag:hover::before {
    left: -100%;
}

/* Code Playground */
/* ========== PREMIUM GAME SHOWCASE SECTION ========== */
.playground-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.08) 0%, 
        rgba(30, 58, 138, 0.05) 50%, 
        rgba(0, 212, 255, 0.08) 100%);
    position: relative;
    overflow: hidden;
}

.playground-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(30, 58, 138, 0.08) 0%, transparent 50%);
    animation: gradientShift 20s ease-in-out infinite;
}

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

.playground-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

/* Game Showcase — instructions flush left, game centered (wide screens) */
.game-showcase {
    position: relative;
    margin-bottom: 2rem;
}

.game-canvas-wrapper {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    animation: float 6s ease-in-out infinite;
    isolation: isolate;
}

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

#gameCanvas {
    border-radius: 20px;
    box-shadow: 
        0 0 60px rgba(0, 212, 255, 0.25),
        0 0 120px rgba(0, 212, 255, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

#gameCanvas:hover {
    transform: scale(1.02);
    box-shadow: 
        0 0 80px rgba(0, 212, 255, 0.35),
        0 0 160px rgba(0, 212, 255, 0.25),
        0 25px 50px rgba(0, 0, 0, 0.4);
}

.canvas-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, 
        rgba(0, 212, 255, 0.25), 
        rgba(30, 58, 138, 0.2), 
        rgba(0, 212, 255, 0.25));
    border-radius: 30px;
    filter: blur(20px);
    opacity: 0.6;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 1;
}

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

.game-instructions-panel {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: min(16.5rem, calc(100% - var(--space-8)));
    max-width: 100%;
}

@media (max-width: 1024px) {
    .game-showcase {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-5);
    }

    .game-instructions-panel {
        position: relative;
        left: auto;
        top: auto;
        width: min(18rem, 100%);
        z-index: auto;
    }

    .game-canvas-wrapper {
        margin-left: auto;
        margin-right: auto;
    }
}

.game-instructions-panel__glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.45),
        rgba(123, 47, 247, 0.35),
        rgba(0, 212, 255, 0.25)
    );
    filter: blur(14px);
    opacity: 0.55;
    z-index: 0;
    animation: instructionPanelGlow 6s ease-in-out infinite;
}

@keyframes instructionPanelGlow {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.02); }
}

.game-instructions-panel__inner {
    position: relative;
    z-index: 1;
    padding: var(--space-4) var(--space-4) var(--space-3);
    border-radius: var(--radius-xl);
    background: linear-gradient(
        165deg,
        rgba(12, 18, 42, 0.92) 0%,
        rgba(8, 12, 32, 0.88) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 212, 255, 0.12) inset,
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.game-instructions-panel__head {
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    background: radial-gradient(
        ellipse 85% 140% at 50% 0%,
        rgba(0, 212, 255, 0.16),
        transparent 68%
    );
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    padding-top: 2px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.game-instructions-panel__title {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: var(--line-height-tight);
    text-align: center;
}

.game-instructions-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.game-instructions-panel__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    min-height: 2rem;
}

.game-instructions-panel__keys {
    display: inline-flex;
    gap: 4px;
}

.game-instructions-panel__kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    padding: 0.2rem 0.45rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: 1.2;
    border-radius: var(--radius-md);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 2px 8px rgba(0, 0, 0, 0.25);
}

.game-instructions-panel__kbd--wide {
    min-width: 3.25rem;
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}

.game-instructions-panel__label {
    flex: 1;
    min-width: 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: rgba(226, 232, 240, 0.88);
    line-height: var(--line-height-snug);
}

.game-instructions-panel__item--goal {
    margin-top: var(--space-1);
    padding-top: var(--space-3);
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
}

.game-instructions-panel__goal-tag {
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(123, 47, 247, 0.95);
    background: rgba(123, 47, 247, 0.15);
    border: 1px solid rgba(123, 47, 247, 0.35);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.game-instructions-panel__item--goal .game-instructions-panel__label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

[data-theme="light"] .game-instructions-panel__inner {
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(241, 245, 249, 0.9) 100%
    );
    border-color: rgba(30, 58, 138, 0.18);
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(0, 212, 255, 0.15) inset,
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

[data-theme="light"] .game-instructions-panel__head {
    border-bottom-color: rgba(15, 23, 42, 0.08);
    background: radial-gradient(
        ellipse 85% 140% at 50% 0%,
        rgba(0, 212, 255, 0.14),
        transparent 68%
    );
}

[data-theme="light"] .game-instructions-panel__title {
    color: var(--text-primary);
}

[data-theme="light"] .game-instructions-panel__label {
    color: var(--text-secondary);
}

[data-theme="light"] .game-instructions-panel__kbd {
    color: var(--text-primary);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(226, 232, 240, 0.95) 100%
    );
    border-color: rgba(15, 23, 42, 0.15);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 2px 6px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .game-instructions-panel__goal-tag {
    color: #5b21b6;
    background: rgba(91, 33, 182, 0.1);
    border-color: rgba(91, 33, 182, 0.28);
}

@media (prefers-reduced-motion: reduce) {
    .game-instructions-panel__glow {
        animation: none;
        opacity: 0.5;
    }
}

/* Responsive Design for Game Showcase */
@media (max-width: 768px) {
    .playground-section {
        padding: 4rem 0;
    }
    
    .game-showcase {
        margin-bottom: 2rem;
    }
    
    .game-canvas-wrapper {
        animation: none;
    }
    
    #gameCanvas {
        max-width: 90%;
        height: auto;
    }

    .game-instructions-panel {
        width: min(18rem, 100%);
    }

    .game-instructions-panel__inner {
        padding: var(--space-3);
    }

    .game-instructions-panel__title {
        font-size: var(--font-size-base);
    }

    .game-instructions-panel__label {
        font-size: var(--font-size-xs);
    }

    .control-group {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .difficulty-selector {
        width: 100%;
    }
    
    .diff-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .playground-section {
        padding: 3rem 0;
    }

    .game-instructions-panel {
        width: 100%;
    }

    .game-instructions-panel__head {
        margin-bottom: var(--space-2);
        padding-bottom: var(--space-2);
    }

    .game-instructions-panel__list {
        gap: 6px;
    }

    .game-instructions-panel__item--goal {
        padding-top: var(--space-2);
    }

    .control-btn {
        padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    }
    
    .achievement-badge {
        padding: 0.8rem;
    }
    
    .badge-icon {
        font-size: 1.2rem;
    }
}

/* Projects Section */
.projects-section {
    padding: 6rem 5%;
}

.projects-section .github-activity {
    max-width: 900px;
    margin: 0 auto var(--space-8) auto;
    text-align: center;
}

.projects-grid {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: start;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    transition: all 0.4s;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-primary);
}

/* Expand Details Button */
.expand-details-btn {
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.1), 
        rgba(30, 58, 138, 0.08), 
        rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
    backdrop-filter: blur(10px);
    display: block;
    width: fit-content;
}

.expand-details-btn:hover {
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.2), 
        rgba(30, 58, 138, 0.15), 
        rgba(0, 212, 255, 0.2));
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

/* Project Details Expanded */
.project-details-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    margin-bottom: 1.5rem;
    opacity: 0;
}

.project-details-expanded.active {
    max-height: 2000px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 1;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease-in 0.1s, 
                margin-top 0.5s ease;
}

.detail-section {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
    backdrop-filter: blur(5px);
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.detail-section h4::before {
    content: '▸';
    margin-right: 0.5rem;
    color: var(--accent-secondary);
}

.detail-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.detail-section .arrow-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-secondary);
}

.detail-section .arrow-list li {
    line-height: 1.7;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.detail-section .arrow-list li:last-child {
    margin-bottom: 0;
}

/* Screenshot Button */
.screenshot-btn {
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.1), 
        rgba(30, 58, 138, 0.08));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 1rem;
    backdrop-filter: blur(10px);
}

.screenshot-btn:hover {
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.2), 
        rgba(30, 58, 138, 0.15));
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-link {
    padding: 0.6rem 1.2rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.project-link:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.project-gallery {
    margin-bottom: 1.5rem;
}

.project-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 16 / 10;
    cursor: pointer;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-more {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px dashed rgba(0, 212, 255, 0.4);
    color: var(--accent-primary);
    font-weight: 700;
    letter-spacing: 0.3px;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.gallery-more:hover {
    background: rgba(0, 212, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

@media (max-width: 1280px) {
    .project-gallery .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .project-gallery .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .project-gallery .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact Section */
.contact-section {
    padding: 8rem 5% 2rem 5%;
    background: rgba(255, 255, 255, 0.02);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    margin: var(--space-8) 0 var(--space-4) 0;
    animation: fadeInUp 1s var(--transition-spring) 0.3s both;
}

.contact-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.1), 
        rgba(30, 58, 138, 0.08));
    border: 2px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 212, 255, 0.3), 
        transparent);
    transition: left 0.6s ease;
}

.contact-social-link:hover::before {
    left: 100%;
}

.contact-social-link:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 
        0 8px 30px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #00d4ff;
}

.contact-social-link:active {
    transform: translateY(-1px) scale(1.02);
}

/* Email Modal */
.email-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.email-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.email-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.email-modal-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: var(--space-8);
    max-width: 500px;
    width: 100%;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 32px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

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

.email-modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-spring);
    z-index: 3;
}

.email-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-primary);
    transform: scale(1.1);
}

.email-modal-header {
    text-align: center;
    margin-bottom: var(--space-6);
    /* Clear .email-modal-close (absolute top/right); keeps bordered h3 from running under × */
    padding-right: calc(var(--space-4) + 32px + var(--space-2));
}

.email-modal-header h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.email-modal-body {
    text-align: center;
}

.email-display {
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.1), 
        rgba(123, 47, 247, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-6);
    user-select: all;
    cursor: text;
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.email-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 212, 255, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.email-display:hover::before {
    left: 100%;
}

.email-display:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.copy-email-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
    border: 1px solid #172554;
    border-radius: 12px;
    color: white;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    padding: var(--space-4) var(--space-8);
    cursor: pointer;
    transition: all var(--transition-spring);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.35);
}

.copy-email-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.copy-email-btn:hover::before {
    left: 100%;
}

.copy-email-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    box-shadow: 0 8px 30px rgba(30, 58, 138, 0.45);
}

.copy-email-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.35);
}

.copy-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    color: #10b981;
    font-weight: var(--font-weight-semibold);
    animation: fadeInUp 0.3s ease-out;
}

.copy-success.show {
    display: flex;
}

.success-icon {
    font-size: 1.2rem;
    animation: pulse 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

/* Screenshot Modal */
.screenshot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.screenshot-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.screenshot-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1;
}

.screenshot-modal-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: var(--space-6);
    max-width: 90vw;
    max-height: 90vh;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screenshot-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        transparent, 
        rgba(0, 212, 255, 0.1), 
        transparent);
    pointer-events: none;
}

.screenshot-modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-spring);
    z-index: 3;
}

.screenshot-modal-close:hover {
    background: rgba(255, 0, 110, 0.2);
    border-color: rgba(255, 0, 110, 0.5);
    color: var(--accent-secondary);
    transform: scale(1.1);
}

.screenshot-modal-content img,
.screenshot-modal-content video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.screenshot-modal-content video {
    background: #000;
}

.screenshot-caption {
    margin-top: var(--space-4);
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-3) var(--space-4);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}

.screenshot-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-spring);
    z-index: 4;
    backdrop-filter: blur(10px);
}

.screenshot-nav-prev {
    left: var(--space-6);
}

.screenshot-nav-next {
    right: var(--space-6);
}

.screenshot-nav:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

/* Footer */
footer {
    padding: 1.5rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
}

.footer-text {
    color: var(--text-muted);
}

/* Easter Egg Modal */
.easter-egg-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--accent-primary);
    backdrop-filter: blur(20px);
    z-index: 2000;
    text-align: center;
    max-width: 500px;
}

.easter-egg-modal.active {
    display: block;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1999;
}

.modal-backdrop.active {
    display: block;
}

/* Enhanced Responsive Design */
@media (max-width: 1599px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .hero-content {
        gap: var(--space-12);
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-6);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }

    .hero-text h1 {
        font-size: var(--font-size-5xl);
    }

    .hero-stats {
        justify-content: center;
        gap: var(--space-8);
    }

    .nav-links {
        gap: var(--space-2);
    }
    
    .nav-links a {
        font-size: var(--font-size-base);
        padding: var(--space-2) var(--space-3);
    }

    .footer-content {
        gap: var(--space-3);
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .about-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }

    .about-hero-image {
        order: -1;
    }

    .hero-photo {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    nav {
        padding: var(--space-4) 4%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        column-gap: var(--space-3);
    }

    .nav-left {
        gap: var(--space-3);
    }
    
    .nav-right {
        gap: var(--space-3);
    }

    .theme-toggle {
        min-width: 42px;
        min-height: 42px;
        padding: var(--space-2);
    }
    
    .theme-icon {
        width: var(--font-size-lg);
        height: var(--font-size-lg);
    }

    .hero {
        padding: calc(90px + var(--space-10)) 5% var(--space-8);
    }
    
    .hero-text h1 {
        font-size: var(--font-size-4xl);
    }
    
    .hero-text .subtitle {
        font-size: var(--font-size-2xl);
    }
    
    .section-title {
        font-size: var(--font-size-4xl);
    }
    
    .skills-section {
        padding: var(--space-12) 5%;
    }
    
    .skill-card {
        padding: var(--space-6);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-8);
        z-index: 1000;
        padding: var(--space-20) 0;
        backdrop-filter: blur(30px);
    }

    .nav-links.active {
        display: flex;
        animation: fadeIn 0.3s ease-out;
    }

    .nav-links a {
        font-size: var(--font-size-2xl);
    }
    
    .github-activity {
        display: none;
    }

    .education-timeline::before,
    .experience-timeline::before {
        left: 20px;
    }
    
    .education-icon,
    .experience-icon {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
        margin-right: var(--space-4);
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: var(--font-size-3xl);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
        align-items: center;
    }
    
    .satisfaction-stat {
        padding: 2rem 3rem;
        max-width: 260px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: var(--space-4);
        align-items: center;
    }

    .btn {
        width: 100%;
        min-height: 48px;
    }

    .perf-monitor {
        display: none;
    }
}

@media (max-width: 480px) {
    nav {
        padding: var(--space-3) 3%;
    }

    .logo-image {
        height: 32px;
    }

    .hero-text h1 {
        font-size: var(--font-size-2xl);
    }
    
    .hero-text .subtitle {
        font-size: var(--font-size-xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .contact-social-link {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .nav-left {
        gap: var(--space-2);
    }

    .nav-right {
        gap: var(--space-2);
    }

    .theme-toggle {
        min-width: 36px;
        min-height: 36px;
        padding: 4px;
    }

    .theme-icon {
        width: 1.1rem;
        height: 1.1rem;
    }
}

/* ========== VIEW PORTFOLIO BUTTON - PREMIUM DESIGN ========== */

/* Project Buttons Container - Horizontal Layout */
.project-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Adjust expand-details-btn to work in flex container */
.project-buttons .expand-details-btn {
    margin-bottom: 0;
}

/* View Portfolio Button - Premium Design */
.view-portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.1), 
        rgba(30, 58, 138, 0.08), 
        rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: none;
    white-space: nowrap;
}

.view-portfolio-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 212, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.view-portfolio-btn:hover::before {
    left: 100%;
}

.view-portfolio-btn:hover {
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.2), 
        rgba(30, 58, 138, 0.15), 
        rgba(0, 212, 255, 0.2));
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.view-portfolio-btn:active {
    transform: translateY(0);
}

.btn-text {
    z-index: 1;
}

.btn-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
    z-index: 1;
}

.view-portfolio-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Light Theme Support */
[data-theme="light"] .view-portfolio-btn {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.1), 
        rgba(30, 58, 138, 0.08));
    border: 2px solid rgba(30, 58, 138, 0.3);
    box-shadow: 
        0 4px 20px rgba(30, 58, 138, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .view-portfolio-btn:hover {
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.15), 
        rgba(30, 58, 138, 0.12));
    border-color: #1e3a8a;
    box-shadow: 
        0 8px 30px rgba(30, 58, 138, 0.25),
        0 4px 15px rgba(30, 58, 138, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Responsive - Stack buttons vertically on mobile */
@media (max-width: 640px) {
    .project-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .project-buttons .expand-details-btn,
    .view-portfolio-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========== ENHANCED ANIMATIONS & VISUAL EFFECTS ========== */

/* Page Loader Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.loader-text {
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    animation: pulse 2s ease-in-out infinite;
}

/* Enhanced Parallax Effects */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-element {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* 3D Card Transforms */
.skill-card,
.project-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-card:hover,
.project-card:hover {
    transform: translateY(-12px) rotateX(5deg) rotateY(-5deg) scale(1.03);
}

.skill-card::before,
.project-card::before {
    transform: translateZ(20px);
}

/* Enhanced Staggered Animations for Project Cards */
.projects-grid {
    perspective: 1000px;
}

.project-card {
    opacity: 0;
    transform: translateY(60px) rotateX(10deg);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card.animate-in {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.2s; }
.project-card:nth-child(3) { transition-delay: 0.3s; }
.project-card:nth-child(4) { transition-delay: 0.4s; }
.project-card:nth-child(5) { transition-delay: 0.5s; }
.project-card:nth-child(6) { transition-delay: 0.6s; }
.project-card:nth-child(7) { transition-delay: 0.7s; }
.project-card:nth-child(8) { transition-delay: 0.8s; }
.project-card:nth-child(9) { transition-delay: 0.9s; }

/* Animated Progress Bars for Skills */
.skill-progress-container {
    margin-top: var(--space-4);
    background: var(--bg-glass);
    border-radius: var(--radius-full);
    height: 8px;
    overflow: hidden;
    position: relative;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Hero Section Animations */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    animation: 
        heroTitleEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both,
        gradientFlow 4s linear infinite,
        titlePulse 3s ease-in-out infinite;
}

.hero-text .subtitle {
    animation: fadeInUp 1s var(--transition-spring) 0.5s both;
}

.hero-text .description {
    animation: fadeInUp 1s var(--transition-spring) 0.7s both;
}

/* Floating Animation for Hero Media */
.hero-media-card {
    animation: floatHero 6s ease-in-out infinite;
}

@keyframes floatHero {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(2deg); 
    }
}

/* Enhanced Section Title Animations */
.section-title {
    position: relative;
    overflow: hidden;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    animation: titleUnderline 1s ease-out 0.5s forwards;
}

@keyframes titleUnderline {
    to { left: 100%; }
}

/* Enhanced Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

/* Enhanced Gallery Item Animations */
.gallery-item {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover {
    transform: translateY(-8px) rotateY(5deg) scale(1.05);
    z-index: 10;
}

/* Scroll Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ── About page: scroll motion (hero, titles, grid stagger, timelines) ── */
.about-hero-image.reveal-left .hero-photo {
    clip-path: inset(0 100% 0 0 round var(--radius-2xl));
}

.about-hero-image.reveal-left.revealed .hero-photo {
    clip-path: inset(0 0 0 0 round var(--radius-2xl));
}

.about-hero-text.reveal-right .about-summary {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.2s,
        transform 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
}

.about-hero-text.reveal-right.revealed .about-summary {
    opacity: 1;
    transform: translateY(0);
}

.about-container > .section-title.about-section-title {
    position: relative;
}

.about-container > .section-title.about-section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    margin-top: var(--space-3);
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    transition: width 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-container > .section-title.about-section-title.revealed::after {
    width: 4.5rem;
}

[data-theme="light"] .about-container > .section-title.about-section-title::after {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-primary-hover));
}

.certifications-grid .cert-card.reveal-up:nth-child(1) { transition-delay: 0.03s; }
.certifications-grid .cert-card.reveal-up:nth-child(2) { transition-delay: 0.06s; }
.certifications-grid .cert-card.reveal-up:nth-child(3) { transition-delay: 0.09s; }
.certifications-grid .cert-card.reveal-up:nth-child(4) { transition-delay: 0.12s; }
.certifications-grid .cert-card.reveal-up:nth-child(5) { transition-delay: 0.15s; }
.certifications-grid .cert-card.reveal-up:nth-child(6) { transition-delay: 0.18s; }
.certifications-grid .cert-card.reveal-up:nth-child(7) { transition-delay: 0.21s; }
.certifications-grid .cert-card.reveal-up:nth-child(8) { transition-delay: 0.24s; }
.certifications-grid .cert-card.reveal-up:nth-child(9) { transition-delay: 0.27s; }
.certifications-grid .cert-card.reveal-up:nth-child(10) { transition-delay: 0.3s; }
.certifications-grid .cert-card.reveal-up:nth-child(11) { transition-delay: 0.33s; }
.certifications-grid .cert-card.reveal-up:nth-child(12) { transition-delay: 0.36s; }
.certifications-grid .cert-card.reveal-up:nth-child(13) { transition-delay: 0.39s; }
.certifications-grid .cert-card.reveal-up:nth-child(14) { transition-delay: 0.42s; }
.certifications-grid .cert-card.reveal-up:nth-child(15) { transition-delay: 0.45s; }
.certifications-grid .cert-card.reveal-up:nth-child(16) { transition-delay: 0.48s; }
.certifications-grid .cert-card.reveal-up:nth-child(17) { transition-delay: 0.51s; }
.certifications-grid .cert-card.reveal-up:nth-child(18) { transition-delay: 0.54s; }
.certifications-grid .cert-card.reveal-up:nth-child(19) { transition-delay: 0.57s; }
.certifications-grid .cert-card.reveal-up:nth-child(20) { transition-delay: 0.6s; }

.experience-section .experience-item.reveal-up:nth-child(1) { transition-delay: 0.05s; }
.experience-section .experience-item.reveal-up:nth-child(2) { transition-delay: 0.12s; }
.experience-section .experience-item.reveal-up:nth-child(3) { transition-delay: 0.19s; }

.education-section .education-item.reveal-up:nth-child(1) { transition-delay: 0.05s; }
.education-section .education-item.reveal-up:nth-child(2) { transition-delay: 0.12s; }
.education-section .education-item.reveal-up:nth-child(3) { transition-delay: 0.19s; }

.about-contact .contact-description.reveal-up {
    transition-delay: 0.08s;
}

.about-contact .contact-buttons.reveal-up {
    transition-delay: 0.16s;
}

.experience-timeline.timeline-animate::before,
.education-timeline.timeline-animate::before {
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-timeline.timeline-animate.is-visible::before,
.education-timeline.timeline-animate.is-visible::before {
    transform: scaleY(1);
}

.cert-card.reveal-up.revealed:hover {
    transform: translateY(-8px) rotateX(5deg) scale(1.02);
}

/* Enhanced Particle System Visual */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Magnetic Hover Effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 212, 255, 0.3),
            0 0 40px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 212, 255, 0.5),
            0 0 60px rgba(0, 212, 255, 0.3);
    }
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* Enhanced Navbar Animations */
#navbar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.nav-scroll {
    background: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


/* Light theme scroll state */
[data-theme="light"] #navbar.nav-scroll {
    background: var(--bg-primary);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
}
/* Enhanced Contact Section */
.contact-social-link {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-social-link:hover {
    transform: translateY(-5px) rotateY(10deg) scale(1.1);
}

/* Enhanced Certificate Cards */
.cert-card {
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cert-card:hover {
    transform: translateY(-8px) rotateX(5deg) scale(1.02);
}

/* Smooth Scroll Enhancement */
html {
    scroll-behavior: smooth;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .about-hero-image.reveal-left .hero-photo {
        clip-path: inset(0 0 0 0 round var(--radius-2xl)) !important;
    }

    .experience-timeline.timeline-animate::before,
    .education-timeline.timeline-animate::before {
        transform: scaleY(1) !important;
    }
}

/* ========== STATE-OF-THE-ART INNOVATION & DESIGN ========== */

/* Custom Interactive Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
    mix-blend-mode: difference;
    will-change: transform;
}

.custom-cursor-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
    will-change: transform;
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-primary);
}

.custom-cursor.click {
    width: 30px;
    height: 30px;
    background: rgba(0, 212, 255, 0.2);
}

/* Advanced Text Reveal Animations */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: textRevealUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes textRevealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-reveal-word {
    display: inline-block;
    overflow: hidden;
}

.text-reveal-word span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.text-reveal-word.revealed span {
    transform: translateY(0);
}

/* Holographic Effect */
.holographic {
    background: linear-gradient(
        90deg,
        #00d4ff 0%,
        #7b2ff7 25%,
        #ff006e 50%,
        #7b2ff7 75%,
        #00d4ff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographicShift 3s linear infinite;
}

@keyframes holographicShift {
    to { background-position: 200% center; }
}

/* Neon Glow Effect */
.neon-glow {
    text-shadow: 
        0 0 10px var(--accent-primary),
        0 0 20px var(--accent-primary),
        0 0 30px var(--accent-primary),
        0 0 40px var(--accent-primary);
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--accent-primary),
            0 0 20px var(--accent-primary),
            0 0 30px var(--accent-primary),
            0 0 40px var(--accent-primary);
    }
    50% {
        text-shadow: 
            0 0 20px var(--accent-primary),
            0 0 30px var(--accent-primary),
            0 0 40px var(--accent-primary),
            0 0 50px var(--accent-primary),
            0 0 60px var(--accent-secondary);
    }
}

/* Particle Interaction Zones */
.particle-zone {
    position: relative;
}

.particle-zone::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.particle-zone:hover::before {
    opacity: 1;
    animation: particlePulse 2s ease-in-out infinite;
}

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

/* Advanced Card Hover Effects */
.card-3d-advanced {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d-advanced:hover {
    transform: translateY(-20px) rotateX(10deg) rotateY(-10deg) scale(1.05);
}

.card-3d-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.6s;
    border-radius: inherit;
    z-index: -1;
    filter: blur(20px);
}

.card-3d-advanced:hover::before {
    opacity: 0.3;
}

/* Magnetic Text */
.magnetic-text {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ========== Site preloader splash ========== */
html.preloader-active,
html.preloader-active body {
    overflow: hidden;
}

.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    opacity: 1;
}

.site-preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6, 1.5rem);
    padding: var(--space-8, 2rem);
    text-align: center;
}

.site-preloader__pyramid {
    width: clamp(5rem, 18vw, 7.5rem);
    height: auto;
    display: block;
    object-fit: contain;
}

.site-preloader__name {
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4em;
    font-family: Inter, system-ui, sans-serif;
    font-size: var(--font-size-3xl);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent-primary);
    line-height: 1.2;
}

.site-preloader__name-part {
    display: inline-block;
}

.site-preloader__line {
    width: min(12rem, 70vw);
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-primary),
        transparent
    );
    transform-origin: 50% 50%;
}

@media (prefers-reduced-motion: reduce) {
    .site-preloader__pyramid {
        animation: none;
    }
}

