/* =====================================================
   HERO SECTION - Full width image with left overlay
   ===================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: calc(var(--vh, 1vh) * 100);
    padding-top: 80px; /* Space for fixed header */
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Dark background as fallback */
    background: #0a0a0a;
}

/* =====================================================
   BACKGROUND IMAGE SLIDER - Full width
   ===================================================== */
.hero__bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    z-index: 1;
}

.hero__bg-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Prepare next slide behind current for seamless transition */
.hero__bg-slide.next {
    visibility: visible;
    z-index: 1;
}

.hero__bg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right; /* Focus on right side of images */
}

/* =====================================================
   GRADIENT OVERLAY - Dark left fading to warm colors into image
   ===================================================== */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Black on left, warm tones appearing as it fades into image */
    background: linear-gradient(
        to right,
        rgba(10, 10, 10, 1) 0%,
        rgba(10, 10, 10, 1) 20%,
        rgba(10, 10, 10, 0.98) 25%,
        rgba(15, 10, 8, 0.95) 30%,
        rgba(25, 15, 10, 0.9) 33%,
        rgba(40, 22, 12, 0.8) 36%,
        rgba(60, 30, 15, 0.65) 40%,
        rgba(80, 40, 18, 0.5) 44%,
        rgba(100, 50, 20, 0.35) 48%,
        rgba(120, 60, 25, 0.2) 52%,
        rgba(140, 70, 30, 0.1) 56%,
        rgba(160, 80, 35, 0.05) 60%,
        transparent 65%
    );
    pointer-events: none;
}

/* Bottom gradient for smooth transition to next section */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    z-index: 3;
    pointer-events: none;
}

/* Subtle warm glow accent on left */
.hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 120, 50, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 2;
}

/* =====================================================
   HERO CONTAINER & CONTENT
   ===================================================== */
.hero__container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero__content {
    max-width: 600px;
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hero Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255,107,53,0.25), rgba(255,140,0,0.15));
    color: var(--primary);
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(255,107,53,0.4);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 24px rgba(255, 107, 53, 0.2);
}

.hero__badge i {
    font-size: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Hero Title */
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__title .text-gradient {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 30%, #ffb347 60%, #ffd700 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerGradient 4s ease infinite;
}

@keyframes shimmerGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hero Text */
.hero__text {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.7;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Hero Buttons */
.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 50px;
}

.hero__buttons .btn {
    padding: 18px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 14px;
}

.hero__buttons .btn--primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
    color: #ffffff;
}

.hero__buttons .btn--primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.5);
    color: #ffffff;
}

/* Hero Stats */
.hero__stats {
    display: flex;
    gap: 50px;
}

.hero__stat {
    text-align: left;
}

.hero__stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b35, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.hero__stat-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* =====================================================
   SLIDER DOTS - Positioned on right side
   ===================================================== */
.hero__slider-dots {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 4;
}

.hero__slider-dot {
    /* Fixed size - using all methods to ensure iOS Safari compliance */
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    max-width: 10px;
    max-height: 10px;
    
    /* Appearance */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* Reset all browser defaults */
    border: none;
    padding: 0;
    margin: 0;
    outline: none;
    
    /* iOS Safari fixes */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    
    /* Box model */
    box-sizing: border-box;
    display: block;
    
    /* Prevent flex from stretching */
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: 10px;
    
    /* Text reset (in case any inherited) */
    line-height: 0;
    font-size: 0;
    text-indent: -9999px;
    overflow: hidden;
    
    /* Force GPU layer for consistent rendering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform, background;
    
    /* Prevent text selection */
    -webkit-user-select: none;
    user-select: none;
}

.hero__slider-dot.active {
    background: var(--primary) !important;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    -webkit-transform: translateZ(0) scale(1.2);
    transform: translateZ(0) scale(1.2);
}

.hero__slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* =====================================================
   SCROLL INDICATOR
   ===================================================== */
.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 4;
}

.hero__scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    position: relative;
}

.hero__scroll-mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 10px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =====================================================
   HERO RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
    .hero__content {
        max-width: 500px;
    }
    
    .hero__bg-slider {
        width: 60%;
    }
    
    .hero__overlay {
        background: linear-gradient(
            to right,
            #0c0c14 0%,
            #0c0c14 30%,
            rgba(12, 12, 20, 0.95) 35%,
            rgba(14, 14, 22, 0.7) 45%,
            rgba(14, 14, 22, 0.4) 55%,
            rgba(12, 12, 20, 0.15) 70%,
            transparent 85%
        );
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero__bg-slider {
        width: 55%;
    }
    
    .hero__overlay {
        background: linear-gradient(
            to right,
            #0c0c14 0%,
            #0c0c14 35%,
            rgba(12, 12, 20, 0.9) 42%,
            rgba(14, 14, 22, 0.6) 52%,
            rgba(14, 14, 22, 0.3) 65%,
            transparent 85%
        );
    }
    
    .hero__content {
        max-width: 50%;
    }
    
    .hero__scroll {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
        align-items: flex-start;
        padding-top: 120px;
    }
    
    /* Full width image on mobile */
    .hero__bg-slider {
        width: 100%;
        height: 100%;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
    }
    
    .hero__bg-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        /* Ensure image always covers viewport */
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    /* Vertical gradient on mobile - uses site colors */
    .hero__overlay {
        background: linear-gradient(
            to bottom,
            rgba(12, 12, 20, 0.92) 0%,
            rgba(12, 12, 20, 0.8) 30%,
            rgba(14, 14, 22, 0.55) 60%,
            rgba(14, 14, 22, 0.3) 100%
        );
    }
    
    .hero__content {
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero__title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }
    
    .hero__text {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .hero__buttons {
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }
    
    .hero__buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero__stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .hero__stat-number {
        font-size: 2rem;
    }
    
    .hero__slider-dots {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 20px;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 6px;
    }
    
    .hero__slider-dot {
        width: 6px;
        height: 6px;
        min-width: 6px;
        min-height: 6px;
        max-width: 6px;
        max-height: 6px;
        flex: 0 0 6px;
    }
    
    .hero__slider-dot.active {
        transform: scale(1.2);
        width: 6px;
        height: 6px;
        min-width: 6px;
        min-height: 6px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 100px;
    }
    
    .hero__slider-dots {
        bottom: 14px;
        gap: 5px;
    }
    
    .hero__slider-dot {
        width: 6px;
        height: 6px;
        min-width: 6px;
        min-height: 6px;
        max-width: 6px;
        max-height: 6px;
        flex: 0 0 6px;
    }
    
    .hero__slider-dot.active {
        width: 6px;
        height: 6px;
        min-width: 6px;
        min-height: 6px;
    }
    
    .hero__badge {
        padding: 10px 20px;
        font-size: 0.75rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__text {
        font-size: 1rem;
    }
    
    .hero__stat {
        text-align: center;
    }
}
/* Landscape mode */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 0;
        padding: 80px 0 40px;
    }
    
    .hero__title {
        font-size: 1.75rem;
    }
    
    .hero__text {
        font-size: 0.95rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero__stats {
        margin-top: 1rem;
    }
    
    .hero__stat-number {
        font-size: 1.5rem;
    }
    
    .hero__actions {
        margin-top: 1rem;
    }
    
    .hero__slider-dots {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 375px) {
    .hero__title {
        font-size: 1.75rem;
    }
    
    .hero__text {
        font-size: 0.95rem;
    }
    
    .hero__badge {
        font-size: 0.7rem;
        padding: 8px 16px;
    }
}

/* =====================================================
   iOS SAFARI SPECIFIC FIXES
   ===================================================== */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari only - comprehensive dot fixes */
    .hero__slider-dots {
        gap: 8px !important;
    }
    
    .hero__slider-dot {
        /* Force exact dimensions */
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
        min-height: 10px !important;
        max-width: 10px !important;
        max-height: 10px !important;
        
        /* Reset Safari button styling */
        -webkit-appearance: none !important;
        appearance: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        
        /* Force circular shape */
        border-radius: 50% !important;
        
        /* Ensure it doesn't grow */
        flex: 0 0 10px !important;
        
        /* No text content effects */
        font-size: 0 !important;
        line-height: 0 !important;
        text-indent: -9999px !important;
        
        /* Prevent touch effects */
        -webkit-touch-callout: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    /* Mobile sizes for iOS */
    @media (max-width: 768px) {
        .hero__slider-dot {
            width: 6px !important;
            height: 6px !important;
            min-width: 6px !important;
            min-height: 6px !important;
            max-width: 6px !important;
            max-height: 6px !important;
            flex: 0 0 6px !important;
        }
    }
}

/* =====================================================
   STATS BANNER - Below Hero Section
   ===================================================== */
.stats-banner {
    background: 
        linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 140, 0, 0.05) 50%, transparent 100%),
        linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%);
    padding: 50px 0;
    position: relative;
    border-top: 1px solid rgba(255, 107, 53, 0.15);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.stats-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 80% 50%, rgba(255, 140, 0, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

.stats-banner__grid {
    display: flex;
    justify-content: center;
    gap: 100px;
    position: relative;
    z-index: 1;
}

.stats-banner__item {
    text-align: center;
}

.stats-banner__number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stats-banner__label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stats-banner {
        padding: 40px 0;
    }
    
    .stats-banner__grid {
        gap: 50px;
    }
    
    .stats-banner__number {
        font-size: 2.5rem;
    }
    
    .stats-banner__label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .stats-banner__grid {
        gap: 30px;
    }
    
    .stats-banner__number {
        font-size: 2rem;
    }
    
    .stats-banner__label {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
}