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

/* ── Navbar ── */
#navbar {
    background: transparent;
    transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
#navbar.scrolled {
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    border-radius: 1px;
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

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

/* ── Hero Animations ── */
.hero-fade {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeIn 0.7s ease forwards;
}
.hero-fade:nth-child(1) { animation-delay: 0.1s; }
.hero-fade:nth-child(2) { animation-delay: 0.25s; }
.hero-fade:nth-child(3) { animation-delay: 0.4s; }
.hero-fade:nth-child(4) { animation-delay: 0.55s; }

@keyframes heroFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.hero-card {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    animation: heroCardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-card:nth-of-type(1) { animation-delay: 0.3s; }
.hero-card:nth-of-type(2) { animation-delay: 0.5s; }
.hero-card:nth-of-type(3) { animation-delay: 0.65s; }
.hero-card:nth-of-type(4) { animation-delay: 0.8s; }

@keyframes heroCardIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes floatDelayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-delayed { animation: floatDelayed 3.5s ease-in-out infinite 0.5s; }

/* ── Scroll Indicator ── */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.3);
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.6; }
}

/* ── Service Cards ── */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Form Inputs ── */
.form-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
}

.form-submit {
    position: relative;
    overflow: hidden;
}
.form-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.form-submit:hover::after { opacity: 1; }

/* ── Section Reveal ── */
.service-reveal, .about-text, .why-text, .contact-reveal, .cta-text {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.service-reveal.visible, .about-text.visible, .why-text.visible, .contact-reveal.visible, .cta-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── About Image ── */
.about-image {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.about-image.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Why Image ── */
.why-image {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.why-image.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Contact Info ── */
.contact-info {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.contact-info.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
    .hero-card { animation-duration: 0.6s !important; }
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-6px); }
    }
}
