/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #F47C3C; /* A more muted, normal orange */
    --secondary-color: #FF6B00;
    --text-color: #1f2937;
    --background-color: #F2F2F2;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navigation Styles ---------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
#navbar {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 1rem 5%;
    background-color: white;
    color: var(--primary-color)0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    font-weight: bolder;
}

.logo {
    margin-right: auto; 
    cursor: pointer; 
}
  
  .logo img {
    max-width: 75px;
    font-weight: bold;
    height: auto;
  }

  .nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links.active {
    display: flex;
}

.nav-link.active {
    background-color: lightorange; /* Highlight with light orange */
    color: white; /* Optional: Change text color */
    border-radius: 5px; /* Optional: Add rounded corners */
    padding: 5px 10px; /* Optional: Add spacing for better appearance */
}

.nav-link {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.menu-toggle {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    gap: 0.3rem;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: black;
    transition: transform 0.4s;
}


/* Global Styles */
html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

#app {
    scroll-behavior: smooth;
    overflow-y: auto;
    scroll-snap-type: y mandatory; /* Optional: for smoother scrolling */
}

/* Hero Section & Slider Container -------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 5px);
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual Slides */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; 
    transition: opacity 0.10s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Text Content on Each Slide */
.hero-content {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    z-index: 3;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content .cta-button {
    display: inline-block;
    background-color: white;
    color: black;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.hero-content .cta-button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    border-radius: 50%;
}

.arrow.left {
    left: 1rem;
}

.arrow.right {
    right: 1rem;
}

.arrow:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Section Base Styles -------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.section {
    min-height: 100vh; /* Ensures each section takes full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevent any content from overflowing */
    position: relative;
    padding: 2rem 5%;
    scroll-snap-align: start; /* Optional: for smooth scrolling */
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: black;
    position: relative;
    top: 20px;
}

#about h2 {
    top: 50px; /* Adjust this value to position the About heading independently */
    color: black; /* Example: Change the color for the About heading */
}

/* About Section --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.section#about {
    position: relative;
    background-image: url('images/shade\ b1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

.about-grid {
    top: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 2rem; 
    align-items: center; 
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Image Container */
.about-image {
    grid-row: span 2; 
    height: 80%; 
}

.about-image img {
    bottom: 70px;
    position: relative;
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    border-radius: 10px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.about-image img:hover {
    transform: scale(1.1); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Cards (Right Side) */
.about-text, .about-mission {
    padding: 2rem;
    border-radius: 10px;
    background: var(--primary-color); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    color: black;
    margin-bottom: 10rem; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.about-text:hover, .about-mission:hover {
    transform: scale(1.05); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.about-text {
    margin-bottom: 2rem; 
}

.about-text, .about-mission, .about-image {
    position: relative;
    z-index: 2;
}

/* Services Section -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.section#services {
    position: relative;
    background-image: url('images/image1.jpg'); /* Replace with the path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    padding: 4rem 2rem; /* Adjust padding as needed */
}

.section#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Optional overlay for better text readability */
    z-index: 0;
}

/* Service Images */
.service-image {
    width: 250px; /* Adjust width as needed */
    height: auto; /* Maintain aspect ratio */
    margin: 0 auto 1rem; /* Center the image and add spacing */
    display: block; /* Center the image */
    border-radius: 8px; /* Optional: Add rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add hover effect */
}

.service-image:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}


/* Services Content */
.section-content {
    top: 35px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-color); /* Adjust color for contrast */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.service-card {
    padding: 2rem;
    border-radius: 10px;
    background: var(--primary-color);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.service-card:hover {
    transform: scale(1.05); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Core Values Section --------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.section#values {
    position: relative;
    background-image: url('images/home-background3\ \(2\).jpg'); /* Replace with the actual background image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 2rem;
    width: 100%;
}

.section#values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Optional overlay */
    z-index: 0;
}

.section-content {
    top: 35px;
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-color); /* Ensure good contrast */
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: var(--primary-color);
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.value-image {
    width: 200px; /* Adjust width as needed */
    height: auto; /* Maintain aspect ratio */
    margin: 0 auto 1rem;
    display: block;
    border-radius: 8px; /* Optional */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-image:hover {
    transform: scale(1.1); /* Slight zoom on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Contact Section ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 3fr; /* Two columns: left for details/form, right for map */
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-details {
    width: 500%;
    height: 400px; /* Larger height for the map */
    display: flex; /* Align horizontally */
    gap: 2rem; /* Space between contact-info and contact-form */
    justify-content: space-between;
    width: 100%;
}

.contact-info, .contact-form {
    flex: 1; /* Make both sections equal in size */
    padding: 4rem;
    border-radius: 10px;
    background: lightgray;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover, .contact-form:hover {
    transform: scale(1.05); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input, 
.contact-form textarea {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid black;
    font-weight: bold;
    border-radius: 5px;
}

.contact-form textarea {
    height: 150px;
}

.contact-form button {
    background-color: var(--primary-color);
    color: black;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #000000;
    color: white;
}

/* Map Styling */
.contact-map {
    width: 100%;
    height: 500px; /* Larger height for the map */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-map:hover {
    transform: scale(1.05); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Add focus states for accessibility */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}


/* Footer ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
footer {
    background-color: var(--primary-color);
    color: black;
    padding: 2rem 5%;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

/*.social-icon:hover {
    color: #e0f2fe;
}*/

.social-icon img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.social-icon:hover img {
    transform: scale(1.2);
}

/* Responsive Design ----------------------------------------------------------------------------------------------------------------------------*/
@media screen and (max-width: 1024px) {
    #navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 10;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .services-grid {
        grid-template-columns: repeat(1, 1fr); /* 2 columns */
        gap: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr; /* Stack columns */
        text-align: center;
    }

    .about-image {
        max-width: 100%;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Stack columns vertically */
        gap: 2rem;
    }

    .contact-details {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .contact-form,
    .contact-info {
        width: 100%;
        max-width: none;
        padding: 2rem;
    }

    .contact-map {
        height: 350px; /* Adjust map height */
        order: 3; /* Ensure map appears last */
        width: 100%;
        margin-top: 20rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .slider {
        height: 100vh;
    }

    .arrow {
        top: 40%;
    }

    .section {
        padding: 4rem 2%;
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-content {
        padding: 1rem;
        width: 90%;
    }

    .arrow {
        display: none;
    }

    .service-card,
    .value-card {
        padding: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem; /* Smaller font for inputs */
    }
}
