/* ============================================
   HERO SVG TEXT ANIMATION
   ============================================ */

/* Hero Section Base */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

/* Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    background: #020617;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(45, 63, 148, 0.3) 0%, rgba(15, 30, 74, 0.5) 50%, rgba(2, 6, 23, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

/* ============================================
   HERO CONTENT BOX - Glass Box with 48px radius
   ============================================ */
.hero-content-box {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 90%;
    /* margin: 0 auto; */
    padding: 50px 40px;
    text-align: center;
    color: white;
    margin-top: 111px;
    
    /* Glass Effect */
    background: rgba(30, 47, 143, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    
    /* Box Shadow */
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    
    /* Border Radius */
    border-radius: 48px;

    margin-bottom: 105px;
    
}

/* Slot Machine Container */
.slot-machine-container {
    margin-bottom: 30px;
    position: relative;
}

/* ============================================
   APPHOUSE BRAND HOVER EFFECT
   ============================================ */
.brand-effect {
    margin: 0 0 20px 0;
    padding: 0;
    position: relative;
    display: inline-block;
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: transparent;
    text-transform: uppercase;
    cursor: default;
}

.brand-effect span:nth-child(1) {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffffff;
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    overflow: hidden;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.brand-effect:hover span:nth-child(1) {
    transform: translateY(-12px);
    color: #aad0ff;
    text-shadow: 0 0 30px rgba(36, 132, 198, 0.6);
}

.brand-effect span:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffffff;
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    overflow: hidden;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.brand-effect:hover span:nth-child(2) {
    transform: translateY(12px);
    color: #c5e0ff;
    text-shadow: 0 0 30px rgba(36, 132, 198, 0.6);
}

.brand-effect span:nth-child(3) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scaleY(0);
    width: auto;
    min-width: 160px;
    color: #ffffff;
    background: linear-gradient(135deg, #2484c6, #1a5fa6);
    font-family: 'Inter', sans-serif;
    font-size: 0.22em;
    font-weight: 600;
    letter-spacing: 0.5em;
    text-align: center;
    padding: 8px 20px 8px 40px;
    border-radius: 40px;
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(36, 132, 198, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.brand-effect:hover span:nth-child(3) {
    transform: translate(-50%, -50%) scaleY(1);
    letter-spacing: 0.3em;
    box-shadow: 0 0 30px rgba(36, 132, 198, 0.6);
}

/* ============================================
   SVG TEXT ANIMATION
   ============================================ */
.svg-text-container {
    width: 100%;
    margin: 20px 0;
}

.animated-text-svg {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: -40px;
    margin-top: -40px;
}
.svg-text-line {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    fill: transparent;
    stroke: #ffffff;
    stroke-width: 1.5;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawText 1.5s ease forwards;
    opacity: 0;
}

.svg-line-1 {
    font-size: 36px;
    animation-delay: 0.3s;
}

.svg-line-2 {
    font-size: 38px;
    font-weight: 800;
    animation-delay: 1.0s;
    stroke: #aad0ff;
}

@keyframes drawText {
    0% {
        opacity: 0;
        stroke-dashoffset: 300;
        fill: transparent;
    }
    40% {
        opacity: 1;
        stroke-dashoffset: 150;
        fill: transparent;
    }
    70% {
        stroke-dashoffset: 0;
        fill: transparent;
    }
    85% {
        fill: rgba(255, 255, 255, 0.3);
        stroke: transparent;
    }
    100% {
        opacity: 1;
        stroke-dashoffset: 0;
        fill: #ffffff;
        stroke: transparent;
    }
}

/* Line 2 gradient fill after animation */
.svg-line-2 {
    animation: drawTextGradient 1.5s ease forwards;
    animation-delay: 1.0s;
}

@keyframes drawTextGradient {
    0% {
        opacity: 0;
        stroke-dashoffset: 300;
        fill: transparent;
    }
    40% {
        opacity: 1;
        stroke-dashoffset: 150;
        fill: transparent;
    }
    70% {
        stroke-dashoffset: 0;
        fill: transparent;
    }
    85% {
        fill: rgba(170, 208, 255, 0.3);
        stroke: transparent;
    }
    100% {
        opacity: 1;
        stroke-dashoffset: 0;
        fill: #aad0ff;
        stroke: transparent;
    }
}

/* Line 3 gradient fill after animation */
.svg-line-3 {
    animation: drawTextGradient2 1.5s ease forwards;
    animation-delay: 1.7s;
}

@keyframes drawTextGradient2 {
    0% {
        opacity: 0;
        stroke-dashoffset: 300;
        fill: transparent;
    }
    40% {
        opacity: 1;
        stroke-dashoffset: 150;
        fill: transparent;
    }
    70% {
        stroke-dashoffset: 0;
        fill: transparent;
    }
    85% {
        fill: rgba(197, 224, 255, 0.3);
        stroke: transparent;
    }
    100% {
        opacity: 1;
        stroke-dashoffset: 0;
        fill: #c5e0ff;
        stroke: transparent;
    }
}

/* Hero Subtitle - Hidden initially */
.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 3vw, 1rem);
    font-weight: 400;
    opacity: 0;
    max-width: 600px;
    margin: 25px auto 30px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    animation: fadeInContent 0.8s ease 2.8s forwards;
}

/* CTA Button - Hidden initially */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #1e3b7a;
    padding: 16px 40px;
    border-radius: 60px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 15px 30px -5px rgba(0, 20, 50, 0.4);
    transition: box-shadow 0.3s, transform 0.15s, background 0.3s;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInContent 0.8s ease 3.2s forwards;
}

@keyframes fadeInContent {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button:hover {
    background: white;
    box-shadow: 0 20px 35px -5px #0f2c4e, 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.cta-button i {
    transition: transform 0.2s;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Wave Separator */
.hero-wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: 8;
    pointer-events: none;
    overflow: visible;
    filter: drop-shadow(0 -8px 20px rgba(0, 160, 255, 0.25));
}

.wave-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.wave-path {
    animation: waveFlow 8s linear infinite;
}

.wave-ltr { animation-duration: 10s; }
.wave-rtl { animation-duration: 8s; animation-direction: reverse; }
.wave-core { animation-duration: 6s; animation-direction: alternate; }

@keyframes waveFlow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 2000; }
}
@media (max-width: 768px) {
    .animated-text-svg {
        transform: scale(1.1);
        transform-origin: center;
        max-height: 140px;        /* Increased from 100px to give more room */
        margin-bottom: -10px;
        margin-top: -8px;
    }
    
    /* Add space between the two lines */
    .svg-line-1 {
        font-size: 18px;
    }
    
    .svg-line-2 {
        font-size: 20px;
    }

    
    .hero-subtitle {
        font-size: 0.64rem;
        margin: 15px auto 20px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .animated-text-svg {
        transform: scale(0.95);
        max-height: 140px;
        margin-bottom: -15px;
        margin-top: -20px;
    }

    .svg-line-1 { 
        font-size: 36px;
    }
    .svg-line-2 { 
        font-size: 52px;
    }
    
    .hero-subtitle {
        font-size: 0.64rem;
        margin: 10px auto 15px;
    }
}

/* ============================================ */
/* 📊 HERO STATS BOXES - 3 SMALL HORIZONTAL      */
/* ============================================ */

.hero-stats-boxes {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
    opacity: 0;
    animation: fadeInStats 0.8s ease 2.5s forwards;
}

@keyframes fadeInStats {
    to {
        opacity: 1;
    }
}

.stat-box {
    background: rgba(36, 132, 198, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px 20px;
    text-align: center;
    min-width: 130px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(36, 132, 198, 0.2);
    border-color: rgba(36, 132, 198, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(36, 132, 198, 0.15);
}

.stat-box-number {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #aad0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-box-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-stats-boxes {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .stat-box {
        min-width: 100px;
        padding: 10px 14px;
        border-radius: 12px;
    }
    
    .stat-box-number {
        font-size: 1.4rem;
    }
    
    .stat-box-label {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .hero-stats-boxes {
        gap: 8px;
    }
    
    .stat-box {
        min-width: 90px;
        padding: 8px 10px;
    }
    
    .stat-box-number {
        font-size: 1.2rem;
    }
    
    .stat-box-label {
        font-size: 0.55rem;
    }
}

