/* Services Page Specific Styles */

/* Hero Section */
.hero {
    position: relative;
    height: 35vh;
    min-height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

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

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

.hero h1 {
    font-size: 2rem;
    animation: fadeInDown 1s ease;
}

/* 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;
}

/* Devis Section */
.devis {
    position: relative;
    height: 10vh;
    min-height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

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

.devis .overlay {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 12px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        height: 25vh;
        min-height: 160px;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero .btn {
        font-size: 0.9rem;
        padding: 10px 18px;
    }

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

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

    .devis {
        margin-bottom: 30px;
    }
}