:root {
    --primary-color: #7e4bbb;
    --text-color: #333;
    --bg-color: #fff;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fdfdfd;
}

/* Header Styles */
.header-main {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo a img {
    height: 50px;
    width: auto;
    display: block;
}

/* Navigation */
.nav-header {
    display: none;
    /* Hidden on desktop */
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    text-transform: capitalize;
}

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

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    text-decoration: none;
    color: var(--text-color);
    font-size: 20px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
}

/* Header Actions (Login/Account) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-action-btn {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-login-outline {
    color: var(--text-color);
    border: 1px solid #e2e8f0;
}

.btn-login-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-account {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-account:hover {
    background-color: #6a3da1;
    /* Darker shade of primary */
    color: #fff;
}



/* Mobile Responsive */
@media (max-width: 991px) {
    .mobile-toggle {
        display: block;
        margin-left: 15px;
        /* Add spacing from icons */
    }

    /* --- Premium Full-Screen Mobile Menu --- */

    /* Menu Container */
    .navbar {
        position: fixed;
        inset: 0;
        /* Full screen */
        width: 100%;
        height: 100vh;
        background: rgba(253, 253, 255, 0.98);
        /* Warm off-white, almost opaque */
        backdrop-filter: blur(12px);
        /* Glass effect */
        -webkit-backdrop-filter: blur(12px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        /* Highest priority */
        padding: 40px;
    }

    .navbar.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Menu Items Wrapper */
    .navbar ul {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
        width: 100%;
        max-width: 400px;
        margin-top: 20px;
    }

    .navbar ul li {
        border: none;
        width: auto;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        transition-delay: 0.1s;
    }

    /* Staggered Animation on Open */
    .navbar.active ul li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .navbar.active ul li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .navbar.active ul li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .navbar.active ul li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .navbar.active ul li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .navbar.active ul li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Typography */
    .navbar ul li a {
        font-family: 'Poppins', sans-serif;
        font-size: 24px;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        padding: 10px;
        padding-left: 0;
        /* Reset hover padding */
        display: inline-block;
        position: relative;
        transition: color 0.3s ease;
    }

    .navbar ul li a:hover,
    .navbar ul li a:active {
        color: var(--primary-color);
        background: none;
        padding-left: 0;
        transform: scale(1.05);
        /* Subtle scale */
    }

    /* Active/Hover Stripe Indicator (Optional) */
    .navbar ul li a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--primary-color);
        transition: width 0.3s ease;
    }

    .navbar ul li a:hover::after {
        width: 30px;
    }

    /* Close Button (Premium) */
    .nav-header {
        position: absolute;
        top: 25px;
        right: 25px;
        width: auto;
        padding: 0;
        background: transparent;
        display: block;
    }

    .nav-title {
        display: none;
        /* Hide standard title */
    }

    .mobile-menu-close {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: #f0f0f5;
        color: #333;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .mobile-menu-close:hover {
        background-color: var(--primary-color);
        color: white;
        transform: rotate(90deg);
    }

    /* Hamburger Button (Enhanced) */
    .mobile-toggle {
        display: block;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        /* Soft rounded */
        background-color: #fff;
        border: 1px solid #eee;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        cursor: pointer;
        padding: 0;
        margin-left: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        transition: all 0.2s ease;
    }

    .mobile-toggle:active {
        transform: scale(0.95);
    }

    /* Hide Overlay (Not needed for full screen menu) */
    .menu-overlay {
        display: none !important;
    }

    .header-icons {
        gap: 15px;
    }
}

/* Overlay & Utilities */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    /* Behind navbar, above content */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

body.no-scroll {
    overflow: hidden;
}