/* ============================================
   MODERN NAVBAR STYLES
   ============================================ */

/* Navbar Container */
.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.navbar-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-navbar.scrolled .navbar-container {
    height: 75px;
    padding: 0 40px;
}

/* Brand Logo - Premium Style */
.navbar-brand {
    display: flex;
    align-items: center;
    z-index: 1001;
    position: relative;
    padding: 8px 0;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand a::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(58, 166, 245, 0.1), rgba(58, 166, 245, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.navbar-brand a:hover::before {
    opacity: 1;
}

.navbar-brand img {
    height: 55px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0) saturate(100%) invert(0%) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    position: relative;
    z-index: 1;
}

.navbar-brand a:hover img {
    transform: scale(1.05) translateY(-2px);
    filter: brightness(0) saturate(100%) invert(0%) drop-shadow(0 4px 12px rgba(58, 166, 245, 0.3));
}

.modern-navbar.scrolled .navbar-brand img {
    height: 48px;
    filter: brightness(0) saturate(100%) invert(0%) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.modern-navbar.scrolled .navbar-brand a:hover img {
    transform: scale(1.03) translateY(-1px);
    filter: brightness(0) saturate(100%) invert(0%) drop-shadow(0 4px 12px rgba(58, 166, 245, 0.3));
}

/* Navigation Menu - Premium Style */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 50px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    position: relative;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 12px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Sen', sans-serif;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0d3a5c, #0a2d4a);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(58, 166, 245, 0.4);
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 166, 245, 0.05), rgba(58, 166, 245, 0.02));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.nav-link:hover {
    color: #0d3a5c;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: calc(100% + 8px);
}

.nav-link:hover::after {
    opacity: 1;
}

.nav-link.active {
    color: #0d3a5c;
    font-weight: 700;
}

.nav-link.active::before {
    width: calc(100% + 8px);
    box-shadow: 0 2px 12px rgba(58, 166, 245, 0.5);
}

/* Navbar Actions - Premium Style */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle,
.menu-toggle {
    background: rgba(58, 166, 245, 0.05);
    border: 1px solid rgba(58, 166, 245, 0.1);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.search-toggle::before,
.menu-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(58, 166, 245, 0.1), rgba(58, 166, 245, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.search-toggle:hover,
.menu-toggle:hover {
    color: #0d3a5c;
    transform: translateY(-2px);
    border-color: rgba(58, 166, 245, 0.3);
    box-shadow: 0 4px 12px rgba(58, 166, 245, 0.2);
}

.search-toggle:hover::before,
.menu-toggle:hover::before {
    opacity: 1;
}

.search-toggle:active,
.menu-toggle:active {
    transform: translateY(0);
}

/* Hamburger Menu Toggle - Premium Style */
.menu-toggle {
    width: 32px;
    height: 26px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, #1a1a2e, #0d3a5c);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.menu-toggle:hover span {
    background: linear-gradient(90deg, #0d3a5c, #0a2d4a);
    box-shadow: 0 2px 6px rgba(58, 166, 245, 0.3);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
    background: #0d3a5c;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
    background: #0d3a5c;
}

/* Search Overlay - Premium Style */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 600px;
    padding: 0 40px;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid rgba(58, 166, 245, 0.2);
    padding-bottom: 20px;
    transition: border-color 0.4s ease;
}

.search-form:focus-within {
    border-bottom-color: #0d3a5c;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 28px;
    font-weight: 300;
    color: #1a1a2e;
    padding: 15px 0;
    outline: none;
    font-family: 'Sen', sans-serif;
    letter-spacing: 0.5px;
}

.search-input::placeholder {
    color: #999;
    font-weight: 300;
}

.search-submit {
    background: none;
    border: none;
    color: #121730;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.search-submit:hover {
    color: #0d3a5c;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 40px;
    background: none;
    border: none;
    font-size: 32px;
    color: #121730;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
}

.search-close:hover {
    color: #0d3a5c;
    transform: rotate(90deg);
}

/* Mobile Menu - Premium Style */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
    z-index: 1500;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 35px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(58, 166, 245, 0.02), rgba(255, 255, 255, 0.98));
}

.mobile-menu-header img {
    height: 45px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(0%) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.mobile-menu-header:hover img {
    transform: scale(1.05);
}

.mobile-menu-close {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #121730;
    transition: all 0.3s ease;
}

.mobile-menu-close span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-close span:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-nav {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-link {
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 8px;
    margin: 5px 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(58, 166, 245, 0.1), transparent);
    border-radius: 8px;
    transition: width 0.4s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #0d3a5c;
    padding-left: 30px;
    background: rgba(58, 166, 245, 0.05);
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
    width: 4px;
}

.mobile-menu-footer {
    padding: 30px;
    border-top: 1px solid #e0e0e0;
}

.mobile-social {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.mobile-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(58, 166, 245, 0.1), rgba(58, 166, 245, 0.05));
    border: 1px solid rgba(58, 166, 245, 0.2);
    border-radius: 50%;
    color: #1a1a2e;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d3a5c, #0a2d4a);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.mobile-social a:hover {
    color: #ffffff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(58, 166, 245, 0.4);
    border-color: #0d3a5c;
}

.mobile-social a:hover::before {
    opacity: 1;
}

.mobile-social a i {
    position: relative;
    z-index: 1;
}

.mobile-address {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.mobile-address p {
    margin: 0;
}

/* Overlay for mobile menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-container {
        padding: 0 25px;
    }
    
    .navbar-menu {
        display: none;
    }
    
    .search-toggle {
        display: flex;
    }
    
    .navbar-brand img {
        height: 48px;
        filter: brightness(0) saturate(100%) invert(0%) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    }
}

@media (max-width: 768px) {
    .navbar-container {
        height: 75px;
        padding: 0 20px;
    }
    
    .navbar-brand img {
        height: 42px;
        filter: brightness(0) saturate(100%) invert(0%) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    }
    
    .modern-navbar.scrolled .navbar-container {
        height: 70px;
    }
    
    .modern-navbar.scrolled .navbar-brand img {
        height: 40px;
        filter: brightness(0) saturate(100%) invert(0%) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
    }
    
    .search-toggle,
    .menu-toggle {
        padding: 8px 10px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        max-width: 100%;
    }
    
    .search-container {
        padding: 0 20px;
    }
    
    .search-close {
        right: 20px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Ensure navbar stays on top */
.modern-navbar {
    position: fixed !important;
}

/* Adjust body padding to account for fixed navbar */
body {
    padding-top: 85px;
}

@media (max-width: 768px) {
    body {
        padding-top: 75px;
    }
}

/* Active page indicator */
.nav-link[href*="index.html"]:not([href*="about"]):not([href*="contact"]) {
    /* Home page active */
}
