/* ==========================================================================
   Hero Split Layout Styles (css/hero-split.css)
   ========================================================================== */

.hero-split-section {
    background-color: #0d0e12;
    color: #ffffff;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.hero-split-container {
    max-width: 1440px;
    margin: 0 auto;
}

/* Main Split Grid */
.hero-main-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    border-radius: 20px;
    overflow: hidden;
    min-height: 620px;
}

/* Left Column */
.hero-left-col {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-main-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.hero-sub-title {
    font-size: 0.95rem;
    color: #e2e8f0;
    margin: 0 0 32px 0;
    max-width: 500px;
    line-height: 1.6;
}

/* Buttons */
.hero-btn-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: #3b82f6;
    color: #ffffff;
    border: 1px solid #3b82f6;
}

.hero-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-outline:hover {
    background: #ffffff;
    color: #000000; /* Forces text to turn black on hover */
    border-color: #ffffff;
}

/* Stats Row */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.3;
}

/* Right Column (PC Only) */
.hero-right-col {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.hero-tagline {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #cbd5e1;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-right-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.15;
}

/* Rotating Center Badge */
.hero-center-badge {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: auto;
}

.badge-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(18, 20, 26, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.badge-text-svg {
    width: 100%;
    height: 100%;
    animation: rotateText 12s linear infinite;
}

.badge-arrow {
    position: absolute;
    font-size: 1.4rem;
    color: #ffffff;
}

@keyframes rotateText {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Bottom Nav Cards Row */
.hero-bottom-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.feature-card {
    background: #12141a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 20px 20px 20px;
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.card-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #64748b;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.feature-card:hover .card-arrow {
    color: #ffffff;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
}

/* ==========================================================================
   Mobile Design Breakpoint Adjustments
   ========================================================================== */

@media (max-width: 991px) {
    .hero-main-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-right-col {
        display: none; /* Hides right column on mobile matching second image */
    }

    .hero-left-col {
        padding: 40px 20px;
    }

    .hero-main-title {
        font-size: 2.1rem;
        margin-bottom: 16px;
    }

    .hero-sub-title {
        color: #e2e8f0;
        font-size: 0.88rem;
    }

    /* Floating Arrow moves to Top Right on Mobile */
    .hero-center-badge {
        top: 16px;
        right: 16px;
        left: auto;
        transform: none;
    }

    .badge-circle {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.1);
    }

    .badge-text-svg {
        display: none; /* Hide circular text on small screens */
    }

    .badge-arrow {
        font-size: 1.2rem;
    }

    /* Buttons layout for mobile */
    .hero-btn-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 32px;
    }

    .hero-btn {
        text-align: center;
        padding: 12px 10px;
        font-size: 0.8rem;
    }

    /* Stats Grid for mobile (2 items: 200+ & 16+) */
    .hero-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card-desktop-only {
        display: none; /* Removes middle 10k+ card on mobile */
    }

    /* Bottom Cards for Mobile (Displays 1 full card stack) */
    .hero-bottom-cards {
        grid-template-columns: 1fr;
    }

    .hero-bottom-cards .feature-card:nth-child(n+2) {
        display: none; /* Shows single card on mobile matching second image */
    }

    .feature-card {
        padding: 20px;
        align-items: center;
        text-align: center;
    }
}

/* ==========================================================================
   Scroll & Entrance Animations
   ========================================================================== */

/* Base transition setup */
.animate-fade-up,
.animate-slide-left,
.animate-slide-right,
.animate-scale {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Initial offsets */
.animate-fade-up {
    transform: translateY(30px);
}

.animate-slide-left {
    transform: translateX(-40px);
}

.animate-slide-right {
    transform: translateX(40px);
}

.animate-scale {
    transform: scale(0.85);
}

/* Active Visible State */
.animate-fade-up.is-visible,
.animate-slide-left.is-visible,
.animate-slide-right.is-visible,
.animate-scale.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Staggered Delays */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.5s; }
.delay-5 { transition-delay: 0.6s; }