:root {
    /* Color Palette */
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-secondary: #8b5cf6;
    --color-accent: #10b981;
    --color-accent-dark: #059669;
    
    /* Section-Specific Colors */
    --color-hero: #3b82f6; /* Blue */
    --color-work: #8b5cf6; /* Purple */
    --color-about: #6366f1; /* Indigo */
    --color-services: #f59e0b; /* Amber/Orange */
    --color-experience: #10b981; /* Green */
    --color-cybersecurity: #14b8a6; /* Teal */
    --color-footer: #0ea5e9; /* Sky Blue */
    
    /* Neutrals - Dark Mode (Default) */
    --color-bg: #0a0a0f;
    --color-bg-light: #13131a;
    --color-surface: #1a1a24;
    --color-surface-hover: #222230;
    --color-text: #e4e4e7;
    --color-text-muted: #a1a1aa;
    --color-border: #27272a;
    
    /* Light Mode Colors */
    --light-bg: #ffffff;
    --light-bg-light: #f8f9fa;
    --light-surface: #ffffff;
    --light-surface-hover: #f1f3f5;
    --light-text: #1a1a1a;
    --light-text-muted: #6b7280;
    --light-border: #e5e7eb;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 18px;
    --line-height-base: 1.7;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    -webkit-overflow-scrolling: touch;
    overflow-anchor: auto;
    /* Allow document to grow for vertical scroll on mobile */
    min-height: 100%;
    height: auto;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
    overflow-x: clip;
    overflow-y: visible;
    min-height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: difference;
    transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
    transform: translate(-50%, -50%);
    display: none;
}

.cursor-trail {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.6;
    transform: translate(-50%, -50%);
    display: none;
}

@media (min-width: 768px) {
    .cursor,
    .cursor-trail {
        display: block;
    }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: max(var(--spacing-md), env(safe-area-inset-bottom));
    right: max(var(--spacing-md), env(safe-area-inset-right));
    z-index: 10000;
    touch-action: manipulation;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(26, 26, 36, 0.8);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.3);
}

.theme-toggle-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.theme-toggle-icon svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity var(--transition-base), transform var(--transition-base);
    color: var(--color-text);
}

.theme-toggle-icon .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.theme-toggle-icon .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

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

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

body.light-mode {
    --color-bg: var(--light-bg);
    --color-bg-light: var(--light-bg-light);
    --color-surface: var(--light-surface);
    --color-surface-hover: var(--light-surface-hover);
    --color-text: var(--light-text);
    --color-text-muted: var(--light-text-muted);
    --color-border: var(--light-border);
}

body.light-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Light Mode - General Elements */
body.light-mode .cursor {
    border-color: var(--color-accent);
    mix-blend-mode: normal;
}

body.light-mode .cursor-trail {
    background: var(--color-accent);
    opacity: 0.4;
}

body.light-mode .scroll-progress {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.8));
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Light Mode - Hero Section */
body.light-mode .hero-grid-pattern {
    opacity: 0.2;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
}

body.light-mode .hero-gradient-orb {
    opacity: 0.4;
}

body.light-mode .hero-mesh-gradient {
    opacity: 0.3;
}

body.light-mode .hero-shape {
    opacity: 0.2;
}

body.light-mode .hero-line {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.15), transparent);
}

body.light-mode .hero-ring {
    border-color: rgba(59, 130, 246, 0.15);
}

/* Light Mode - Cards and Surfaces */
body.light-mode .work-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(59, 130, 246, 0.15);
}

body.light-mode .work-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

body.light-mode .combined-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(245, 158, 11, 0.15);
}

body.light-mode .combined-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.15), 0 0 0 1px rgba(245, 158, 11, 0.1);
}

body.light-mode .about-feature-card,
body.light-mode .credential-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(99, 102, 241, 0.15);
}

body.light-mode .about-feature-card:hover,
body.light-mode .credential-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

body.light-mode .stat-item,
body.light-mode .company-tag {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(16, 185, 129, 0.15);
}

body.light-mode .stat-item:hover,
body.light-mode .company-tag:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

body.light-mode .contact-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(14, 165, 233, 0.15);
}

body.light-mode .contact-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.15), 0 0 0 1px rgba(14, 165, 233, 0.1);
}

/* Light Mode - Work Modal */
body.light-mode .work-modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
}

body.light-mode .work-modal-content {
    background: var(--color-surface);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .work-modal-close {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--color-text);
}

body.light-mode .work-modal-close:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Light Mode - Section Borders */
body.light-mode .section::before {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 50%, transparent 100%);
}

body.light-mode .section-about::before {
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.3) 50%, transparent 100%);
}

body.light-mode .section-work::before {
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.3) 50%, transparent 100%);
}

body.light-mode .section-experience::before {
    background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.3) 50%, transparent 100%);
}

body.light-mode .footer::before {
    background: linear-gradient(90deg, transparent 0%, rgba(14, 165, 233, 0.3) 50%, transparent 100%);
}

/* Light Mode - Section Backgrounds */
body.light-mode .section-about {
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(99, 102, 241, 0.04) 100%);
}

body.light-mode .section-work {
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(59, 130, 246, 0.04) 100%);
}

body.light-mode .section-combined {
    background: linear-gradient(180deg, transparent 0%, rgba(245, 158, 11, 0.04) 50%, transparent 100%);
}

body.light-mode .section-experience {
    background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.04) 50%, transparent 100%);
}

body.light-mode .footer {
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(14, 165, 233, 0.03) 100%);
    border-top-color: rgba(14, 165, 233, 0.2);
}

/* Light Mode - Publication Items */
body.light-mode .publication-item {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(16, 185, 129, 0.15);
}

body.light-mode .publication-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.15), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

/* Light Mode - Personal Images */
body.light-mode .personal-image-item {
    background: transparent;
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .image-family {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.2);
}

body.light-mode .personal-image-item:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 25px 80px rgba(99, 102, 241, 0.3), 0 0 0 4px rgba(99, 102, 241, 0.1);
}

body.light-mode .personal-image-item::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
}

body.light-mode .personal-image-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Light Mode - About Highlight */
body.light-mode .about-highlight {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(99, 102, 241, 0.2);
}

body.light-mode .about-highlight:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

body.light-mode .highlight-label {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
    color: var(--color-about);
}

/* Light Mode - Icon Backgrounds */
body.light-mode .feature-icon-wrapper,
body.light-mode .credential-icon {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

body.light-mode .contact-icon {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.2);
}

body.light-mode .about-feature-card:hover .feature-icon-wrapper,
body.light-mode .credential-item:hover .credential-icon {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

body.light-mode .contact-card:hover .contact-icon {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
}

/* Light Mode - Contact Icon Colors */
body.light-mode .contact-icon {
    color: var(--color-text);
}

body.light-mode .contact-icon svg {
    color: var(--color-text);
}

/* Light Mode - Enhanced Color Visibility */
body.light-mode .work-category,
body.light-mode .work-link {
    color: #3b82f6;
    opacity: 0.9;
}

body.light-mode .work-item:hover .work-category,
body.light-mode .work-item:hover .work-link {
    color: #3b82f6;
    opacity: 1;
}

body.light-mode .combined-card-title {
    color: var(--color-services);
}

body.light-mode .combined-card::before {
    background: linear-gradient(90deg, var(--color-services), rgba(217, 119, 6, 0.8));
}

body.light-mode .stat-number {
    background: linear-gradient(135deg, var(--color-experience), rgba(5, 150, 105, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .credential-title {
    color: var(--color-text);
}

body.light-mode .credential-description {
    color: var(--color-text-muted);
}

body.light-mode .about-orb {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}

body.light-mode .personal-image-item:hover .personal-image-overlay {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, transparent 50%, rgba(99, 102, 241, 0.15) 100%);
}

body.light-mode .highlight-label {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
    color: var(--color-about);
}

/* Light Mode - Scroll Arrow */
body.light-mode .scroll-arrow {
    color: var(--color-text);
    opacity: 0.6;
}

body.light-mode .scroll-arrow:hover {
    opacity: 1;
}

/* Light Mode - Hero Elements */
body.light-mode .hero-greeting,
body.light-mode .hero-title,
body.light-mode .hero-intro,
body.light-mode .hero-subtitle {
    color: var(--color-text);
}

body.light-mode .sparkle {
    background: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6), 0 0 20px rgba(59, 130, 246, 0.4);
}

body.light-mode .hero-ripple {
    border-color: rgba(59, 130, 246, 0.2);
}

body.light-mode .hero-ripple::before,
body.light-mode .hero-ripple::after {
    border-color: rgba(59, 130, 246, 0.15);
}

body.light-mode .hero-glow {
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

/* Light Mode - Section Titles */
body.light-mode .section-title-text {
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-muted) 50%, var(--color-text) 100%);
    background-size: 200% auto;
}

body.light-mode .section-work .section-title-text {
    background: linear-gradient(135deg, var(--color-text) 0%, #3b82f6 50%, var(--color-text) 100%);
    background-size: 200% auto;
}

body.light-mode .section-combined .section-title-text {
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-services) 50%, var(--color-text) 100%);
    background-size: 200% auto;
}

body.light-mode .section-experience .section-title-text {
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-experience) 50%, var(--color-text) 100%);
    background-size: 200% auto;
}

body.light-mode .section-about .section-title-text {
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-about) 50%, var(--color-text) 100%);
    background-size: 200% auto;
}

body.light-mode .section-title::before {
    color: var(--color-text-muted);
    opacity: 0.4;
}

body.light-mode .section-title::after {
    opacity: 0.8;
}

body.light-mode .section-work .section-title::after {
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

body.light-mode .section-combined .section-title::after {
    background: linear-gradient(90deg, transparent, var(--color-services), transparent);
}

body.light-mode .section-experience .section-title::after {
    background: linear-gradient(90deg, transparent, var(--color-experience), transparent);
}

body.light-mode .section-about .section-title::after {
    background: linear-gradient(90deg, transparent, var(--color-about), transparent);
}

body.light-mode .section-title-wrapper::before,
body.light-mode .section-title-wrapper::after {
    opacity: 0.4;
}

body.light-mode .section-work .section-title-wrapper::before,
body.light-mode .section-work .section-title-wrapper::after {
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    opacity: 0.5;
}

body.light-mode .section-combined .section-title-wrapper::before,
body.light-mode .section-combined .section-title-wrapper::after {
    background: linear-gradient(90deg, transparent, var(--color-services), transparent);
    opacity: 0.5;
}

body.light-mode .section-experience .section-title-wrapper::before,
body.light-mode .section-experience .section-title-wrapper::after {
    background: linear-gradient(90deg, transparent, var(--color-experience), transparent);
    opacity: 0.5;
}

body.light-mode .section-about .section-title-wrapper::before,
body.light-mode .section-about .section-title-wrapper::after {
    background: linear-gradient(90deg, transparent, var(--color-about), transparent);
    opacity: 0.5;
}

/* Light Mode - Work Modal Main */
body.light-mode .work-modal-main {
    background: var(--color-surface);
    color: var(--color-text);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 1), rgba(37, 99, 235, 1));
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    pointer-events: none;
}

@media (max-width: 767px) {
    body {
        cursor: auto;
    }
    
    /* Simplify animations on mobile for performance */
    .hero-sparkles {
        display: none;
    }
    
    .hero-ripple {
        display: none;
    }
    
    .hero-glow {
        opacity: 0.2;
    }
    
    .hero-greeting-wrapper {
        transform: none !important;
    }
    
    .hero-greeting,
    .hero-intro,
    .hero-subtitle {
        transform: none !important;
    }
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor,
body:has(.work-item:hover) .cursor,
body:has(.scroll-arrow:hover) .cursor {
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--color-accent);
    transform: translate(-50%, -50%) scale(1.2);
}

/* Animated Section Dividers */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.3) 50%, transparent 100%);
    transition: width 1s ease;
}

.section.visible::before {
    width: 80%;
}

/* Enhanced Scroll Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: float 30s ease-in-out infinite;
    will-change: transform, opacity;
    transition: transform 0.1s ease-out;
}

.orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 1) 0%, rgba(59, 130, 246, 0.3) 40%, rgba(59, 130, 246, 0) 70%);
    top: -400px;
    left: -400px;
    animation-delay: 0s;
    animation-name: float, pulse;
    animation-duration: 30s, 8s;
    animation-iteration-count: infinite, infinite;
}

.orb-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37, 99, 235, 1) 0%, rgba(37, 99, 235, 0.3) 40%, rgba(37, 99, 235, 0) 70%);
    bottom: -300px;
    right: -300px;
    animation-delay: -10s;
    animation-name: float, pulse;
    animation-duration: 35s, 10s;
    animation-iteration-count: infinite, infinite;
}

.orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.9) 0%, rgba(99, 102, 241, 0.3) 40%, rgba(99, 102, 241, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -20s;
    animation-name: float, pulse;
    animation-duration: 40s, 12s;
    animation-iteration-count: infinite, infinite;
}

.orb-4 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, rgba(139, 92, 246, 0.2) 40%, rgba(139, 92, 246, 0) 70%);
    top: 20%;
    right: 10%;
    animation-delay: -15s;
    animation-name: float, pulse;
    animation-duration: 28s, 9s;
    animation-iteration-count: infinite, infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    25% { 
        transform: translate(80px, -80px) scale(1.2) rotate(90deg);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-60px, 60px) scale(0.85) rotate(180deg);
        opacity: 0.4;
    }
    75% { 
        transform: translate(-80px, -60px) scale(1.1) rotate(270deg);
        opacity: 0.7;
    }
}

@keyframes pulse {
    0%, 100% {
        filter: blur(120px);
        opacity: 0.6;
    }
    50% {
        filter: blur(140px);
        opacity: 0.8;
    }
}

/* Mesh Gradient Background */
.hero-mesh-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(at 0% 100%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
    opacity: 0.6;
    animation: meshMove 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes meshMove {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
    }
}

.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 20%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 20%, transparent 85%);
    animation: gridPulse 12s ease-in-out infinite, gridMove 20s linear infinite;
    z-index: 1;
}

@keyframes gridPulse {
    0%, 100% { 
        opacity: 0.4;
        background-size: 80px 80px;
    }
    50% { 
        opacity: 0.7;
        background-size: 90px 90px;
    }
}

@keyframes gridMove {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 20px);
    }
}

/* Enhanced Header Background Elements */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: shapeFloat 25s ease-in-out infinite;
    will-change: transform;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.7) 0%, rgba(99, 102, 241, 0.2) 40%, transparent 70%);
    top: 15%;
    left: 5%;
    animation-delay: 0s;
    animation-name: shapeFloat, shapeRotate;
    animation-duration: 25s, 15s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, rgba(139, 92, 246, 0.2) 40%, transparent 70%);
    bottom: 25%;
    right: 10%;
    animation-delay: -8s;
    animation-name: shapeFloat, shapeRotate;
    animation-duration: 30s, 18s;
}

.shape-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, rgba(59, 130, 246, 0.2) 40%, transparent 70%);
    top: 55%;
    left: 45%;
    animation-delay: -16s;
    animation-name: shapeFloat, shapeRotate;
    animation-duration: 28s, 20s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.5) 0%, rgba(37, 99, 235, 0.2) 40%, transparent 70%);
    top: 80%;
    right: 30%;
    animation-delay: -12s;
    animation-name: shapeFloat, shapeRotate;
    animation-duration: 32s, 16s;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(50px, -60px) scale(1.15);
        opacity: 0.6;
    }
    50% {
        transform: translate(-40px, 50px) scale(0.9);
        opacity: 0.3;
    }
    75% {
        transform: translate(-60px, -40px) scale(1.05);
        opacity: 0.5;
    }
}

@keyframes shapeRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
}

/* Animated Lines */
.hero-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    height: 1px;
    animation: lineMove 15s linear infinite;
}

.line-1 {
    width: 200px;
    top: 20%;
    left: -200px;
    animation-delay: 0s;
    transform: rotate(25deg);
}

.line-2 {
    width: 300px;
    top: 60%;
    right: -300px;
    animation-delay: -5s;
    transform: rotate(-15deg);
}

.line-3 {
    width: 250px;
    top: 80%;
    left: 30%;
    animation-delay: -10s;
    transform: rotate(45deg);
}

@keyframes lineMove {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 200px)) translateY(-100px);
        opacity: 0;
    }
}

/* Animated Rings */
.hero-rings {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-ring {
    position: absolute;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    animation: ringPulse 8s ease-in-out infinite;
}

.ring-1 {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0s;
}

.ring-2 {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -4s;
}

@keyframes ringPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
        border-color: rgba(59, 130, 246, 0.2);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
        border-color: rgba(59, 130, 246, 0.4);
    }
}

.hero-noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.hero-container {
    max-width: var(--max-width);
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 var(--spacing-md);
}

.hero-greeting-wrapper {
    position: relative;
    margin-bottom: var(--spacing-lg);
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.1s both;
    transform-style: preserve-3d;
}

/* Hero Profile Image */
.hero-profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border: 3px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

/* Animated Sparkles */
.hero-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(59, 130, 246, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.6);
    animation: sparkleFloat 4s ease-in-out infinite;
}

.sparkle-1 {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 3s;
}

.sparkle-2 {
    top: 20%;
    right: 20%;
    animation-delay: 0.5s;
    animation-duration: 3.5s;
}

.sparkle-3 {
    bottom: 15%;
    left: 25%;
    animation-delay: 1s;
    animation-duration: 4s;
}

.sparkle-4 {
    bottom: 25%;
    right: 15%;
    animation-delay: 1.5s;
    animation-duration: 3.2s;
}

.sparkle-5 {
    top: 50%;
    left: 5%;
    animation-delay: 0.8s;
    animation-duration: 3.8s;
}

.sparkle-6 {
    top: 60%;
    right: 5%;
    animation-delay: 1.2s;
    animation-duration: 4.2s;
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -30px) scale(1.5);
        opacity: 1;
    }
    50% {
        transform: translate(-15px, 20px) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translate(25px, 15px) scale(1.2);
        opacity: 0.9;
    }
}

/* Ripple Effect */
.hero-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: ripple 3s ease-out infinite;
    pointer-events: none;
    z-index: 1;
}

.hero-ripple::before,
.hero-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    animation: ripple 3s ease-out infinite;
}

.hero-ripple::before {
    animation-delay: 1s;
}

.hero-ripple::after {
    animation-delay: 2s;
}

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

/* Breathing Glow Effect */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: breathe 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

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

.hero-greeting {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-text) 0%, rgba(59, 130, 246, 0.8) 50%, var(--color-text) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    animation: fadeInUp 1s ease-out 0.1s both, textShimmer 8s ease-in-out infinite;
    text-transform: none;
    line-height: 1.1;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.2));
    transition: transform 0.1s ease-out, filter 0.3s ease;
}

.hero-greeting-wrapper:hover .hero-greeting {
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.5));
}

.hero-greeting-wrapper:hover .hero-glow {
    animation-duration: 2s;
    opacity: 0.8;
}

.hero-greeting-wrapper:hover .sparkle {
    animation-duration: 2s;
    opacity: 1;
}

.hero-intro,
.hero-subtitle {
    transition: transform 0.1s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.2));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.4));
    }
}

.hero-title {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    animation: titleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    letter-spacing: -0.04em;
}

.hero-title-main,
.hero-title-last {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-muted) 40%, var(--color-text) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 8s linear infinite;
}

.hero-title-main {
    animation-delay: 0s;
}

.hero-title-last {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(37, 99, 235, 1) 50%, rgba(59, 130, 246, 1) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShimmer 6s linear infinite;
    position: relative;
}

.hero-title-last::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 1) 0%, rgba(37, 99, 235, 1) 50%, rgba(59, 130, 246, 1) 100%);
    background-size: 200% auto;
    opacity: 0.5;
    animation: gradientShimmer 6s linear infinite;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes textShimmer {
    0%, 100% { 
        background-position: 0% center;
        opacity: 1;
    }
    50% { 
        background-position: 100% center;
        opacity: 0.95;
    }
}

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

.hero-tagline {
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.tagline-text {
    display: inline-block;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    padding: var(--spacing-xs) var(--spacing-md);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    background: rgba(59, 130, 246, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tagline-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

.hero-intro {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--color-text);
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto var(--spacing-md);
    line-height: 1.7;
    letter-spacing: -0.01em;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.75vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.7s both;
    font-weight: 300;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    cursor: pointer;
}

.scroll-arrow:hover {
    color: rgba(59, 130, 246, 1);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-4px);
}

.scroll-arrow svg {
    width: 20px;
    height: 20px;
}

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

/* Sections */
.section {
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    background: var(--color-bg);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: -0.02em;
    line-height: 1.1;
    padding: var(--spacing-sm) 0 var(--spacing-md);
    transition: transform 0.3s ease;
    z-index: 5;
}

.section-title:hover {
    transform: translateY(-2px);
}

.section-title-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    z-index: 5;
}

.section-title-text {
    position: relative;
    z-index: 10;
    color: var(--color-text) !important;
    display: inline-block;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
    background: none !important;
    -webkit-text-fill-color: var(--color-text) !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

/* Gradient text effect disabled - using solid color for visibility */

/* Section-specific title colors - using solid colors for visibility */
.section-work .section-title-text {
    color: var(--color-text) !important;
}

.section-combined .section-title-text {
    color: var(--color-text) !important;
}

.section-experience .section-title-text {
    color: var(--color-text) !important;
}

.section-about .section-title-text {
    color: var(--color-text) !important;
}

.footer .section-title-text {
    color: var(--color-text) !important;
}

.footer .section-title::after {
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.4), transparent);
}

.footer .section-title-wrapper::before,
.footer .section-title-wrapper::after {
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.3), transparent);
    opacity: 0.4;
}

/* Decorative underline */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    border-radius: 2px;
    animation: underlineExpand 1.5s ease-out 0.5s forwards;
    z-index: 1;
}

.section-work .section-title::after {
    background: linear-gradient(90deg, transparent, var(--color-work), transparent);
}

.section-combined .section-title::after {
    background: linear-gradient(90deg, transparent, var(--color-services), transparent);
}

.section-experience .section-title::after {
    background: linear-gradient(90deg, transparent, var(--color-experience), transparent);
}

.section-about .section-title::after {
    background: linear-gradient(90deg, transparent, var(--color-about), transparent);
}

/* Decorative dots */
.section-title::before {
    content: '• • •';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.4;
    letter-spacing: 0.5em;
    animation: dotPulse 2s ease-in-out infinite;
    z-index: 1;
}

/* Side accent lines */
.section-title-wrapper::before,
.section-title-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-text-muted), transparent);
    opacity: 0.3;
    z-index: 1;
}

.section-title-wrapper::before {
    left: 0;
    transform: translateY(-50%);
}

.section-title-wrapper::after {
    right: 0;
    transform: translateY(-50%);
}

.section-work .section-title-wrapper::before,
.section-work .section-title-wrapper::after {
    background: linear-gradient(90deg, transparent, var(--color-work), transparent);
    opacity: 0.4;
}

.section-combined .section-title-wrapper::before,
.section-combined .section-title-wrapper::after {
    background: linear-gradient(90deg, transparent, var(--color-services), transparent);
    opacity: 0.4;
}

.section-experience .section-title-wrapper::before,
.section-experience .section-title-wrapper::after {
    background: linear-gradient(90deg, transparent, var(--color-experience), transparent);
    opacity: 0.4;
}

.section-about .section-title-wrapper::before,
.section-about .section-title-wrapper::after {
    background: linear-gradient(90deg, transparent, var(--color-about), transparent);
    opacity: 0.4;
}

@keyframes underlineExpand {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 120px;
        opacity: 1;
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.1);
    }
}

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

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
    }
    50% {
        filter: drop-shadow(0 4px 20px rgba(59, 130, 246, 0.3));
    }
}

/* Responsive adjustments for section titles */
@media (max-width: 768px) {
    .section-title-wrapper::before,
    .section-title-wrapper::after {
        width: 30px;
    }
    
    .section-title::after {
        height: 2px;
    }
    
    .section-title::before {
        top: -15px;
        font-size: 0.625rem;
    }
}

/* About Section */
.section-about {
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(99, 102, 241, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.about-orb {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: aboutOrbFloat 20s ease-in-out infinite;
}

@keyframes aboutOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.2); }
}

.section-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.about-intro {
    font-size: clamp(1rem, 1.75vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 900px;
    margin: var(--spacing-md) auto 0;
    line-height: 1.7;
    font-weight: 400;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.about-feature-card {
    background: rgba(26, 26, 36, 0.6);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 24px;
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.about-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.about-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent), var(--color-accent-dark));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition-base);
}

.about-feature-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2), 0 0 0 1px rgba(16, 185, 129, 0.1);
    background: rgba(26, 26, 36, 0.9);
}

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

.about-feature-card:hover::after {
    transform: scaleY(1);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-about);
    transition: all var(--transition-base);
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    z-index: 1;
}

.about-feature-card:hover .feature-icon-wrapper {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
}

.feature-icon {
    width: 32px;
    height: 32px;
}

.feature-heading {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

.feature-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.about-highlight {
    background: rgba(16, 185, 129, 0.08);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 24px;
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
    opacity: 0.6;
}

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

.highlight-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-about);
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
}

.highlight-text {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.6;
    letter-spacing: -0.01em;
    margin: 0;
}

/* Credentials Section */
.about-credentials {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.credential-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    background: rgba(26, 26, 36, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.credential-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.credential-item:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.credential-item:hover::before {
    opacity: 1;
}

.credential-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--color-about);
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
}

.credential-item:hover .credential-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.15));
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.credential-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.credential-title {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.01em;
}

.credential-description {
    font-size: clamp(0.9375rem, 1.25vw, 1rem);
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

/* Personal Images Section */
.about-personal {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--color-bg);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.about-personal .section-title-wrapper {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.personal-images-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -40px;
    margin-top: var(--spacing-lg);
    position: relative;
    padding: var(--spacing-lg) 0;
    min-height: 400px;
}

.personal-image-item {
    border-radius: var(--border-radius);
    overflow: visible;
    background: transparent;
    border: 3px solid rgba(99, 102, 241, 0.2);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    position: relative;
    width: 320px;
    height: 400px;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.image-mountains {
    transform: translateX(0) rotate(-5deg);
    z-index: 1;
}

.image-family {
    transform: translateX(-40px) translateY(0) rotate(0deg) scale(1.1);
    z-index: 3;
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.3);
}

.image-ocean {
    transform: translateX(-80px) rotate(5deg);
    z-index: 2;
}

.personal-image-item:hover {
    z-index: 10 !important;
    transform: translateY(-8px) scale(1.05) rotate(0deg) !important;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.3), 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.image-mountains:hover {
    transform: translateX(10px) translateY(-8px) scale(1.05) rotate(-3deg) !important;
}

.image-family:hover {
    transform: translateX(-40px) translateY(-8px) scale(1.08) rotate(0deg) !important;
}

.image-ocean:hover {
    transform: translateX(-80px) translateY(-8px) scale(1.05) rotate(3deg) !important;
}

.personal-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--color-surface);
    border-radius: calc(var(--border-radius) - 3px);
}

.personal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
    filter: brightness(0.9) saturate(1.1) contrast(1.05);
}

.personal-image-item:hover .personal-image {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1.05) saturate(1.15) contrast(1.05);
}

.personal-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%, rgba(99, 102, 241, 0.1) 100%);
    transition: all 0.8s ease;
    pointer-events: none;
    opacity: 0;
    border-radius: calc(var(--border-radius) - 3px);
}

.personal-image-item:hover .personal-image-overlay {
    opacity: 0.6;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, transparent 50%, rgba(99, 102, 241, 0.15) 100%);
}

/* Glow effect on hover */
.personal-image-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: -1;
    filter: blur(20px);
}

.personal-image-item:hover::before {
    opacity: 0.6;
}

.content-grid {
    display: grid;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.lead {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.content-grid p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Combined Section */
.section-combined {
    background: linear-gradient(180deg, transparent 0%, rgba(245, 158, 11, 0.03) 50%, transparent 100%);
    position: relative;
}

.combined-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.combined-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.combined-card {
    background: rgba(26, 26, 36, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: var(--spacing-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.combined-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-services), rgba(217, 119, 6, 1));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.combined-card:hover {
    transform: translateY(-4px) rotateX(2deg);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.15), 0 0 0 1px rgba(245, 158, 11, 0.1);
    background: rgba(26, 26, 36, 0.8);
}

.combined-card:hover::before {
    transform: scaleX(1);
}

.combined-card-title {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-services);
    text-align: left;
}

.combined-card-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.combined-item {
    padding: var(--spacing-sm);
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.02);
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: all var(--transition-base);
}

.combined-item:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateX(4px);
}

.combined-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.combined-item p {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.875rem;
    margin: 0;
}

/* Work Section (Full Width) */
.section-work {
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(139, 92, 246, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.section-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--spacing-md);
    width: 100%;
}

.work-item {
    width: 100%;
    min-height: 400px;
    background: rgba(26, 26, 36, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: var(--border-radius);
    cursor: pointer;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.work-item:hover::before {
    opacity: 1;
}

.work-item:hover {
    transform: translateY(-8px) rotateX(2deg);
    z-index: 10;
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.1);
    background: rgba(26, 26, 36, 0.9);
}

.work-item-content {
    padding: var(--spacing-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.work-category {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-work);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
}

.work-title {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    line-height: 1.2;
}

.work-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.work-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-work);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: transform var(--transition-base);
}

.work-item:hover .work-link {
    transform: translateX(8px);
    color: var(--color-work);
}

/* Work Modal */
.work-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.work-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.work-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: auto;
}

.work-modal.active .work-modal-backdrop {
    opacity: 1;
}

.work-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    background: rgba(26, 26, 36, 0.95);
    backdrop-filter: blur(40px);
    border: none;
    border-radius: 0;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.work-modal.active .work-modal-content {
    transform: scale(1) translateY(0);
}

.work-modal-close {
    position: absolute;
    top: max(var(--spacing-md), env(safe-area-inset-top));
    right: max(var(--spacing-md), env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    transition: all var(--transition-base);
    z-index: 10;
    pointer-events: auto;
    touch-action: manipulation;
}

.work-modal-close:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-primary);
    transform: rotate(90deg);
}

.work-modal-body {
    padding: var(--spacing-xl);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.work-modal-header {
    margin-bottom: var(--spacing-lg);
}

.work-modal-category {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
}

.work-modal-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    line-height: 1.2;
}

.work-modal-main {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
}

.work-modal-main p {
    margin-bottom: var(--spacing-md);
}

.work-modal-main a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color var(--transition-base);
}

.work-modal-main a:hover {
    color: var(--color-primary-dark);
}

.work-modal-main ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
    list-style-position: outside;
}

.work-modal-main li {
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-sm);
}

.work-modal-main img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: var(--spacing-md) 0;
}

.work-modal-subheading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.25rem;
    padding-bottom: 0;
    color: var(--color-text);
    letter-spacing: -0.01em;
    width: 100%;
}

.work-modal-append {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid color-mix(in srgb, var(--color-border) 50%, transparent);
}

.work-modal-append .work-modal-subheading + .youtube-videos-grid,
.work-modal-append .work-modal-subheading + .work-images {
    margin-top: var(--spacing-md);
}

.work-images {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.work-images img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.work-images--compact {
    align-items: center;
}
.work-images img.work-image--narrow {
    width: auto;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.work-images--compact img {
    width: auto;
    max-width: 360px;
}
.work-images--compact .work-image--full {
    width: 100%;
    max-width: 100%;
}

/* Embedded YouTube in modal (e.g. InsideDesk holiday card) */
.work-video-embed {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}
.work-video-embed-label {
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--color-text);
}
.work-video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.02);
}
.work-video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* YouTube Videos in Modal */
.youtube-loading {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-text-muted);
}

.youtube-videos-container {
    width: 100%;
}

.youtube-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.youtube-video-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.youtube-video-item:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.youtube-video-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.youtube-video-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.youtube-video-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
}

.youtube-video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    color: #ff0000;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: transform var(--transition-base), color 0.2s;
}

.youtube-video-item:hover .youtube-play-icon {
    transform: translate(-50%, -50%) scale(1.08);
    color: #cc0000;
}

.youtube-play-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.youtube-videos-description {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
}

.youtube-videos-description p {
    margin-bottom: var(--spacing-md);
}

.youtube-videos-description ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.youtube-videos-description li {
    margin-bottom: var(--spacing-sm);
}

body.light-mode .youtube-videos-description {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .youtube-videos-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .youtube-videos-grid {
        grid-template-columns: 1fr;
    }
}

/* Experience Section */
.section-experience {
    background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.05) 50%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.section-experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.4) 50%, transparent 100%);
}

.section-experience::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.experience-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.experience-title {
    margin-bottom: var(--spacing-sm);
}

.experience-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--color-text-muted);
    font-weight: 400;
}

.experience-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.stat-item {
    background: rgba(26, 26, 36, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.2);
    background: rgba(26, 26, 36, 0.8);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-experience), rgba(5, 150, 105, 1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.company-tag {
    background: rgba(26, 26, 36, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.company-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.5s ease;
}

.company-tag:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    background: rgba(26, 26, 36, 0.9);
}

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

.company-logo {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all var(--transition-base);
    display: block;
}

.company-tag:hover .company-logo {
    filter: brightness(0) invert(1);
    opacity: 1;
}

body.light-mode .company-logo {
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.7;
}

body.light-mode .company-tag:hover .company-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.publications-section {
    margin-top: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.publications-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-accent);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.publication-item {
    background: rgba(16, 185, 129, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.publication-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-experience), rgba(5, 150, 105, 1));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.publication-item:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.1);
}

.publication-item:hover::before {
    transform: scaleX(1);
}

.publication-logo {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all var(--transition-base);
    display: block;
}

.publication-item:hover .publication-logo {
    filter: brightness(0) invert(1);
    opacity: 1;
}

body.light-mode .publication-logo {
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.7;
}

body.light-mode .publication-item:hover .publication-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* Cybersecurity Section */
.section-cybersecurity {
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(20, 184, 166, 0.04) 100%);
    position: relative;
    overflow: hidden;
}

.cybersecurity-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.cybersecurity-orb {
    position: absolute;
    top: -80px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: cybersecurityOrbFloat 25s ease-in-out infinite;
}

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

.section-cybersecurity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(20, 184, 166, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.section-cybersecurity .section-title::after {
    background: linear-gradient(90deg, transparent, var(--color-cybersecurity), transparent);
}

.section-cybersecurity .section-title-wrapper::before,
.section-cybersecurity .section-title-wrapper::after {
    background: linear-gradient(90deg, transparent, var(--color-cybersecurity), transparent);
    opacity: 0.4;
}

.section-cybersecurity .section-title-text {
    color: var(--color-text) !important;
}

.cybersecurity-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.cybersecurity-intro {
    font-size: clamp(1rem, 1.75vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 720px;
    margin: var(--spacing-md) auto 0;
    line-height: 1.7;
}

.cybersecurity-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
}

.cybersecurity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
    font-weight: 500;
    color: var(--color-text);
    background: rgba(26, 26, 36, 0.6);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 9999px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    box-sizing: border-box;
    touch-action: manipulation;
}

.cybersecurity-badge:hover {
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.4);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
}

/* Light Mode - Cybersecurity */
body.light-mode .section-cybersecurity {
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(20, 184, 166, 0.05) 100%);
}

body.light-mode .section-cybersecurity::before {
    background: linear-gradient(90deg, transparent 0%, rgba(20, 184, 166, 0.3) 50%, transparent 100%);
}

body.light-mode .cybersecurity-orb {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
}

body.light-mode .cybersecurity-badge {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(20, 184, 166, 0.25);
    color: var(--color-text);
}

body.light-mode .cybersecurity-badge:hover {
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.45);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

body.light-mode .section-cybersecurity .section-title-text {
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-cybersecurity) 50%, var(--color-text) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .section-cybersecurity .section-title::after {
    background: linear-gradient(90deg, transparent, var(--color-cybersecurity), transparent);
}

body.light-mode .section-cybersecurity .section-title-wrapper::before,
body.light-mode .section-cybersecurity .section-title-wrapper::after {
    background: linear-gradient(90deg, transparent, var(--color-cybersecurity), transparent);
    opacity: 0.5;
}

/* Contact Section */
.section-contact {
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(14, 165, 233, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.contact-orb {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: contactOrbFloat 20s ease-in-out infinite;
}

@keyframes contactOrbFloat {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
    50% { transform: translateX(-50%) translateY(-50px) scale(1.2); }
}

.section-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(14, 165, 233, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.contact-intro {
    font-size: clamp(1rem, 1.75vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 900px;
    margin: var(--spacing-md) auto 0;
    line-height: 1.7;
    font-weight: 400;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.section-contact .section-title::after {
    background: linear-gradient(90deg, transparent, var(--color-footer), transparent);
}

.section-contact .section-title-wrapper::before,
.section-contact .section-title-wrapper::after {
    background: linear-gradient(90deg, transparent, var(--color-footer), transparent);
    opacity: 0.4;
}

/* Light Mode - Contact Section */
body.light-mode .section-contact {
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(14, 165, 233, 0.04) 100%);
}

body.light-mode .section-contact::before {
    background: linear-gradient(90deg, transparent 0%, rgba(14, 165, 233, 0.3) 50%, transparent 100%);
}

body.light-mode .contact-orb {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
}

/* Footer */
.footer {
    padding: var(--spacing-xl) var(--spacing-md);
    border-top: 1px solid rgba(14, 165, 233, 0.2);
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(14, 165, 233, 0.02) 100%);
    position: relative;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.footer-orb {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: footerPulse 8s ease-in-out infinite;
}

@keyframes footerPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateX(-50%) scale(1.2); opacity: 0.8; }
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(14, 165, 233, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-footer) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.footer-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-card {
    background: rgba(26, 26, 36, 0.6);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 24px;
    padding: var(--spacing-md);
    text-decoration: none;
    color: var(--color-text);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transform-style: preserve-3d;
    perspective: 1000px;
    min-height: 120px;
}

.contact-card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.contact-card:hover .contact-card-background {
    opacity: 1;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.5), rgba(2, 132, 199, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

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

.contact-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.3), 0 0 0 1px rgba(14, 165, 233, 0.2);
    background: rgba(26, 26, 36, 0.9);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.contact-card:hover .contact-icon {
    background: rgba(14, 165, 233, 0.2);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
    border-color: rgba(14, 165, 233, 0.4);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    transition: color var(--transition-base);
}

.contact-card:hover .contact-label {
    color: var(--color-footer);
}

.contact-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    transition: color var(--transition-base);
    letter-spacing: -0.01em;
}

.contact-card:hover .contact-value {
    color: var(--color-text);
}

.contact-arrow {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    transition: all var(--transition-base);
    position: relative;
    z-index: 1;
    opacity: 0.5;
}

.contact-card:hover .contact-arrow {
    transform: translateX(8px);
    color: var(--color-footer);
    opacity: 1;
}

.footer-copyright {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    position: relative;
    z-index: 1;
}

/* Responsive Design */

/* Tablet and below */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-container {
        padding: 0 var(--spacing-md);
    }
    
    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    }
    
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Ensure Work and all sections visible on tablet (override JS hide-until-intersect) */
    .section,
    .section-work,
    .feature-card,
    .process-item,
    .audience-card {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

/* iPad (768px–1024px): optimized layout */
@media (min-width: 768px) and (max-width: 1024px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .work-item {
        min-height: 260px;
    }
    
    .work-modal-content {
        max-width: 90vw;
        max-height: 90vh;
        height: auto;
        border-radius: var(--border-radius);
        margin: auto;
    }
    
    .work-modal-body {
        padding: var(--spacing-lg);
        max-height: calc(90vh - 120px);
    }
    
    .work-modal-close {
        top: max(var(--spacing-sm), env(safe-area-inset-top));
        right: max(var(--spacing-sm), env(safe-area-inset-right));
    }
    
    .section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .credentials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .experience-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
    
    .youtube-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Cybersecurity – tablet */
    .section-cybersecurity .container {
        padding-left: max(var(--spacing-md), env(safe-area-inset-left));
        padding-right: max(var(--spacing-md), env(safe-area-inset-right));
    }
    
    .cybersecurity-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .cybersecurity-intro {
        font-size: clamp(1rem, 2vw, 1.125rem);
    }
    
    .cybersecurity-badges {
        gap: var(--spacing-sm);
    }
    
    .cybersecurity-badge {
        padding: 0.45rem 0.9rem;
        font-size: 0.875rem;
    }
}

/* Wide screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 var(--spacing-lg);
    }
    
    .section {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .section-work .container {
        max-width: 1400px;
    }
    
    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
        gap: var(--spacing-lg);
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        padding: 0 var(--spacing-xl);
    }
    
    .section {
        padding: var(--spacing-xl) var(--spacing-xl);
    }
    
    .section-work .container {
        max-width: 1600px;
    }
    
    .work-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
        gap: var(--spacing-xl);
    }
}

/* Mobile */
@media (max-width: 768px) {
    html {
        font-size: 16px;
        /* Use native document scroll; avoid overflow-y: auto to prevent "stuck" scroll on iOS */
        overflow-y: visible;
        overflow-x: clip;
        -webkit-overflow-scrolling: touch;
        /* Immediate scroll response; smooth can make touch feel stuck until it "kicks in" */
        scroll-behavior: auto;
    }
    
    body {
        overflow-y: visible;
        overflow-x: clip;
        min-height: 100vh;
        min-height: 100dvh;
        min-height: -webkit-fill-available;
        touch-action: pan-y;
    }
    
    main {
        min-height: 0;
    }
    
    .theme-toggle {
        bottom: max(var(--spacing-sm), env(safe-area-inset-bottom));
        right: max(var(--spacing-sm), env(safe-area-inset-right));
        width: 44px;
        height: 44px;
    }
    
    .theme-toggle-icon {
        width: 18px;
        height: 18px;
    }
    
    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
        min-height: 90vh;
    }
    
    .hero-container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-greeting-wrapper {
        margin-bottom: var(--spacing-md);
    }
    
    .hero-profile-image {
        width: 120px;
        height: 120px;
        margin-bottom: 1.5rem;
    }
    
    .hero-greeting {
        font-size: clamp(2.5rem, 10vw, 4rem);
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .hero-intro {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9375rem, 3.5vw, 1.125rem);
    }
    
    .hero-scroll-indicator {
        bottom: var(--spacing-md);
    }
    
    .section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .section-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
        margin-bottom: var(--spacing-md);
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .combined-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .combined-card-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
    
    .experience-stats {
        grid-template-columns: 1fr;
    }
    
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .publications-grid {
        grid-template-columns: 1fr;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }
    
    .section-work .container {
        min-width: 0;
        overflow-x: hidden;
    }
    
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .credential-item {
        padding: var(--spacing-md);
        align-items: center;
        text-align: center;
    }
    
    .credential-icon {
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-credentials {
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-lg);
    }
    
    .about-personal {
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-lg);
    }
    
    .personal-images-grid {
        flex-direction: column;
        gap: var(--spacing-md);
        min-height: auto;
    }
    
    .personal-image-item {
        width: 100%;
        max-width: 320px;
        height: 300px;
        transform: none !important;
        margin: 0 auto;
    }
    
    .image-mountains,
    .image-family,
    .image-ocean {
        transform: none !important;
    }
    
    .personal-image-item:hover {
        transform: translateY(-10px) scale(1.05) !important;
    }
    
    .personal-image-wrapper {
        height: 100%;
    }
    
    .work-item:nth-child(even) {
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .work-item:nth-child(1) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .work-modal-content {
        width: 100%;
        height: 100vh;
    }
    
    .work-modal-close {
        top: 60px;
        right: var(--spacing-sm);
        width: 40px;
        height: 40px;
    }
    
    .work-modal-body {
        padding: var(--spacing-md);
    }
    
    .work-modal-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .work-modal-main {
        font-size: 1rem;
    }
    
    .company-logo {
        max-height: 40px;
    }
    
    .publication-logo {
        max-height: 40px;
    }
    
    .content-grid {
        gap: var(--spacing-sm);
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .about-highlight {
        padding: var(--spacing-md);
    }
    
    .footer {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .footer-contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .contact-card {
        min-height: 100px;
        padding: var(--spacing-sm);
        gap: var(--spacing-xs);
    }
    
    .contact-icon {
        width: 56px;
        height: 56px;
    }
    
    .contact-value {
        font-size: 1rem;
    }
    
    .work-images img {
        width: 100%;
        max-width: 100%;
    }
    .work-images img.work-image--narrow {
        max-width: 280px;
    }
    .work-images--compact img {
        width: auto;
        max-width: 280px;
    }
    .work-images--compact .work-image--full {
        width: 100%;
        max-width: 100%;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .combined-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .combined-card-title {
        font-size: clamp(1.125rem, 4vw, 1.5rem);
    }
    
    .combined-item-title {
        font-size: clamp(1rem, 3.5vw, 1.125rem);
    }
    
    .experience-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .experience-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .stat-number {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .about-header {
        margin-bottom: var(--spacing-md);
    }
    
    .about-intro {
        font-size: clamp(0.9375rem, 3.5vw, 1.125rem);
    }
    
    /* Cybersecurity – phone */
    .section-cybersecurity .container {
        padding-left: max(var(--spacing-sm), env(safe-area-inset-left));
        padding-right: max(var(--spacing-sm), env(safe-area-inset-right));
    }
    
    .section-cybersecurity {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }
    
    .cybersecurity-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .cybersecurity-intro {
        font-size: clamp(0.9375rem, 3.5vw, 1.125rem);
        line-height: 1.65;
        padding: 0 var(--spacing-xs);
    }
    
    .cybersecurity-badges {
        gap: 0.5rem;
        padding: 0;
    }
    
    .cybersecurity-badge {
        padding: 0.5rem 0.75rem;
        font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
        min-height: 44px;
        white-space: normal;
        text-align: center;
        max-width: 100%;
        line-height: 1.35;
    }
    
    .section-cybersecurity .cybersecurity-orb {
        width: 220px;
        height: 220px;
        top: -40px;
        right: -60px;
        filter: blur(50px);
        animation: none;
        opacity: 0.8;
    }
    
    .contact-header {
        margin-bottom: var(--spacing-md);
    }
    
    .contact-intro {
        font-size: clamp(0.9375rem, 3.5vw, 1.125rem);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .credential-title {
        font-size: clamp(1rem, 3vw, 1.125rem);
    }
    
    .credential-description {
        font-size: clamp(0.875rem, 2.5vw, 1rem);
    }
    
    .personal-image-title {
        font-size: clamp(1.125rem, 4vw, 1.5rem);
    }
    
    .personal-image-text {
        font-size: clamp(0.875rem, 3vw, 1rem);
    }
    
    .footer-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .work-modal-header {
        padding: var(--spacing-md);
    }
    
    .work-modal-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .work-modal-close {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        top: max(60px, env(safe-area-inset-top));
        right: max(var(--spacing-sm), env(safe-area-inset-right));
    }
    
    /* Reduce background animation complexity on mobile */
    .hero-gradient-orb {
        filter: blur(80px);
    }
    
    .hero-shape {
        filter: blur(60px);
    }
    
    .hero-grid-pattern {
        opacity: 0.3;
    }
    
    .hero-lines,
    .hero-rings {
        display: none;
    }
    
    .work-modal-content {
        width: 100%;
        height: 100vh;
    }
    
    .work-modal-header h2 {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .hero {
        padding: var(--spacing-md) var(--spacing-xs);
        min-height: 85vh;
    }
    
    .hero-profile-image {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
        border-width: 2px;
    }
    
    .hero-greeting {
        font-size: clamp(2rem, 12vw, 3.5rem);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-md) var(--spacing-xs);
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .work-item {
        min-height: 300px;
    }
    
    .combined-card {
        padding: var(--spacing-sm);
    }
    
    .credential-item {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-sm);
        align-items: center;
    }
    
    .credential-icon {
        margin-bottom: var(--spacing-xs);
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-sm);
        gap: var(--spacing-xs);
    }
    
    .work-modal-close {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        top: max(60px, env(safe-area-inset-top));
        right: max(var(--spacing-xs), env(safe-area-inset-right));
    }
    
    .company-logo {
        max-height: 35px;
    }
    
    .publication-logo {
        max-height: 35px;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--spacing-xs);
    }
    
    .company-tag {
        padding: var(--spacing-sm);
        min-height: 70px;
    }
    
    .publication-item {
        padding: var(--spacing-md);
        min-height: 80px;
    }
    
    .stat-item {
        padding: var(--spacing-md);
    }
}

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

/* Focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 4px;
}
