/* ===== Improved Hero Section with Better Image Display ===== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Hero Images Slider - Improved for 4K Images */
.hero-images-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-image-item.active {
    opacity: 1;
}

.hero-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Prevent image distortion */
    display: block;
}

/* Overlays */
.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* Hero Content */
.hero-content-wrapper {
    position: relative;
    z-index: 4;
    width: 100%;
    padding: 4rem 0;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Hero Stats - Icon Based Layout */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

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

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

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #DC143C;
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.25);
}

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

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

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

.stat-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a4a4a;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Slider Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 5;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 5;
    color: #1a1a1a;
    font-weight: 600;
    animation: bounceUpDown 2s ease-in-out infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: #DC143C;
}

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

/* Responsive Design */

/* Large Desktop (4K) */
@media (min-width: 2560px) {
    .hero-title {
        font-size: 7rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .stat-icon {
        font-size: 4rem;
    }
    
    .stat-item h3 {
        font-size: 3.5rem;
    }
}

/* Desktop (1920px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .hero-title {
        font-size: 6rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
}

/* Laptop (1440px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .hero-title {
        font-size: 5rem;
    }
}

/* Tablet Landscape */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2.8rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    .hero {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .hero-content-gradient {
        background: linear-gradient(to right, 
                    rgba(255, 255, 255, 0.98) 0%, 
                    rgba(255, 255, 255, 0.9) 70%,
                    rgba(255, 255, 255, 0.7) 100%);
    }
}

/* Mobile Landscape */
@media (max-width: 767px) {
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat-item {
        padding: 1.2rem 0.8rem;
    }
    
    .stat-icon {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 0.9rem;
    }
    
    .hero-content-gradient {
        background: linear-gradient(to bottom, 
                    rgba(255, 255, 255, 0.98) 0%, 
                    rgba(255, 255, 255, 0.95) 60%,
                    rgba(255, 255, 255, 0.9) 100%);
    }
    
    .scroll-indicator {
        left: 50%;
        transform: translateX(-50%);
        bottom: 1rem;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .stat-item {
        padding: 1rem 0.6rem;
        border-radius: 15px;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .stat-item p {
        font-size: 0.85rem;
    }
}

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

/* Ensure images don't distort on ultra-wide screens */
@media (min-aspect-ratio: 21/9) {
    .hero-image-item img {
        object-fit: cover;
        object-position: center center;
    }
}

/* Ensure proper display on portrait orientation */
@media (orientation: portrait) {
    .hero-image-item img {
        object-position: center top;
    }
}
