/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    max-width: 2000px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #2563eb;
    color: white;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section {
    padding-top: 80px
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: #1e293b;
    position: relative;
    pointer-events: none;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #2563eb;
}

/* Header & Navigation */
header {
    max-width: 2000px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    height: 70px;
    overflow: hidden;
    position: relative;
}

.logo video {
    width: 180px;
    height: auto;
    object-fit: contain;
    display: block;
    clip-path: inset(21% 0);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

.menu-btn {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.8rem;
}

/* Hero Section */
.hero {
    min-height: calc(75vh - 70px);
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    margin-top: 70px;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

/* Video and Overlay Container */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    overflow: hidden;
    z-index: -1;
    height: 100%;
}

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

/* Video Dark Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Video Element with Smooth Transitions */
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.hero-content {
    padding-left: 100px;
    padding-right: 100px;
    position: relative; 
    z-index: 2; /* Above video & overlay */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    pointer-events: none;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    pointer-events: none;
    letter-spacing: 1px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: #1e293b;
}

/* Gallery Section */
.gallery, .video-gallery {
    background-color: #e2e8f0;
}

.gallery {
    margin-top: 40px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.video-gallery {
    padding-bottom: 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.video-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background-color: #e2e8f0;
}

.video-gallery-item iframe {
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    border-radius: 10px;
    border: none;
    width: 100%;
}

.pt-20 {
    padding-top: 20px;
}

.gallery-item {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(100px) scale(0.8);
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.lazy-video {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #ccc;
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    transition: filter 0.3s ease;
  }
  .lazy-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://img.icons8.com/ios-filled/100/ffffff/play--v1.png') center no-repeat;
    background-size: 64px;
    display: block;
  }
  .lazy-video.loaded {
    filter: blur(0);
  }

.gallery-grid video {
    width: 100%;
}

.gallery-item.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding-top: 50px;
}

.modal-content-container {
    position: relative;
    padding: 0; /* Ensure no extra space */
    margin: 0;  /* Ensure no margin offset */
    height: 85%;
}
.modal-content {
    max-width: calc(100% - 20px);
    margin: 10px;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 16px;
    right: 20px; /* Slightly reduce this if still off */
    color: #fff;
    font-size: 40px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

close::after {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Testimonials Section */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    text-align: center;
    padding: 20px;
    display: none;
}

.testimonial.active {
    display: block;
}

.testimonial p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: #1e293b;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #2563eb;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info {
    padding: 30px;
    background-color: #1e293b;
    color: white;
    border-radius: 8px;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.contact-form {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #1e293b;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-logo {
    width: 200px;
    margin-bottom: 15px;
    pointer-events: none;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    pointer-events: none;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links .service-showcase, .footer-about p {
    pointer-events: none;
}

.footer-links a {
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-links a:hover {
    color: #2563eb;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    height: 50px;
    width: 50px;
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0;
    }

    .video-gallery-grid {
        grid-template-columns: 1fr;
    }

    .testimonial {
        padding: 0;
    }

    .services-grid {
        gap: 20px;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all 0.3s ease;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-content {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
        text-align: center;
    }

    .hero-content p {
        font-size: 1rem;
        text-align: center;
    }

    .hero {
        height: calc(100vh - 70px);
    }

    .btn {
        padding: 10px 25px;
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
}