/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #99f6e4;
    color: #134e4a;
}

/* ── Section Labels ── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0d9488;
}

/* ── Hero Animations ── */
.hero-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }

.hero-img-anim {
    opacity: 0;
    transform: translateX(32px);
    animation: slideRight 0.8s ease 0.3s forwards;
}

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

@keyframes slideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Service Cards ── */
.service-card {
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    animation: fadeUp 0.5s ease forwards;
}

/* ── Why Cards ── */
.why-card {
    opacity: 0;
    transform: translateY(20px);
}

.why-card.visible {
    animation: fadeUp 0.5s ease forwards;
}

/* ── Navbar Scroll State ── */
#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Mobile Menu Transition ── */
#mobile-menu {
    animation: menuSlide 0.25s ease forwards;
}

@keyframes menuSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Form Focus Styles ── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ── Responsive Adjustments ── */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2rem;
        line-height: 1.2;
    }

    #contact .font-serif,
    #about .font-serif,
    #services .font-serif,
    #why-us .font-serif {
        font-size: 1.75rem;
    }
}
