/* ========================================
   PREMIUM PAGE HEADERS - MODERN DESIGN
   ======================================== */

/* Base Premium Header Styles */
.premium-page-header {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: var(--primary-blue);
    isolation: isolate;
}

.premium-header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.premium-header-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.premium-header-content p {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: inline-block;
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   FAQ HEADER - Purple/Blue Theme
   ======================================== */
.faq-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite;
}

.faq-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* FAQ Particles */
.faq-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.faq-particle {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    animation: floatParticle 20s ease-in-out infinite;
}

.faq-particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.faq-particle:nth-child(2) {
    left: 70%;
    top: 30%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.faq-particle:nth-child(3) {
    left: 85%;
    top: 60%;
    animation-delay: 4s;
    animation-duration: 20s;
}

.faq-particle:nth-child(4) {
    left: 15%;
    top: 70%;
    animation-delay: 6s;
    animation-duration: 16s;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }

    25% {
        transform: translate(20px, -30px) rotate(90deg);
        opacity: 0.6;
    }

    50% {
        transform: translate(-20px, -50px) rotate(180deg);
        opacity: 0.4;
    }

    75% {
        transform: translate(30px, -20px) rotate(270deg);
        opacity: 0.7;
    }
}

/* ========================================
   CONTACT HEADER - Teal/Cyan Theme
   ======================================== */
.contact-header {
    background: linear-gradient(135deg, #0f2c4a 0%, #1e40af 50%, #2563eb 100%);
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite;
}

.contact-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.3) 0%, transparent 60%);
}

/* Network Connection Lines */
.network-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.network-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    animation: pulse 3s ease-in-out infinite;
}

.network-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    transform-origin: left center;
    animation: drawLine 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

@keyframes drawLine {
    0% {
        width: 0%;
        opacity: 0;
    }

    50% {
        width: 100%;
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 0;
    }
}

/* Contact Icons */
.contact-icon-particle {
    position: absolute;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.15);
    animation: floatSlow 25s ease-in-out infinite;
}

.contact-icon-particle:nth-child(1) {
    left: 5%;
    top: 15%;
    animation-delay: 0s;
}

.contact-icon-particle:nth-child(2) {
    left: 90%;
    top: 25%;
    animation-delay: 3s;
}

.contact-icon-particle:nth-child(3) {
    left: 10%;
    top: 75%;
    animation-delay: 6s;
}

.contact-icon-particle:nth-child(4) {
    left: 85%;
    top: 70%;
    animation-delay: 9s;
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-40px) rotate(180deg);
    }
}

/* ========================================
   ABOUT HEADER - Navy/Gold Theme
   ======================================== */
.about-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite;
    position: relative;
}

.about-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
    animation: ambientGlow 10s ease-in-out infinite;
}

@keyframes ambientGlow {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Heritage Pattern Overlay */
.heritage-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.05;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.1) 20px, rgba(255, 255, 255, 0.1) 40px),
        repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.1) 20px, rgba(255, 255, 255, 0.1) 40px);
}

/* Trust Badges Floating */
.trust-badge-float {
    position: absolute;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    animation: floatBadge 8s ease-in-out infinite;
    z-index: 2;
}

.trust-badge-float:nth-child(6) {
    left: 8%;
    top: 25%;
    animation-delay: 0s;
}

.trust-badge-float:nth-child(7) {
    right: 8%;
    top: 30%;
    animation-delay: 2s;
}

.trust-badge-float:nth-child(8) {
    right: 12%;
    bottom: 25%;
    animation-delay: 4s;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px) scale(1.05);
        opacity: 1;
    }
}

/* Hide large trust badges on mobile to prevent overlap */
@media (max-width: 768px) {
    .trust-badge-float {
        display: none;
    }
}

/* ========================================
   PRODUCTS HEADER - Orange/Red Theme
   ======================================== */
.products-header {
    background: linear-gradient(135deg, #0f2c4a 0%, #1e40af 50%, #2563eb 100%);
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite;
}

.products-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 35%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 75% 65%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
}

/* Tech Grid Pattern */
.tech-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Spotlight Sweep */
.spotlight-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    animation: sweepLight 8s ease-in-out infinite;
    z-index: 2;
}

@keyframes sweepLight {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

/* Product Icon Particles */
.product-icon-particle {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.5);
    animation: rotateFloat 20s ease-in-out infinite;
    transform-style: preserve-3d;
}

.product-icon-particle:nth-child(1) {
    left: 8%;
    top: 15%;
    animation-delay: 0s;
}

.product-icon-particle:nth-child(2) {
    right: 12%;
    top: 20%;
    animation-delay: 2s;
}

.product-icon-particle:nth-child(3) {
    left: 15%;
    bottom: 25%;
    animation-delay: 4s;
}

.product-icon-particle:nth-child(4) {
    right: 10%;
    bottom: 30%;
    animation-delay: 6s;
}

@keyframes rotateFloat {

    0%,
    100% {
        transform: translateY(0px) rotateY(0deg) rotateX(0deg);
        opacity: 0.4;
    }

    25% {
        transform: translateY(-25px) rotateY(90deg) rotateX(10deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-40px) rotateY(180deg) rotateX(20deg);
        opacity: 0.5;
    }

    75% {
        transform: translateY(-25px) rotateY(270deg) rotateX(10deg);
        opacity: 0.8;
    }
}

/* ========================================
   SHARED ANIMATIONS
   ======================================== */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Shimmer Effect for Text */
.shimmer-text {
    position: relative;
    overflow: hidden;
}

.shimmer-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .premium-page-header {
        padding: 80px 0;
    }

    .premium-header-content h1 {
        font-size: 2.8rem;
    }

    .premium-header-content p {
        font-size: 1.1rem;
    }

    .glass-card {
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    .premium-page-header {
        padding: 60px 0;
    }

    .premium-header-content h1 {
        font-size: 2.2rem;
    }

    .premium-header-content p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .glass-card {
        padding: 25px 30px;
        border-radius: 16px;
    }

    /* Keep all particles visible on mobile - animations now match desktop */
}


@media (max-width: 480px) {
    .premium-header-content h1 {
        font-size: 1.8rem;
    }

    .premium-header-content p {
        font-size: 0.95rem;
    }

    .glass-card {
        padding: 20px 25px;
    }
}

/* ========================================
   ACCESSIBILITY - Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .faq-particles,
    .network-lines,
    .product-icon-particle,
    .contact-icon-particle,
    .spotlight-sweep,
    .tech-grid {
        display: none;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */
/* GPU hints only for continuously animating elements */
.faq-particle,
.product-icon-particle,
.network-dot,
.trust-badge-float,
.spotlight-sweep {
    will-change: transform, opacity;
}

/* REMOVED: Blanket GPU acceleration on all header descendants
   .premium-page-header * { transform: translateZ(0); }
   This caused stale compositor layers and white-screen on bfcache restore */