/**
 * Shared hero shell styles with animated gradient background and particles.
 */

.hero-section {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--hero-right-color, var(--theme-secondary)) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    --hero-bg-shift: 0px;
    --hero-overlay-opacity: 0;
    --hero-line-offset: 0px;
}

.hero-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    background-position: calc(50% + var(--hero-bg-shift)) bottom;
    transition: background-position 1s ease-out;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(var(--theme-alternate-magenta-rgb),0.10) 35%, rgba(var(--theme-alternate-magenta-rgb),0.28) 100%);
    opacity: var(--hero-overlay-opacity);
    mix-blend-mode: multiply;
    transition: opacity 2s ease-out;
}

.hero-line {
    position: absolute;
    top: 18%;
    left: 50%;
    width: 2px;
    height: 64%;
    transform: translateX(var(--hero-line-offset)) rotate(6deg);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
    transition: transform 5s ease-out, opacity 0.6s ease;
}

.hero-section.cta-hover-active {
    --hero-overlay-opacity: 1;
    --hero-line-offset: 40px;
    --hero-bg-shift: 40px;
}

.hero-section.cta-hover-active .hero-line {
    opacity: 1;
}

@keyframes waveShift {
    from { background-position: 50% bottom; }
    to   { background-position: calc(50% + 60px) bottom; }
}

@keyframes heroLineMove {
    0% { transform: translateX(0px) rotate(6deg); }
    40% { transform: translateX(60px) rotate(10deg); }
    100% { transform: translateX(-30px) rotate(4deg); }
}

.hero-section.cta-hover-active::before {
    animation: waveShift 2s ease-out forwards;
}

.hero-section.cta-hover-active .hero-line {
    animation: heroLineMove 2s ease-in-out infinite alternate;
}
