/* ── Base & Utilities ── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Geometric Shapes Animation ── */
.geometric-shape {
    animation: float 6s ease-in-out infinite;
}

.geometric-shape:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.geometric-shape:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 7s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ── Program Cards ── */
.program-card {
    will-change: transform;
}

/* ── Why Us Cards ── */
.why-card {
    will-change: transform;
}

/* ── Scroll Reveal Animations ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .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; }
}

/* ── Navigation Active State ── */
.nav-link.active {
    color: #0d9488;
    background-color: #f0fdfa;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

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

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

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

/* ── Button Hover Effects ── */
a[href^="tel:"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

a[href^="tel:"]:hover,
button[type="submit"]:hover {
    transform: translateY(-1px);
}

/* ── Image Loading ── */
img {
    display: block;
    max-width: 100%;
}

/* ── Selection Color ── */
::selection {
    background-color: #99f6e4;
    color: #042f2e;
}
