/* ==========================================================================
   CSS Variables & Theme Setup
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark: #070707;
    --bg-brown: #110e0c;
    --text-cream: #f9f6f0;
    --text-offwhite: #e8e8e8;
    --text-muted: #a3a3a3;

    --accent-gold: #d4af37;
    --accent-gold-dim: rgba(212, 175, 55, 0.2);

    --accent-rb-red: #e6002b;
    --accent-rb-blue: #001a33;

    --surface-dark: #121212;
    --surface-border: #2a2a2a;

    /* 8px Grid Spacing System */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;
    --space-16: 128px;

    /* Typography */
    --font-main: 'Lato', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Border Radius */
    --radius-sm: var(--space-1);
    --radius-md: var(--space-2);
    --radius-lg: var(--space-3);

    /* Transitions - Smoothed for better scroll feel */
    --transition-fast: 0.25s ease-out;
    --transition-base: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    /* Silkier glide */
}

/* ==========================================================================
   Light Theme Override
   ========================================================================== */
[data-theme="light"] {
    --bg-dark: #f9f6f0;
    --bg-brown: #e8e4db;
    --text-cream: #070707;
    --text-offwhite: #2a2a2a;
    --text-muted: #555555;

    --accent-gold: #b38b1f;
    /* slightly darker gold for contrast */
    --accent-gold-dim: rgba(179, 139, 31, 0.2);

    --surface-dark: #ffffff;
    --surface-border: #dcdcd5;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Prevents fixed header from overlapping sections on anchor clicks */
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    background-color: var(--bg-dark);
    color: var(--text-offwhite);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--text-cream);
    line-height: 1.1;
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.section-padding {
    padding: var(--space-12) 0;
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: var(--space-2);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    border-radius: 100px;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--text-cream);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 var(--space-1) var(--space-3) var(--accent-gold-dim);
}

.btn-secondary {
    background: transparent;
    border-color: var(--surface-border);
    color: var(--text-cream);
}

.btn-secondary:hover {
    border-color: var(--text-cream);
    background: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: var(--space-2) var(--space-5);
    font-size: 16px;
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(7, 7, 7, 0.8);
    border-bottom: 1px solid var(--surface-border);
    transition: background var(--transition-base);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-cream);
}

.logo span {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: var(--space-4);
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width var(--transition-base);
}

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

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-cream);
    cursor: pointer;
    padding: var(--space-2);
    z-index: 101;
}

.nav-links.active {
    transform: translateX(0);
}

.theme-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-offwhite);
    cursor: pointer;
    width: var(--space-5);
    height: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
}

[data-theme="light"] .theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-btn .icon-moon {
    display: none;
}

.theme-btn .icon-sun {
    display: block;
}

[data-theme="light"] .theme-btn .icon-moon {
    display: block;
}

[data-theme="light"] .theme-btn .icon-sun {
    display: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-scroll-wrapper {
    height: 300vh;
    /* significantly slow the animation scrub speed */
    /* creates scroll distance to scrub 150 frames */
    position: relative;
    background: var(--bg-dark);
    /* acts as behind the canvas */
}

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
    background: var(--bg-dark);
    /* fallback */
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(7, 7, 7, 0.3) 0%, rgba(7, 7, 7, 0.8) 100%);
    pointer-events: none;
    transition: background var(--transition-base);
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(to bottom, rgba(249, 246, 240, 0.3) 0%, rgba(249, 246, 240, 0.9) 100%);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    color: var(--accent-gold);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.hero-title {
    font-size: clamp(20px, 3vw, 42px);
    /* Scaled down further */
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: var(--space-3);
    color: var(--text-cream);
}

/* Typewriter effect */
@keyframes typewriter {
    from {
        max-width: 0;
    }

    to {
        max-width: 100%;
    }
}

@keyframes blinkingCursor {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--text-cream);
    }
}

[data-theme="light"] .cursor {
    border-color: var(--text-dark);
}

.typewriter-text {
    display: inline-block;
    overflow: hidden;
    /* Ensures the content is not revealed until the animation */
    white-space: nowrap;
    /* Keeps the content on a single line */
    margin: 0 auto;
    max-width: 100%;
    vertical-align: bottom;
    /* Will animate from 0 to 100% */
}

.cursor {
    border-right: 0.10em solid var(--text-cream);
    padding-right: 4px;
    animation:
        typewriter 2.0s steps(30, end) forwards,
        blinkingCursor 0.75s step-end infinite;
}

/* ==========================================================================
   Splash Screen Entrance
   ========================================================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out, background 0.8s ease;
}

.splash-screen.bg-philosophy {
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 70%);
}

.splash-screen.bg-analytical {
    background: linear-gradient(135deg, #0d1117 0%, #000000 100%);
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    background-color: #0d1117;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-box {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: var(--space-3) var(--space-4);
    background: #ffffff;
    /* User requested white background for the rectangle */
    display: inline-block;
}

.dark-text {
    color: var(--bg-dark) !important;
}

.dark-text.cursor {
    border-right-color: var(--bg-dark) !important;
}

.splash-box .hero-title {
    margin-bottom: 0;
    /* Override hero title margin for the box */
}

/* Splash Screen Toggle & Quote */
.splash-quote-container {
    margin-top: var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.splash-quote-container.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.splash-toggle-track {
    position: relative;
    width: 140px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    display: flex;
    overflow: hidden;
    padding: 2px;
}

.toggle-zone {
    flex: 1;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    height: 100%;
    margin: 0;
    padding: 0;
    outline: none;
}

.toggle-hole {
    position: absolute;
    top: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--text-cream);
    background: transparent;
    transition: left 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), width 0.2s ease, border-color 0.4s ease;
    left: calc(50% - 13px);
    z-index: 5;
}

/* Position States applied via JS */
.splash-toggle-track.pos-left .toggle-hole {
    left: 4px;
    border-color: var(--accent-gold);
}

.splash-toggle-track.pos-center .toggle-hole {
    left: calc(50% - 13px);
    border-color: var(--text-cream);
}

.splash-toggle-track.pos-right .toggle-hole {
    left: calc(100% - 30px);
    border-color: var(--accent-gold);
}

/* Stretching Animation */
.splash-toggle-track.is-stretching-right .toggle-hole {
    width: 45px;
    transform-origin: left center;
}

.splash-toggle-track.is-stretching-left .toggle-hole {
    width: 45px;
    transform: translateX(-19px);
}

.splash-text-display {
    color: var(--text-muted);
    font-style: italic;
    font-size: clamp(14px, 1.5vw, 18px);
    text-align: center;
    max-width: 400px;
    min-height: 48px;
    /* Prevent jitter on swap */
    transition: opacity 0.3s ease-in-out;
}

.splash-text-display.fading {
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-5);
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

/* Nav Logo Delayed Typewriter */
.nav-logo-typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    max-width: 0;
    /* Starts hidden */
    vertical-align: bottom;
}

/* The animation class added via JS after splash fades */
.nav-logo-typewriter.animate-typing {
    animation: typewriter 1.5s steps(30, end) forwards;
}

.cursor-nav {
    border-right: 2px solid transparent;
}

.cursor-nav.animate-typing {
    border-right: 2px solid var(--text-cream);
    padding-right: 2px;
    animation:
        typewriter 1.5s steps(30, end) forwards,
        blinkingCursor 0.75s step-end infinite;
}

[data-theme="light"] .cursor-nav.animate-typing {
    border-right-color: var(--text-dark);
}

.hero-description {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: var(--space-5);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* Scroll Animated Text Overlays */
.hero-scroll-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    text-align: center;
    color: var(--text-cream);
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 100px);
    line-height: 1.1;
    z-index: 5;
    pointer-events: none;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    width: 100%;
    will-change: transform, opacity;
}

/* Scroll SQL Joke */
.hero-scroll-joke {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    text-align: center;
    color: var(--text-muted);
    font-size: clamp(20px, 4vw, 36px);
    line-height: 1.5;
    z-index: 6;
    pointer-events: none;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    max-width: 600px;
    will-change: transform, opacity;
}

/* ==========================================================================
   Features Section (Craftsmanship)
   ========================================================================== */
.features-section {
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.feature-card {
    background: var(--surface-dark);
    border: 1px solid var(--surface-border);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover {
    transform: translateY(calc(var(--space-1) * -1));
    border-color: rgba(212, 175, 55, 0.3);
}

.feature-icon {
    width: var(--space-6);
    height: var(--space-6);
    border-radius: var(--radius-md);
    background: var(--bg-brown);
    margin-bottom: var(--space-3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Presentation Slider (Projects Page)
   ========================================================================== */
.presentation-container {
    width: 100%;
    background: #000;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin-top: var(--space-4);
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.presentation-slide {
    display: none;
    animation: fadeInSlide 0.5s ease-in-out forwards;
}

.presentation-slide.active {
    display: block;
}

.presentation-slide h4 {
    color: var(--accent-gold);
    font-size: clamp(20px, 2vw, 24px);
    margin-bottom: var(--space-3);
    letter-spacing: 1px;
    font-weight: 500;
}

.presentation-slide p {
    color: var(--text-offwhite);
    line-height: 1.6;
    font-size: 16px;
}

.presentation-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-5);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.presentation-controls button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-cream);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s ease;
}

.presentation-controls button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-cream);
}

.slide-counter {
    font-family: monospace;
    color: var(--text-muted);
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-icon::after {
    content: '';
    width: 24px;
    height: 24px;
    background: var(--text-cream);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.icon-computing::after {
    background-color: var(--accent-gold);
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg stroke="currentColor" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"></path></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg stroke="currentColor" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"></path></svg>');
}

.icon-design::after {
    background-color: var(--accent-gold);
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg stroke="currentColor" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"></path></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg stroke="currentColor" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"></path></svg>');
}

.icon-detail::after {
    background-color: var(--accent-gold);
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg stroke="currentColor" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"></path></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg stroke="currentColor" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"></path></svg>');
}

.feature-title {
    font-size: 20px;
    margin-bottom: var(--space-2);
}

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

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
    background: var(--bg-brown);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-4);
}

.testimonial-card {
    background: transparent;
    padding: var(--space-4);
    border-left: 2px solid var(--surface-border);
    transition: border-color var(--transition-base);
}

.testimonial-card:hover {
    border-color: var(--accent-gold);
}

.testimonial-text {
    font-size: 20px;
    font-style: italic;
    color: var(--text-cream);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.testimonial-author strong {
    display: block;
    color: var(--text-offwhite);
    font-size: 16px;
    font-weight: 500;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: var(--bg-dark);
}

.cta-container {
    text-align: center;
    max-width: 800px;
    background: var(--surface-dark);
    padding: var(--space-10) var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border);
    box-shadow: 0 var(--space-4) var(--space-8) rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-rb-red));
}

.cta-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: var(--space-3);
}

.cta-desc {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: var(--space-5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--surface-border);
    padding: var(--space-8) 0 var(--space-4);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: var(--space-2);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: var(--space-3);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 15px;
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--surface-border);
    padding-top: var(--space-4);
    color: var(--text-muted);
    font-size: 13px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(var(--space-4));
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(7, 7, 7, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: var(--space-6) var(--space-4);
        border-bottom: 1px solid var(--surface-border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
        z-index: 99;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin-bottom: var(--space-4);
    }

    .nav-links a {
        font-size: 20px;
        padding: var(--space-2);
        display: inline-block;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-padding {
        padding: var(--space-8) 0;
    }

    .hero-title {
        font-size: clamp(20px, 6vw, 30px);
        /* Further scaled down on mobile */
    }

    .presentation-container {
        padding: var(--space-3);
    }
}