/* css/layout.css */

/* Header */
header {
    background-color: #f4f4f4;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

/* Navigation Styles */
.main-nav {
    margin: 0 20px;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active-page {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    display: none;
    z-index: 10;
    min-width: 160px;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 10px 15px;
    transition: background-color 0.3s ease;
     white-space: nowrap;
}
.dropdown-menu .nav-link{
  border-bottom: none;
}

.dropdown-menu li:hover {
    background-color: #f0f0f0;
}


/* Hero Section */
#hero {
    background-image: url("../images/hero-background.jpg"); /* Corrected path */
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* General Section Styling */
#about, #services, #contact, #why-choose-us {
    padding: 80px 0;
    text-align: center;
}

#services {
    background-color: #f4f4f4;
}

#why-choose-us {
    padding: 80px 0;
    /* --- CHANGE THIS LINE --- */
    background-color: var(--background-color-light-blue); /* Was #f9f9f9 */
    text-align: center;
}

#services h2, #contact h2, #about h2, #why-choose-us h2 {
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}