/* Header & Navbar */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease;
}

b .top-bar {
    background-color: var(--brand-blue);
    color: var(--brand-white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info-short span,
.contact-info-short a.top-bar-link {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    color: var(--brand-white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info-short a.top-bar-link:hover {
    opacity: 0.8;
}

.contact-icon-short {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    vertical-align: middle;
}

.social-media-icons a {
    margin-left: 12px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.social-media-icons a:hover {
    opacity: 1;
}

.social-media-icons img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    /* Increased height */
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--brand-blue);
    font-size: 1.8rem;
    /* Slightly increased font size */
    font-weight: 800;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.03);
}

.logo-img {
    height: 55px;
    /* Increased logo image size */
    width: auto;
    margin-right: 10px;
    /* Adjusted margin */
    /* Slightly rounded corners for a softer look */
    /* Subtle shadow */
}

.logo-text {
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 25px;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--brand-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active,
.nav-link:hover {
    color: var(--brand-blue);
}

.services-link .dropdown-arrow,
.projects-link .dropdown-arrow {
    font-size: 0.6em;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.services-dropdown-container:hover .services-link .dropdown-arrow,
.projects-dropdown-container:hover .projects-link .dropdown-arrow,
.services-dropdown-container.mobile-active .services-link .dropdown-arrow,
.projects-dropdown-container.mobile-active .projects-link .dropdown-arrow {
    transform: rotate(180deg);
}

.services-submenu,
.projects-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--brand-white);
    list-style: none;
    padding: 8px 0;
    box-shadow: var(--shadow-strong);
    border-radius: 6px;
    width: 260px;
    z-index: 1001;
    opacity: 0;
    transform-origin: top center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow: visible;
}

.services-dropdown-container:hover .services-submenu,
.projects-dropdown-container:hover .projects-submenu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.services-dropdown-container.mobile-active .services-submenu,
.projects-dropdown-container.mobile-active .projects-submenu {
    display: block;
    opacity: 1;
    /* Mobile specific styles are handled in responsive.css for position: static */
}

.services-submenu li a,
.projects-submenu li a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.services-submenu li a:hover,
.projects-submenu li a:hover {
    background-color: var(--brand-blue);
    color: var(--brand-white);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--brand-blue);
    transition: all 0.3s ease-in-out;
    border-radius: 1px;
}

.mobile-nav-footer {
    display: none;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.mobile-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 10px;
}

.mobile-contact-info p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.mobile-contact-info p a {
    color: var(--brand-blue);
    text-decoration: none;
}

.mobile-contact-info p a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .nav-item {
        width: 100%;
        margin: 0;
    }
    .nav-link {
        width: 100%;
        padding: 12px 16px;
        font-size: 1.1rem;
    }
    .services-submenu,
    .projects-submenu {
        position: static;
        transform: none;
        width: 100%;
        background-color: var(--brand-white);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        opacity: 1;
    }
    .services-dropdown-container.mobile-active .services-submenu,
    .projects-dropdown-container.mobile-active .projects-submenu {
        display: block;
    }
    .services-submenu li a,
    .projects-submenu li a {
        padding: 10px 24px;
        border-top: 1px solid var(--border-color);
        font-size: 0.95rem;
    }
    .hamburger {
        display: block;
    }
    .mobile-nav-footer {
        display: block;
    }
}