/* --- Global Styles & Variables --- */
:root {
    --primary-font: 'Playfair Display', serif;
    --secondary-font: 'Lato', sans-serif;
    --dark-color: #1a1a1a;
    --light-color: #f4f4f4;
    --background-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--secondary-font);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-family: var(--primary-font);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Diagonal line accent */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--dark-color);
    transform: translateX(-50%) skewX(-30deg);
}


section {
    padding: 6rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--dark-color);
    color: var(--background-color);
    text-decoration: none;
    font-family: var(--secondary-font);
    font-weight: 400;
    border: 1px solid var(--dark-color);
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--background-color);
    color: var(--dark-color);
}


/* --- Header & Navigation --- */
header {
    background: rgba(255, 255, 255, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
    backdrop-filter: blur(5px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--dark-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

#menu-toggle {
    display: none; /* Hidden by default on desktop */
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Ensures it's above other content */
    flex-direction: column;
    justify-content: space-around;
}

#menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 999; /* Below the menu, but above the page content */
    
    /* Hide it by default and set up for a fade effect */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#menu-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 0;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#bgvideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero .btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-size: 1.1rem;
}

.hero .btn:hover {
    background: white;
    color: black;
}

/* --- Featured Projects Section --- */
.featured-projects {
    background: var(--light-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.project-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay h3 {
    font-family: var(--primary-font);
    margin-bottom: 0.25rem;
}

.project-overlay p {
    font-family: var(--secondary-font);
    font-weight: 300;
}


/* --- Our Specialization Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.service-card {
    padding: 2rem;
    border: 1px solid #ddd;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* --- Testimonials Section --- */
.testimonials {
    background-color: var(--dark-color);
    color: white;
}

.testimonials h2::after {
    background: white;
}

.testimonial-wrapper {
    max-width: 700px;
    margin: 2rem auto 0;
    text-align: center;
    position: relative;
    min-height: 150px; /* Adjust as needed */
}

.testimonial {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial.active {
    display: block;
    opacity: 1;
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 1rem;
}

.testimonial h4 {
    font-family: var(--secondary-font);
    font-weight: 400;
    font-size: 1rem;
}

.testimonial-nav {
    text-align: center;
    margin-top: 1.5rem;
}

.testimonial-nav button {
    background: none;
    border: 1px solid white;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: background 0.3s ease;
}

.testimonial-nav button:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* --- Call to Action Section --- */
.call-to-action {
    background: var(--light-color);
    text-align: center;
}

.call-to-action h2 {
    font-size: 2.2rem;
}

.call-to-action p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}


/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 0;
}

footer p {
    font-size: 0.9rem;
    font-weight: 300;
}


/* --- Responsive Design --- */
@media(max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
    
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    #menu-toggle {
        display: flex;
    }

    nav {
        z-index: 1000;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        max-width: 350px; /* Max width of the panel */
        background: var(--dark-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%); /* Start off-screen */
        transition: transform 0.3s ease-in-out;
    }

    nav.nav-open {
        transform: translateX(0); /* Slide into view */
    }

    nav ul {
        flex-direction: column;
        padding: 0;
    }

    nav ul li {
        margin: 1rem 1rem;
    }

    nav ul li a {
        font-size: 1.5rem;
        color: var(--light-color); /* Make links visible on dark background */
    }

    nav ul li a::after {
        background: var(--light-color); /* Underline should also be light */
    }

    body.no-scroll {
        overflow: hidden;
    }

    .hero {
        height: 80vh;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }

    #menu-toggle.active span {
        background: var(--light-color);
    }

    #menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
