/* =========================================================
   PURE WATER FOUNDATION NEPAL (PWFN)
   Luxury Glacial Modern Light Theme & Design System
   ========================================================= */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: rgba(2, 132, 199, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(2, 132, 199, 0.6);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    background-color: #f8fafc;
    color: #0f172a;
}

/* Material Symbols Outlined Base Rules */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    user-select: none;
    vertical-align: middle;
}

/* Structural CSS for Scroll Animation */
#animation-section {
    position: relative;
    width: 100%;
    height: 500vh !important; /* 5 viewports high scroll track */
    background-color: #080c14;
}

#animation-section .sticky-container {
    position: -webkit-sticky;
    position: sticky;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    overflow: hidden;
    z-index: 10;
}

#animation-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #080c14;
}

/* Glass navigation blur (Luxury Light) */
.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 25px -5px rgba(0, 31, 77, 0.06);
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* =========================================================
   LUXURY GLACIAL LIGHT THEME BACKGROUNDS & LIGHTING
   ========================================================= */

/* Ambient Dot Grid Pattern for Light Theme */
.dot-grid-pattern {
    background-image: radial-gradient(rgba(2, 132, 199, 0.1) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Ambient Radial Glow Containers */
.ambient-glow-wrapper {
    position: relative;
    overflow: hidden;
}

.ambient-glow-top-center {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 450px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(2, 132, 199, 0.04) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(45px);
}

.ambient-glow-left {
    position: absolute;
    top: 20%;
    left: -150px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(55px);
}

.ambient-glow-right {
    position: absolute;
    bottom: 10%;
    right: -150px;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(30, 58, 138, 0.04) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(55px);
}

/* =========================================================
   LUXURY GLACIAL LIGHT CARDS
   ========================================================= */

.glass-card-luxury {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-luxury:hover {
    border-color: rgba(2, 132, 199, 0.35);
    box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
    transform: translateY(-4px);
}

.glass-card-subtle {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
}

.glass-card-subtle:hover {
    border-color: rgba(2, 132, 199, 0.3);
    background: #ffffff;
}

/* =========================================================
   ROADMAP TIMELINE (LIGHT LUXURY)
   ========================================================= */

.roadmap-spine-glow {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 3px;
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 50%, #4f46e5 100%);
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.35);
    border-radius: 9999px;
}

@media (min-width: 768px) {
    .roadmap-spine-glow {
        left: 50%;
        transform: translateX(-50%);
    }
}

.roadmap-node-glow {
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.35), inset 0 0 8px rgba(255, 255, 255, 0.4);
}

/* =========================================================
   TYPOGRAPHY GRADIENTS & ACCENTS (LIGHT THEME)
   ========================================================= */

.text-gradient-ice {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-sapphire {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================================
   LUXURY FORM INPUTS (LIGHT THEME)
   ========================================================= */

.glass-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    transition: all 0.3s ease;
}

.glass-input:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    outline: none;
}

.glass-input::placeholder {
    color: #94a3b8;
}

/* Founder avatar container styling */
.founder-avatar-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px -8px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: all 0.5s ease;
}

.founder-avatar-frame:hover {
    border-color: rgba(2, 132, 199, 0.4);
    box-shadow: 0 20px 45px -10px rgba(2, 132, 199, 0.2);
}

.founder-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-avatar-frame:hover img {
    transform: scale(1.04);
}

/* Pulse animation for live indicators */
@keyframes pulse-emerald {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.pulse-live-emerald {
    animation: pulse-emerald 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* =========================================================
   MOBILE RESPONSIVENESS & DRAWER STYLES
   ========================================================= */

#mobile-menu {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top;
}

#mobile-menu.menu-open {
    max-height: 520px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scaleY(1);
}

#mobile-menu.menu-closed {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scaleY(0.95);
}

@media (max-width: 767px) {
    #animation-section .sticky-container {
        height: calc(100svh - 64px);
        height: calc(100dvh - 64px);
    }
    
    .glass-card-luxury {
        box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.08);
    }
}
