/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; }

/* ── Nav Scroll State ── */
.nav-scrolled {
    background: rgba(4, 8, 14, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 79, 122, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2dd4bf, #d4a843);
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ── Hero Gradient ── */
.hero-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(20, 184, 166, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(212, 168, 67, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 50% 80%, rgba(13, 27, 42, 0.9) 0%, transparent 70%),
        linear-gradient(180deg, #080f18 0%, #0d1b2a 40%, #152a45 70%, #0d1b2a 100%);
}

.hero-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(45, 212, 191, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(212, 168, 67, 0.06) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
}

.hero-glow { pointer-events: none; }
.hero-glow-1 { background: #2dd4bf; top: 10%; left: -5%; }
.hero-glow-2 { background: #d4a843; top: 20%; right: -5%; }
.hero-glow-3 { background: #14b8a6; bottom: 10%; left: 30%; }

/* ── Product Grid Background ── */
.products-grid-bg {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(45, 212, 191, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 168, 67, 0.05) 0%, transparent 50%);
}

/* ── Reveal Animations ── */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* ── Decorative Lines ── */
.about-line { opacity: 0.3; }

/* ── Mobile Menu ── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(45, 79, 122, 0.3);
}
.mobile-link:last-child { border-bottom: none; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #04080e; }
::-webkit-scrollbar-thumb { background: #1e3a5c; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2d4f7a; }

/* ── Focus Visible ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Selection ── */
::selection { background: rgba(45, 212, 191, 0.3); color: #f0f4f8; }
