/* ── 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 {
    font-family: 'Outfit', sans-serif;
    background: #050A18;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: rgba(30, 196, 136, 0.3);
    color: #ffffff;
}

img {
    max-width: 100%;
    display: block;
}

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(5, 10, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ── Geometric Shapes ── */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.circle-1 {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 196, 136, 0.5) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float-slow 12s ease-in-out infinite;
}

.circle-2 {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 2px solid rgba(30, 196, 136, 0.3);
    bottom: 15%;
    left: 5%;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(125, 232, 192, 0.2);
    top: 35%;
    left: 15%;
    animation: float-medium 8s ease-in-out infinite;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(30, 196, 136, 0.15);
    top: 20%;
    right: 12%;
    transform: rotate(25deg);
    animation: spin-slow 20s linear infinite;
}

.square-1 {
    width: 90px;
    height: 90px;
    border: 2px solid rgba(30, 196, 136, 0.25);
    bottom: 20%;
    right: 20%;
    transform: rotate(45deg);
    animation: float-medium 9s ease-in-out infinite;
}

.ring-1 {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid rgba(125, 232, 192, 0.2);
    bottom: 10%;
    left: 25%;
    animation: float-slow 14s ease-in-out infinite reverse;
}

.circle-4 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    top: -150px;
    left: -150px;
    animation: float-slow 15s ease-in-out infinite;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 105px solid rgba(30, 196, 136, 0.1);
    top: 40%;
    right: 8%;
    transform: rotate(-15deg);
    animation: spin-slow 25s linear infinite reverse;
}

/* ── Animations ── */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default visible state for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays */
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }

/* ── Mobile Menu ── */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    transition: opacity 0.3s ease;
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(30, 196, 136, 0.7);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050A18;
}
::-webkit-scrollbar-thumb {
    background: rgba(30, 196, 136, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 196, 136, 0.5);
}
