/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    opacity: 1;
    transition: opacity 0.5s ease; /* Transition effect for page fade-in/out */
}

body.fade-out {
    opacity: 0; /* Fade-out effect */
}

/* Wrapper for Flexbox layout */
.wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ensure wrapper takes the remaining space */
}

main {
    flex: 1; /* Makes main content take the available space, pushing footer down */
}

/* Header and Navigation */
header {
    background-color: #004080;
    padding: 15px 20px;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo Container */
.logo {
    display: flex; /* Use Flexbox to align SVGs horizontally */
    align-items: center; /* Center vertically within the header */
    flex-grow: 1; /* Allow the logo to grow as needed */
}

/* Style for the SVG Icons */
.logo-icon,
.logo-text {
    max-width: 100%; /* Ensure SVGs do not exceed the container's width */
    height: auto; /* Keep aspect ratio */
    display: inline-block; /* Make sure SVGs are inline and scale properly */
}

/* Adjust logo sizing relative to header size */
.logo-icon {
    width: 64px; /* Adjust the size as needed */
    height: auto;
    margin-right: 10px; /* Spacing between the icon and text */
    fill: #ffffff;
}

.logo-text {
    width: 300px; /* Adjust size based on your design */
    height: auto;
    fill: #ff6600;
}

/* Adjust Logo Color */

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    transition: transform 0.3s ease; /* Smooth transition for mobile menu */
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

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

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    background-color: #004080;
    top: 60px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 999;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px;
}

/* Hero Section */
.hero {
    background: url('../images/hero-image.webp') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-top: 60px; /* To account for fixed header */
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-button {
    background-color: #ff6600;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    margin-top: 20px;
    display: inline-block;
    transition: background-color 0.3s;
    box-shadow: 0px 0px 10px 4px #000000d1;
}

.cta-button:hover {
    background-color: #e65c00;
}

/* Style for the disabled submit button */
button.cta-button:disabled {
    background-color: #cccccc; /* Grey background to indicate disabled state */
    color: #666666; /* Lighter text color */
    cursor: not-allowed; /* Show a "not allowed" cursor */
    opacity: 0.6; /* Reduce opacity to make it look inactive */
    border: 2px solid #cccccc; /* Border color matching the background */
}

/* Style for invalid fields */
.invalid {
    border: 2px solid red;
}

/* About Us Section */
.about {
    padding: 50px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.about h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 20px;
}

.about ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 20px auto;
}

.about ul li {
    background-color: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Services Page */
.services {
    padding: 50px 20px;
    text-align: center;
    background-color: #ffffff;
}

.services h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 16px;
    line-height: 1.5;
}

/* Contact Page */
.contact {
    padding: 50px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.contact h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 20px;
}

form {
    max-width: 600px;
    margin: 20px auto;
    text-align: left;
}

form label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

form button {
    background-color: #004080;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #003366;
}

/* Carousel Container */
.services-carousel {
    padding: 50px 20px;
    background-color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel-item {
    min-width: 100%;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

.carousel-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

/* Carousel Navigation Buttons */
.carousel-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Footer Styles */
footer {
    background-color: #004080;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
    position: relative;
    bottom: 0;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Responsive for Smaller Screens */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        background-color: #004080;
        top: 60px;
        width: 100%;
        left: 0;
        text-align: center;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .carousel-item {
        padding: 15px;
    }

    /* Responsive Adjustments for Smaller Screens */
    .logo-icon {
        width: 20px; /* Smaller icon size for smaller screens */
    }
    .logo-text {
        width: 80px; /* Adjust text size for smaller screens */
    }
}
