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

:root {
    --primary-color: #333333;
    --secondary-color: #FFD600;
    --text-color: #333;
    --light-gray: #f7f7f7;
    --dark-gray: #333;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: var(--dark-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    display: contents;
    align-items: left;
    margin: 0 auto;
}

.logo-img {
    width: 200px;
    height: 80px;
    object-fit: fill;
    display: block;
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 5%;
        position: fixed;
    }

    .logo {
        order: 2;
        margin: 0;
    }

    .logo-img {
        width: 150px;
        height: 60px;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    color: var(--secondary-color);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    object-fit: cover;
}

.hero-background .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

.hero-background video.slide {
    object-position: center;
}

.hero-background .slide.active {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    text-shadow: 2px 2px 8px #333;
}

.hero-content p {
    font-size: 1.35rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.cta-button:hover {
    background: #FFD600;
    color: #222;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 8rem 5%;
    background: white;
}

.services h2, .projects h2, .about h2, .contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    text-align: center;
    background: #fffde7;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid var(--secondary-color);
    color: #333;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-card p {
    font-size: 1.35rem;
    line-height: 1.8;
}

/* Projects Section */
.projects {
    padding: 8rem 5%;
    background: var(--light-gray);
}

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

.project-card {
    background: #fffde7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: var(--transition);
    display: block;
}

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

.project-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.project-card h3, .project-card p {
    padding: 1rem;
    color: #333;
}

.project-carousel {
    width: 700px;
    height: 350px;
    margin: 0 auto 2rem auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}


/* About Section */
.about {
    padding: 8rem 5%;
    background: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.35rem;
    line-height: 1.8;
    padding: 2rem 1rem;
}

.about-content h2 {
    font-size: 2.3rem;
    margin-bottom: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: 2rem 5%;
    background: var(--light-gray);
    height: 75vh;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 40vh;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    width: 100%;
    max-width: 600px;
}

.footer-section.quick-links {
    margin-left: auto;
}

.footer-section h4,
.footer-section a,
.footer-bottom p {
    color: var(--secondary-color) !important;
}

.footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 214, 0, 0.1);
}

/* === Responsive Design Enhancements === */

/* General container responsiveness */
body, html {
    width: 100%;
    overflow-x: hidden;
}

section, .about-content, .areas-content, .contact-container, .project-carousel, .main-image-container {
    max-width: 100vw;
    box-sizing: border-box;
}


/* Responsive images and iframes */
img, iframe {
    max-width: 100%;
    height: 45vh;
    display: block;
}

/* Navbar responsiveness */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 2%;
    }
    .project-carousel, .main-image-container {
        width: 90vw;
        height: auto;
        min-width: 0;
        max-width: 100vw;
    }
}

/* Tablet and below */
@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .areas-list-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }
    .main-image-container {
        width: 95vw;
        height: auto;
        min-width: 0;
        max-width: 100vw;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 1rem 2%;
        position: fixed;
    }
    .logo {
        order: 1;
        margin-right: 0;
        display: flex;
        align-items: left;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p,
    .about-content,
    .service-card p,
    .areas-we-serve p,
    .contact-form input,
    .contact-form textarea {
        font-size: 1rem;
    }
    .services-grid, .project-grid, .areas-list-wrapper {
        display: block;
    }
    .project-carousel, .main-image-container {
        width: 100vw;
        height: auto;
        min-width: 0;
        max-width: 100vw;
    }
    .carousel-image, .main-image {
        width: 100vw !important;
        height: auto !important;
        min-width: 0;
        max-width: 100vw;
    }
    .stats {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .areas-content, .about-content {
        padding: 1rem;
    }
    .nav-links {
        display: none !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: flex-end;
        position: static !important;
        width: auto !important;
        background: none !important;
        padding: 0 !important;
        text-align: right;
        gap: 1.5rem;
    }
    .nav-links.active {
        display: flex !important;
    }
    .nav-links li {
        margin: 0;
    }
    .hamburger {
        display: block !important;
        cursor: pointer;
        z-index: 1002;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .main-image-container, .project-carousel {
        width: 100vw;
        min-width: 0;
        max-width: 100vw;
        height: auto;
    }
    .about-content h2, .areas-we-serve h2 {
        font-size: 1.3rem;
    }
    .footer-bottom {
        font-size: 0.9rem;
    }
}

.hover-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 2rem auto;
    width: 100%;
}
.main-image-container {
    width: 60vw;
    max-width: 1200px;
    min-width: 320px;
    height: 34vw; /* 16:9 aspect ratio for 60vw width */
    max-height: 700px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: #eee;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}
.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.3s;
}
.thumbnail-row {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.thumbnail {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.2s, border 0.2s;
}
.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
    border: 2px solid #FFD600;
}

.areas-we-serve {
    background: #fffde7;
    padding: 5rem 0 4rem 0;
}

.areas-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.areas-we-serve h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.areas-we-serve p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.areas-list-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.area-group {
    background: #fff;
    border: 1px solid #FFD600;
    border-radius: 10px;
    padding: 2rem 2.5rem;
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.area-group h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.area-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.area-group li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.areas-contact {
    margin-top: 2rem;
    font-size: 1.1rem;
}
.areas-contact a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* === Mobile Friendly Enhancements === */

/* Make images and iframes responsive */
img, iframe {
    max-width: 100%;
    display: block;
}

/* Navbar: stack and space for mobile */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 1rem 2%;
    }
    .logo-img, .logo-text {
        width: 100px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin: 0;
    }
    .menu-toggle {
        display: block;
    }
}

/* Hero section: adjust text size */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

/* Services, Projects, Areas: stack columns */
@media (max-width: 768px) {
    .services-grid,
    .project-grid,
    .areas-list-wrapper {
        display: block;
    }
    .service-card,
    .project-card,
    .area-group {
        margin-bottom: 2rem;
    }
}

/* Contact section: stack form and info */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        height: 40vh;
    }

    .contact-info {
        width: 100%;
        max-width: 100%;
    }
}

/* Footer: stack sections */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* General padding for sections on mobile */
@media (max-width: 768px) {
    section,
    .about-content,
    .areas-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Project Images Carousel */
.project-images-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin: 2rem 0;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    object-fit: cover;
}

.thumbnails-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-color: transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

/* .thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
} */

.thumbnail.active {
    opacity: 1;
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .project-images-container {
        height: 300px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
} 