/* ================================================
   Hero About Section
   Dark hero with background image, title and animated stats
   ================================================ */

.hero-about {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #2a2a2a; /* Fallback dark gray while image loads */
}

/* ------------------------------------------------
   Background Image & Overlay
   ------------------------------------------------ */
.hero-about-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-about-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.8) 80%
    );
    /* Fallback solid dark background if gradient not supported */
    background-color: rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------
   Hero Content Container
   ------------------------------------------------ */
.hero-about-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

/* ------------------------------------------------
   Hero Text Content
   ------------------------------------------------ */
.hero-about-content {
    max-width: 750px;
}

.hero-about-title {
    font-size: 4.5rem;
    font-weight: 500;
    letter-spacing: -2px; /* Reduced from -4.32px for better readability */
    line-height: 1;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.hero-about-description {
    font-size: 1.6875rem;
    font-weight: 400;
    line-height: 1.316;
    color: #ffffff;
    max-width: 710px;
    margin: 0 auto;
}

/* ------------------------------------------------
   Stats Section with Animations
   ------------------------------------------------ */
.hero-about-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    min-height: 200px; /* Prevent layout shift */
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
}

.stat-number {
    font-size: 4.4375rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    display: inline-flex;
    align-items: baseline;
    min-height: 1.2em; /* Reserve space for numbers */
}

/* Slot Machine Animation Styles */
.slot-digit-container {
    display: inline-block;
    width: 0.6em;
    height: 1.2em;
    overflow: hidden;
    position: relative;
    vertical-align: top;
}

/* Narrower width for commas and plus signs */
.slot-digit-container[data-target=","],
.slot-digit-container[data-target="+"] {
    width: 0.3em;
}

.slot-track {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
}

.slot-digit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 1.2em;
    line-height: 1;
    flex-shrink: 0;
}

.stat-label {
    font-size: 1.875rem;
    font-weight: 400;
    line-height: 1.316;
    color: #ffffff;
    margin-top: 0.5rem;
}

/* Stat Lines with Animation */
.stat-line {
    width: 193px;
    height: 5px;
    border-radius: 10px;
    margin-top: 1rem;
    transform: scaleX(0);
    transform-origin: left;
    animation: lineGrow 1s ease-out forwards;
    animation-delay: 0.5s;
}

/* Line Animation */
@keyframes lineGrow {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

/* ------------------------------------------------
   CTA Button
   ------------------------------------------------ */
.hero-about-cta {
    margin-top: 2rem;
}

.hero-about-cta .button-green {
    background-color: #00e65f;
    color: #1e1e23;
    padding: 0.75rem 3rem;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 0;
    min-width: 241px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-about-cta .button-green:hover {
    background-color: #00a843;
    color: #1e1e23;
}

/* SVG icon inside button - force black */
.hero-about-cta .button-green svg,
.hero-about-cta .button-green svg path,
.hero-about-cta .button-green svg polygon {
    fill: #1e1e23 !important;
}

.hero-about-cta .button-green:hover svg,
.hero-about-cta .button-green:hover svg path,
.hero-about-cta .button-green:hover svg polygon {
    fill: #1e1e23 !important;
}

/* ------------------------------------------------
   Responsive Styles
   ------------------------------------------------ */

/* Large Desktop */
@media (max-width: 1440px) {
    .hero-about-title {
        font-size: 4rem;
    }

    .hero-about-description {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 3.75rem;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-about {
        min-height: auto;
        padding: 4rem 0;
    }

    .hero-about-inner {
        padding: 4rem 20px;
    }

    .hero-about-title {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }

    .hero-about-description {
        font-size: 1.375rem;
    }

    .hero-about-stats {
        gap: 3rem;
    }

    .stat-number {
        font-size: 3rem;
    }

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

    .stat-line {
        width: 150px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-about-inner {
        padding: 3rem 20px;
        gap: 3rem;
    }

    .hero-about-title {
        font-size: 2.75rem;
        letter-spacing: -1.5px;
    }

    .hero-about-description {
        font-size: 1.125rem;
    }

    .hero-about-stats {
        flex-direction: column;
        gap: 2rem;
        min-height: 600px; /* Prevent layout shift on mobile */
    }

    .stat-item {
        min-width: auto;
    }

    .stat-number {
        font-size: 3.5rem;
    }

    .stat-label {
        font-size: 1.25rem;
    }

    .stat-line {
        width: 180px;
    }

    .hero-about-cta .button-green {
        width: 100%;
        max-width: 300px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-about-title {
        font-size: 2.25rem;
        letter-spacing: -1px;
    }

    .hero-about-description {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 1.125rem;
    }
}