/* =========================================
   PREMIUM MODERN HERO SECTION
   Left Align Text + Right Floating Avatars
   ========================================= */

/* Hero Container */
.hero-modern {
    position: relative;
    min-height: 80vh;
    /* Taller for impact */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--space-12) 0 var(--space-8);
    background: linear-gradient(135deg, #fdfbf7 0%, #fff 100%);
    /* Subtle warm luxury white */
}

/* Background Decoration (Subtle) */
.hero-modern::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(253, 183, 26, 0.08) 0%, transparent 70%);
    z-index: 0;
    filter: blur(60px);
}

.hero-modern::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(30, 11, 77, 0.05) 0%, transparent 70%);
    z-index: 0;
    filter: blur(60px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Text takes slightly more space */
    gap: var(--space-10);
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ================= LEFT CONTENT ================= */
.hero-content-left {
    padding-right: var(--space-8);
    opacity: 0;
    animation: slideInLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(30, 11, 77, 0.05);
    border-radius: var(--radius-full);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
    border: 1px solid rgba(30, 11, 77, 0.1);
}

.badge-icon {
    font-size: 1.2em;
}

/* Typography */
.hero-title-modern {
    font-size: var(--text-6xl);
    line-height: 1.1;
    color: var(--color-gray-900);
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.highlight-text {
    color: var(--color-primary);
    /* Deep Purple */
    position: relative;
    display: inline-block;
}

.highlight-text-alt {
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.highlight-text-alt::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--color-gold);
    opacity: 0.3;
    z-index: -1;
    transform: skewX(-10deg);
}

.hero-subtitle-modern {
    font-size: var(--text-xl);
    color: var(--color-gray-600);
    margin-bottom: var(--space-8);
    line-height: 1.6;
    max-width: 90%;
}

/* CTA Buttons */
.hero-cta-group-left {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.pulse-shadow {
    box-shadow: 0 0 0 0 rgba(253, 183, 26, 0.7);
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(253, 183, 26, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(253, 183, 26, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(253, 183, 26, 0);
    }
}

/* Trust Badges */
.hero-trust-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-gray-200);
}

.trust-avatars {
    display: flex;
}

.trust-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-right: -10px;
    font-size: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.trust-text {
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    line-height: 1.3;
}

.stars {
    color: var(--color-gold);
    letter-spacing: -2px;
}

/* ================= RIGHT VISUAL (AVATARS) ================= */
.hero-visual-right {
    position: relative;
    height: 600px;
    /* Define explicit height for float area */
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-cluster {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Base Avatar Style */
.avatar-circle {
    position: absolute;
    border-radius: 50%;
    /* Pill shape or circle */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(30, 11, 77, 0.15);
    background-color: white;
    /* Fallback */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    overflow: hidden;
    color: white;
    text-align: center;
    z-index: 10;
}

.avatar-circle::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    filter: brightness(1.1);
}

/* Hover Effect - EXPAND */
.avatar-circle:hover {
    transform: scale(1.1) rotate(5deg) !important;
    z-index: 20;
    box-shadow: 0 30px 60px rgba(30, 11, 77, 0.25);
}

/* Sizes */
.avatar-lg {
    width: 140px;
    height: 180px;
    /* Pill shape */
    border-radius: 90px;
}

.avatar-md {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.avatar-sm {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

/* Content inside Avatars */
.avatar-initials {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.avatar-label {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 4px;
    opacity: 0.9;
    font-family: var(--font-body);
}

/* ANIMATIONS */

/* Float Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.float-slow {
    animation: float 7s ease-in-out infinite;
}

.float-medium {
    animation: float 5s ease-in-out infinite;
}

.float-fast {
    animation: float 4s ease-in-out infinite;
}

/* Staggered Entry */
.avatar-circle {
    opacity: 0;
    animation-fill-mode: forwards;
}

.avatar-circle:nth-child(1) {
    animation: float 7s ease-in-out infinite, popIn 0.6s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.avatar-circle:nth-child(2) {
    animation: float 5s ease-in-out infinite, popIn 0.6s 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.avatar-circle:nth-child(3) {
    animation: float 6s ease-in-out infinite, popIn 0.6s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.avatar-circle:nth-child(4) {
    animation: float 4s ease-in-out infinite, popIn 0.6s 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.avatar-circle:nth-child(5) {
    animation: float 8s ease-in-out infinite, popIn 0.6s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.avatar-circle:nth-child(6) {
    animation: float 4.5s ease-in-out infinite, popIn 0.6s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}


@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-50px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding-top: var(--space-8);
        gap: var(--space-8);
    }

    .hero-visual-right {
        height: 400px;
        /* Smaller on tablet/mobile */
        order: -1;
        /* Show visuals first? Or keep text first? Let's keep text first for SEO/UX */
        order: 1;
    }

    .avatar-lg {
        width: 100px;
        height: 130px;
    }

    .avatar-md {
        width: 80px;
        height: 80px;
    }

    .avatar-sm {
        width: 50px;
        height: 50px;
    }

    .hero-content-left {
        text-align: center;
        padding-right: 0;
    }

    .hero-cta-group-left {
        justify-content: center;
    }

    .hero-trust-left {
        justify-content: center;
    }
}