/* Footer Custom Redesign - Centralized */
.custom-footer {
    background: #0b0d17;
    color: #ffffff; /* Changed to white */
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 0px;
}

.custom-footer .widget_title {
    color: #fff;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.custom-footer .widget_title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #256f51;
}

.custom-footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-footer-menu ul li {
    margin-bottom: 12px;
}

.custom-footer-menu ul li a {
    color: #ffffff; /* Changed to white */
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.custom-footer-menu ul li a:hover {
    color: #256f51;
    transform: translateX(5px);
}

.custom-footer .footer-logo {
    margin-bottom: 20px;
}

.custom-footer .info-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.custom-footer .info-social a:hover {
    background: #256f51;
    transform: translateY(-3px);
    color: #fff !important;
}

.custom-footer .contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.custom-footer .contact-item {
    display: flex;
    align-items: flex-start;
}

.custom-footer .contact-item i {
    color: #256f51;
    margin-right: 15px;
    font-size: 18px;
    margin-top: 4px;
}

.custom-footer .contact-item p,
.custom-footer .contact-item a {
    color: #ffffff; /* Changed to white */
    margin-bottom: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-footer .contact-item a:hover {
    color: #256f51;
}

/* Row 2 Animation Section */
.animation-row {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    background: rgba(0, 0, 0, 0.2);
}

.interactive-energy-wrapper {
    display: flex;
    flex-direction: row-reverse;
    /* Flips DOM order: Solar right, Bulb left visually */
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding: 0 15px;
}

/* Solar Plant Trigger (Appears on Right) */
.solar-plant-trigger {
    position: relative;
    cursor: pointer;
    text-align: center;
    padding-bottom: 15px;
    z-index: 10;
}

.solar-plant-bg {
    width: 180px;
    height: 120px;
    background-image: url('../img/icon/solar.svg');
    /* Transparent Solar graphic - check path relative to css folder */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
    transition: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: grayscale(80%) brightness(0.5);
    margin: 0 auto;
}

.solar-plant-trigger .hover-text {
    color: #256f51;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 5px;
    opacity: 0.5;
    transition: 0.4s ease;
}

/* The Bulb Display (Appears on Left) */
.bulb-display {
    position: relative;
    width: 150px;
    height: 160px;
    display: flex;
    align-items: flex-end;
}

.bulb-img {
    position: absolute;
    bottom: 25px;
    left: 31px;
    font-size: 70px;
    line-height: 1;
    transition: opacity 0.5s ease;
}

.bulb-wire {
    position: absolute;
    top: -60px;
    left: 49px;
    width: 4px;
    height: 120px;
    background: #222;
    z-index: 0;
}

.bulb-off {
    opacity: 1;
    color: #666;
}

.bulb-on {
    opacity: 0;
    color: #FFD700;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9));
    z-index: 2;
}

/* Middle Copyright */
.copyright-center {
    flex-grow: 1;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    padding-bottom: 25px;
}

.copyright-center a {
    color: #256f51;
    text-decoration: none;
}

/* The Magic Hover Interaction: Sibling Combinator */
.solar-plant-trigger:hover .solar-plant-bg {
    filter: grayscale(0%) brightness(1.1) drop-shadow(0 -5px 25px rgba(71, 175, 52, 0.4));
    transform: scale(1.1);
}

.solar-plant-trigger:hover .hover-text {
    opacity: 1;
    color: #FFD700;
}

.solar-plant-trigger:hover~.bulb-display .bulb-on {
    opacity: 1;
}

.solar-plant-trigger:hover~.bulb-display .bulb-off {
    opacity: 0;
}

/* Simulate electricity beam / connection line optionally */
.energy-beam {
    position: absolute;
    bottom: 40px;
    right: 180px;
    left: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #47AF34, #FFD700, transparent);
    opacity: 0;
    transition: 0.5s;
    z-index: 1;
}

.solar-plant-trigger:hover~.energy-beam {
    opacity: 0.5;
    box-shadow: 0 0 10px #256f51;
}

@media (max-width: 768px) {
    .interactive-energy-wrapper {
        flex-direction: column-reverse;
        align-items: center;
        gap: 20px;
        padding-top: 30px;
    }

    .energy-beam {
        display: none;
    }

    .bulb-wire {
        display: none;
    }

    /* hide wire on mobile since it piles up */
    .solar-plant-bg {
        width: 140px;
        height: 90px;
    }

    .copyright-center {
        padding-bottom: 20px;
    }
}
