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

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero Shapes ── */
@media (prefers-reduced-motion: no-preference) {
    .shape {
        position: absolute;
        border-radius: 50%;
        opacity: 0.12;
    }
    .shape-1 {
        width: 400px; height: 400px;
        background: #2DD4BF;
        top: -100px; right: -80px;
        animation: float 8s ease-in-out infinite;
    }
    .shape-2 {
        width: 250px; height: 250px;
        background: #5EEAD4;
        bottom: 10%; left: 5%;
        animation: float 6s ease-in-out infinite reverse;
    }
    .shape-3 {
        width: 150px; height: 150px;
        background: #99F6E4;
        top: 30%; left: 15%;
        animation: float 7s ease-in-out infinite;
    }
    .shape-4 {
        width: 200px; height: 200px;
        background: #14B8A6;
        bottom: 5%; right: 15%;
        animation: float 9s ease-in-out infinite reverse;
    }
    .shape-5 {
        width: 100px; height: 100px;
        background: #CCFBF1;
        top: 20%; right: 25%;
        animation: float 5s ease-in-out infinite;
    }
    .shape-6 {
        width: 300px; height: 300px;
        background: #0D9488;
        top: 50%; left: -60px;
        animation: float 10s ease-in-out infinite reverse;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* ── Navbar ── */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(11, 29, 58, 0.08);
}

/* ── Mobile Menu Animation ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 500px;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #E8EEF7; }
::-webkit-scrollbar-thumb { background: #9BB3DF; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7092D2; }

/* ── Selection ── */
::selection { background: #2DD4BF; color: #0B1D3A; }

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid #2DD4BF;
    outline-offset: 2px;
}

/* ── Print ── */
@media print {
    header, footer, .hero-shapes, #contact-form { display: none; }
    body { color: #000; background: #fff; }
    a { color: #000; }
}
