/* Navbar CSS - Header and Navigation Styles */

/* Header Styles */
.bec-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.bec-header.scrolled {
    padding: 5px 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.bec-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    min-height: 60px;
}

/* Logo Styles */
.bec-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.bec-logo-wrapper:hover {
    transform: translateY(-2px);
}

.bec-logo-image {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.bec-logo-image:hover {
    transform: scale(1.05);
}

.bec-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
    justify-content: center;
    align-items: flex-start;
    min-height: 40px;
}

.bec-logo-title {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.1;
    color: white;
    display: block;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    height: 22px;
}

.bec-logo-subtitle {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 300;
    color: white;
    line-height: 1.1;
    display: block;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    height: 14px;
}

/* Desktop Navigation Menu */
.bec-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.bec-nav-item {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInDown 0.5s forwards;
}


.bec-nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.bec-nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    color: white;
}

.bec-nav-link.active {
    background-color: rgba(255,255,255,0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bec-contact-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f71e1e 100%);
    color: white;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.bec-contact-btn:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #de521a 100%);
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

.bec-admin-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hamburger Menu (Mobile) */
.bec-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 10000;
}

.bec-hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    margin: 3px 0;
}

.bec-hamburger.active .bec-hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.bec-hamburger.active .bec-hamburger-line:nth-child(2) {
    opacity: 0;
}

.bec-hamburger.active .bec-hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu */
.bec-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
}

.bec-mobile-menu.active {
    right: 0;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
}

.bec-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
}

.bec-mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bec-mobile-logo-image {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.bec-mobile-logo-text {
    color: white;
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
}

.bec-mobile-logo-title {
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.1;
    display: block;
    white-space: nowrap;
}

.bec-mobile-logo-subtitle {
    font-size: 12px;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.1;
    display: block;
    white-space: nowrap;
}

.bec-mobile-close {
    width: 35px;
    height: 35px;
    position: relative;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.bec-mobile-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.bec-mobile-close-line {
    position: absolute;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.bec-mobile-close-line:first-child {
    transform: rotate(45deg);
}

.bec-mobile-close-line:last-child {
    transform: rotate(-45deg);
}

.bec-mobile-menu-content {
    padding: 30px 20px;
}

.bec-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bec-mobile-menu-item {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.5s ease forwards;
}

.bec-mobile-menu-item:nth-child(1) { animation-delay: 0.1s; }
.bec-mobile-menu-item:nth-child(2) { animation-delay: 0.2s; }
.bec-mobile-menu-item:nth-child(3) { animation-delay: 0.3s; }
.bec-mobile-menu-item:nth-child(4) { animation-delay: 0.4s; }
.bec-mobile-menu-item:nth-child(5) { animation-delay: 0.5s; }
.bec-mobile-menu-item:nth-child(6) { animation-delay: 0.6s; }
.bec-mobile-menu-item:nth-child(7) { animation-delay: 0.7s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bec-mobile-menu-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: block;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.bec-mobile-menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.bec-mobile-menu-link:hover::before {
    left: 100%;
}

.bec-mobile-menu-link:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.bec-mobile-menu-link.active {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.bec-mobile-contact-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    margin-top: 15px;
    text-align: center;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.bec-mobile-contact-btn:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #de831a 100%);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

.bec-mobile-admin-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 15px 20px;
}

/* Responsive Styles for Navbar */
@media screen and (max-width: 992px) {
    .bec-nav {
        display: none;
    }
    
    .bec-hamburger {
        display: flex;
    }
    
    .bec-logo-text {
        display: block;
    }
    
    .bec-logo-title {
        font-size: 18px;
        font-weight: 700;
    }
    
    .bec-logo-subtitle {
        font-size: 11px;
        opacity: 0.9;
    }
    
    .bec-logo-image {
        height: 40px;
        max-width: 130px;
    }
    
    .bec-header-inner {
        padding: 22px 0;
    }
}

@media screen and (max-width: 768px) {
    .bec-header-inner {
        padding: 12px 0;
    }
    
    .bec-logo-wrapper {
        gap: 10px;
    }
    
    .bec-logo-title {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.1;
    }
    
    .bec-logo-subtitle {
        font-size: 10px;
        opacity: 0.9;
        line-height: 1.1;
    }
    
    .bec-logo-image {
        height: 35px;
        max-width: 110px;
    }
    
    .bec-hamburger {
        gap: 3px;
    }
    
    .bec-hamburger-line {
        width: 22px;
        height: 2px;
        margin: 2px 0;
        background: linear-gradient(90deg, #ffffff, #e0e7ff);
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
}

@media screen and (max-width: 480px) {
    .bec-header {
        padding: 0 10px;
    }
    
    .bec-header-inner {
        padding: 10px 0;
    }
    
    .bec-logo-wrapper {
        gap: 8px;
    }
    
    .bec-logo-title {
        font-size: 14px;
        font-weight: 700;
        line-height: 1.1;
    }
    
    .bec-logo-subtitle {
        font-size: 9px;
        opacity: 0.9;
        line-height: 1.1;
    }
    
    .bec-logo-image {
        height: 30px;
        max-width: 90px;
    }
    
    .bec-hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    .bec-mobile-menu-content {
        padding: 25px 15px;
    }
    
    .bec-mobile-menu-link {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .bec-mobile-menu-header {
        padding: 20px 15px;
    }
    
    .bec-mobile-logo-image {
        height: 35px;
    }
    
    .bec-mobile-logo-title {
        font-size: 16px;
        line-height: 1.1;
    }
    
    .bec-mobile-logo-subtitle {
        font-size: 11px;
        line-height: 1.1;
    }
    
    .bec-mobile-close {
        width: 32px;
        height: 32px;
    }
    
    .bec-mobile-close-line {
        width: 16px;
        height: 2px;
    }
}

/* Additional mobile menu enhancements */
.bec-mobile-menu::-webkit-scrollbar {
    width: 4px;
}

.bec-mobile-menu::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.bec-mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.bec-mobile-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}