/* === Base & Typography === */
html {
    scroll-behavior: smooth;
}

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

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

/* === Scroll Reveal (progressive enhancement) === */
@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);
    }

    .card-group {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .card-group.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Hero Gradient === */
.hero-gradient {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 35%, #2dd4bf 55%, #64748b 85%, #1e293b 100%);
}

/* === Hero Decorative Dots === */
.hero-dots {
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* === Floating Shapes === */
.hero-shape {
    animation: float 8s ease-in-out infinite;
}

.hero-shape-1 {
    animation-delay: 0s;
}

.hero-shape-2 {
    animation-delay: -3s;
}

.hero-shape-3 {
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* === Navbar === */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* === CTA Gradient === */
.cta-gradient {
    background: linear-gradient(135deg, #115e59 0%, #0d9488 40%, #14b8a6 70%, #334155 100%);
}

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

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

/* === Focus Styles === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Smooth image loading === */
img {
    background-color: #f1f5f9;
}

/* === Card hover effect === */
.card-group:hover .card {
    transform: translateY(-4px);
}

.card {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* === Counter animation === */
.font-heading {
    font-feature-settings: 'tnum';
}
