/* header.css - Navigation and Header Styles - Dark Blue with Beige Theme */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    /* Match testimonials dark blue background */
    background: rgba(17, 24, 39, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(30, 41, 59, 0.6) !important;
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.3) ,
        0 0 40px rgba(255, 255, 255, 0.15) !important;
}

.main-header.scrolled {
    padding: 15px 0;
    background: rgba(17, 24, 39, 0.95) !important;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(255, 255, 255, 0.2) !important;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo - Beige Theme */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.logo-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-icon-placeholder {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Changed from gold to beige */
    color: #F5F0E8 !important;
    font-size: 20px;
    transition: var(--transition-smooth);
}

.logo-text {
    font-family: 'Livvic', sans-serif;
    font-size: 24px;
    font-weight: 700;
    /* Changed from gold gradient to beige gradient */
    background: linear-gradient(135deg, #ffffff, #F5F0E8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.logo-wrapper:hover .logo-icon-placeholder {
    transform: rotate(15deg) scale(1.1);
    /* Changed from gold to beige */
    background: rgba(245, 240, 232, 0.2) !important;
    border-color: rgba(245, 240, 232, 0.4) !important;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    /* Changed from gold to beige */
    background: #F5F0E8 !important;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    /* Changed from gold to beige */
    color: #F5F0E8 !important;
    text-shadow: 0 0 8px rgba(245, 240, 232, 0.3) !important;
}

/* CTA Button - Light colored for contrast */
.cta-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    color: #1e293b !important;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    color: #1e293b !important;
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #ffffff !important;
    transition: var(--transition-smooth);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
/* Tablet view improvements */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 25px;
    }

    .nav-link {
        font-size: 15px;
    }
}


/* Mobile Menu */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        gap: 15px; /* Add gap between logo and hamburger */
    }

    .nav-menu {
        position: fixed;
        top: 70px; /* Reduced from 80px */
        right: -100%;
        width: 280px; /* Reduced from 300px */
        height: calc(100vh - 70px);
        background: rgba(17, 24, 39, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column;
        padding: 30px 25px; /* Reduced padding */
        gap: 25px; /* Reduced gap */
        transition: right 0.3s ease;
        border-left: 1px solid rgba(30, 41, 59, 0.6) !important;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        margin-left: auto; /* Push hamburger to the right */
    }

    .hamburger span {
        width: 22px; /* Slightly smaller */
        height: 2px;
    }

    .cta-button {
        display: none;
    }

    .nav-link {
        font-size: 16px; /* Reduced from 18px */
        padding: 8px 0;
        color: #ffffff !important;
    }

    .nav-link:hover {
        color: #F5F0E8 !important;
        text-shadow: 0 0 8px rgba(245, 240, 232, 0.3) !important;
    }

    /* Tighter header padding */
    .main-header {
        padding: 12px 0; /* Reduced from 20px */
    }

    .main-header.scrolled {
        padding: 10px 0; /* Reduced from 15px */
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }

    .nav-menu {
        width: 260px; /* Further reduced */
        padding: 25px 20px;
        gap: 20px;
    }

    .logo-text {
        font-size: 18px; /* Reduced from 20px */
        background: linear-gradient(135deg, #ffffff, #F5F0E8) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }

    .logo-icon-placeholder {
        width: 32px; /* Reduced from 35px */
        height: 32px;
        font-size: 16px; /* Reduced from 18px */
        color: #F5F0E8 !important;
    }

    .hamburger span {
        width: 20px;
    }

    .nav-link {
        font-size: 15px;
    }

    /* Even tighter header */
    .main-header {
        padding: 10px 0;
    }

    .main-header.scrolled {
        padding: 8px 0;
    }
}

/* Force override any global styles that might interfere */
.main-header .nav-link,
.main-header .nav-link:visited {
    color: #ffffff !important;
}

.main-header .nav-link:hover,
.main-header .nav-link:focus,
.main-header .nav-link.active {
    color: #F5F0E8 !important;
    text-shadow: 0 0 8px rgba(245, 240, 232, 0.3) !important;
}

.main-header .logo-text {
    background: linear-gradient(135deg, #ffffff, #F5F0E8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.main-header .logo-icon-placeholder {
    color: #F5F0E8 !important;
}

.main-header .logo-wrapper:hover .logo-icon-placeholder {
    background: rgba(245, 240, 232, 0.2) !important;
    border-color: rgba(245, 240, 232, 0.4) !important;
    color: #F5F0E8 !important;
}