/* SiteSmith Custom Stylesheet - Bespoke design variables & overrides */

/* Lenis Smooth Scroll Core Overrides */
html, body {
    overflow-x: hidden;
    background-color: #0D0C0A;
}
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}
.lenis.lenis-smooth iframe {
    pointer-events: none;
}


:root {
    /* Variables for examples.html compatibility and new design fallback */
    --color-bg-darkest: #0D0C0A;
    --color-bg-dark: #1D1B18;
    --color-bg-card: rgba(35, 33, 30, 0.6);
    --color-text-primary: #F0ECE4;
    --color-text-secondary: #9A9590;
    --color-text-muted: #6B6560;
    --color-accent: #C9A96E;
    --color-accent-light: #DFC08A;
    --color-accent-gradient: linear-gradient(135deg, #C9A96E 0%, #a4814c 50%, #7e5f2b 100%);
    --color-card-gradient: linear-gradient(145deg, rgba(29, 27, 24, 0.6) 0%, rgba(13, 12, 10, 0.6) 100%);
    --border-color: rgba(255, 255, 255, 0.04);
    --border-hover: rgba(201, 169, 110, 0.35);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px rgba(201, 169, 110, 0.15);
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0D0C0A;
}
::-webkit-scrollbar-thumb {
    background: #23211e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C9A96E;
}

/* Base Interactive Canvas Background — multi-layer gradient for depth */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(201, 169, 110, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(201, 169, 110, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #151411 0%, #0D0C0A 100%);
}

/* Glassmorphic Panel Styling */
.glass-panel {
    background: rgba(35, 33, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    .glass-panel {
        background: rgba(35, 33, 30, 0.6);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
    }
}

.glass-panel:hover {
    border-color: rgba(201, 169, 110, 0.2);
    box-shadow: 0 12px 40px 0 rgba(201, 169, 110, 0.03);
}

/* Scroll-Triggered Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active {
    opacity: 1;
    transform: translate(0, 0) !important;
}

/* Typewriter Animations */
@keyframes cursor-blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.animate-cursor-blink {
    animation: cursor-blink 0.75s step-end infinite;
}

/* Status Breathing Pulse Animation */
.pulse-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(201, 169, 110, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(201, 169, 110, 0);
    }
}

/* Magnetic Buttons Activation Overrides */
.magnetic-active {
    transition: none !important;
}

/* -----------------------------------------------
   Section Background Depth System
   Creates visual rhythm as the user scrolls
   through alternating tonal zones.
----------------------------------------------- */

/* Warm radial glow that sits behind a section center */
.section-glow {
    position: relative;
}
.section-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(201, 169, 110, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Lifted surface — slightly lighter background for alternating sections */
.section-lifted {
    background-color: rgba(29, 27, 24, 0.95);
}
@media (min-width: 768px) {
    .section-lifted {
        background-color: rgba(29, 27, 24, 0.75);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

/* Dark recessed surface — darker than base for contrast */
.section-recessed {
    background-color: rgba(7, 6, 5, 0.95);
}
@media (min-width: 768px) {
    .section-recessed {
        background-color: rgba(7, 6, 5, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

/* Gradient divider between sections — soft fade from one tone to another */
.section-divider-down {
    position: relative;
}
.section-divider-down::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent, rgba(29, 27, 24, 0.75));
    pointer-events: none;
    z-index: 1;
}

.section-divider-up {
    position: relative;
}
.section-divider-up::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to top, transparent, rgba(29, 27, 24, 0.75));
    pointer-events: none;
    z-index: 1;
}

/* Ambient side gradients for wide sections */
.section-ambient {
    position: relative;
    overflow: hidden;
}
.section-ambient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at left center, rgba(201, 169, 110, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.section-ambient::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at right center, rgba(201, 169, 110, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Premium Navigation Underline Hover Animation */
.nav-link-custom {
    position: relative;
    padding-bottom: 4px;
}
.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background-color: #C9A96E;
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), left 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-link-custom:hover::after {
    width: 100%;
    left: 0;
}

/* Selection Highlight Color */
::selection {
    background-color: rgba(201, 169, 110, 0.2);
    color: #C9A96E;
}

