/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #02050D;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Animated Blobs ── */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob--mint {
    background: radial-gradient(circle, rgba(126, 223, 191, 0.3) 0%, transparent 70%);
    animation-delay: 0s;
}

.blob--blue {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    animation-delay: -7s;
}

.blob--indigo {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    animation-delay: -14s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ── Geometric Shapes ── */
.geo-shape {
    position: absolute;
    animation: geoFloat 15s ease-in-out infinite;
}

.geo-circle {
    border: 2px solid rgba(126, 223, 191, 0.15);
    border-radius: 50%;
    animation-delay: 0s;
}

.geo-square {
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    animation-delay: -3s;
}

.geo-triangle {
    animation-delay: -6s;
}

.geo-diamond {
    border: 2px solid rgba(99, 102, 241, 0.2);
    animation-delay: -9s;
}

.geo-ring {
    border: 2px solid rgba(126, 223, 191, 0.1);
    border-radius: 50%;
    animation-delay: -12s;
}

.geo-hexagon {
    border: 2px solid rgba(126, 223, 191, 0.15);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation-delay: -4s;
}

@keyframes geoFloat {
    0%, 100% { transform: translateY(0) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotate, 0deg)); }
}

.geo-square { --rotate: 15deg; }
.geo-diamond { --rotate: 45deg; }

/* ── Reveal Animations (Below Fold Only) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
}

/* ── Fallback: content visible without JS ── */
.no-js .reveal,
.js .reveal {
    /* JS will add .revealed class */
}

/* ── Navbar Scroll State ── */
#navbar.scrolled {
    background-color: rgba(2, 5, 13, 0.95) !important;
    backdrop-filter: blur(20px) !important;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050A18;
}

::-webkit-scrollbar-thumb {
    background: rgba(126, 223, 191, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(126, 223, 191, 0.5);
}

/* ── Selection ── */
::selection {
    background: rgba(126, 223, 191, 0.3);
    color: #ffffff;
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #7EDFBF;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Mobile Menu Transition ── */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* ── Product Card Hover ── */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ── Utility ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
