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

/* ── Navbar ── */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 50;
}
.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.nav-link { position: relative; }

/* ── Floating Shapes (fixed background decoration) ── */
.floating-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.shape {
    position: absolute;
    opacity: 0.04;
    animation: floatShape 20s ease-in-out infinite;
}
.shape-circle-1 {
    width: 300px; height: 300px;
    border-radius: 50%;
    background: #0D9488;
    top: 10%; left: -5%;
    animation-delay: 0s;
}
.shape-circle-2 {
    width: 200px; height: 200px;
    border-radius: 50%;
    background: #f97316;
    top: 50%; right: -3%;
    animation-delay: -5s;
}
.shape-square-1 {
    width: 150px; height: 150px;
    border-radius: 24px;
    background: #0D9488;
    bottom: 15%; left: 5%;
    transform: rotate(15deg);
    animation-delay: -10s;
}
.shape-triangle {
    width: 0; height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #f97316;
    top: 35%; left: 15%;
    animation-delay: -7s;
    opacity: 0.03;
}
.shape-circle-3 {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: #0D9488;
    bottom: 30%; right: 10%;
    animation-delay: -3s;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
}

/* ── Hero Section ── */
.hero-section {
    position: relative;
    background: #0f172a;
}

/* ── Floating Stat Cards ── */
.floating-card {
    z-index: 20;
    animation: floatCard 6s ease-in-out infinite;
}
.card-stat-1 { animation-delay: 0s; }
.card-stat-2 { animation-delay: -2s; }
.card-stat-3 { animation-delay: -4s; }

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

/* ── Service Cards ── */
.service-card {
    position: relative;
    z-index: 1;
}

/* ── Gallery Items ── */
.gallery-item {
    position: relative;
    z-index: 1;
    cursor: pointer;
}

/* ── Mobile Menu ── */
.mobile-menu {
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── 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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Reduced motion: ensure everything is visible */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    .floating-card { animation: none; }
    .shape { animation: none; }
    html { scroll-behavior: auto; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }
