/* ===== OPTIMIZED HERO SECTION STYLES ===== */
/* Performance-optimized hero section with reduced animations and improved mobile experience */

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.hero-premium {
    position: relative;
    background: #000;
    overflow: hidden;
    will-change: auto;
}

/* ===== OPTIMIZED BACKGROUND SYSTEM ===== */
.hero-bg-image {
    z-index: 1;
    will-change: transform;
    animation: heroImageZoom 20s ease-in-out infinite;
    transform: translateZ(0); /* Hardware acceleration */
}

@keyframes heroImageZoom {
    0%, 100% { transform: scale(1) translateZ(0); }
    50% { transform: scale(1.03) translateZ(0); } /* Reduced scale for better performance */
}

/* Consolidated overlay system for better performance */
.hero-overlay-combined {
    background:
        linear-gradient(135deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(15, 23, 42, 0.9) 30%,
            rgba(30, 41, 59, 0.85) 70%,
            rgba(0, 0, 0, 0.95) 100%),
        linear-gradient(45deg,
            rgba(255, 41, 83, 0.04) 0%,
            transparent 25%,
            transparent 75%,
            rgba(255, 41, 83, 0.04) 100%);
    z-index: 2;
    animation: overlayShift 20s ease-in-out infinite;
}

@keyframes overlayShift {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

/* ===== OPTIMIZED FLOATING ELEMENTS ===== */
.hero-floating-elements {
    z-index: 5;
    pointer-events: none;
    will-change: transform;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(135deg,
        rgba(255, 41, 83, 0.06) 0%,
        rgba(255, 41, 83, 0.04) 50%,
        rgba(255, 41, 83, 0.02) 100%);
    border-radius: 50%;
    will-change: transform;
    transform: translateZ(0); /* Hardware acceleration */
}

.hero-shape-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    animation: floatShape1 25s ease-in-out infinite;
}

.hero-shape-2 {
    width: 80px;
    height: 80px;
    top: 25%;
    right: 12%;
    animation: floatShape2 30s ease-in-out infinite;
    border-radius: 20px;
}

/* Simplified animations for better performance */
@keyframes floatShape1 {
    0%, 100% { transform: translate(0, 0) translateZ(0); }
    50% { transform: translate(20px, -15px) translateZ(0); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) translateZ(0); }
    50% { transform: translate(-15px, 20px) translateZ(0); }
}

/* ===== OPTIMIZED PARTICLE SYSTEM ===== */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff2953;
    border-radius: 50%;
    opacity: 0.6;
    will-change: transform;
    transform: translateZ(0); /* Hardware acceleration */
}

.hero-particle-1 {
    top: 20%;
    left: 15%;
    animation: particleFloat 15s ease-in-out infinite;
}

.hero-particle-2 {
    top: 30%;
    right: 20%;
    animation: particleFloat 18s ease-in-out infinite 3s;
}

.hero-particle-3 {
    bottom: 40%;
    left: 25%;
    animation: particleFloat 20s ease-in-out infinite 6s;
}

/* Simplified particle animation for better performance */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateZ(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) translateZ(0);
        opacity: 0.8;
    }
}

/* ===== CONTENT ANIMATIONS ===== */
.hero-content-wrapper {
    animation: heroContentFadeIn 1.5s ease-out;
}

@keyframes heroContentFadeIn {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== PREMIUM BADGE ===== */
.hero-badge-container {
    animation: badgeSlideIn 1s ease-out 0.5s both;
}

@keyframes badgeSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-premium-badge {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 41, 83, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-premium-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 41, 83, 0.3);
    border-color: rgba(255, 41, 83, 0.4);
}

/* Simplified badge glow - removed complex animation */
.badge-glow {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(255, 41, 83, 0.3), rgba(255, 41, 83, 0.2));
    border-radius: 51px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.hero-premium-badge:hover .badge-glow {
    opacity: 1;
}

.badge-content {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

.badge-icon {
    color: #ff2953;
    animation: badgeIconPulse 2s ease-in-out infinite;
}

@keyframes badgeIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.4); }
}

/* ===== MAIN HEADLINE ===== */
.hero-headline-container {
    animation: titleSlideIn 1.2s ease-out 0.8s both;
}

@keyframes titleSlideIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    position: relative;
}

.title-line {
    display: block;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.title-line-1 {
    animation: titleLine1 1s ease-out 1s both;
}

.title-line-2 {
    animation: titleLine2 1s ease-out 1.3s both;
}

@keyframes titleLine1 {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes titleLine2 {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.gradient-text-hero {
    background: linear-gradient(135deg, #ff2953 0%, #ff4d6d 50%, #ff2953 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroGradientShift 4s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 41, 83, 0.3));
}

@keyframes heroGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.title-decoration {
    position: relative;
    margin-top: 20px;
}

.title-underline {
    width: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff2953, #ff4d6d);
    margin: 0 auto;
    border-radius: 2px;
    animation: underlineGrow 2s ease-out 1.5s forwards;
    box-shadow: 0 0 10px rgba(255, 41, 83, 0.5);
}

@keyframes underlineGrow {
    to { width: 200px; }
}

.title-sparkle {
    position: absolute;
    font-size: 1.5rem;
    animation: sparkle 3s ease-in-out infinite;
}

.title-sparkle-1 {
    top: -20px;
    left: -30px;
    animation-delay: 0s;
}

.title-sparkle-2 {
    top: -15px;
    right: -25px;
    animation-delay: 1.5s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

/* ===== SUBTITLE ===== */
.hero-subtitle-container {
    animation: subtitleSlideIn 1s ease-out 1.1s both;
}

@keyframes subtitleSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle-wrapper {
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.subtitle-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, rgba(255, 41, 83, 0.7), rgba(255, 77, 109, 0.7));
    animation: subtitleHighlight 2s ease-out 2s forwards;
    box-shadow: 0 0 8px rgba(255, 41, 83, 0.4);
}

@keyframes subtitleHighlight {
    to { width: 100%; }
}

/* ===== DESCRIPTION ===== */
.hero-description-container {
    animation: descriptionFadeIn 1s ease-out 1.4s both;
}

@keyframes descriptionFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.highlight-text {
    color: #ff2953;
    font-weight: 600;
    position: relative;
    text-shadow: 0 0 10px rgba(255, 41, 83, 0.3);
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(135deg, #ff2953, #ff4d6d);
    opacity: 0.7;
    box-shadow: 0 0 5px rgba(255, 41, 83, 0.4);
}

/* ===== CTA BUTTONS ===== */
.hero-cta-container {
    animation: ctaSlideIn 1s ease-out 1.7s both;
}

@keyframes ctaSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-btn-primary {
    background: linear-gradient(135deg, #ff2953 0%, #ff4d6d 100%);
    color: white;
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 41, 83, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    will-change: transform;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 41, 83, 0.4);
    color: white;
}

/* Simplified button glow */
.btn-bg-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(255, 41, 83, 0.5), rgba(255, 77, 109, 0.5));
    border-radius: 52px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.hero-btn-primary:hover .btn-bg-glow {
    opacity: 1;
}

.btn-content {
    z-index: 2;
    position: relative;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.hero-btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

/* Simplified ripple effect */
.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    pointer-events: none;
}

.hero-btn-primary:active .btn-ripple {
    width: 200px;
    height: 200px;
}

.hero-btn-secondary {
    background: rgba(15, 23, 42, 0.6);
    color: white;
    padding: 18px 36px;
    border: 2px solid rgba(255, 41, 83, 0.4);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-hover-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 41, 83, 0.8), rgba(255, 77, 109, 0.8));
    transition: left 0.4s ease;
    z-index: -1;
}

.hero-btn-secondary:hover .btn-hover-bg {
    left: 0;
}

.hero-btn-secondary:hover {
    color: white;
    border-color: #ff2953;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 41, 83, 0.4);
}

/* ===== TRUST INDICATORS ===== */
.hero-trust-indicators {
    animation: trustSlideIn 1s ease-out 2s both;
}

@keyframes trustSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.trust-stats {
    margin-top: 30px;
}

.trust-item {
    text-align: center;
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-3px);
}

.trust-number {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.gradient-text-small {
    background: linear-gradient(135deg, #ff2953, #ff4d6d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 5px rgba(255, 41, 83, 0.3));
}

.trust-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* ===== SCROLL INDICATOR ===== */
.hero-scroll-indicator {
    z-index: 10;
    animation: scrollIndicatorFadeIn 1s ease-out 3s both;
}

@keyframes scrollIndicatorFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.scroll-indicator-wrapper {
    text-align: center;
}

.scroll-text {
    animation: scrollTextPulse 2s ease-in-out infinite;
}

@keyframes scrollTextPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.scroll-arrow {
    animation: scrollArrowBounce 2s ease-in-out infinite;
}

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

/* ===== OPTIMIZED RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-premium {
        min-height: 100vh;
    }

    .hero-main-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-subtitle {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 15px;
    }

    .hero-btn-primary, .hero-btn-secondary {
        padding: 15px 30px;
        font-size: 1rem;
    }

    /* Reduce animations on mobile for better performance */
    .hero-bg-image {
        animation: none;
    }

    .hero-overlay-combined {
        animation: none;
    }

    .trust-stats {
        flex-direction: column;
        gap: 20px !important;
    }

    .trust-divider {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-cta-wrapper {
        flex-direction: column !important;
    }

    .hero-btn-primary, .hero-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-premium-badge {
        padding: 10px 20px;
    }

    .badge-content {
        font-size: 0.8rem;
    }
}

/* Performance optimization for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-bg-image,
    .hero-overlay-combined,
    .floating-shape,
    .hero-particle {
        animation: none;
    }

    .hero-content-wrapper,
    .hero-badge-container,
    .hero-headline-container,
    .hero-subtitle-container,
    .hero-description-container,
    .hero-cta-container,
    .hero-trust-indicators,
    .hero-scroll-indicator {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
