/* ===================================
   HERO SPLIT-SCREEN - Modern Design
   =================================== */

.hero-split {
    min-height: 100vh;
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-split__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--header-height));
}

/* ===================================
   LEFT SIDE - VISUAL
   =================================== */

.hero-split__visual {
    position: relative;
    background: var(--color-primary-dark);
    overflow: hidden;
}

.hero-split__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-split__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s ease-in-out, transform 8s ease-out;
}

.hero-split__image.active {
    opacity: 1;
    transform: scale(1);
}

.hero-split__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.7) 0%, rgba(37, 99, 235, 0.5) 100%);
    z-index: 1;
}

/* Image Indicators */
.hero-split__image-indicators {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 10;
}

.image-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.image-indicator.active {
    background: var(--color-text-white);
    width: 60px;
}

.image-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Floating Badge */
.hero-split__badge {
    position: absolute;
    top: var(--spacing-2xl);
    right: var(--spacing-2xl);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: floatBadge 3s ease-in-out infinite;
}

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

.badge__icon {
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge__icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-text-white);
}

.badge__text {
    display: flex;
    flex-direction: column;
    color: var(--color-text-white);
}

.badge__number {
    font-size: 1.5rem;
    font-weight: var(--font-weight-extrabold);
    line-height: 1;
}

.badge__label {
    font-size: 0.75rem;
    opacity: 0.9;
    line-height: 1.3;
}

/* ===================================
   RIGHT SIDE - CONTENT
   =================================== */

.hero-split__content {
    position: relative;
    background: var(--color-bg-white);
    display: flex;
    align-items: center;
    padding: var(--spacing-3xl) var(--spacing-2xl);
}

.hero-split__content-inner {
    max-width: 600px;
    margin: 0 auto;
}

/* Tag Badge */
.hero-split__tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-lg);
    animation: slideInRight 0.8s ease-out;
}

.tag__icon {
    font-size: 1rem;
}

/* Title */
.hero-split__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.1;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
}

.title__line {
    display: block;
    animation: slideInUp 0.8s ease-out backwards;
}

.title__line:nth-child(1) { animation-delay: 0.1s; }
.title__line:nth-child(2) { animation-delay: 0.2s; }
.title__line:nth-child(3) { animation-delay: 0.3s; }

.title__line--highlight {
    color: var(--color-secondary);
    position: relative;
    display: inline-block;
}

.title__line--highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(220, 38, 38, 0.15);
    z-index: -1;
    animation: expandWidth 1s ease-out 0.5s backwards;
}

/* Description */
.hero-split__description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Stats Grid */
.hero-split__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.stat-box {
    background: var(--color-bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    transition: all var(--transition-base);
    animation: fadeInUp 0.8s ease-out backwards;
    border: 2px solid transparent;
}

.stat-box:nth-child(1) { animation-delay: 0.5s; }
.stat-box:nth-child(2) { animation-delay: 0.6s; }
.stat-box:nth-child(3) { animation-delay: 0.7s; }

.stat-box:hover {
    transform: translateY(-4px);
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-lg);
}

.stat-box__icon {
    width: 40px;
    height: 40px;
    background: var(--color-text-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-box__icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-secondary);
}

.stat-box__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-box__number {
    font-size: 1.75rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary);
    line-height: 1;
}

.stat-box__number::after {
    content: '+';
    font-size: 1.25rem;
    margin-left: 2px;
}

.stat-box__label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    line-height: 1.3;
    font-weight: var(--font-weight-medium);
}

/* CTA Buttons */
.hero-split__actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn--primary {
    background: var(--color-secondary);
    color: var(--color-text-white);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.btn--primary:hover {
    background: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Features List */
.hero-split__features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    animation: fadeInUp 0.8s ease-out 0.9s backwards;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.feature-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-secondary);
    flex-shrink: 0;
}

/* Scroll Indicator */
.hero-split__scroll {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    animation: fadeIn 1s ease-out 1s backwards;
}

.scroll__text {
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll__line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-secondary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes scrollLine {
    0%, 100% {
        height: 40px;
        opacity: 1;
    }
    50% {
        height: 60px;
        opacity: 0.5;
    }
}

/* ===================================
   RESPONSIVE
   =================================== */

@media screen and (max-width: 1200px) {
    .hero-split__content-inner {
        max-width: 500px;
    }

    .hero-split__title {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .hero-split__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }

    .stat-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .stat-box__number {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 968px) {
    .hero-split__container {
        grid-template-columns: 1fr;
    }

    .hero-split__visual {
        min-height: 50vh;
        order: 1;
    }

    .hero-split__content {
        order: 2;
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

    .hero-split__badge {
        top: var(--spacing-lg);
        right: var(--spacing-lg);
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .badge__icon {
        width: 40px;
        height: 40px;
    }

    .badge__icon svg {
        width: 22px;
        height: 22px;
    }

    .badge__number {
        font-size: 1.25rem;
    }

    .badge__label {
        font-size: 0.7rem;
    }

    .hero-split__stats {
        grid-template-columns: 1fr;
    }

    .stat-box {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .hero-split__actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-split__scroll {
        display: none;
    }
}

@media screen and (max-width: 576px) {
    .hero-split__visual {
        min-height: 40vh;
    }

    .hero-split__content {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero-split__title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }

    .hero-split__description {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    .hero-split__badge {
        top: var(--spacing-md);
        right: var(--spacing-md);
        padding: var(--spacing-sm);
        flex-direction: column;
        text-align: center;
    }

    .stat-box__number {
        font-size: 1.5rem;
    }

    .hero-split__image-indicators {
        bottom: var(--spacing-lg);
    }

    .image-indicator {
        width: 30px;
    }

    .image-indicator.active {
        width: 45px;
    }
}
