/* ========================================= */
/*    WIDE-ANGLE LENSES HERO STYLES         */
/* ========================================= */

/* Wide-Angle Lens Hero Section */
.lens-category-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(15, 15, 35, 0.98) 0%, 
        rgba(46, 26, 62, 0.95) 25%, 
        rgba(26, 26, 62, 0.98) 50%, 
        rgba(15, 15, 35, 0.95) 75%, 
        rgba(15, 15, 35, 0.98) 100%
    );
    margin-left: calc(-50vw + 50%);
    width: 100vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Hero Background Effects */
.lens-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: translateZ(0);
}

.lens-hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(139, 92, 246, 0.4), transparent),
        radial-gradient(1px 1px at 80% 70%, rgba(168, 85, 247, 0.3), transparent),
        radial-gradient(1px 1px at 40% 20%, rgba(147, 51, 234, 0.35), transparent),
        radial-gradient(2px 2px at 90% 90%, rgba(139, 92, 246, 0.25), transparent);
    background-repeat: repeat;
    background-size: 280px 220px, 340px 260px, 260px 200px, 380px 290px;
    animation: wideAngleParticlesFlow 38s linear infinite;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    opacity: 0.3;
}

.lens-hero-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, transparent 0%, rgba(139, 92, 246, 0.18) 100%),
        radial-gradient(ellipse at 80% 20%, transparent 0%, rgba(168, 85, 247, 0.15) 100%),
        radial-gradient(ellipse at 40% 40%, transparent 0%, rgba(147, 51, 234, 0.12) 100%);
    animation: wideAngleGradientPulse 26s ease-in-out infinite;
}

/* Hero Content */
.lens-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    transform: translateZ(0);
}

.hero-text-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Lens Category Badge */
.lens-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(139, 92, 246, 0.15);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 2rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.lens-category-badge:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.3);
}

.badge-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
}

.badge-text {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Title */
.lens-category-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.02em;
    /* Performance optimization */
    will-change: transform, opacity;
}

.hero-title-main {
    display: block;
    color: #ffffff;
    margin-bottom: 0.1em;
    font-weight: 800;
}

.hero-title-accent {
    display: block;
    background: linear-gradient(135deg, 
        #8b5cf6 0%, 
        #a855f7 15%,
        #9333ea 30%, 
        #7c3aed 45%,
        #8b5cf6 60%, 
        #a855f7 80%, 
        #c084fc 100%
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wideAngleGradientShift 16s ease-in-out infinite;
    font-weight: 900;
    position: relative;
}

/* Hero Subtitle */
.lens-category-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Quick Specs */
.lens-quick-specs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.quick-spec {
    text-align: center;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 15px;
    padding: 16px 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.quick-spec:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-3px);
}

.spec-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.spec-value {
    display: block;
    font-size: 1.1rem;
    color: #a855f7;
    font-weight: 700;
}

/* Hero CTA Buttons */
.hero-cta-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-cta-primary,
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    /* Performance optimization */
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.hero-cta-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #9333ea 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    border: 2px solid transparent;
}

.hero-cta-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #8b5cf6 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
    text-decoration: none;
    color: white;
}

.hero-cta-secondary {
    background: rgba(139, 92, 246, 0.12);
    color: white;
    border: 2px solid rgba(139, 92, 246, 0.4);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-cta-secondary:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.7);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.15);
    text-decoration: none;
    color: white;
}

.hero-cta-primary .cta-arrow,
.hero-cta-secondary .cta-arrow {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.2rem;
    font-weight: bold;
}

.hero-cta-primary:hover .cta-arrow,
.hero-cta-secondary:hover .cta-arrow {
    transform: translateX(5px);
}

/* Hero Floating Elements */
.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    transform: translateZ(0);
}

.floating-lens {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.08;
    animation: floatWideAngleLens 32s infinite ease-in-out;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.4));
    /* Performance optimization */
    will-change: transform;
    transform: translateZ(0);
}

/* Professional Floating Positions */
.floating-1 { top: 18%; left: 9%; animation-delay: 0s; animation-duration: 36s; }
.floating-2 { top: 28%; right: 16%; animation-delay: 6s; animation-duration: 40s; }
.floating-3 { top: 54%; left: 7%; animation-delay: 12s; animation-duration: 38s; }
.floating-4 { top: 74%; right: 11%; animation-delay: 18s; animation-duration: 34s; }
.floating-5 { bottom: 34%; left: 14%; animation-delay: 24s; animation-duration: 37s; }
.floating-6 { bottom: 24%; right: 18%; animation-delay: 30s; animation-duration: 35s; }
.floating-7 { top: 84%; left: 20%; animation-delay: 36s; animation-duration: 39s; }
.floating-8 { top: 44%; right: 24%; animation-delay: 42s; animation-duration: 41s; }

/* Animations */
@keyframes wideAngleGradientShift {
    0%, 100% { background-position: 0% 50%; }
    20% { background-position: 80% 20%; }
    40% { background-position: 100% 80%; }
    60% { background-position: 20% 100%; }
    80% { background-position: 0% 60%; }
}

@keyframes wideAngleParticlesFlow {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-45px) translateX(30px) rotate(90deg); }
    50% { transform: translateY(-90px) translateX(-18px) rotate(180deg); }
    75% { transform: translateY(-45px) translateX(35px) rotate(270deg); }
    100% { transform: translateY(0) translateX(0) rotate(360deg); }
}

@keyframes wideAngleGradientPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes floatWideAngleLens {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.06;
    }
    25% { 
        transform: translateY(-50px) translateX(30px) rotate(20deg) scale(1.6);
        opacity: 0.20;
    }
    50% { 
        transform: translateY(-40px) translateX(-25px) rotate(-15deg) scale(0.5);
        opacity: 0.16;
    }
    75% { 
        transform: translateY(-55px) translateX(20px) rotate(30deg) scale(1.4);
        opacity: 0.26;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .lens-category-hero { min-height: 85vh; padding: 80px 0; }
    .lens-hero-content { padding: 0 30px; }
    .lens-quick-specs { gap: 20px; }
    .floating-lens { font-size: 1.3rem; opacity: 0.06; }
}

@media (max-width: 768px) {
    .lens-category-hero { 
        min-height: 80vh; 
        padding: 60px 0;
        margin-left: calc(-50vw + 50%);
    }
    
    .lens-hero-content { padding: 0 25px; }
    
    .lens-quick-specs {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .quick-spec {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-cta-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-cta-primary,
    .hero-cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    .floating-lens { display: none; }
}

@media (max-width: 480px) {
    .lens-category-hero { 
        min-height: 75vh; 
        padding: 40px 0;
    }
    
    .lens-hero-content { padding: 0 20px; }
    .lens-category-subtitle { margin-bottom: 2.5rem; }
    .hero-cta-primary, .hero-cta-secondary { 
        padding: 12px 24px; 
        font-size: 0.9rem;
        max-width: 260px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .lens-hero-particles,
    .floating-lens,
    .lens-hero-gradient,
    .hero-title-accent {
        animation: none;
    }
    
    .hero-title-accent {
        background: linear-gradient(135deg, #8b5cf6, #a855f7);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .hero-cta-primary:hover,
    .hero-cta-secondary:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .lens-category-hero {
        background: white;
        color: black;
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .lens-hero-particles,
    .floating-lens {
        display: none;
    }
}
