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

/* ── Geometric Background Shapes ── */
.geo-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.shape-circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    border-radius: 50%;
}
.shape-triangle {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 208px solid rgba(249, 115, 22, 0.06);
    top: 35%;
    left: -40px;
    transform: rotate(15deg);
}
.shape-circle-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
    border-radius: 50%;
}
.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(45, 212, 191, 0.2) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    top: 60%;
    left: 5%;
    opacity: 0.6;
}

/* ── Floating Cards ── */
.floating-card {
    animation: float 4s ease-in-out infinite;
}
.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1.3s; }
.card-3 { animation-delay: 2.6s; }

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

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}
@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible[data-reveal] {
        opacity: 1;
        transform: translateY(0);
    }
}
@supports not selector([data-reveal]) {
    .reveal { opacity: 1; transform: none; }
}

/* ── Navbar ── */
#navbar.scrolled {
    background: rgba(8, 14, 24, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ── Mobile Menu ── */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}
#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }

/* ── Nav hamburger animation ── */
.nav-line {
    display: block;
}
.menu-open .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .nav-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-open .nav-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* ── Button focus styles ── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Selection ── */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #f0fdfa;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }
