*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 25%, #6366f1 60%, #8b5cf6 80%, #ec4899 100%);
}

/* ── Floating Blobs ── */
.hero-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #5eead4;
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #c084fc;
    bottom: -5%;
    right: -5%;
    animation-delay: -3s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #f9a8d4;
    top: 40%;
    right: 20%;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Floating Cards ── */
.hero-floats {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    animation: float 6s ease-in-out infinite;
}

.float-1 {
    top: 20%;
    left: 8%;
    animation-delay: 0s;
}

.float-2 {
    top: 30%;
    right: 8%;
    animation-delay: -2s;
}

.float-3 {
    bottom: 25%;
    left: 12%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

/* ── Hero Animations ── */
.hero-badge {
    animation: fadeUp 0.8s ease-out both;
}

.hero-title {
    animation: fadeUp 0.8s ease-out 0.15s both;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease-out 0.3s both;
}

.hero-ctas {
    animation: fadeUp 0.8s ease-out 0.45s both;
}

.hero-scroll {
    animation: fadeUp 0.8s ease-out 0.6s both;
}

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

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #0d9488;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    background: #f0fdfa;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 500;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ── CTA Buttons ── */
.btn-cta {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #0d9488;
    font-weight: 600;
    padding: 1rem 2.25rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: 500;
    padding: 0.875rem 2.25rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* ── CTA Gradient ── */
.cta-gradient {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #6366f1 100%);
}

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

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

.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.5s; }

/* ── Gallery ── */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ── Testimonial Cards ── */
.testimonial-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.testimonial-card:nth-child(2) { transition-delay: 0.15s; }
.testimonial-card:nth-child(3) { transition-delay: 0.3s; }

/* ── Contact Cards ── */
.contact-card {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-card.revealed {
    opacity: 1;
    transform: translateX(0);
}

.contact-card:nth-child(2) { transition-delay: 0.1s; }
.contact-card:nth-child(3) { transition-delay: 0.2s; }
.contact-card:nth-child(4) { transition-delay: 0.3s; }

/* ── Reveal Utility ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── Navbar ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .nav-link {
    color: rgba(30, 41, 59, 0.85) !important;
}

#navbar.scrolled .nav-link:hover {
    color: #0d9488 !important;
    background: rgba(13, 148, 136, 0.06) !important;
}

#navbar.scrolled .font-display {
    color: #1e293b !important;
}

/* ── Mobile Menu ── */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

.mobile-link {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-floats {
        display: none;
    }

    .float-card {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }
}
