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

/* General styling for header */
header {
    padding: 20px 0; /* Add padding to prevent content from touching edges */
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10; /* Ensure the header is on top */
}

/* General styling for footer */
footer {
    padding: 20px 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 10;
}


body {
    background-color: #f0f0f0;
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;
    z-index: 10; /* Ensure the header is on top */
}

/* Header Styles */
header {
    background-color: white;
    color: black;
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.title {
    font-size: 24px;
    font-weight: bold;
    margin-right: 25px;
}

/* Container for logo and title */
.logo-title {
    display: flex;
    align-items: center; /* Aligns logo and title vertically centered */
    height: 100%; /* Makes the container take up the full height of the header */
}

/* Logo styling */
.logo {
    max-height: 75%; /* Ensures the logo scales to fit the height of the header */
    max-width: 50px; /* Optional: set a max-width to prevent it from being too wide */
    height: auto; /* Keeps aspect ratio of the logo */
    margin-right: 5px; /* Space between the logo and the title */
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-size: 16px;
}

.cta {
    background-color: #333;
    color: white; /* Button font color */
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.cta:hover {
    background-color: #555;
}

/* Dropdown Styles */
nav ul li {
    position: relative; /* Required for dropdown positioning */
    margin-right: 20px;
}

nav ul li .dropdown-content {
    display: none; /* Hide dropdown by default */
    position: absolute;
    left: 50%; /* Center the dropdown */
    transform: translateX(-50%); /* Adjust to center */
    top: 100%; /* Position it below the button */
    margin-top: 5px;
    background-color: #e0e0e0; /* Change background color */
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 11rem; /* Set a minimum width */
}

nav ul li:hover .dropdown-content {
    display: block; /* Show dropdown on hover */
}

nav .dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

nav .dropdown-content a:hover {
    background-color: #f0f0f0;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('mainpage.jpg') no-repeat center center/cover;
    position: relative;
}

.overlay {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    color: white;
    text-align: center;
    z-index: 2;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    padding: 10px 30px;
    background-color: white;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background-color: #f0f0f0;
}

/* Our Services Section */
.services {
    padding: 50px 0;
    background-color: #e0e0e0;
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
}

.service-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service {
    text-align: center;
    margin: 0 15px 30px;
    flex: 1 1 200px;
}

.service img {
    width: 100%; /* Make images fit the width */
    height: auto; /* Maintain aspect ratio */
    transition: 0.3s;
}

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

.service h3 {
    margin-top: 10px;
}

.service p {
    margin: 10px 0;
}

/* Contact Us Section */
.contact-us {
    padding: 50px 0;
    background-color: #ffffff;
    text-align: center;
    border-top: 1px solid #ccc;
}

.contact-us h2 {
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.contact-us p {
    margin-bottom: 30px;
    font-size: 16px;
    color: #666;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 40%;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #333;
    outline: none;
}

.contact-form button {
    background-color: #333;
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.contact-form button:hover {
    background-color: #555;
}

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

.about-us h2 {
    margin-bottom: 30px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 80px 0;
    text-align: center;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

footer ul li {
    margin: 0 15px;
}

footer ul li a {
    color: white;
    text-decoration: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: white;
        width: 100%;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        display: flex; /* Show the menu when active */
    }

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

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

    .cta {
        font-size: 14px;
    }

    .btn, .cta {
        font-size: 14px;
        padding: 8px 15px;
        color: white; /* Ensure button font color is white */
        background-color: #333; /* Black background for the button */
    }

    .service img {
        width: 100%; /* Make images fit the width */
        height: auto; /* Maintain aspect ratio */
    }

    .contact-form {
        width: 100%; /* Full width on mobile */
        padding: 0 15px; /* Add padding */
    }

    nav ul li .dropdown-content {
        left: 50%; /* Center the dropdown */
        transform: translateX(-50%); /* Adjust to center */
        width: auto; /* Adjust to fit content */
    }

    /* Nav Menu Styles */
    .nav-menu {
        display: none; /* Initially hide the navigation menu */
        flex-direction: column; /* Stack items vertically */
        text-align: center; /* Center-align menu items */
        width: 100%; /* Full width */
        background-color: white; /* Background color for visibility */
        position: absolute; /* Position it above other content */
        top: 60px; /* Adjust based on header height */
        left: 0; /* Align to the left */
        padding: 20px 0; /* Padding for spacing */
        z-index: 10; /* Ensure it's on top */
    }

    /* Show the menu when the active class is added */
    .nav-menu.active {
        display: flex; /* Make the menu visible */
    }

    /* Styling for menu items */
    .nav-menu li {
        margin: 15px 0; /* Space between menu items */
    }

    .nav-menu li a {
        color: black; /* Text color for links */
        text-decoration: none; /* No underline */
        font-size: 18px; /* Increase font size */
    }
    
}

/* General Button Styles */
.btn {
    padding: 10px 30px;
    background-color: white;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

/* Specific Styles for the Book Now Button */
.book-now {
    background-color: #333; /* Keep the background color */
    color: white; /* Keep the font color */
}

.book-now:hover {
    background-color: #555; /* Change on hover */
}

/* Nav Menu Styles */
.nav-menu li a {
    color: black; /* Text color for links in the nav menu */
    text-decoration: none; /* No underline */
    font-size: 18px; /* Increase font size */
}

/* Add arrow to mobile dropdown items */
.nav-menu li a .arrow {
    display: inline-block;
    margin-left: 8px; /* Space between text and arrow */
}

/* Override styles for the Book Now button if needed */
.nav-menu .book-now {
    background-color: #333; /* Override if the nav menu styles affect it */
    color: white; /* Override if the nav menu styles affect it */
}

.arrow {
    display: inline-block;
    margin-left: 8px; /* Space between the button text and the arrow */
    font-size: 14px; /* Adjust size as needed */
    color: white; /* Match the button text color */
    transition: transform 0.3s; /* Add a transition for hover effect */
}

.book-now:hover .arrow {
    transform: translateY(2px); /* Slight movement on hover */
}
