@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;700&display=swap');

/* General Styles */
body {
    font-family: 'Prompt', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: #007bff;
}

ul {
    list-style: none;
    padding: 0;
}

/* Header & Navigation */
header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-size: 1rem;
    color: #555;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #007bff;
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none; /* Hidden by default */
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Show hamburger icon */
    }

    .nav-list {
        display: none; /* Hide nav list by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Adjust as needed */
        left: 0;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-list.active {
        display: flex; /* Show on toggle */
    }

    .nav-list li {
        text-align: right;
        padding: 1rem 5%; /* Add some padding to the right */
        border-bottom: 1px solid #f4f4f4;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 123, 255, 0.5), rgba(0, 123, 255, 0.5)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?q=80&w=1932&auto=format&fit=crop') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.hero-text p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta-button {
    background: #fff;
    color: #007bff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.cta-button:hover {
    background: #f0f0f0;
}

/* Featured Services Section */
.featured-services {
    padding: 4rem 5%;
    text-align: center;
}

.featured-services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.service-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

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

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1.5rem 5%;
    margin-top: 2rem;
}

/* Page Header */
.page-header {
    background: #f4f4f4;
    padding: 2rem 5%;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Service Detail Section */
.service-detail {
    padding: 4rem 5%;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-item img {
    width: 50%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-text {
    width: 50%;
}

.service-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #007bff;
}

/* About Content Section */
.about-content {
    padding: 4rem 5%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-mission h2, .about-team h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-mission {
    margin-bottom: 4rem;
}

.team-members {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
    width: 250px;
}

.team-member img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    display: flex;
    justify-content: space-around;
    padding: 4rem 5%;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-info, .contact-form-container {
    width: 45%;
    min-width: 300px;
}

.contact-info h2, .contact-form-container h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #007bff;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-button {
    background: #007bff;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #0056b3;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
}

.portfolio-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-item h3 {
    font-size: 1.5rem;
    margin: 1rem 0.5rem 0.5rem 0.5rem;
}

.portfolio-item p {
    padding: 0 1rem 1rem 1rem;
    font-size: 1rem;
    color: #666;
}

.map-container {
    width: 45%;
    min-width: 300px;
    height: 450px; /* Or adjust as needed */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .contact-info, .contact-form-container, .map-container {
        width: 100%;
    }
}

/* Project Detail Page Styles */
.project-detail-content {
    padding: 4rem 5%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.project-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-detail-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #007bff;
}

.project-detail-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: left;
}

.project-detail-content ul {
    list-style: disc;
    text-align: left;
    margin-left: 20px;
    margin-bottom: 2rem;
}

.project-detail-content ul li {
    margin-bottom: 0.5rem;
}

.back-button {
    background: #007bff;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-block;
    margin-top: 2rem;
}

.back-button:hover {
    background: #0056b3;
}

/* Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

/* Modal (Lightbox) Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}

.about-banner-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 2rem;
}

/* Timeline Styles */
.timeline-section {
    background-color: #f8f9fa;
}

.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background-color: #e9ecef;
}

.timeline-item {
    margin-bottom: 20px;
    position: relative;
}

.timeline-item:before,
.timeline-item:after {
    display: table;
    content: ' ';
}

.timeline-item:after {
    clear: both;
}

.timeline-item .timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.timeline-item.left .timeline-content {
    float: left;
}

.timeline-item.right .timeline-content {
    float: right;
}

.timeline-item .timeline-content:before {
    content: ' ';
    position: absolute;
    top: 26px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item.left .timeline-content:before {
    right: -15px;
    border-width: 8px 0 8px 15px;
    border-color: transparent transparent transparent #fff;
}

.timeline-item.right .timeline-content:before {
    left: -15px;
    border-width: 8px 15px 8px 0;
    border-color: transparent #fff transparent transparent;
}

.timeline-item .timeline-content h3 {
    margin-top: 0;
    color: #007bff;
}

.timeline-item .timeline-content p {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .timeline:before {
        left: 18px;
    }

    .timeline-item .timeline-content {
        width: auto;
        float: none;
        margin-left: 60px;
    }

    .timeline-item.left .timeline-content:before,
    .timeline-item.right .timeline-content:before {
        border-width: 8px 15px 8px 0;
        border-color: transparent #fff transparent transparent;
        left: -15px;
        right: auto;
    }
}
