/* ==========================================
   STYLE CSS - Light custom wrapper as Tailwind handles the heavy lifting
=========================================== */

html {
    scroll-behavior: smooth;
}

/* ==========================================
   ANIMATED BACKGROUND ORBS
=========================================== */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
    will-change: transform;
}

.bg-orb--emerald {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #10b981 0%, transparent 70%);
    top: -10%;
    left: 20%;
    animation: orbFloatEmerald 18s ease-in-out infinite;
}

.bg-orb--violet {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    top: 40%;
    right: -10%;
    animation: orbFloatViolet 22s ease-in-out infinite;
}

.bg-orb--cyan {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    bottom: -5%;
    left: 10%;
    animation: orbFloatCyan 20s ease-in-out infinite;
}

.bg-orb--fuchsia {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #d946ef 0%, transparent 70%);
    top: 60%;
    left: 50%;
    animation: orbFloatFuchsia 25s ease-in-out infinite;
}

@keyframes orbFloatEmerald {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, -60px) scale(1.1); }
    50% { transform: translate(-40px, 80px) scale(0.95); }
    75% { transform: translate(60px, 40px) scale(1.05); }
}

@keyframes orbFloatViolet {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-70px, 50px) scale(1.05); }
    50% { transform: translate(50px, -70px) scale(0.9); }
    75% { transform: translate(-30px, -40px) scale(1.1); }
}

@keyframes orbFloatCyan {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, 70px) scale(0.95); }
    50% { transform: translate(-80px, -30px) scale(1.1); }
    75% { transform: translate(40px, -60px) scale(1); }
}

@keyframes orbFloatFuchsia {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-50px, -80px) scale(1.08); }
    50% { transform: translate(70px, 40px) scale(0.92); }
    75% { transform: translate(-60px, 60px) scale(1.04); }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bg-orb {
        animation: none !important;
    }
}

/* ==========================================
   RADIAL GRADIENT BACKGROUND
=========================================== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
    pointer-events: none;
}


/* ==========================================
   ANIMATIONS & KEYFRAMES
=========================================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Observer utility class for scroll animations */
.observe-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.observe-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   SERVICE CARDS ENHANCEMENTS
=========================================== */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Gradient overlay on hover */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    pointer-events: none;
}

.service-card--emerald::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
}

.service-card--violet::before {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
}

.service-card--cyan::before {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
}

.service-card:hover::before {
    opacity: 1;
}

/* Decorative number */
.service-card__number {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.03;
    color: white;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-card__number {
    opacity: 0.06;
}

/* Icon container animation on hover */
.service-card__icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover .service-card__icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Enhanced shadow on hover per accent */
.service-card--emerald:hover {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1), 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.service-card--violet:hover {
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1), 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.service-card--cyan:hover {
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.1), 0 0 0 1px rgba(6, 182, 212, 0.2);
}

/* ==========================================
   HERO ENHANCEMENTS
=========================================== */

/* Ambient glow that transitions per slide */
.hero-ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-ambient__blob {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    filter: blur(120px);
    opacity: 0.15;
    transition: background 1s ease, opacity 0.8s ease;
    border-radius: 50%;
}

.hero-ambient__blob--emerald {
    background: radial-gradient(ellipse, #10b981 0%, transparent 70%);
}

.hero-ambient__blob--violet {
    background: radial-gradient(ellipse, #8b5cf6 0%, transparent 70%);
}

.hero-ambient__blob--cyan {
    background: radial-gradient(ellipse, #06b6d4 0%, transparent 70%);
}

/* Word reveal animation for hero headlines */
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-word.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Badge float enhancement */
.hero-badge {
    animation: badgeFloat 4s ease-in-out infinite;
}

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

/* ==========================================
   WHY ALPHA AlePH SECTION (Metrics)
=========================================== */
.metric-card {
    position: relative;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-4px);
}

.metric-card__number {
    font-variant-numeric: tabular-nums;
}

/* ==========================================
   TESTIMONIALS SECTION
=========================================== */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '\201C'; /* Left double quotation mark */
    position: absolute;
    top: -10px;
    left: 16px;
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.06;
    color: white;
    pointer-events: none;
}

.testimonial-card--emerald { border-color: rgba(16, 185, 129, 0.2); }
.testimonial-card--violet { border-color: rgba(139, 92, 246, 0.2); }
.testimonial-card--cyan { border-color: rgba(6, 182, 212, 0.2); }

.testimonial-card--emerald:hover { border-color: rgba(16, 185, 129, 0.4); }
.testimonial-card--violet:hover { border-color: rgba(139, 92, 246, 0.4); }
.testimonial-card--cyan:hover { border-color: rgba(6, 182, 212, 0.4); }

/* ==========================================
   SECTION SEPARATORS
=========================================== */
.section-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3) 25%, rgba(139, 92, 246, 0.3) 50%, rgba(6, 182, 212, 0.3) 75%, transparent);
    border: none;
    margin: 0;
}

/* ==========================================
   COUNTER ANIMATION
=========================================== */
@keyframes counterFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-animate {
    animation: counterFadeIn 0.6s ease-out forwards;
}

/* ==========================================
   MICRO-INTERACTIONS
=========================================== */

/* Cursor glow (desktop only) */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.visible {
    opacity: 1;
}

@media (hover: none) and (pointer: coarse) {
    .cursor-glow {
        display: none !important;
    }
}

/* Nav link underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #06b6d4);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #8b5cf6, #06b6d4);
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
    border-radius: 0 2px 2px 0;
}



/* ==========================================
   WHATSAPP BUTTON
=========================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: pulse-wa 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}