/* ========================================= */
/*    PRIME LENSES HERO STYLES              */
/* ========================================= */

/* Prime 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(26, 26, 46, 0.95) 25%, 
        rgba(46, 26, 62, 0.98) 50%, 
        rgba(26, 26, 46, 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(102, 126, 234, 0.4), transparent),
        radial-gradient(1px 1px at 80% 70%, rgba(118, 75, 162, 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(102, 126, 234, 0.25), transparent);
    background-repeat: repeat;
    background-size: 280px 220px, 340px 260px, 260px 200px, 380px 290px;
    animation: primeParticlesFlow 42s 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(102, 126, 234, 0.18) 100%),
        radial-gradient(ellipse at 80% 20%, transparent 0%, rgba(118, 75, 162, 0.15) 100%),
        radial-gradient(ellipse at 40% 40%, transparent 0%, rgba(147, 51, 234, 0.12) 100%);
    animation: primeGradientPulse 28s 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(102, 126, 234, 0.15);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 2rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.lens-category-badge:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3);
}

.badge-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 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, 
        #667eea 0%, 
        #764ba2 15%,
        #9333ea 30%, 
        #667eea 45%,
        #764ba2 60%, 
        #a855f7 80%, 
        #c084fc 100%
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: primeGradientShift 18s 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: 750px;
    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(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 15px;
    padding: 16px 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 150px;
}

.quick-spec:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.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;
    font-weight: 600;
}

.spec-value {
    display: block;
    font-size: 1.1rem;
    color: #764ba2;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(118, 75, 162, 0.3);
}

/* 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, #667eea 0%, #764ba2 50%, #9333ea 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    border: 2px solid transparent;
}

.hero-cta-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 50%, #7c3aed 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    text-decoration: none;
    color: white;
}

.hero-cta-secondary {
    background: rgba(102, 126, 234, 0.12);
    color: white;
    border: 2px solid rgba(102, 126, 234, 0.4);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-cta-secondary:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.7);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 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 - FIXED */
.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.12;
    animation: floatPrimeLens 20s infinite ease-in-out;
    color: rgba(102, 126, 234, 0.6);
    pointer-events: none;
    filter: drop-shadow(0 0 12px rgba(102, 126, 234, 0.4));
    /* Performance optimization */
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Professional Floating Positions - UPDATED */
.floating-1 { 
    top: 15%; 
    left: 10%; 
    animation-delay: 0s; 
    animation-duration: 18s; 
}
.floating-2 { 
    top: 25%; 
    right: 15%; 
    animation-delay: 2.5s; 
    animation-duration: 22s; 
}
.floating-3 { 
    top: 45%; 
    left: 8%; 
    animation-delay: 5s; 
    animation-duration: 20s; 
}
.floating-4 { 
    top: 65%; 
    right: 12%; 
    animation-delay: 7.5s; 
    animation-duration: 16s; 
}
.floating-5 { 
    bottom: 25%; 
    left: 15%; 
    animation-delay: 10s; 
    animation-duration: 19s; 
}
.floating-7 { 
    top: 35%; 
    right: 20%; 
    animation-delay: 15s; 
    animation-duration: 17s; 
}

/* FIXED Animation - Smooth floating motion */
@keyframes floatPrimeLens {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.08;
    }
    25% { 
        transform: translateY(-20px) translateX(15px) rotate(90deg) scale(1.2);
        opacity: 0.18;
    }
    50% { 
        transform: translateY(-35px) translateX(-10px) rotate(180deg) scale(0.8);
        opacity: 0.14;
    }
    75% { 
        transform: translateY(-15px) translateX(20px) rotate(270deg) scale(1.1);
        opacity: 0.20;
    }
}

/* Animations */
@keyframes primeGradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 25%; }
    50% { background-position: 200% 75%; }
    75% { background-position: 300% 50%; }
}

@keyframes primeParticlesFlow {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-50px) translateX(35px) rotate(90deg); }
    50% { transform: translateY(-100px) translateX(-20px) rotate(180deg); }
    75% { transform: translateY(-50px) translateX(40px) rotate(270deg); }
    100% { transform: translateY(0) translateX(0) rotate(360deg); }
}

@keyframes primeGradientPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 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; 
    }
    
    .hero-floating-elements {
        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, #667eea, #764ba2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .hero-cta-primary:hover,
    .hero-cta-secondary:hover {
        transform: none;
    }
}

/* ========================================
   Scroll Indicator - FIXED
======================================== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    pointer-events: auto;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
    color: rgba(255, 215, 0, 0.9);
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    display: block;
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Bounce animation for scroll arrow */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Hide scroll indicator on scroll */
.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Mobile adjustments for scroll indicator */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-text {
        font-size: 0.8rem;
    }
    
    .scroll-arrow {
        font-size: 1.3rem;
    }
}

/* 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;
    }
    
    .scroll-indicator {
        display: none;
    }
}