/* Navbar Styling - Hidden on Desktop, visible on Mobile/Tablet */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 1rem 2rem;
    display: none; /* Hidden by default on desktop */
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.navbar-brand .logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

/* Hamburger Button */
.navbar-toggler {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.navbar-toggler-icon {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -10px;
}

.navbar-toggler-icon::after {
    top: 10px;
}

/* Navigation List */
.nav-list-container {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-list li {
    display: inline-block;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .navbar {
        display: flex; /* Show navbar on mobile/tablet */
        padding: 1rem;
    }

    .navbar-toggler {
        display: block;
    }

    .nav-list-container {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 280px;
        background: linear-gradient(135deg, #2c3e50, #34495e);
        padding: 5rem 1.5rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .nav-list-container:not(.collapse) {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-list li {
        display: block;
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 1.25rem;
    }

    /* Overlay when menu is open */
    .nav-list-container:not(.collapse)::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .nav-list-container {
        width: 320px;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .navbar {
        padding: 1rem 4rem;
    }

    .nav-list {
        gap: 1rem;
    }
}

/* Add space for fixed navbar only on mobile/tablet */
@media (max-width: 1024px) {
    .page-header {
        margin-top: 80px;
    }

    .content-section,
    .contact-page,
    .legal-page {
        margin-top: 80px;
    }

    /* Hero section on home page should not have top margin */
    .hero {
        margin-top: 0 !important;
    }
}
