/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Prevent Zooming on Mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Dark Mode */
body.white-mode {
    background-color: #fff;
    color: #000;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid #fff;
    border-top: 4px solid transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

body.white-mode .spinner {
    border: 4px solid #000;
    border-top: 4px solid transparent;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

body.white-mode .navbar {
    background: rgba(255, 255, 255, 0.8);
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

body.white-mode .logo {
    color: #000;
}

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

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

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

body.white-mode .nav-links a {
    color: #000;
}

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

.hamburger {
    display: none;
    font-size: 24px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

body.white-mode .hamburger {
    color: #000;
}

/* Hero Section */
.video-background {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

body.white-mode .video-background {
    color: #000;
}

#bgVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

body.white-mode .overlay {
    background: rgba(255, 255, 255, 0.5);
}

.home-content {
    z-index: 1;
}

.home-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.home-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

body.white-mode .btn {
    background: #000;
    color: #fff;
}

.btn:hover {
    background: #ffcc00;
    color: #000;
}

/* Gallery Section */
.gallery-section {
    padding: 50px 20px;
    background: #000;
}

body.white-mode .gallery-section {
    background: #fff;
}

.gallery-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

body.white-mode .gallery-title {
    color: #000;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.media-card video {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.media-card video:hover {
    transform: scale(1.05);
}

/* Services Section */
.services {
    padding: 50px 20px;
    background: #000;
}

body.white-mode .services {
    background: #fff;
}

.services h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

body.white-mode .services h2 {
    color: #000;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-card {
    background: #1a1a1a;
    padding: 20px;
    width: 250px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s;
}

body.white-mode .service-card {
    background: #f4f4f4;
    color: #000;
}

.service-card:hover {
    transform: scale(1.05);
}

.service-card img {
    width: 80px;
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: #ccc;
}

body.white-mode .service-card p {
    color: #666;
}

/* Team Section */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.team-member {
    background: #1a1a1a;
    padding: 20px;
    width: 250px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s;
}

body.white-mode .team-member {
    background: #f4f4f4;
    color: #000;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.team-member p {
    font-size: 0.9rem;
    color: #ccc;
}

body.white-mode .team-member p {
    color: #666;
}

/* Testimonials Section */
.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.testimonial-card {
    background: #1a1a1a;
    padding: 20px;
    width: 250px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s;
}

body.white-mode .testimonial-card {
    background: #f4f4f4;
    color: #000;
}

.testimonial-card:hover {
    transform: scale(1.05);
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.testimonial-card p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 10px;
}

body.white-mode .testimonial-card p {
    color: #666;
}

.testimonial-card h4 {
    font-size: 1rem;
    color: #ffcc00;
}

/* Contact Section */
#contact {
    padding: 50px 20px;
    background: #000;
}

body.white-mode #contact {
    background: #fff;
}

#contact h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

body.white-mode #contact h2 {
    color: #000;
}

#contact form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#contact input, #contact textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #1a1a1a;
    color: white;
}

body.white-mode #contact input, body.white-mode #contact textarea {
    background: #f4f4f4;
    color: #000;
}

#contact button {
    padding: 10px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

body.white-mode #contact button {
    background: #000;
    color: #fff;
}

#contact button:hover {
    background: #ffcc00;
    color: #000;
}

/* Footer */
footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 20px;
}

body.white-mode footer {
    background: #fff;
    color: #000;
}

.footer-content {
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons img {
    width: 25px; /* Adjusted size */
    transition: transform 0.3s;
    filter: invert(1); /* Invert colors for black background */
}

body.white-mode .social-icons img {
    filter: invert(0); /* Revert to original colors for white background */
}

.social-icons img:hover {
    transform: scale(1.2);
}

/* Dark Mode Toggle */
#theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
}

body.white-mode #theme-toggle {
    background: #000;
    color: #fff;
}

/* Media Queries for Every Device */
@media (max-width: 1200px) {
    .home-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .home-content h1 {
        font-size: 2rem;
    }

    .service-card, .team-member {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.8);
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
    }

    body.white-mode .nav-links {
        background: rgba(255, 255, 255, 0.8);
    }

    .nav-links.active {
        display: flex;
    }

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

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

    .service-card, .team-member {
        width: 100%;
    }

    .gallery {
        flex-direction: column;
        align-items: center;
    }

    .media-card video {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .social-icons img {
        width: 20px; /* Smaller size for mobile */
    }
}

/* Media Queries for Every Device */
@media (max-width: 1200px) {
    .home-content h1 {
        font-size: 2.5rem; /* Slightly smaller heading for large desktops */
    }
}

@media (max-width: 992px) {
    .home-content h1 {
        font-size: 2rem; /* Smaller heading for tablets and small desktops */
    }

    .service-card, .team-member {
        width: 45%; /* Two cards per row on tablets */
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block; /* Show hamburger menu on tablets */
    }

    .nav-links {
        display: none; /* Hide nav links by default */
        flex-direction: column;
        background: rgba(0, 0, 0, 0.8);
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
    }

    body.white-mode .nav-links {
        background: rgba(255, 255, 255, 0.8);
    }

    .nav-links.active {
        display: flex; /* Show nav links when hamburger is clicked */
    }

    .home-content h1 {
        font-size: 1.8rem; /* Smaller heading for tablets */
    }

    .home-content p {
        font-size: 1rem; /* Smaller paragraph text for tablets */
    }

    .service-card, .team-member {
        width: 100%; /* Single column layout for tablets */
    }

    .gallery {
        flex-direction: column; /* Stack gallery items vertically */
        align-items: center;
    }

    .media-card video {
        max-width: 100%; /* Full-width videos on tablets */
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 1.5rem; /* Smaller heading for mobile */
    }

    .btn {
        padding: 8px 16px; /* Smaller button for mobile */
        font-size: 14px;
    }

    .social-icons img {
        width: 20px; /* Smaller social media icons for mobile */
    }
}