/* Wavy lines header animation */

/* Header with animated background */
.header-container {
    position: relative;
    width: 100%;
    height: 300px; /* Reduced from 400px for cleaner look */
    overflow: hidden;
    background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%);
    border-bottom: 1px solid rgba(255, 102, 0, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.header-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
    z-index: 5;
}

.header-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 1200px;
}

.header-text h1 {
    font-size: 6rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 
        0 2px 20px rgba(209, 104, 34, 0.7),
        0 0 40px rgba(255, 0, 0, 0.15);
    letter-spacing: -1px;
    margin: 0;
    line-height: 1.1;
}

.header-text .subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 12px;
    text-shadow: 
        0 2px 16px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(255, 102, 0, 0.2);
    letter-spacing: 1px;
    animation: subtitleGlow 4s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0%, 100% {
        text-shadow: 
            0 2px 16px rgba(0, 0, 0, 0.6),
            0 0 24px rgba(255, 102, 0, 0.2);
        color: rgba(255, 255, 255, 0.85);
    }
    50% {
        text-shadow: 
            0 2px 20px rgba(0, 0, 0, 0.7),
            0 0 32px rgba(255, 102, 0, 0.3),
            0 0 48px rgba(255, 102, 0, 0.1);
        color: rgba(255, 255, 255, 0.95);
    }
}

@keyframes accentPulse {
    0%, 100% {
        opacity: 0.3;
        width: 60px;
    }
    50% {
        opacity: 0.6;
        width: 80px;
    }
}


@media (max-width: 1024px) {
    .header-container {
        height: 250px;
    }
    
    .header-text h1 {
        font-size: 3.5rem;
    }
    
    .header-text .subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 200px;
    }
    
    .header-text h1 {
        font-size: 2.5rem;
        letter-spacing: 0;
    }
    
    .header-text .subtitle {
        font-size: 1rem;
        margin-top: 8px;
    }
    
    .header-text .subtitle::after {
        margin-top: 12px;
        width: 40px;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 180px;
    }
    
    .header-text h1 {
        font-size: 3rem;
    }
    
    .header-text .subtitle {
        font-size: 1.2rem;
    }
}

.header-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 102, 0, 0.1), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 102, 0, 0.1), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 102, 0, 0.1), transparent);
    background-size: 200px 200px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes particleFloat {
    from {
        background-position: 0 0, 40px 60px, 130px 270px;
    }
    to {
        background-position: 200px 200px, 240px 260px, 330px 470px;
    }
}
