/* =========================================
   HERO SECTION - FULLY RESPONSIVE
   All Content Visible on Every Device
   ========================================= */

/* Base Hero Section - Desktop */
.hero,
.hero-futuristic,
section[style*="min-height: 90vh"],
section[style*="min-height:90vh"] {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 1.5rem 80px;
    overflow: visible !important;
    box-sizing: border-box;
}

/* Hero Content Container - Always Visible */
.hero-content,
.hero-futuristic .container,
section[style*="min-height: 90vh"] .container {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
}

/* Hero Title - Responsive Text */
.hero-title,
.hero h1,
.hero-futuristic h1,
section[style*="min-height: 90vh"] h1 {
    color: #fff !important;
    font-size: clamp(1.4rem, 4vw, 2.25rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 1.5rem !important;
    font-weight: 800 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    padding: 0 0.5rem !important;
}

/* Hero Subtitle - Readable on All Devices */
.hero-subtitle,
.hero p,
.hero-futuristic p {
    font-size: clamp(0.85rem, 2vw, 1rem) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 700px !important;
    margin: 0 auto 2rem !important;
    line-height: 1.7 !important;
    padding: 0 1rem !important;
    word-wrap: break-word !important;
}

/* Hero Badge - Responsive */
.hero-badge,
.section-tag,
[style*="border-radius: 50px"][style*="background: rgba(255,215,0"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    font-size: clamp(0.7rem, 2vw, 0.85rem) !important;
    margin-bottom: 1rem !important;
    word-break: keep-all !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Hero CTA Buttons Container */
.hero-ctas,
.hero-buttons,
[style*="display: flex"][style*="gap"][style*="justify-content: center"] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: center !important;
    margin-bottom: 2rem !important;
    padding: 0 1rem !important;
    width: 100% !important;
}

/* Hero Buttons - Responsive */
.hero-ctas a,
.hero-buttons a,
.hero .btn,
.hero-futuristic a[style*="background"] {
    padding: 0.875rem 1.75rem !important;
    font-size: clamp(0.85rem, 2vw, 1rem) !important;
    min-width: 160px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* Hero Stats Section - Fully Responsive Grid */
.hero-stats,
[style*="display: flex"][style*="justify-content: center"][style*="gap: 3rem"] {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    padding: 1.5rem 1rem !important;
    width: 100% !important;
}

/* Stat Items */
.stat-item,
[style*="text-align: center"][style*="min-width: 100px"] {
    text-align: center !important;
    min-width: 80px !important;
    flex: 0 1 auto !important;
}

/* Stat Numbers - Responsive */
.stat-number,
[style*="font-size: 2.5rem"][style*="font-weight: 800"],
[style*="font-size: 2.25rem"][style*="font-weight: 800"] {
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

/* Stat Labels */
.stat-label,
.stat-item span:last-child {
    font-size: clamp(0.7rem, 1.5vw, 0.85rem) !important;
    display: block !important;
    margin-top: 0.25rem !important;
}

/* Stat Dividers - Hide on Small Screens */
.stat-divider {
    width: 1px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* ===========================================
   TABLET RESPONSIVE (max-width: 1024px)
   =========================================== */
@media (max-width: 1024px) {

    .hero,
    .hero-futuristic,
    section[style*="min-height: 90vh"] {
        min-height: auto !important;
        padding: 100px 1.5rem 60px !important;
    }

    .hero-title,
    .hero h1,
    .hero-futuristic h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
    }

    .hero-stats {
        gap: 1rem !important;
    }
}

/* ===========================================
   MOBILE RESPONSIVE (max-width: 768px)
   =========================================== */
@media (max-width: 768px) {

    .hero,
    .hero-futuristic,
    section[style*="min-height: 90vh"],
    section[style*="min-height:90vh"] {
        min-height: auto !important;
        padding: 100px 1rem 50px !important;
        overflow: visible !important;
    }

    .hero-content,
    .hero-futuristic .container {
        padding: 0 0.5rem !important;
    }

    /* Title - Mobile */
    .hero-title,
    .hero h1,
    .hero-futuristic h1,
    section[style*="min-height: 90vh"] h1 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        padding: 0 !important;
    }

    /* Subtitle - Mobile */
    .hero-subtitle,
    .hero p,
    .hero-futuristic p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
        padding: 0 0.5rem !important;
    }

    /* Badge - Mobile */
    .hero-badge,
    .section-tag {
        font-size: 0.7rem !important;
        padding: 6px 12px !important;
    }

    /* CTA Buttons - Stack on Mobile */
    .hero-ctas,
    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .hero-ctas a,
    .hero-buttons a,
    .hero .btn,
    .hero-futuristic a[style*="background"] {
        width: 100% !important;
        max-width: 280px !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    /* Stats - Mobile Grid */
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 1rem 0.5rem !important;
    }

    .stat-item {
        min-width: unset !important;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    /* Hide dividers on mobile */
    .stat-divider {
        display: none !important;
    }
}

/* ===========================================
   SMALL MOBILE (max-width: 480px)
   =========================================== */
@media (max-width: 480px) {

    .hero,
    .hero-futuristic,
    section[style*="min-height: 90vh"] {
        padding: 90px 0.75rem 40px !important;
    }

    .hero-title,
    .hero h1,
    .hero-futuristic h1 {
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
    }

    .hero-subtitle,
    .hero p,
    .hero-futuristic p {
        font-size: 0.875rem !important;
    }

    .hero-badge,
    .section-tag {
        font-size: 0.65rem !important;
        padding: 5px 10px !important;
    }

    .hero-ctas a,
    .hero .btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.85rem !important;
        max-width: 260px !important;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }

    .stat-number {
        font-size: 1.35rem !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
    }
}

/* ===========================================
   VERY SMALL DEVICES (max-width: 360px)
   =========================================== */
@media (max-width: 360px) {

    .hero-title,
    .hero h1,
    .hero-futuristic h1 {
        font-size: 1.2rem !important;
    }

    .hero-subtitle,
    .hero p {
        font-size: 0.8rem !important;
    }

    .hero-ctas a,
    .hero .btn {
        font-size: 0.8rem !important;
        padding: 0.7rem 1rem !important;
    }

    .stat-number {
        font-size: 1.2rem !important;
    }
}

/* ===========================================
   FIX OVERFLOW ISSUES GLOBALLY
   =========================================== */
html,
body {
    overflow-x: hidden !important;
}

.container {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Ensure text never gets cut off */
* {
    word-wrap: break-word !important;
}

/* Fix any absolute positioned elements */
[style*="position: absolute"] {
    max-width: 100vw !important;
}