/* 
 * Webbfabriken® - Premium Hero Animation
 * Mesh Gradient - Elegant and Modern
 */

/* ===========================
   Mesh Gradient Hero - Default for all pages
   =========================== */
.hero-mesh,
.hero,
.hero-section,
.hero-service,
.hero-page {
    min-height: 100vh !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: 
        radial-gradient(at 40% 20%, hsla(210, 100%, 40%, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(45, 73%, 55%, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(210, 100%, 30%, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 50%, hsla(340, 100%, 76%, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(210, 100%, 40%, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 100%, hsla(45, 73%, 55%, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 0%, hsla(210, 100%, 30%, 0.2) 0px, transparent 50%),
        #0a0a0a !important;
    animation: meshMove 30s ease-in-out infinite !important;
    padding: 120px 0 80px !important;
    overflow: hidden !important;
}

/* Subtle animation for the mesh gradient */
@keyframes meshMove {
    0%, 100% { 
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
        background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    }
    25% { 
        background-position: 50% 0%, 100% 50%, 0% 100%, 50% 50%, 100% 0%, 0% 50%, 50% 100%, 0% 0%;
        background-size: 110% 110%, 105% 105%, 108% 108%, 102% 102%, 106% 106%, 104% 104%, 107% 107%, 100% 100%;
    }
    50% { 
        background-position: 100% 100%, 50% 100%, 100% 0%, 0% 100%, 50% 50%, 100% 50%, 0% 0%, 0% 0%;
        background-size: 105% 105%, 110% 110%, 103% 103%, 108% 108%, 104% 104%, 107% 107%, 102% 102%, 100% 100%;
    }
    75% { 
        background-position: 0% 50%, 0% 0%, 50% 50%, 100% 0%, 0% 100%, 50% 0%, 100% 100%, 0% 0%;
        background-size: 108% 108%, 102% 102%, 106% 106%, 105% 105%, 110% 110%, 103% 103%, 104% 104%, 100% 100%;
    }
}

/* Hero content container */
.hero-content-ultra,
.hero-content,
.hero-content-premium {
    position: relative !important;
    z-index: 10 !important;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Hero title styling */
.hero-title-ultra,
.hero-title,
.hero-title-premium {
    font-size: clamp(2.5rem, 7vw, 7rem) !important;
    font-weight: 900 !important;
    line-height: 0.9 !important;
    margin-bottom: 2rem !important;
    letter-spacing: -0.04em !important;
    color: #ffffff !important;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
    /* Subtle 3D text effect with better readability */
    text-shadow: 
        1px 1px 2px rgba(0,0,0,0.5),
        2px 2px 4px rgba(0,0,0,0.3),
        3px 3px 6px rgba(0,0,0,0.2),
        4px 4px 8px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
}

/* Gold highlight for special text */
.highlight-gold {
    background: linear-gradient(90deg, #E5C738 0%, #F0D654 50%, #E5C738 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    background-size: 200% auto !important;
    animation: goldShine 3s ease-in-out infinite !important;
    /* Specific shadow for gold text to maintain visibility */
    text-shadow: none !important;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3)) drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

@keyframes goldShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Hero subtitle styling */
.hero-subtitle-ultra,
.hero-subtitle,
.hero-subtitle-premium {
    font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 3rem !important;
    letter-spacing: 0.05em !important;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button group */
.hero-cta-group,
.hero-buttons {
    display: flex !important;
    gap: 1.5rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.7s;
}

/* Override any old hero styles */
.hero::before,
.hero::after,
.hero-section::before,
.hero-section::after {
    display: none !important;
}

/* Remove particles and other old animations */
.particles,
.liquid-shape,
.floating-orb {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-mesh,
    .hero,
    .hero-section,
    .hero-service,
    .hero-page {
        min-height: 80vh !important;
        padding: 100px 0 60px !important;
    }
    
    .hero-title-ultra,
    .hero-title,
    .hero-title-premium {
        font-size: clamp(2.5rem, 6vw, 4rem) !important;
    }
    
    .hero-subtitle-ultra,
    .hero-subtitle,
    .hero-subtitle-premium {
        font-size: 1.2rem !important;
    }
    
    .hero-cta-group,
    .hero-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }
}