/* ==========================================================================
   Hero Section - Digital Growth Agency Slider Layout
   ========================================================================== */

.hero {
    position: relative;
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 110px 0 0;
    background: #f8f9fa;
    overflow: hidden;
}

/* Background layers */
.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(241, 245, 249, 0.6) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(226, 232, 240, 0.4) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.02) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero__container {
    max-width: 1280px;
    /* Aligned with Header Width exactly */
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
    z-index: 3;
}

/* --- Slider Viewport Card --- */
.hero__slider {
    position: relative;
    width: 100%;
    background: #f8f9fa;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    overflow: hidden;
    height: 580px;
    z-index: 3;
}

/* --- Slide Track --- */
.hero__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* --- Single Slide Item --- */
.hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hero__slide.is-active {
    opacity: 1;
}

/* Image-only slide */
.hero__slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    user-select: none;
}

.hero__subtitle-badge {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero__main-title {
    font-family: var(--font-body);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.08;
    font-weight: 800;
    color: #0d0d0d;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero__main-title--gray {
    color: #94a3b8;
}

.hero__desc {
    font-family: var(--font-body);
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 35px;
    max-width: 450px;
}

/* CTA Group & Social Proof */
.hero__cta-group {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    width: 100%;
}

.hero__social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero__avatars {
    display: flex;
    align-items: center;
}

.hero__avatars img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-right: -10px;
    object-fit: cover;
    display: block;
}

.hero__avatar-more {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0a0a0a;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    user-select: none;
}

.hero__social-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.35;
}

.hero__social-text strong {
    color: #0a0a0a;
    font-weight: 700;
}

.hero__social-text span {
    color: var(--color-text-secondary);
}

/* Right Side: The visual graphic container */
.hero__visual {
    flex: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero__visual-scene {
    width: 100%;
    max-width: 520px;
}

.hero__visual-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    user-select: none;
}

/* --- Slide Navigation Buttons (Floating inside padding) --- */
.hero__slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.hero__slider-btn:hover {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hero__slider-btn--prev {
    left: 32px;
}

.hero__slider-btn--next {
    right: 32px;
}

/* --- Slide Dot Indicators (Active is stretched) --- */
.hero__slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.hero__slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero__slider-dot.is-active {
    width: 24px;
    border-radius: 100px;
    background: #0a0a0a;
}

/* --- Service Cards Grid --- */
.hero__services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.hero__service-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 24px;
    padding: 28px 32px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero__service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.02);
}

.hero__service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-bg-secondary);
    color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s;
}

.hero__service-card:hover .hero__service-icon {
    background: #0a0a0a;
    color: #ffffff;
}

.hero__service-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 20px;
}

.hero__service-body h3 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0;
}

.hero__service-body p {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0;
}

.hero__service-arrow {
    position: absolute;
    right: 28px;
    bottom: 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-bg-secondary);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.hero__service-card:hover .hero__service-arrow {
    background: #0a0a0a;
    color: #ffffff;
    transform: translateX(3px);
}

/* --- Bottom Statistics Bar --- */
.hero__stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0a0e17;
    border-radius: 24px;
    padding: 24px 48px;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.hero__stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero__stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero__stat-info {
    display: flex;
    flex-direction: column;
}

.hero__stat-val {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.hero__stat-lbl {
    font-family: var(--font-body);
    font-size: 12px;
    color: #94a3b8;
}

@media (max-width: 991px) {
    .hero {
        padding-top: 90px;
        padding-bottom: 0;
    }

    .hero__container {
        gap: 40px;
    }

    .hero__slider {
        padding: 0;
        height: 380px;
    }

    .hero__slider-btn {
        display: none !important;
        /* Hide prev/next on mobile, swipe or dots are enough */
    }

    .hero__row {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .hero__content {
        max-width: 100%;
        align-items: center;
    }

    .hero__desc {
        margin-inline: auto;
    }

    .hero__cta-group {
        justify-content: center;
        gap: 24px;
    }

    .hero__services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero__stats-bar {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 24px;
        padding: 32px;
    }
}

@media (max-width: 576px) {
    .hero__stats-bar {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
        text-align: left;
    }

    .hero__stat-item {
        justify-content: flex-start;
    }
}