/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0fdfa;
}
::-webkit-scrollbar-thumb {
    background: #99f6e4;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5eead4;
}

/* Hero blob animations */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.08); }
}
@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-48%, -52%) scale(1.03); }
}

.blob-1 { animation: float1 8s ease-in-out infinite; }
.blob-2 { animation: float2 10s ease-in-out infinite; }
.blob-3 { animation: float3 12s ease-in-out infinite; }

/* Hero fade-up animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.hero-fade-up:nth-child(2) { animation-delay: 0.15s; }
.hero-fade-up:nth-child(3) { animation-delay: 0.3s; }
.hero-fade-up:nth-child(4) { animation-delay: 0.45s; }
.hero-fade-up:nth-child(5) { animation-delay: 0.6s; }

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delays for service cards */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* Navbar background transition */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #334155 !important;
}

.nav-scrolled .nav-logo-text {
    color: #1e293b !important;
}

.nav-scrolled .nav-logo-sub {
    color: #64748b !important;
}

.nav-scrolled .mobile-link {
    color: #334155 !important;
}

.nav-scrolled #menuBtn {
    color: #334155 !important;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile menu transition */
#mobileMenu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Print styles */
@media print {
    nav, #contactForm, .reveal { display: none; }
    body { color: #000; background: #fff; }
}
