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

/* ─── Geometric Background Shapes ─── */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.shape-circle-1 {
    top: 10%;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,184,166,0.08) 0%, transparent 70%);
    border: 1px solid rgba(20,184,166,0.06);
}

.shape-circle-2 {
    bottom: 15%;
    left: -120px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20,184,166,0.05) 0%, transparent 70%);
    border: 1px solid rgba(20,184,166,0.04);
}

.shape-rect-1 {
    top: 45%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: rgba(20,184,166,0.06);
    border: 1px solid rgba(20,184,166,0.1);
    transform: rotate(45deg);
    border-radius: 8px;
}

.shape-triangle {
    top: 25%;
    left: 3%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(20,184,166,0.04);
    filter: blur(1px);
}

.shape-dot-grid {
    bottom: 30%;
    right: 10%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(20,184,166,0.15) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.6;
}

/* ─── Floating Cards ─── */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

.card-float-1 { animation-delay: 0s; }
.card-float-2 { animation-delay: -1.3s; }
.card-float-3 { animation-delay: -2.6s; }

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

/* ─── Card Tilt Effect ─── */
.card-tilt {
    transform: perspective(800px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ─── Feature Cards ─── */
.feature-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Fallback: ensure content visible without JS */
.reveal { opacity: 1; transform: none; }

/* ─── Navbar Scroll State ─── */
#navbar.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ─── Mobile Menu ─── */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
#mobileMenu.open {
    max-height: 400px;
}

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

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