:root {
    --bg-body: #F5F5F0;
    --bg-card: #FAFAF7;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --accent-orange: #FF9500;
    --accent-pink: #FF2D55;
    --accent-green: #6B7F6B;
}

/* Viral: Modern Pull-String Lamp Loader */
#loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #F5F5F0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.loader-container {
    position: relative;
    width: 200px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-lamp-svg {
    width: 150px;
    height: auto;
    overflow: visible;
}

.lamp-outline {
    fill: none;
    stroke: #1D1D1F;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lamp-orange-glow {
    fill: #FF9500;
    opacity: 0;
    transform: scale(0);
    transform-origin: 50% 50%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: blur(10px);
}

.pull-string-group {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pull-line {
    stroke: #1D1D1F;
    stroke-width: 1.5;
    stroke-dasharray: 3 3;
}

.pull-knob {
    fill: #1D1D1F;
}

/* Viral Animation States */
.is-pulling .pull-string-group {
    transform: translateY(20px);
}

.is-pulling .loader-container {
    transform: translateY(5px) scaleY(0.98);
}

.is-on .lamp-orange-glow {
    opacity: 0.7;
    transform: scale(1.8);
    filter: blur(15px);
}

.is-on .lamp-shade-fill {
    fill: rgba(255, 149, 0, 0.15);
    transition: fill 0.3s ease;
}

/* Flash Effect */
.flash-overlay {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

.is-on .flash-overlay {
    animation: viral-flash 0.4s ease-out forwards;
}

@keyframes viral-flash {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
    }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

body {
    font-family: 'Almarai', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.glass-heavy {
    background: rgba(250, 250, 247, 0.9);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-out;
}

.nav-transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.nav-logo-large {
    transform: scale(1.8);
    transform-origin: right center;
    transition: transform 0.3s ease-out;
}

.text-sf-display {
    letter-spacing: -0.022em;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

.meteor-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.meteor {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 2px;
    background: linear-gradient(to right, rgba(255, 149, 0, 0) 0%, rgba(255, 149, 0, 1) 50%, rgba(255, 149, 0, 0) 100%);
    opacity: 0;
    transform: rotate(-45deg);
    animation: meteor-shower 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.5);
}

.meteor.green {
    background: linear-gradient(to right, rgba(107, 127, 107, 0) 0%, rgba(107, 127, 107, 1) 50%, rgba(107, 127, 107, 0) 100%);
    box-shadow: 0 0 10px rgba(107, 127, 107, 0.5);
}

.meteor.gray {
    background: linear-gradient(to right, rgba(128, 128, 128, 0) 0%, rgba(128, 128, 128, 1) 50%, rgba(128, 128, 128, 0) 100%);
    box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
}

.meteor::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 149, 0, 1), transparent);
}

@keyframes meteor-shower {
    0% {
        opacity: 0;
        transform: rotate(-45deg) translateX(0);
    }

    10% {
        opacity: 0.3;
    }

    70% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: rotate(-45deg) translateX(-1000px);
    }
}

#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-beige-main {
    background-color: var(--bg-body);
}

.bg-beige-card {
    background-color: var(--bg-card);
}