/* Home Page Specific Styles */

/* Parallax Video Container */
.parallax-video-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.parallax-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.9);
    pointer-events: none;
}

/* Services Container */
.services-container {
    background: linear-gradient(120deg, #575151 0%, #112337 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 188, 212, 0.09);
}

/* Service Boxes */
.service-icon {
    font-size: 2.5rem;
    color: #1965e4;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.service-icon:hover {
    transform: scale(1.2);
}

.service-box {
    background-color: #e0f7fa;
    color: #0d1b2a;
    border-radius: 10px;
    padding: 30px 20px;
    margin-bottom: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Solar Box Animation */
:root {
    --slide-distance: 0px;
}

@keyframes solar-sweep {
    0%   { transform: translateX(0); }
    50%  { transform: translateX(var(--slide-distance)); }
    100% { transform: translateX(0); }
}

.slide-solar {
    position: relative;
    animation: solar-sweep 6s ease-in-out infinite;
}

/* Contact Video Section */
.contact-video {
    position: relative;
    height: 30vh;
    min-height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.contact-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: 0;
}

.contact-video .overlay {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 12px;
}

/* Cookie Banner */
#cookie-banner {
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .parallax-video-container,
    .parallax-video-container video {
        height: 40vh;
    }

    .services-container {
        padding: 1rem;
        border-radius: 10px;
    }

    .slide-solar {
        animation: none !important;
        transform: none !important;
    }
}

@media (max-width: 576px) {
    .parallax-video-container,
    .parallax-video-container video {
        height: 32vh;
    }

    .parallax-content h1 {
        font-size: 1.8rem;
    }

    .parallax-content p {
        font-size: 1rem;
    }

    .contact-overlay-box {
        padding: 20px;
        margin: 0 15px;
    }

    .contact-overlay-box h2 {
        font-size: 1.5rem;
    }

    .contact-overlay-box p {
        font-size: 1rem;
    }
}

@keyframes flipTopBottom {
    0% {
        transform: perspective(1000px) rotateX(90deg);
        opacity: 0;
    }
    30% {
        transform: perspective(1000px) rotateX(0deg);
        opacity: 1;
    }
    70% {
        transform: perspective(1000px) rotateX(0deg);
        opacity: 1;
    }
    100% {
        transform: perspective(1000px) rotateX(-90deg);
        opacity: 0;
    }
}

.contact-overlay-box {
    animation: flipTopBottom 6s ease-in-out infinite;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}