/* Header Styles - Modern Professional Design with Blue */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #052D69 0%, #0a4da3 50%, #052D69 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(5, 45, 105, 0.3);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    padding: 0;
}

/* Header background overlay */
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .main-header {
        z-index: 1000 !important;
        overflow: visible !important;
    }
}

.main-header.sticky {
    background: linear-gradient(135deg, #052D69 0%, #0a4da3 50%, #052D69 100%);
    box-shadow: 0 4px 30px rgba(5, 45, 105, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
    z-index: 2;
    animation: fadeInDown 0.6s ease-out;
}

/* Header fade-in animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px !important;
        height: 70px !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .logo-container {
        flex-shrink: 0 !important;
        z-index: 1001 !important;
        max-width: calc(100% - 60px);
    }
    
    .logo-img {
        max-width: 100%;
        height: auto;
    }
}

/* Logo Styles with Animation */
.logo-container {
    flex-shrink: 0;
    z-index: 3;
    animation: logoSlideIn 0.8s ease-out;
}

@keyframes logoSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px;
    border-radius: 10px;
}

.logo-link:hover {
    transform: translateY(-2px) scale(1.05);
}

.logo-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

.logo-img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.logo-placeholder {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.logo-link:hover .logo-placeholder {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.03);
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.logo-link:hover .logo-text {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 14px;
        display: none;
    }
}

/* Navigation Styles - Professional Design with Animations */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 3;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    animation: navItemFadeIn 0.6s ease-out backwards;
}

.nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.nav-menu li:nth-child(2) { animation-delay: 0.2s; }
.nav-menu li:nth-child(3) { animation-delay: 0.3s; }
.nav-menu li:nth-child(4) { animation-delay: 0.4s; }
.nav-menu li:nth-child(5) { animation-delay: 0.5s; }

@keyframes navItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-transform: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 18px;
    border-radius: 8px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
}

/* Modern underline effect */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background hover effect */
.nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
}

/* Hover effects */
.nav-link:hover {
    color: #ffffff69;
    transform: translateY(-1px);
}

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

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

/* Active state */
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.nav-link.active::before {
    width: calc(100% - 20px);
}

.nav-link.active::after {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
}

/* Hamburger Menu Button - Professional Style with Animation */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    position: relative;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    gap: 5px;
    animation: hamburgerFadeIn 0.8s ease-out;
}

@keyframes hamburgerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hamburger-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    pointer-events: none;
}

.hamburger-menu.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #ffffff;
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: #ffffff;
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.hamburger-menu:active {
    transform: scale(0.9) rotate(-5deg);
}

.hamburger-menu::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.hamburger-menu:hover::before {
    opacity: 1;
}

/* Mobile Styles - Professional Mobile Navigation */
@media (max-width: 768px) {
    body {
        padding-top: 0px;
    }

    .hamburger-menu {
        display: flex !important;
        position: relative !important;
        z-index: 1002 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
        order: 3 !important;
        flex-shrink: 0 !important;
    }

    .main-nav {
        flex: 0 !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: calc(100vh - 70px) !important;
        background: linear-gradient(135deg, #052D69 0%, #0a4da3 50%, #052D69 100%) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        transform: translateX(-100%) !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 4px 0 40px rgba(5, 45, 105, 0.4) !important;
        z-index: 9999 !important;
        display: block !important;
        visibility: visible !important;
        pointer-events: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        opacity: 1 !important;
        -webkit-overflow-scrolling: touch !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .main-nav.active {
        transform: translateX(0) !important;
        left: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
        z-index: 9999 !important;
        animation: mobileNavSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    @keyframes mobileNavSlideIn {
        from {
            transform: translateX(-100%);
            opacity: 0.8;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .main-nav .nav-menu {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 30px 0 !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        list-style: none !important;
        margin: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .main-nav .nav-menu li {
        width: 100% !important;
        display: block !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        animation: mobileNavItemSlide 0.4s ease-out backwards !important;
    }

    .main-nav.active .nav-menu li:nth-child(1) { animation-delay: 0.1s !important; }
    .main-nav.active .nav-menu li:nth-child(2) { animation-delay: 0.15s !important; }
    .main-nav.active .nav-menu li:nth-child(3) { animation-delay: 0.2s !important; }
    .main-nav.active .nav-menu li:nth-child(4) { animation-delay: 0.25s !important; }
    .main-nav.active .nav-menu li:nth-child(5) { animation-delay: 0.3s !important; }

    @keyframes mobileNavItemSlide {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .main-nav .nav-link {
        display: block !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        width: 100% !important;
        color: rgba(255, 255, 255, 0.95) !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        text-transform: none !important;
        letter-spacing: 0.3px !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-radius: 0 !important;
        position: relative !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
        touch-action: manipulation !important;
        word-wrap: break-word !important;
    }

    .main-nav .nav-link::before {
        display: none !important;
    }

    .main-nav .nav-link::after {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 4px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        transform: scaleY(0) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        color: #ffffff !important;
        padding-left: 26px !important;
        background: rgba(255, 255, 255, 0.15) !important;
    }

    .main-nav .nav-link:hover::after,
    .main-nav .nav-link.active::after {
        transform: scaleY(1) !important;
    }

    .logo-img {
        max-height: 38px;
        max-width: 100%;
        height: auto;
    }

    .logo-placeholder {
        font-size: 18px;
        padding: 6px 14px;
        word-wrap: break-word;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-container {
        padding: 0 24px;
        height: 75px;
        width: 100%;
        max-width: 100vw;
    }

    .nav-menu {
        gap: 4px;
    }

    .nav-link {
        font-size: 14px;
        padding: 10px 14px;
        white-space: nowrap;
    }
}

/* Desktop Large Styles */
@media (min-width: 1400px) {
    .header-container {
        padding: 0 60px;
    }

    .nav-menu {
        gap: 12px;
    }

    .nav-link {
        padding: 10px 24px;
    }
}

