.hero {
    position: relative;
    min-height: 650px;
    padding: 80px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* Performance optimizations */
    content-visibility: auto;
    contain-intrinsic-size: 0 650px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* Content Area */
.hero-content {
    flex: 1;
    max-width: 550px;
}

/* Title - HappyMOD */
.hero-content h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    /* Performance optimization */
    text-rendering: optimizeLegibility;
}

/* Subtitle - Discover Thousands of Verified Mods */
.hero-content h2 {
    margin: 0 0 25px;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    opacity: 0.95;
}

/* Features - Fast Secure Mods inline */
.hero-features {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 25px;
    margin: 0 0 30px;
}

.feature-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Performance optimization */
    transform: translateZ(0);
}

.feature-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
    /* Image optimization */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.feature-text {
    font-size: clamp(16px, 1.8vw, 18px);
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.feature-separator {
    opacity: 0.3;
    font-size: 18px;
    line-height: 1;
    user-select: none;
}

/* Button - FREE DOWNLOAD NOW */
.btn {
    display: inline-block;
    margin: 0 0 30px;
    padding: 16px 42px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    /* Performance optimizations */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
}

.btn-gradient,
.btn-solid {
    background: #fff;
    color: #000;
}

.btn-gradient:hover,
.btn-solid:hover {
    background: #f5f5f5;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid currentColor;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* Security Badges */
.security {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 0 25px;
}

/* Primary badge - Security Verified */
.security-primary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-primary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.security-primary-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    /* Image optimization */
    image-rendering: -webkit-optimize-contrast;
}

.security-primary-text {
    font-size: clamp(18px, 2vw, 20px);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Other security badges - in ONE ROW */
.security-others-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
    align-items: center;
}

.security-item-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.security-icon-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.security-icon-row img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.security-item-row .text-row {
    font-size: clamp(15px, 1.6vw, 16px);
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

/* Description */
.hero-description {
    max-width: 500px;
    margin: 0;
    font-size: clamp(14px, 1.5vw, 15px);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    opacity: 0.85;
}

/* Hero Image */
.hero-image {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    max-width: min(42%, 600px);
    /* Performance optimization */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-main-image {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25));
    /* Image optimization */
    image-rendering: -webkit-optimize-contrast;
}

/* Image Position Classes */
.order-left .hero-image {
    order: -1;
}

.order-background .hero-image {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    max-width: 35%;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.order-background .hero-content {
    position: relative;
    z-index: 2;
}

/* Animation - Optimized */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    /* Performance optimization */
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.2s; }
.hero-content > *:nth-child(4) { animation-delay: 0.25s; }
.hero-content > *:nth-child(5) { animation-delay: 0.3s; }
.hero-content > *:nth-child(6) { animation-delay: 0.35s; }

.hero-image {
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
    backface-visibility: hidden;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .hero-content > *,
    .hero-image,
    .btn {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 60px 0;
        contain-intrinsic-size: 0 550px;
    }
    
    .hero-container {
        gap: 40px;
    }
    
    .hero-content h2 {
        margin-bottom: 22px;
    }
    
    .hero-features {
        gap: 18px 20px;
        margin-bottom: 25px;
    }
    
    .btn {
        padding: 15px 38px;
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .security-others-row {
        gap: 20px 25px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .hero {
        padding: 50px 0;
        text-align: center;
        contain-intrinsic-size: 0 800px;
    }
    
    .hero-container {
        flex-direction: column;
        gap: 35px;
    }
    
    .hero-content {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: clamp(42px, 8vw, 48px);
    }
    
    .hero-content h2 {
        font-size: clamp(18px, 3vw, 20px);
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .btn {
        margin-left: auto;
        margin-right: auto;
    }
    
    .security {
        align-items: center;
    }
    
    .security-primary {
        justify-content: center;
    }
    
    .security-others-row {
        justify-content: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .hero-image {
        order: -1 !important;
        max-width: 60%;
        margin: 0 auto;
    }
    
    .order-background .hero-image {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        max-width: 80%;
        opacity: 0.3;
        margin: 0 auto;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
        contain-intrinsic-size: 0 700px;
    }
    
    .hero-container {
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: clamp(36px, 7vw, 40px);
        margin-bottom: 8px;
    }
    
    .hero-content h2 {
        margin-bottom: 20px;
    }
    
    .hero-features {
        gap: 10px 15px;
        margin-bottom: 22px;
    }
    
    .feature-icon {
        width: 24px;
        height: 24px;
    }
    
    .feature-text {
        font-size: 15px;
    }
    
    .feature-separator {
        font-size: 16px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 14px;
        margin-bottom: 22px;
    }
    
    .security-primary-icon {
        width: 28px;
        height: 28px;
    }
    
    .security-primary-icon img {
        width: 24px;
        height: 24px;
    }
    
    .security-primary-text {
        font-size: 18px;
    }
    
    .security-icon-row {
        width: 22px;
        height: 22px;
    }
    
    .security-icon-row img {
        width: 20px;
        height: 20px;
    }
    
    .security-item-row .text-row {
        font-size: 14px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .hero-image {
        max-width: 70%;
    }
}

/* Print Styles */
@media print {
    .hero {
        min-height: auto;
        padding: 40px 0;
        background: none !important;
        color: #000 !important;
    }
    
    .hero::before {
        display: none;
    }
    
    .btn {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .hero-image {
        max-width: 40%;
    }
}