/* ===================================
   CONSOLIDATED NAVIGATION STYLES
   Includes: Top Bar, Navbar, Footer
   =================================== */

/* ===================================
   TOP BAR STYLES
   =================================== */
.top-bar {
    background: linear-gradient(90deg, #02253b, #083a5c);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 56px;
    z-index: 1001;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    gap: 20px;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.top-bar i {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.top-bar a:hover {
    color: #00c2ff;
    transform: translateY(-2px);
}

.top-bar a:hover i {
    background: #00c2ff;
    color: #06263d;
    box-shadow: 0 0 8px #00c2ff;
}

.top-left {
    flex: 0 1 auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.top-center {
    flex: 0 1 auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.top-right {
    flex: 0 1 auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* ===================================
   NAVBAR STYLES
   =================================== */
.navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.95) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.navbar .container {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
    backdrop-filter: blur(25px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
    gap: var(--space-8);
    flex-wrap: nowrap;
}

.navbar-brand {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
    flex-shrink: 0;
    margin-left: 0 !important;
    padding-left: 0 !important;
    order: -1;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    display: block;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-6);
    flex-wrap: nowrap;
    align-items: center;
    margin-left: auto;
}

.navbar-nav li {
    flex-shrink: 0;
    white-space: nowrap;
}

.navbar-nav a {
    color: #1f2937;
    font-weight: 600;
    font-size: 15px;
    padding: var(--space-2) var(--space-3);
    position: relative;
    transition: var(--transition);
    display: block;
    font-family: inherit;
}

.navbar-nav a:hover {
    color: var(--primary-color);
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav a:hover::after {
    width: 100%;
}

/* Highlight current page */
.navbar-nav a.active {
    color: #030ea8ff;
    font-weight: bold;
    border-bottom: 2px solid #0f009265;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    flex-shrink: 0;
    margin-left: var(--space-4);
}

/* ===================================
   FOOTER STYLES
   =================================== */
.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: var(--space-16) 0 var(--space-8);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: var(--space-4);
    font-size: var(--font-size-lg);
}

.footer-section p,
.footer-section a {
    color: var(--gray-300);
    margin-bottom: var(--space-2);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: var(--space-8);
    text-align: center;
    color: var(--gray-400);
    position: relative;
    z-index: 1;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Large screens */
@media (max-width: 1200px) {
    .top-bar {
        padding: 10px 30px;
    }

    .top-bar a {
        font-size: 14px;
        gap: 8px;
    }

    .navbar-nav {
        gap: var(--space-4);
        font-size: var(--font-size-sm);
    }

    .navbar-nav a {
        padding: var(--space-2);
    }
}

/* Medium screens */
@media (max-width: 992px) {
    .top-bar {
        padding: 10px 20px;
        gap: 15px;
        font-size: 14px;
    }

    .top-bar a {
        font-size: 14px;
    }

    .navbar-container {
        gap: var(--space-4);
    }

    .navbar-nav {
        gap: var(--space-2);
    }

    .navbar-nav a {
        padding: var(--space-1) var(--space-2);
        font-size: 0.85rem;
    }
}

/* Tablet and Mobile */
@media (max-width: 768px) {
    /* Top bar - show only phone */
    .top-bar {
        justify-content: center;
        padding: 0 10px;
        height: 56px;
    }

    .top-center,
    .top-right {
        display: none !important;
    }

    .top-left {
        margin: 0 auto;
    }

    /* Navbar */
    .navbar {
        top: 56px;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        margin-left: 0;
    }

    .navbar-nav.active {
        right: 0;
    }

    .navbar-nav li {
        margin: 10px 0;
        white-space: normal;
    }

    .navbar-nav a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        font-size: var(--font-size-base);
    }

    .navbar-brand img {
        height: 40px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .navbar-brand img {
        height: 35px;
    }

    .navbar-container {
        padding: var(--space-3) 0;
    }
}
