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

/* ===== NAVBAR SCROLL ===== */
nav.scrolled {
    background: rgba(17, 26, 48, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
nav.scrolled .nav-link { color: rgba(255,255,255,0.85); }
nav.scrolled .nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* ===== HERO BLOBS ===== */
.hero-blob {
    animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 { animation-delay: 0s; }
.blob-2 { animation-delay: -3s; }
.blob-3 { animation-delay: -5s; }

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== REVEAL ANIMATIONS (below-fold only) ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html { scroll-behavior: auto; }
    .hero-blob { animation: none; }
    .animate-bounce { animation: none; }
    .service-card { transition: none; }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transition: transform 0.3s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
}

/* ===== MOBILE MENU ===== */
#mobileMenu {
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FORM INPUTS ===== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

/* ===== GALLERY HOVER ===== */
.gallery-item {
    transition: transform 0.4s ease;
}
.gallery-item:hover {
    transform: scale(1.02);
}

/* ===== CTA LINK HOVER ===== */
a { transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111a30; }
::-webkit-scrollbar-thumb { background: #2dd4bf; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5eead4; }
</style>
