/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a2b44; /* Dark blue color from the logo */
    color: white;
    padding: 15px 50px;
}

/* Logo Styling */
.logo-image {
    height: 60px; /* Adjust the height as needed */
    width: auto;  /* Maintain the aspect ratio */
    margin-right: 15px;
    vertical-align: middle;
}
.logo {
    display: flex;
    align-items: center;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}
header h1 {
    font-size: 24px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    font-weight: bold;
}

/* Hero Section Styles */
.hero {
    position: relative;
    background-image: url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

/* Adding a dark overlay for hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Darker overlay */
    z-index: 1;
}

/* Hero Text */
.hero-text {
    position: relative;
    z-index: 2;
}

.hero-text h2 {
    font-size: 36px;
    margin: 0;
}

.hero-text p {
    font-size: 20px;
    margin: 10px 0;
}

.cta-btn {
    display: inline-block;
    background-color: #FFA500;
    color: white;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 5px;
}

/* Mission Statement Styles */
.mission {
    padding: 50px;
    text-align: center; /* Ensure text is centered */
}

.mission h2 {
    font-size: 36px;
}

.mission p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Home Page Services List - Mobile Friendly */

/* Default desktop/tablet layout for the services list */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    text-align: center;
}

/* Adjustments for screens smaller than 768px */
@media only screen and (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr; /* Stacks items vertically */
    }

    .service-item {
        padding: 15px;
        font-size: 16px;
    }
}

/* Additional adjustments for very small screens (below 480px) */
@media only screen and (max-width: 480px) {
    .service-item {
        font-size: 14px;
    }
}


/* Services Section Styles */
.services {
    padding: 50px;
    text-align: center; /* Ensure text is centered */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    text-align: center; /* Ensure the grid items text is centered */
}

.service-item {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

/* Services Section on Desktop */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    text-align: center;
}

.service-item {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Hover effect on desktop */
.service-item:hover {
    transform: scale(1.05);
}

/* Mobile Adjustments for screens under 768px */
@media only screen and (max-width: 768px) {
    .service-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 10px; /* Padding to prevent overflow on mobile */
    }

    .service-item {
        width: 100%; /* Full width on mobile */
        box-sizing: border-box; /* Prevents extra width from padding */
        padding: 15px;
        font-size: 16px;
        box-shadow: none; /* Removes shadow for a cleaner look */
        border-radius: 4px; /* Slightly smaller border radius */
    }
}

/* Extra Small Screens (below 480px) */
@media only screen and (max-width: 480px) {
    .service-item {
        padding: 12px;
        font-size: 14px; /* Smaller font size for readability */
    }
}


/* Small Hero Section for Services Page */
.hero-small {
    background-image: url('../images/hero-background-services.jpg');
    background-size: cover;
    background-position: center;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-small h2 {
    font-size: 36px;
    margin: 0;
}

/* Services Page Section */
.services-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 50px;
    background-color: #f9f9f9;
    text-align: center;
}

.service-item {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* Footer Styles */
footer {
    background-color: #1a2b44; /* Dark blue color from the logo */
    color: white;
    text-align: center;
    padding: 20px;
}

footer p {
    margin: 10px 0;
}

.social-links a {
    color: white;
    margin: 0 10px;
    font-weight: bold;
}

/* Styling the developer credit in the footer */
.developer-credit {
    font-size: 12px;
    color: #ccc; /* Light gray, to make it subtle */
    margin-top: 10px;
}

.developer-credit a {
    color: #ccc;
    text-decoration: none;
}

.developer-credit a:hover {
    color: #FFA500; /* Optional: Change color on hover */
}


/* Miscellaneous Improvements */
nav ul li a:hover {
    color: #FFA500;
}

/* Gallery Page Styles */
.gallery {
    padding: 50px;
    text-align: center;
    background-color: #f9f9f9;
}

.gallery h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    height: 250px; /* Enforce square aspect ratio */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container while maintaining aspect ratio */
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.1); /* Zoom effect on hover */
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.lightbox:target {
    display: flex; /* Shows the lightbox when its anchor is targeted */
}

.lightbox a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox a:before {
    content: "✖"; /* Optional close icon */
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
}

/* About Page Styles */
.about {
    display: flex;
    flex-wrap: wrap;
    padding: 50px;
    text-align: center;
    background-color: #f9f9f9;
}

.about-content {
    flex: 1;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.about-image {
    flex: 1;
    max-width: 600px;
    padding: 20px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Base font size for About page */
.about-content p {
    font-size: 16px; /* Default font size, suitable for mobile */
    line-height: 1.6;
}

/* Increase font size for larger screens */
@media (min-width: 768px) {
    .about-content p {
        font-size: 18px; /* Larger font size for desktop */
        line-height: 1.8;
    }
}


/* Responsive adjustments for mobile screens */
@media (max-width: 768px) {
    .about {
        flex-direction: column; /* Stack image and text vertically */
        align-items: center;    /* Center align items */
    }

    .about-content, .about-image {
        max-width: 100%; /* Use full width for both image and text */
    }

    .about-content {
        text-align: center; /* Center-align text for a balanced look */
        padding: 10px 20px;
    }

    .about-image img {
        margin-bottom: 20px; /* Add space between image and text */
    }
}


/* Mission Section Styles */
.mission {
    padding: 50px;
    text-align: center;
    background-color: #ffffff;
}

.mission h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.mission p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Page Styles */
.contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 50px;
    text-align: left;
    background-color: #f9f9f9;
}

.contact-details {
    flex: 1;
    max-width: 500px;
    padding: 20px;
}

.contact-details h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-details ul {
    list-style: none;
    padding: 0;
}

.contact-details ul li {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-form {
    flex: 1;
    max-width: 500px;
    padding: 20px;
}

.contact-form h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.submit-btn {
    display: inline-block;
    background-color: #FFA500;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #e69500;
}

/* Map Section */
.map {
    padding: 50px;
    text-align: center;
}

.map h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Media Queries */

/* For screens smaller than 768px */
@media only screen and (max-width: 768px) {
    header {
        padding: 10px 20px;
    }

    /* Stack navigation vertically */
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-small h2 {
        font-size: 24px;
    }

    /* Contact Form and Details Stacking for mobile */
    .contact {
        flex-direction: column;
        align-items: center;
    }

    .contact-details, .contact-form {
        max-width: 100%;
        padding: 10px;
    }

    .about, .services-page, .gallery-grid {
        padding: 20px;
    }

    /* Ensure gallery images take up full width */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: auto;
    }

    .submit-btn {
        width: 100%;
    }

    /* Footer Text Alignment */
    footer {
        text-align: center;
        padding: 20px;
    }

    .social-links a {
        display: block;
        margin: 10px 0;
    }
}

/* For screens smaller than 480px */
@media only screen and (max-width: 480px) {
    h1, h2, h3 {
        font-size: 20px;
    }

    .mission h2, .contact h2, .gallery h2, .about h2 {
        font-size: 24px;
    }

    p, ul li, input, textarea {
        font-size: 16px;
    }

    .submit-btn {
        font-size: 16px;
        padding: 10px;
    }

    .map iframe {
        height: 250px;
    }
}
