/* Hero Animated Banner Styles */

:root {
    --hero-bg: #0b2c24;
    /* Dark eco green */
    --accent-orange: #f8a734;
    --bulb-glow-color: rgba(255, 200, 50, 0.6);
    --bulb-on-progress: 0;
    /* Updated by JS */
}

.hero-animated {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    background-color: var(--hero-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
    z-index: 1;
}

/* Solar Panel Background Pattern */
.hero-animated__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero/hero-bg-2-3.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    mix-blend-mode: overlay;
    z-index: -1;
}

.hero-animated__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, transparent 20%, rgba(11, 44, 36, 0.9) 100%);
    z-index: -1;
}

.hero-animated .container {
    position: relative;
    z-index: 2;
}

/* Content Side */
.hero-content {
    max-width: 600px;
}

.hero-content .sec-subtitle {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: 80px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 30px;
    color: #fff;
}

.hero-content h1 span {
    color: var(--accent-orange);
    display: block;
}

.hero-content p {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

/* Illustration Side */
.hero-illustration {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 700px;
    height: 700px;
    pointer-events: none;
}

/* The Large Orange Circle */
.orange-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 100px rgba(255, 116, 27, 0.3);
    overflow: hidden;
    z-index: 1;
}

.orange-circle::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.2) 100%);
}

/* Bulb Components */
.bulb-container {
    position: absolute;
    right: 180px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 500px;
    z-index: 2;
}

.bulb {
    position: relative;
    width: 350px;
    /* Increased size for the premium image */
    height: 350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bulb__layer {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s ease;
}

/* OFF State: Dark and cold */
.bulb__layer--off {
    z-index: 1;
    filter: brightness(0.2) saturate(0.2) contrast(1.1);
}

/* ON State: Bright and glowing, masked by radial expansion */
.bulb__layer--on {
    z-index: 2;
    filter: brightness(1.2) saturate(1.8) drop-shadow(0 0 15px rgba(71, 175, 52, 0.5));
    /* The Magic: Radial expansion mask */
    clip-path: circle(calc(var(--bulb-on-progress) * 150%) at 50% 55%);
    transition: clip-path 0.1s linear, filter 0.3s ease;
}

.bulb__glow {
    position: absolute;
    top: 55%;
    /* Centered on the inner bulb area */
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at center, var(--active-color) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(var(--bulb-on-progress));
    opacity: calc(var(--bulb-on-progress) * 0.4);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.fully-on .bulb__glow {
    animation: bulbPulse 3s infinite ease-in-out;
}

/* Pulsing effect when fully on */
@keyframes bulbPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.bulb-container.fully-on .bulb__glow {
    animation: bulbPulse 3s infinite ease-in-out;
}

/* Cursor Follow Highlight */
.bulb__cursor-highlight {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    left: var(--cursor-x, 50%);
    top: var(--cursor-y, 50%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}

/* Line art bulb (top left) */
.hanging-bulb {
    position: absolute;
    top: 20px;
    left: 50px;
    width: 100px;
    opacity: 0.4;
}

/* Responsive */
@media (max-width: 1199px) {
    .hero-content h1 {
        font-size: 60px;
    }

    .orange-circle {
        width: 500px;
        height: 500px;
        right: 20px;
    }

    .bulb-container {
        right: 100px;
        transform: translateY(-50%) scale(0.8);
    }
}

@media (max-width: 991px) {
    .hero-animated {
        height: auto;
        padding: 100px 0;
    }

    .hero-illustration {
        position: relative;
        width: 100%;
        height: 500px;
        right: 0;
        transform: none;
        margin-top: 50px;
    }

    .orange-circle {
        position: relative;
        margin: 0 auto;
        right: 0;
        top: 0;
        transform: none;
    }

    .bulb-container {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.7);
        right: auto;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 40px;
    }
}