/* Home Page Specific Styles */
/* Fix for navbar positioning */
body {
    padding-top: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Parallax container fixes */
.parallax-video-container {
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.parallax-video-container video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 92vh;
    object-fit: cover;
    z-index: -1;
}

.parallax-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;

}

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

.country-select-wrapper {
    position: relative;
    display: inline-block;
    width: 200px;
}

.country-input {
    width: 100%;
    height: 40px;
    padding: 10px 10px 10px 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;

    background: white no-repeat 10px center;
    background-size: 24px 18px;
}

.country-dropdown {
    position: absolute;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: none;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
}

.country-item {
    display: flex;
    align-items: center;
    padding: 2px 6px !important; /* Reduced padding */
    cursor: pointer;
    font-size: 13px !important; /* Adjust font size if needed */
    line-height: 2.5 !important; /* Reduce line spacing */
}

.country-item:hover {
    background: #f0f0f0 !important;
}

.flag {
    width: 24px;
    height: 18px;
    margin-right: 10px;
    background-size: cover;
}

.hide {
    display: none;
}


/* Language Modal Styles */
#language-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

#language-modal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

#language-modal .language-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    margin-bottom: 10px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

#language-modal .language-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#language-modal .language-option img {
    margin-right: 8px;
    border: 1px solid #dee2e6;
}

@media (max-width: 576px) {
    #language-modal .language-option {
        font-size: 14px;
        padding: 8px;
    }

    #language-modal .col-6 {
        padding: 0 5px;
    }
}

/* Language Modal Styles */
#language-modal .modal-content {
    border: none;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

#language-modal .modal-header {
    padding: 1.5rem;
    border-bottom: none;
}

#language-modal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

#language-modal .modal-body {
    padding: 2rem;
}

#language-modal .language-option {
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
}

#language-modal .language-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
    border-color: #dee2e6 !important;
}

#language-modal .language-option:active {
    transform: translateY(-1px);
}

#language-modal .modal-footer {
    border-top: none;
    padding: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #language-modal .modal-dialog {
        margin: 1rem;
    }

    #language-modal .modal-title {
        font-size: 1.25rem;
    }

    #language-modal .col-6 {
        padding: 0.25rem;
    }

    #language-modal .language-option {
        padding: 0.75rem !important;
    }

    #language-modal .language-option span {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    #language-modal .modal-body {
        padding: 1rem;
    }

    #language-modal .language-option {
        flex-direction: column;
        text-align: center;
        padding: 0.5rem !important;
    }

    #language-modal .language-option span {
        margin-left: 0 !important;
        margin-top: 0.5rem;
        font-size: 0.7rem !important;
    }

    #language-modal .modal-title {
        font-size: 1.1rem;
    }
}