/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #e0e7e9;
    position: relative;
    z-index: 10;
    overflow: visible; /* Ensure dropdown isn’t clipped */
}

.logo img {
    height: 90px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center; /* Ensure all items are vertically centered */
}

nav a {
    color: #333f4a; /* Corrected color */
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 10px; /* Match padding with dropdown link */
}

nav a:hover {
    color: #f4a261;
}

/* Dropdown Specific Styling */
.dropdown {
    position: relative; /* Positioning context for the dropdown menu */
}

.dropdown > a {
    padding: 5px 10px; /* Consistent padding with other nav links */
    display: flex; /* Align text and arrow */
    align-items: center; /* Vertically center text and arrow */
}

.dropdown > a::after {
    content: " ▾"; /* Single arrow added via CSS */
    font-size: 0.8em; /* Smaller arrow */
    margin-left: 5px; /* Space between text and arrow */
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.dropdown:hover > a::after {
    transform: rotate(180deg); /* Rotate arrow upward on hover */
}

.dropdown-menu {
    display: none; /* Ensure menu is hidden by default */
    position: absolute;
    background: lightgray;
    padding: 10px;
    list-style: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    border-radius: 5px;
    z-index: 1001; /* Higher z-index to ensure visibility */
    top: 100%; /* Position below the header link */
    left: 0; /* Align with the parent */
    min-width: 200px; /* Ensure enough width for long names */
}

.dropdown:hover .dropdown-menu {
    display: block; /* Show on hover */
}

.dropdown-menu li {
    margin: 0; /* Remove default margins */
}

.dropdown-menu a {
    color: #333f4a; /* Match nav link color */
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    padding: 5px 10px;
    white-space: nowrap; /* Prevent text wrapping */
}

.dropdown-menu a:hover {
    color: #f4a261; /* Match nav hover color */
}

/* Hero Section */
.hero {
    background-image: url('../images/mainimage.jpg');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: white;
    position: relative;
    padding-left: 40px;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    font-size: 4em;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 10px;
    text-align: left;
}

.hero-content .subtitle {
    font-size: 3.2em;
    margin-left: 10px;
    text-align: left;
}

.hero-content .subtitle2 {
    font-size: 5.2em;
    margin-left: 5px;
    text-align: left;
}

.hero-content p:last-child {
    font-size: 1.5em;
    text-align: left;
}

/* Looking For Section */
.looking-for {
    background-color: #e0e7e9;
    padding: 40px 20px;
    text-align: center;
}

.looking-for h2 {
    font-size: 2.5em;
    color: #2a4d69;
    margin-bottom: 20px;
}

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

.option {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.option img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.option h3 {
    font-size: 1.5em;
    color: #2a4d69;
    margin: 10px 0;
}

.option p {
    font-size: 0.9em;
    color: #666;
}

/* About Us Section */
.about-us {
    display: flex;
    align-items: center;
    padding: 40px 20px;
    background-color: #FF8C00;
    color: white;
}

.about-content {
    flex: 1;
    padding: 20px;
}

.about-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-content p {
    font-size: 1em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-content .more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: #e76f51;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 600px;
    height: 600px;
}

/* Why Prefer Section */
.why-prefer {
    padding: 40px 20px;
    background-color: #e76f51;
    color: white;
    text-align: center;
}

.why-prefer h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.why-prefer p {
    font-size: 1em;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Our Projects Section */
.our-projects {
    padding: 40px 20px;
    background-color: #e0e7e9;
    text-align: center;
}

.our-projects h2 {
    font-size: 2.5em;
    color: #2a4d69;
    margin-bottom: 20px;
}

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

.project-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.project-card h3 {
    font-size: 1.2em;
    color: #2a4d69;
    margin: 10px 0;
}

.project-card .explore-btn {
    display: inline-block;
    padding: 5px 15px;
    background-color: #2a4d69;
    color: white;
    text-decoration: none;
    border-radius: 20px;
}

/* Social Media Section */
.social-media {
    padding: 40px 20px;
    background-color: #e0e7e9;
    text-align: center;
}

.social-media h2 {
    font-size: 2.5em;
    color: #2a4d69;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

.social-card a {
    display: block;
    color: #2a4d69;
    text-decoration: none;
    margin-top: 10px;
}

/* Subscribe Section */
.subscribe {
    padding: 40px 20px;
    background-color: #f4a261;
    color: white;
    text-align: center;
}

.subscribe h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.subscribe p {
    font-size: 1em;
    margin-bottom: 20px;
}

.subscribe form {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.subscribe input {
    padding: 10px;
    border: none;
    border-radius: 20px;
    width: 200px;
}

.subscribe button {
    padding: 10px 20px;
    background-color: white;
    color: #f4a261;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* Footer Section */
footer {
    background-color: #e0e7e9;
    padding: 20px;
    text-align: center;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #2a4d69;
    text-decoration: none;
}

/* Media Queries */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        flex-direction: column; /* Stack nav items vertically */
        align-items: center;
    }

    .dropdown-menu {
        position: static; /* Show menu below in mobile view */
        display: none; /* Still hidden by default */
        background: none; /* Remove background for mobile */
        box-shadow: none; /* Remove shadow */
        padding: 0;
        width: 100%; /* Full width */
        margin-top: 5px; /* Space between trigger and menu */
    }

    .dropdown:hover .dropdown-menu {
        display: block; /* Show on hover in mobile */
    }

    .dropdown-menu a {
        padding: 10px; /* Adjust padding for mobile */
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .about-us {
        flex-direction: column;
    }

    .options, .project-grid, .social-links {
        grid-template-columns: 1fr;
    }
}