﻿/**
 * CSS Variables
 * Design tokens and theme variables
 */

:root {
    /* Colors - Primary */
    --primary-color: #0a0a0a;
    --primary-dark: #000000;
    --primary-light: #1a1a1a;
    --secondary-color: #2d2d2d;
    
    /* Colors - Accent */
    --accent-color: #d4af37;
    --accent-light: #f4d03f;
    
    /* Colors - Text */
    --text-primary: #0a0a0a;
    --text-secondary: #4a4a4a;
    
    /* Colors - Background */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --border-color: #e5e5e5;
    
    /* Colors - Glass */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px 0 rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px 0 rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 30px 60px 0 rgba(0, 0, 0, 0.2);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #000000 100%);
    --gradient-secondary: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    --gradient-accent: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a1a1a 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Typography */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-heading: 'Bodoni Moda', serif;
    --font-family-accent: 'Cormorant Garamond', serif;
    --font-family-mono: 'JetBrains Mono', monospace;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-loading: 9999;
    --z-skip-link: 10000;
}

/* Dark Theme */
[data-theme="dark"] {
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --border-color: #2d2d2d;
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #141414 100%);
    --text-primary-rgb: 245, 245, 245;
    --accent-color-rgb: 212, 175, 55;
}

/* Light Theme - Explicit RGB values for rgba() */
:root {
    --text-primary-rgb: 10, 10, 10;
    --accent-color-rgb: 212, 175, 55;
}

/**
 * Base Styles
 * Reset, typography, and base element styles
 */

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Legal Pages */
.legal-page {
    min-height: 100vh;
    padding-top: 6rem;
}

.legal-hero {
    position: relative;
    padding: 6rem 0 3rem;
    overflow: hidden;
    background: var(--gradient-hero);
}

html[data-theme="light"] .legal-hero {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #f5f5f5 100%);
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.18), transparent 55%),
        radial-gradient(circle at 80% 60%, rgba(212, 175, 55, 0.12), transparent 60%);
    pointer-events: none;
}

.legal-hero-inner {
    position: relative;
    max-width: 900px;
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(0, 0, 0, 0.25);
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

html[data-theme="light"] .legal-kicker {
    background: rgba(255, 255, 255, 0.7);
}

.legal-title {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-family-heading);
    font-weight: 500;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    letter-spacing: -0.02em;
    color: #ffffff;
}

html[data-theme="light"] .legal-title {
    color: var(--text-primary);
}

.legal-subtitle {
    max-width: 70ch;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    margin-bottom: var(--spacing-xl);
}

html[data-theme="light"] .legal-subtitle {
    color: var(--text-secondary);
}

.legal-hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.legal-content {
    padding: 3.5rem 0 5rem;
    background: var(--bg-primary);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-xl);
}

.legal-card {
    grid-column: span 6;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-2xl);
}

html[data-theme="dark"] .legal-card {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
}

.legal-card-title {
    margin-bottom: var(--spacing-md);
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.legal-card-body p {
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
}

html[data-theme="dark"] .legal-card-body p {
    color: rgba(245, 245, 245, 0.82);
}

.legal-card a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.legal-note {
    margin-top: var(--spacing-2xl);
}

.legal-note-inner {
    border-radius: 1rem;
    padding: var(--spacing-xl);
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
}

.legal-note-title {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.legal-note-body {
    color: var(--text-secondary);
}

html[data-theme="dark"] .legal-note-body {
    color: rgba(245, 245, 245, 0.85);
}

@media (max-width: 900px) {
    .legal-card {
        grid-column: span 12;
    }
}

/* Only hide default cursor on non-touch devices when custom cursor is available */
@media (hover: hover) and (pointer: fine) {
    body.custom-cursor-active {
        cursor: none;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
}

button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--accent-color);
    color: #000000;
}

/* Light mode: Selection */
html[data-theme="light"] ::selection {
    background: var(--accent-color);
    color: #000000;
}

/* Dark mode: Selection */
html[data-theme="dark"] ::selection {
    background: var(--accent-color);
    color: #000000;
}

/**
 * Utility Classes
 * Reusable utility classes for common patterns
 */

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* Skip to main content */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: var(--spacing-md) var(--spacing-xl);
    z-index: var(--z-skip-link);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    transition: top var(--transition-base);
}

.skip-to-main:focus {
    top: 0;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: var(--z-loading);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
    animation: fadeOutLoading 0.5s ease 1s forwards;
}

@keyframes fadeOutLoading {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/**
 * Components
 * Reusable component styles
 */

/* Buttons */
.btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-family-primary);
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 1.25rem 2.5rem;
    border: 1px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Light mode: Button should be dark */
html[data-theme="light"] .hero .btn-primary {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}

html[data-theme="light"] .hero .btn-primary:hover {
    background: var(--accent-color);
    color: var(--text-primary);
    border-color: var(--accent-color);
}

/* Dark mode: Button stays as is */
html[data-theme="dark"] .hero .btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover .btn-shine {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
    background: var(--accent-color);
    color: #000000;
    border-color: var(--accent-color);
}

/* Hero buttons - Light mode adjustments */
html[data-theme="light"] .hero .btn-primary {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}

html[data-theme="light"] .hero .btn-primary:hover {
    background: var(--accent-color);
    color: #000000;
    border-color: var(--accent-color);
}

/* Hero buttons - Dark mode stays as default */
html[data-theme="dark"] .hero .btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(var(--text-primary-rgb, 0, 0, 0), 0.2);
    backdrop-filter: blur(10px);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 1.25rem 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Light mode: Button should have dark border and text */
html[data-theme="light"] .hero .btn-secondary {
    color: var(--text-primary);
    border-color: rgba(var(--text-primary-rgb, 10, 10, 10), 0.3);
}

html[data-theme="light"] .hero .btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(var(--accent-color-rgb, 212, 175, 55), 0.05);
}

/* Dark mode: Button should have white border and text */
html[data-theme="dark"] .hero .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .hero .btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.05);
}

.btn-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

.btn-secondary:hover .btn-underline {
    width: 100%;
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Hero buttons - Light mode adjustments */
html[data-theme="light"] .hero .btn-secondary {
    color: var(--text-primary);
    border-color: rgba(10, 10, 10, 0.3);
}

html[data-theme="light"] .hero .btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.05);
}

/* Hero buttons - Dark mode adjustments */
html[data-theme="dark"] .hero .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .hero .btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.05);
}

/* Cards */
.card {
    background: var(--bg-primary);
    border-radius: 0;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.card-title {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    cursor: pointer;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--accent-color);
}

/* Navigation Links */
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link[aria-current="page"] {
    color: var(--accent-color);
    font-weight: 600;
}

.nav-link[aria-current="page"]::after {
    width: 100%;
    background: var(--accent-color);
}

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-primary);
    position: fixed;
    pointer-events: none;
    z-index: var(--z-skip-link);
    transform: translate(-50%, -50%);
    transition: width var(--transition-fast), height var(--transition-fast), background var(--transition-fast), opacity 0.3s ease;
    left: 0;
    top: 0;
    opacity: 0;
}

/* Light mode: Dark cursor */
html[data-theme="light"] .cursor {
    background: #0a0a0a;
}

html[data-theme="light"] .cursor.cursor-hover {
    background: rgba(10, 10, 10, 0.2);
    border-color: #0a0a0a;
}

/* Dark mode: Light cursor */
html[data-theme="dark"] .cursor {
    background: #f5f5f5;
}

html[data-theme="dark"] .cursor.cursor-hover {
    background: rgba(245, 245, 245, 0.2);
    border-color: #f5f5f5;
}

.cursor.cursor-hover {
    width: 40px;
    height: 40px;
    background: rgba(30, 58, 95, 0.2);
    border: 2px solid var(--text-primary);
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--text-primary);
    position: fixed;
    pointer-events: none;
    z-index: calc(var(--z-skip-link) - 1);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width var(--transition-base), height var(--transition-base), opacity 0.3s ease;
    left: 0;
    top: 0;
}

/* Light mode: Dark cursor follower */
html[data-theme="light"] .cursor-follower {
    border-color: #0a0a0a;
}

html[data-theme="light"] .cursor-follower.cursor-follower-hover {
    border-color: #0a0a0a;
}

/* Dark mode: Light cursor follower */
html[data-theme="dark"] .cursor-follower {
    border-color: #f5f5f5;
}

html[data-theme="dark"] .cursor-follower.cursor-follower-hover {
    border-color: #f5f5f5;
}

.cursor-follower.cursor-follower-hover {
    width: 60px;
    height: 60px;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .cursor,
    .cursor-follower {
        display: none;
    }
}

/**
 * Layout
 * Page layout components (Navbar, Hero, Sections)
 */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--spacing-lg) 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: var(--spacing-md) 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ensure logo is visible in both modes */
html[data-theme="light"] .logo-text {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-theme="dark"] .logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ensure logo is visible in both modes */
html[data-theme="light"] .logo-text {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-theme="dark"] .logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links,
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Mobile Navigation */
.nav-toggle {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.nav-toggle:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-color);
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    z-index: calc(var(--z-fixed) + 5);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 6rem var(--spacing-xl) var(--spacing-xl);
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav-panel {
    width: min(420px, 100%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

html[data-theme="dark"] .mobile-nav-panel {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    background: transparent;
    transition: background var(--transition-base), transform var(--transition-base);
}

.mobile-nav-link:hover {
    background: rgba(212, 175, 55, 0.12);
    transform: translateX(4px);
}

body.nav-open {
    overflow: hidden;
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-primary);
}

.language-toggle:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-color);
}

.lang-active {
    color: var(--accent-color);
    font-weight: 700;
}

.lang-separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

.lang-inactive {
    color: var(--text-secondary);
    transition: color var(--transition-base);
    opacity: 0.7;
}

/* Ensure language toggle is readable in both modes */
html[data-theme="light"] .language-toggle {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

html[data-theme="light"] .lang-active {
    color: var(--accent-color);
}

html[data-theme="light"] .lang-inactive {
    color: var(--text-secondary);
}

html[data-theme="dark"] .language-toggle {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

html[data-theme="dark"] .lang-active {
    color: var(--accent-color);
}

html[data-theme="dark"] .lang-inactive {
    color: var(--text-secondary);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    transition: opacity var(--transition-base), transform var(--transition-base);
    pointer-events: none;
}

/* Theme Toggle Icons - Controlled by JavaScript */
.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .sun-icon {
    opacity: 1;
    display: block;
}

.theme-toggle .moon-icon {
    opacity: 0;
    display: none;
}

html[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 0;
    display: none;
}

html[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 1;
    display: block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem var(--spacing-xl) 4rem;
    overflow: hidden;
    background: var(--bg-primary);
}

/* Hero has dark background by default for design */
html:not([data-theme="light"]) .hero {
    background: #000000;
}

html[data-theme="light"] .hero {
    background: var(--bg-primary);
}

/* Performance: Will-change for animated elements */
.hero-gradient-orb,
.hero-image-wrapper,
.image-container {
    will-change: transform;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-base);
    overflow: hidden;
}

/* Animated grid background */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Animated light rays */
.hero-background::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(212, 175, 55, 0.05) 45deg,
        transparent 90deg,
        rgba(212, 175, 55, 0.05) 135deg,
        transparent 180deg,
        rgba(212, 175, 55, 0.05) 225deg,
        transparent 270deg,
        rgba(212, 175, 55, 0.05) 315deg,
        transparent 360deg
    );
    animation: rotateRays 30s linear infinite;
    opacity: 0.6;
}

@keyframes rotateRays {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
    will-change: transform;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

.hero-gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4), transparent);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.hero-gradient-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3), transparent);
    bottom: -250px;
    right: -250px;
    animation-delay: 7s;
}

.hero-gradient-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent);
    top: 50%;
    right: 10%;
    animation-delay: 14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-text {
    color: white;
    position: relative;
}

.hero-intro {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.intro-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 500;
}

.intro-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    max-width: 100px;
}

.hero-title {
    font-family: var(--font-family-heading);
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.01em;
    color: #0a0a0a; /* Default: dark for light mode */
    position: relative;
    margin-bottom: var(--spacing-lg);
    opacity: 1;
    transform: translateY(0);
}

.title-first-name {
    display: block;
    margin-bottom: 0.25rem;
}

.title-last-name {
    display: block;
    background: linear-gradient(135deg, #0a0a0a 0%, rgba(10, 10, 10, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Light mode: Last name should be dark - EXPLICIT */
html[data-theme="light"] .title-last-name {
    background: linear-gradient(135deg, #0a0a0a 0%, rgba(10, 10, 10, 0.8) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Dark mode: Hero title should be white */
html[data-theme="dark"] .hero-title {
    color: #ffffff;
}

html[data-theme="dark"] .title-last-name {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: 2.5rem;
    opacity: 1;
    transform: translateX(0);
}

.role-text {
    font-family: var(--font-family-accent);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0a0a0a; /* Default: dark for light mode */
    opacity: 0.9;
}

/* Dark mode: Hero role should be white */
html[data-theme="dark"] .role-text {
    color: rgba(255, 255, 255, 0.9);
}

.role-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(180deg, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.9;
    font-weight: 300;
    letter-spacing: 0.02em;
    max-width: 550px;
    margin-bottom: var(--spacing-2xl);
    color: #0a0a0a; /* Default: dark for light mode */
    opacity: 0.8;
    transform: translateY(0);
}

/* Dark mode: Hero description should be white */
html[data-theme="dark"] .hero-description {
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    opacity: 1;
    transform: translateY(0);
}

/* Ensure hero text is readable in both modes - EXPLICIT BLACK IN LIGHT MODE */
html[data-theme="light"] .hero-title {
    color: #0a0a0a !important;
}

html[data-theme="light"] .hero-description {
    color: #0a0a0a !important;
    opacity: 0.8;
}

html[data-theme="light"] .role-text {
    color: #0a0a0a !important;
    opacity: 0.9;
}

html[data-theme="light"] .title-first-name {
    color: #0a0a0a !important;
}

html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .hero-description,
html[data-theme="dark"] .role-text {
    color: #ffffff;
}

html[data-theme="dark"] .title-first-name {
    color: #ffffff;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    align-self: stretch;
    opacity: 1;
    transform: translateX(0);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.image-container {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.image-border-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-color), transparent);
    border-radius: 0;
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: -1;
}

.image-container:hover .image-border-glow {
    opacity: 0.3;
    filter: blur(10px);
}

.hero-image {
    width: 100%;
    height: 650px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%) contrast(1.05) brightness(0.98);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.image-container:hover .hero-image {
    filter: grayscale(0%) contrast(1.1) brightness(1);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.stat-box {
    flex: 1;
    text-align: center;
}

.stat-value {
    font-family: var(--font-family-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.stat-text {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Light mode: Dark text */
html[data-theme="light"] .stat-text {
    color: var(--text-secondary);
}

/* Dark mode: Light text */
html[data-theme="dark"] .stat-text {
    color: rgba(255, 255, 255, 0.6);
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.4; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Light mode: Dark text */
html[data-theme="light"] .scroll-text {
    color: var(--text-secondary);
}

/* Dark mode: Light text */
html[data-theme="dark"] .scroll-text {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .hero-title {
        font-size: clamp(3rem, 10vw, 6rem);
    }
    
    .nav-links,
    .nav-menu {
        display: none;
    }
}

/**
 * Sections
 * Page sections (About, Expertise, Projects, Contact, Footer)
 */

/* Section Base Styles */
section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-xl);
    margin-bottom: 5rem;
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

/* Ensure section borders are visible in both modes */
html[data-theme="light"] .section-header {
    border-bottom-color: var(--border-color);
}

html[data-theme="dark"] .section-header {
    border-bottom-color: var(--border-color);
}

.section-number {
    font-family: var(--font-family-mono);
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-family-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

/* Text Section */
.about-text-section {
    max-width: 900px;
}

.about-intro {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.about-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 0;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Image and Stats Section */
.about-image-stats-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.about-image-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(30, 58, 95, 0.1);
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
    filter: grayscale(20%) contrast(1.1);
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    /* Prevent layout shift */
    align-items: stretch;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-xl);
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 0.5rem;
    /* Prevent layout shift */
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item:hover {
    transform: translateY(-8px);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 50px;
    background: linear-gradient(180deg, var(--accent-color), transparent);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.stat-item:hover::before {
    opacity: 0.8;
}

.stat-number {
    font-family: var(--font-family-heading);
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
    line-height: 1;
    opacity: 1;
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(212, 175, 55, 0.9) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.2));
    /* Prevent layout shift during animation */
    min-width: 2.5em;
    text-align: center;
    will-change: contents;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Ensure stat numbers are always gold in both modes */
html[data-theme="light"] .stat-number {
    color: var(--accent-color) !important;
}

html[data-theme="dark"] .stat-number {
    color: var(--accent-color) !important;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 400;
    color: #0a0a0a !important; /* FORCE BLACK - Default for light mode */
}

/* Light mode: ABSOLUTELY BLACK - NO EXCEPTIONS - MAXIMUM SPECIFICITY */
html[data-theme="light"] .stat-label,
html[data-theme="light"] .about .stat-label,
html[data-theme="light"] .stat-item .stat-label,
html[data-theme="light"] .stats-grid .stat-label,
html[data-theme="light"] .about .stats-grid .stat-item .stat-label,
html[data-theme="light"] .about .about-text .stats-grid .stat-item .stat-label {
    color: #0a0a0a !important;
    opacity: 1 !important;
}

/* Dark mode: Light gray */
html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .about .stat-label,
html[data-theme="dark"] .stat-item .stat-label,
html[data-theme="dark"] .stats-grid .stat-label,
html[data-theme="dark"] .about .stats-grid .stat-item .stat-label,
html[data-theme="dark"] .about .about-text .stats-grid .stat-item .stat-label {
    color: #a0a0a0 !important;
    opacity: 1 !important;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.tech-item {
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-base);
    cursor: default;
}

.tech-item:hover {
    background: var(--gradient-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Light mode: Tech item hover */
html[data-theme="light"] .tech-item:hover {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #000000 100%);
    color: #ffffff;
}

/* Dark mode: Tech item hover */
html[data-theme="dark"] .tech-item:hover {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #000000 100%);
    color: #ffffff;
}

/* Experience Timeline - Horizontal */
.experience-timeline-horizontal {
    position: relative;
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-2xl) 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--accent-color) 100%);
    transform: translateY(-50%);
    z-index: 1;
}

/* Light mode: Timeline line */
html[data-theme="light"] .timeline-line {
    background: linear-gradient(90deg, #0a0a0a 0%, var(--accent-color) 100%);
}

/* Dark mode: Timeline line */
html[data-theme="dark"] .timeline-line {
    background: linear-gradient(90deg, #ffffff 0%, var(--accent-color) 100%);
}

.timeline-items {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-lg);
    z-index: 2;
    min-width: min-content;
}

.timeline-item {
    position: relative;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 4px solid var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3), 0 0 0 6px rgba(212, 175, 55, 0.1);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.5), 0 0 0 8px rgba(212, 175, 55, 0.2);
}

.timeline-year {
    font-family: var(--font-family-mono);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Light mode: Timeline year */
html[data-theme="light"] .timeline-year {
    background: linear-gradient(135deg, #0a0a0a 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark mode: Timeline year */
html[data-theme="dark"] .timeline-year {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-content {
    margin-top: var(--spacing-xs);
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Responsive: Fallback to scrollable on small screens */
@media (max-width: 1024px) {
    .experience-timeline-horizontal {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--spacing-xl);
    }
    
    .timeline-items {
        padding: 0 var(--spacing-xl);
    }
    
    .timeline-item {
        min-width: 160px;
    }
}

/* Expertise Section */
.expertise {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
}

.expertise::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    animation: expertiseGridMove 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes expertiseGridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 60px);
    }
}

.expertise-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.expertise-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: expertiseOrbFloat 25s ease-in-out infinite;
    will-change: transform;
}

.expertise-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3), transparent);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.expertise-orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent);
    bottom: -300px;
    right: -300px;
    animation-delay: 8s;
}

.expertise-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 15s;
}

@keyframes expertiseOrbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.expertise-card {
    background-color: var(--bg-secondary) !important;
    background-image: 
        linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.02) 50%, transparent 100%);
    background-size: 200% 200%;
    background-position: 0% 0%;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: var(--spacing-2xl) 2.5rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-position 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 1 !important;
    transform: translateY(0) rotateX(0deg) !important;
    will-change: transform, opacity;
    z-index: 1;
    visibility: visible !important;
}

/* Only hide if GSAP is actively animating (will be overridden by GSAP) */
.expertise-card.gsap-animating {
    opacity: 0;
    transform: translateY(60px) rotateX(10deg);
}

.expertise-card.animate-in {
    opacity: 1 !important;
    transform: translateY(0) rotateX(0deg) !important;
}

/* Light mode: Ensure cards have light background */
html[data-theme="light"] .expertise-card {
    background-color: #f5f5f5 !important;
    background-image: 
        linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.02) 50%, transparent 100%);
    border-color: #e0e0e0;
    color: var(--text-primary);
}

/* Dark mode: Ensure cards have dark background */
html[data-theme="dark"] .expertise-card {
    background-color: #141414 !important;
    background-image: 
        linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.02) 50%, transparent 100%);
    border-color: #2d2d2d;
    color: var(--text-primary);
}

.expertise-card:hover {
    background-position: 100% 100%;
}

/* Card number badge */
.expertise-card::before {
    content: attr(data-expertise);
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    font-family: var(--font-family-mono);
    font-size: 0.75rem;
    color: var(--accent-color);
    opacity: 0.2;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    pointer-events: none;
}

.expertise-card:hover::before {
    opacity: 0.6;
    transform: scale(1.1);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.expertise-card:hover .card-glow {
    opacity: 1;
    animation: cardGlowPulse 2s ease-in-out infinite;
}

@keyframes cardGlowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.2;
    }
}

.card-border-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
                linear-gradient(135deg, var(--accent-color), transparent, var(--accent-color)) border-box;
    background-size: 200% 200%;
    animation: borderGradient 3s linear infinite;
}

.expertise-card:hover .card-border-animation {
    opacity: 1;
}

@keyframes borderGradient {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 200%;
    }
}

.expertise-card:hover {
    transform: translateY(-12px) scale(1.02) rotateX(-2deg);
    box-shadow: 
        0 20px 60px rgba(212, 175, 55, 0.15),
        0 0 0 1px rgba(212, 175, 55, 0.1),
        inset 0 0 60px rgba(212, 175, 55, 0.05);
    border-color: var(--accent-color);
    background-color: var(--bg-primary) !important;
    background-image: 
        linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.02) 50%, transparent 100%);
}

/* Light mode: Hover background */
html[data-theme="light"] .expertise-card:hover {
    background-color: #ffffff !important;
}

/* Dark mode: Hover background */
html[data-theme="dark"] .expertise-card:hover {
    background-color: #0a0a0a !important;
}

.card-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.expertise-card:hover .card-icon {
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(212, 175, 55, 0.8) 100%);
    transform: rotateY(360deg) rotateZ(5deg) scale(1.15);
    box-shadow: 
        0 10px 30px rgba(212, 175, 55, 0.4),
        0 0 0 4px rgba(212, 175, 55, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-color);
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.expertise-card:hover .icon-pulse {
    opacity: 0.6;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

.card-icon svg {
    width: 36px;
    height: 36px;
    color: #ffffff;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.expertise-card:hover .card-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.5));
}

/* Light mode: Icon stays white on dark background */
html[data-theme="light"] .card-icon svg {
    color: #ffffff;
}

html[data-theme="light"] .card-icon {
    background: linear-gradient(135deg, #0a0a0a 0%, var(--accent-color) 100%);
}

html[data-theme="light"] .expertise-card:hover .card-icon {
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(212, 175, 55, 0.8) 100%);
}

/* Dark mode: Icon stays white on dark background */
html[data-theme="dark"] .card-icon svg {
    color: #ffffff;
}

html[data-theme="dark"] .card-icon {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
}

html[data-theme="dark"] .expertise-card:hover .card-icon {
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(212, 175, 55, 0.8) 100%);
}

.card-title {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.expertise-card:hover .card-title {
    color: var(--accent-color);
    transform: translateX(5px);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.8;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.expertise-card:hover .card-description {
    color: var(--text-primary);
}

.card-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), rgba(212, 175, 55, 0.5), transparent);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.expertise-card:hover .card-accent-line {
    width: 100%;
    animation: accentLineGlow 2s ease-in-out infinite;
}

@keyframes accentLineGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    }
}

/* Additional card hover effects */
.expertise-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.expertise-card:hover::after {
    width: 300px;
    height: 300px;
}

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
}

.project-card {
    background: var(--bg-primary);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--accent-color);
}

.project-image {
    height: 300px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

/* Light mode: Darker overlay for better contrast */
html[data-theme="light"] .project-overlay {
    background: rgba(0, 0, 0, 0.8);
}

/* Dark mode: Standard overlay */
html[data-theme="dark"] .project-overlay {
    background: rgba(0, 0, 0, 0.75);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.project-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.project-content {
    padding: 2.5rem;
}

.project-category {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.project-title {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0.75rem 0 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: var(--spacing-2xl);
    font-weight: 300;
    letter-spacing: 0.01em;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    padding: var(--spacing-md);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.contact-method:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.contact-method svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-family-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
    border-radius: 0.5rem;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input[aria-invalid="true"]:focus,
.form-textarea[aria-invalid="true"]:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.25rem;
}

.form-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    padding: var(--spacing-md);
    border-radius: 0.5rem;
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit svg {
    width: 20px;
    height: 20px;
}

.btn-submit {
    align-self: flex-start;
}

.contact-form .btn-submit {
    width: auto;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: #000000;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 2rem;
}

/* Light mode: Footer should be dark but with better contrast */
html[data-theme="light"] .footer {
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.9);
}

/* Dark mode: Footer stays dark */
html[data-theme="dark"] .footer {
    background: #000000;
    color: rgba(255, 255, 255, 0.8);
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at bottom, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
}

.footer-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: footerGridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes footerGridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Futuristic Canvas Animation */
#footerCanvas,
#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;
}

/* Hologram Effect */
.footer-hologram {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(212, 175, 55, 0.03) 2px,
            rgba(212, 175, 55, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(212, 175, 55, 0.03) 2px,
            rgba(212, 175, 55, 0.03) 4px
        );
    opacity: 0.4;
    animation: hologramScan 8s linear infinite;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes hologramScan {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Energy Grid */
.footer-energy-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    animation: energyPulse 4s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes energyPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Floating Particles */
.footer-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.footer-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
    opacity: 0.8;
}

.footer-particle-1 {
    top: 10%;
    left: 10%;
    animation: particleFloat1 15s ease-in-out infinite;
}

.footer-particle-2 {
    top: 30%;
    right: 15%;
    animation: particleFloat2 18s ease-in-out infinite;
    animation-delay: -2s;
}

.footer-particle-3 {
    bottom: 20%;
    left: 20%;
    animation: particleFloat3 20s ease-in-out infinite;
    animation-delay: -4s;
}

.footer-particle-4 {
    top: 60%;
    right: 30%;
    animation: particleFloat4 16s ease-in-out infinite;
    animation-delay: -6s;
}

.footer-particle-5 {
    bottom: 40%;
    left: 50%;
    animation: particleFloat5 22s ease-in-out infinite;
    animation-delay: -8s;
}

.footer-particle-6 {
    top: 80%;
    right: 60%;
    animation: particleFloat6 17s ease-in-out infinite;
    animation-delay: -10s;
}

@keyframes particleFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    25% { transform: translate(50px, -30px) scale(1.2); opacity: 1; }
    50% { transform: translate(100px, 20px) scale(0.8); opacity: 0.6; }
    75% { transform: translate(50px, 50px) scale(1.1); opacity: 0.9; }
}

@keyframes particleFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    25% { transform: translate(-40px, 40px) scale(1.3); opacity: 1; }
    50% { transform: translate(-80px, -20px) scale(0.7); opacity: 0.5; }
    75% { transform: translate(-40px, -40px) scale(1.1); opacity: 0.9; }
}

@keyframes particleFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    25% { transform: translate(60px, -50px) scale(1.2); opacity: 1; }
    50% { transform: translate(120px, 30px) scale(0.9); opacity: 0.7; }
    75% { transform: translate(60px, 60px) scale(1.1); opacity: 0.9; }
}

@keyframes particleFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    25% { transform: translate(-50px, 30px) scale(1.1); opacity: 1; }
    50% { transform: translate(-100px, -40px) scale(0.8); opacity: 0.6; }
    75% { transform: translate(-50px, -50px) scale(1.2); opacity: 0.9; }
}

@keyframes particleFloat5 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    25% { transform: translate(40px, 50px) scale(1.3); opacity: 1; }
    50% { transform: translate(80px, -30px) scale(0.7); opacity: 0.5; }
    75% { transform: translate(40px, -40px) scale(1.1); opacity: 0.9; }
}

@keyframes particleFloat6 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    25% { transform: translate(-60px, -30px) scale(1.2); opacity: 1; }
    50% { transform: translate(-120px, 40px) scale(0.8); opacity: 0.6; }
    75% { transform: translate(-60px, 50px) scale(1.1); opacity: 0.9; }
}

/* Light Rays */
.footer-light-rays {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.light-ray {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(212, 175, 55, 0.1) 20%,
        rgba(212, 175, 55, 0.3) 50%,
        rgba(212, 175, 55, 0.1) 80%,
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    opacity: 0.6;
}

.light-ray-1 {
    left: 15%;
    animation: raySweep1 12s ease-in-out infinite;
    transform-origin: top;
}

.light-ray-2 {
    left: 50%;
    animation: raySweep2 15s ease-in-out infinite;
    animation-delay: -4s;
    transform-origin: top;
}

.light-ray-3 {
    right: 20%;
    animation: raySweep3 18s ease-in-out infinite;
    animation-delay: -8s;
    transform-origin: top;
}

@keyframes raySweep1 {
    0%, 100% {
        transform: rotate(-5deg) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: rotate(5deg) translateX(30px);
        opacity: 0.8;
    }
}

@keyframes raySweep2 {
    0%, 100% {
        transform: rotate(3deg) translateX(0);
        opacity: 0.4;
    }
    50% {
        transform: rotate(-3deg) translateX(-40px);
        opacity: 0.9;
    }
}

@keyframes raySweep3 {
    0%, 100% {
        transform: rotate(-4deg) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: rotate(4deg) translateX(25px);
        opacity: 0.7;
    }
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.footer-shape {
    position: absolute;
    border: 1px solid rgba(212, 175, 55, 0.08);
    opacity: 0.2;
}

.footer-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: 10%;
    border-radius: 50%;
    animation: footerFloat1 25s ease-in-out infinite;
}

.footer-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: 15%;
    transform: rotate(45deg);
    animation: footerFloat2 30s ease-in-out infinite;
}

.footer-shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 5%;
    border-radius: 50%;
    animation: footerFloat3 20s ease-in-out infinite;
}

@keyframes footerFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(180deg); }
}

@keyframes footerFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(-20px, 20px) rotate(225deg); }
}

@keyframes footerFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, 15px) scale(1.1); }
}

.footer-content-wrapper {
    position: relative;
    z-index: 10;
}

/* ============================================================================
   HERO SECTION - FUTURISTIC ANIMATIONS (Same as Footer)
   ============================================================================ */

/* Hero Hologram Effect */
.hero-hologram {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(212, 175, 55, 0.03) 2px,
            rgba(212, 175, 55, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(212, 175, 55, 0.03) 2px,
            rgba(212, 175, 55, 0.03) 4px
        );
    opacity: 0.4;
    animation: hologramScan 8s linear infinite;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Hero Energy Grid */
.hero-energy-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    animation: energyPulse 4s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

/* Hero Floating Particles */
.hero-particles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
    opacity: 0.8;
}

.hero-particle-1 {
    top: 10%;
    left: 10%;
    animation: heroParticleFloat1 15s ease-in-out infinite;
}

.hero-particle-2 {
    top: 30%;
    right: 15%;
    animation: heroParticleFloat2 18s ease-in-out infinite;
    animation-delay: -2s;
}

.hero-particle-3 {
    bottom: 20%;
    left: 20%;
    animation: heroParticleFloat3 20s ease-in-out infinite;
    animation-delay: -4s;
}

.hero-particle-4 {
    top: 60%;
    right: 30%;
    animation: heroParticleFloat4 16s ease-in-out infinite;
    animation-delay: -6s;
}

.hero-particle-5 {
    bottom: 40%;
    left: 50%;
    animation: heroParticleFloat5 22s ease-in-out infinite;
    animation-delay: -8s;
}

.hero-particle-6 {
    top: 80%;
    right: 60%;
    animation: heroParticleFloat6 17s ease-in-out infinite;
    animation-delay: -10s;
}

@keyframes heroParticleFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    25% { transform: translate(50px, -30px) scale(1.2); opacity: 1; }
    50% { transform: translate(100px, 20px) scale(0.8); opacity: 0.6; }
    75% { transform: translate(50px, 50px) scale(1.1); opacity: 0.9; }
}

@keyframes heroParticleFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    25% { transform: translate(-40px, 40px) scale(1.3); opacity: 1; }
    50% { transform: translate(-80px, -20px) scale(0.7); opacity: 0.5; }
    75% { transform: translate(-40px, -40px) scale(1.1); opacity: 0.9; }
}

@keyframes heroParticleFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    25% { transform: translate(60px, -50px) scale(1.2); opacity: 1; }
    50% { transform: translate(120px, 30px) scale(0.9); opacity: 0.7; }
    75% { transform: translate(60px, 60px) scale(1.1); opacity: 0.9; }
}

@keyframes heroParticleFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    25% { transform: translate(-50px, 30px) scale(1.1); opacity: 1; }
    50% { transform: translate(-100px, -40px) scale(0.8); opacity: 0.6; }
    75% { transform: translate(-50px, -50px) scale(1.2); opacity: 0.9; }
}

@keyframes heroParticleFloat5 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    25% { transform: translate(40px, 50px) scale(1.3); opacity: 1; }
    50% { transform: translate(80px, -30px) scale(0.7); opacity: 0.5; }
    75% { transform: translate(40px, -40px) scale(1.1); opacity: 0.9; }
}

@keyframes heroParticleFloat6 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    25% { transform: translate(-60px, -30px) scale(1.2); opacity: 1; }
    50% { transform: translate(-120px, 40px) scale(0.8); opacity: 0.6; }
    75% { transform: translate(-60px, 50px) scale(1.1); opacity: 0.9; }
}

/* Hero Light Rays */
.hero-light-rays {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hero-light-ray {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(212, 175, 55, 0.1) 20%,
        rgba(212, 175, 55, 0.3) 50%,
        rgba(212, 175, 55, 0.1) 80%,
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    opacity: 0.6;
}

.hero-light-ray-1 {
    left: 15%;
    animation: heroRaySweep1 12s ease-in-out infinite;
    transform-origin: top;
}

.hero-light-ray-2 {
    left: 50%;
    animation: heroRaySweep2 15s ease-in-out infinite;
    animation-delay: -4s;
    transform-origin: top;
}

.hero-light-ray-3 {
    right: 20%;
    animation: heroRaySweep3 18s ease-in-out infinite;
    animation-delay: -8s;
    transform-origin: top;
}

@keyframes heroRaySweep1 {
    0%, 100% {
        transform: rotate(-5deg) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: rotate(5deg) translateX(30px);
        opacity: 0.8;
    }
}

@keyframes heroRaySweep2 {
    0%, 100% {
        transform: rotate(3deg) translateX(0);
        opacity: 0.4;
    }
    50% {
        transform: rotate(-3deg) translateX(-40px);
        opacity: 0.9;
    }
}

@keyframes heroRaySweep3 {
    0%, 100% {
        transform: rotate(-4deg) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: rotate(4deg) translateX(25px);
        opacity: 0.7;
    }
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo-text-large {
    font-family: var(--font-family-heading);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    display: block;
}

.logo-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    margin-top: var(--spacing-sm);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border-radius: 0;
}

/* Light mode: Social links brighter */
html[data-theme="light"] .social-link {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Dark mode: Social links standard */
html[data-theme="dark"] .social-link {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(212, 175, 55, 0.2);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
    background: rgba(212, 175, 55, 0.05);
}

.social-link svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    max-width: 300px;
}

/* Light mode: Footer tagline brighter */
html[data-theme="light"] .footer-tagline {
    color: rgba(255, 255, 255, 0.8);
}

/* Dark mode: Footer tagline standard */
html[data-theme="dark"] .footer-tagline {
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.footer-heading {
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

/* Ensure footer headings are white in both modes (footer is always dark) */
html[data-theme="light"] .footer-heading,
html[data-theme="dark"] .footer-heading {
    color: #ffffff;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    position: relative;
    padding-left: 0;
}

/* Light mode: Footer links slightly brighter for better contrast */
html[data-theme="light"] .footer-link {
    color: rgba(255, 255, 255, 0.8);
}

/* Dark mode: Footer links standard */
html[data-theme="dark"] .footer-link {
    color: rgba(255, 255, 255, 0.7);
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width var(--transition-base);
}

.footer-link:hover {
    color: #ffffff;
    padding-left: 1rem;
}

.footer-link:hover::before {
    width: 8px;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* Light mode: Footer description brighter */
html[data-theme="light"] .footer-description {
    color: rgba(255, 255, 255, 0.7);
}

/* Dark mode: Footer description standard */
html[data-theme="dark"] .footer-description {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.newsletter-input-wrapper {
    display: flex;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.newsletter-input {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-family-primary);
    font-size: 0.95rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Light mode: Newsletter input brighter */
html[data-theme="light"] .newsletter-input {
    color: rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Dark mode: Newsletter input standard */
html[data-theme="dark"] .newsletter-input {
    color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-submit {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--accent-color);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-submit:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #ffffff;
}

.newsletter-submit svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Light mode: Footer copyright brighter */
html[data-theme="light"] .footer-copyright {
    color: rgba(255, 255, 255, 0.7);
}

/* Dark mode: Footer copyright standard */
html[data-theme="dark"] .footer-copyright {
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-legal-link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-base);
}

/* Light mode: Footer legal links brighter */
html[data-theme="light"] .footer-legal-link {
    color: rgba(255, 255, 255, 0.7);
}

/* Dark mode: Footer legal links standard */
html[data-theme="dark"] .footer-legal-link {
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal-link:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
    
    /* Navigation */
    .nav-links,
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* About Section */
    .about-text-section {
        max-width: 100%;
    }
    
    .about-image-stats-section {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .about-image {
        height: 400px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    /* Timeline */
    .experience-timeline-horizontal {
        padding: var(--spacing-xl) 0;
    }
    
    .timeline-items {
        gap: var(--spacing-md);
        padding: 0 var(--spacing-md);
    }
    
    .timeline-item {
        min-width: 140px;
        max-width: 160px;
    }
    
    .timeline-content h4 {
        font-size: 0.9rem;
    }
    
    .timeline-content p {
        font-size: 0.75rem;
    }
    
    /* Expertise Section */
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }

    .contact-form .btn-submit {
        width: auto;
    }
    
    /* Typography adjustments */
    .section-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .about-intro {
        font-size: 1.5rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .about-image-stats-section {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

