/* ===== Hero Section Compact Fix - All Issues Resolved ===== */

/* 1. REDUCE HERO HEIGHT - Make it more compact */
.hero {
    position: relative !important;
    min-height: 70vh !important; /* Reduced from 100vh to 70vh */
    max-height: 800px !important; /* Maximum height limit */
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    background: #FFFFFF !important;
    padding: 6rem 0 4rem 0 !important; /* Reduced padding */
}

/* Hero Images - Better Visibility */
.hero-images-slider {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

.hero-image-item {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 1.5s ease-in-out !important;
}

.hero-image-item.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
}

.hero-image-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* 2. REDUCE WHITE GRADIENT - More Image Visibility */
.hero-image-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, 
                rgba(220, 20, 60, 0.02) 0%, 
                rgba(255, 107, 53, 0.02) 100%) !important; /* Very subtle - 2% only */
    z-index: 3 !important;
}

.hero-content-gradient {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* LIGHTER gradient for better image visibility */
    background: linear-gradient(to right, 
                rgba(255, 255, 255, 0.85) 0%,   /* 85% white on left */
                rgba(255, 255, 255, 0.55) 35%,  /* 55% in middle-left */
                rgba(255, 255, 255, 0.25) 60%,  /* 25% in middle-right */
                rgba(255, 255, 255, 0.05) 100%) !important; /* 5% on right - almost transparent */
    z-index: 4 !important;
}

/* Hero Content - Proper Alignment and Spacing */
.hero-content-wrapper {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    padding: 2rem 0 !important; /* Reduced padding */
}

.hero-content {
    max-width: 700px !important;
    text-align: left !important; /* Proper left alignment */
}

/* 3. TEXT ALIGNMENT - Proper Typography */
.hero-title {
    font-size: 3.8rem !important; /* Slightly reduced */
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.2rem !important;
    color: #1a1a1a !important;
    letter-spacing: -1px !important;
    text-align: left !important; /* Left aligned */
}

.gradient-text {
    background: linear-gradient(135deg, #DC143C 0%, #FF6B35 50%, #FF8C42 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block !important;
}

.hero-subtitle {
    font-size: 1.2rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.8rem !important;
    color: #4a4a4a !important;
    font-weight: 400 !important;
    text-align: left !important; /* Left aligned */
    max-width: 650px !important;
}

/* Hero Buttons */
.hero-buttons {
    display: flex !important;
    gap: 1.2rem !important;
    margin-bottom: 2.5rem !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important; /* Left aligned */
}

/* 4. STATS GRID - Compact and Non-Overlapping */
.hero-stats {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.2rem !important; /* Reduced gap */
    margin-top: 2rem !important; /* Reduced top margin */
    margin-bottom: 1rem !important;
    max-width: 700px !important; /* Constrain width */
}

.stat-item {
    text-align: center !important;
    padding: 1.3rem 1rem !important; /* Reduced padding */
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 15px !important;
    border: 2px solid rgba(220, 20, 60, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    overflow: hidden !important;
}

.stat-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #DC143C, #FF6B35) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    z-index: 0 !important;
}

.stat-item:hover::before {
    opacity: 0.08 !important;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.02) !important; /* Less movement */
    border-color: #DC143C !important;
    box-shadow: 0 12px 35px rgba(220, 20, 60, 0.25) !important;
}

.stat-icon {
    font-size: 2.8rem !important; /* Reduced size */
    color: #DC143C !important;
    margin-bottom: 0.8rem !important; /* Reduced margin */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    z-index: 1 !important;
    display: inline-block !important;
}

.stat-item:hover .stat-icon {
    color: #FF6B35 !important;
    transform: scale(1.15) rotate(10deg) !important;
}

.stat-item h3 {
    font-size: 2.5rem !important; /* Reduced size */
    font-weight: 900 !important;
    color: #1a1a1a !important;
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    background: linear-gradient(135deg, #DC143C, #FF6B35) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Hide text labels */
.stat-item p {
    display: none !important;
}

/* 5. IMAGE SLIDER DOTS - Better Positioning to Avoid Overlap */
.hero-slider-dots {
    position: absolute !important;
    bottom: 1.5rem !important;
    right: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    z-index: 10 !important;
}

.slider-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: rgba(220, 20, 60, 0.3) !important;
    border: 2px solid rgba(220, 20, 60, 0.5) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.slider-dot.active {
    background: #DC143C !important;
    border-color: #DC143C !important;
    transform: scale(1.2) !important;
}

.slider-dot:hover {
    background: #FF6B35 !important;
    border-color: #FF6B35 !important;
    transform: scale(1.1) !important;
}

/* 6. SCROLL INDICATOR - Better Positioning */
.scroll-indicator {
    position: absolute !important;
    bottom: 1.5rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.3rem !important;
    z-index: 10 !important;
    animation: bounceUpDown 2s ease-in-out infinite !important;
}

.scroll-indicator span {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #DC143C !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.scroll-indicator i {
    font-size: 1.3rem !important;
    color: #DC143C !important;
}

@keyframes bounceUpDown {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* Responsive Design - Maintain Compact Layout */

/* Large Desktop (4K) */
@media (min-width: 2560px) {
    .hero {
        min-height: 70vh !important;
        max-height: 900px !important;
    }
    
    .hero-title {
        font-size: 4.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.4rem !important;
    }
    
    .stat-icon {
        font-size: 3.2rem !important;
    }
    
    .stat-item h3 {
        font-size: 3rem !important;
    }
}

/* Desktop (1920px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .hero {
        min-height: 70vh !important;
        max-height: 850px !important;
    }
    
    .hero-title {
        font-size: 4rem !important;
    }
}

/* Laptop */
@media (max-width: 1440px) {
    .hero {
        min-height: 65vh !important;
        max-height: 750px !important;
    }
    
    .hero-title {
        font-size: 3.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.15rem !important;
    }
}

/* Tablet Landscape */
@media (max-width: 1199px) {
    .hero {
        min-height: 65vh !important;
        max-height: 700px !important;
    }
    
    .hero-title {
        font-size: 3.2rem !important;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .stat-icon {
        font-size: 2.5rem !important;
    }
    
    .stat-item h3 {
        font-size: 2.2rem !important;
    }
    
    .stat-item {
        padding: 1.2rem 0.8rem !important;
    }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    .hero {
        min-height: 70vh !important;
        max-height: 650px !important;
        padding: 5rem 0 3rem 0 !important;
    }
    
    .hero-title {
        font-size: 2.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .hero-content-gradient {
        background: linear-gradient(to right, 
                    rgba(255, 255, 255, 0.90) 0%, 
                    rgba(255, 255, 255, 0.65) 45%,
                    rgba(255, 255, 255, 0.35) 70%,
                    rgba(255, 255, 255, 0.15) 100%) !important;
    }
    
    .hero-slider-dots {
        bottom: 1.2rem !important;
        right: 1.5rem !important;
        gap: 0.6rem !important;
    }
    
    .slider-dot {
        width: 10px !important;
        height: 10px !important;
    }
}

/* Mobile Landscape */
@media (max-width: 767px) {
    .hero {
        min-height: auto !important;
        max-height: none !important;
        padding: 5rem 0 3rem 0 !important;
    }
    
    .hero-title {
        font-size: 2.3rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
    }
    
    .hero-stats {
        gap: 0.8rem !important;
        margin-top: 1.5rem !important;
    }
    
    .stat-item {
        padding: 1rem 0.6rem !important;
    }
    
    .stat-icon {
        font-size: 2.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .stat-item h3 {
        font-size: 2rem !important;
    }
    
    .hero-content-gradient {
        background: linear-gradient(to bottom, 
                    rgba(255, 255, 255, 0.92) 0%, 
                    rgba(255, 255, 255, 0.85) 50%,
                    rgba(255, 255, 255, 0.75) 80%,
                    rgba(255, 255, 255, 0.65) 100%) !important;
    }
    
    .scroll-indicator {
        bottom: 1rem !important;
    }
    
    .hero-slider-dots {
        bottom: 1rem !important;
        right: 1rem !important;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    .hero {
        padding: 4.5rem 0 2.5rem 0 !important;
    }
    
    .hero-title {
        font-size: 1.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.7rem !important;
    }
    
    .stat-item {
        padding: 0.9rem 0.5rem !important;
        border-radius: 12px !important;
    }
    
    .stat-icon {
        font-size: 2rem !important;
    }
    
    .stat-item h3 {
        font-size: 1.8rem !important;
    }
}

/* iPhone 14 Pro Max */
@media (max-width: 430px) {
    .hero-title {
        font-size: 1.7rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    .stat-item {
        padding: 0.8rem 0.4rem !important;
    }
    
    .stat-icon {
        font-size: 1.8rem !important;
    }
    
    .stat-item h3 {
        font-size: 1.6rem !important;
    }
}

/* Ensure no overlap between slider dots and stats */
@media (min-width: 768px) {
    /* Position dots on right side, stats on left */
    .hero-stats {
        margin-right: 60px !important; /* Space for slider dots */
    }
}

/* Ensure proper spacing in all layouts */
.container {
    position: relative !important;
}

/* Fix any z-index conflicts */
.hero-content-wrapper {
    z-index: 10 !important;
}

.hero-slider-dots {
    z-index: 11 !important;
}

.scroll-indicator {
    z-index: 11 !important;
}
