/* Modern Blurry Black & Gold Jewellery Header - Full Cursive */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Dancing+Script:wght@400;500;600;700&display=swap');

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.85rem 0;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* When hero section is hidden, always show solid header */
body.hero-hidden header,
body.hero-hidden header.scrolled {
    background: linear-gradient(135deg,
            rgba(20, 15, 10, 0.98) 0%,
            rgba(40, 30, 20, 0.98) 20%,
            rgba(60, 45, 30, 0.98) 40%,
            rgba(80, 60, 40, 0.98) 50%,
            rgba(60, 45, 30, 0.98) 60%,
            rgba(40, 30, 20, 0.98) 80%,
            rgba(20, 15, 10, 0.98) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.4), 0 8px 16px rgba(0, 0, 0, 0.3) !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.6) !important;
}

/* ── Marquee / Header stacking ──────────────────────────────────────────────
   Hero ON  → marquee top:0 (above header), header below marquee
   Hero OFF → header top:0 (above marquee), marquee below header
   ────────────────────────────────────────────────────────────────────────── */

/* Hero ON (default): marquee sits at very top */
.rates-ticker-bar {
    top: 0 !important;
    z-index: 1001 !important;
}

/* Hero ON: header sits below the 38px marquee — home page only */
body.home-page header {
    top: 38px;
}

/* Hero OFF: header goes to top:0, marquee drops below it */
body.hero-hidden header {
    top: 0 !important;
    z-index: 1000;
}

body.hero-hidden .rates-ticker-bar {
    top: var(--header-h, 70px) !important;
    z-index: 999 !important;
}

/* Hero OFF + marquee also hidden: header stays at top:0 */
body.hero-hidden.marquee-hidden header {
    top: 0 !important;
}

/* Jewellery gradient for non-index pages */
body:not(.home-page) header {
    background: linear-gradient(135deg,
            rgba(26, 26, 26, 0.95) 0%,
            rgba(40, 35, 30, 0.95) 25%,
            rgba(60, 50, 40, 0.95) 50%,
            rgba(40, 35, 30, 0.95) 75%,
            rgba(26, 26, 26, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.2), 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

header.scrolled,
header.solid {
    background: linear-gradient(135deg,
            rgba(20, 15, 10, 0.95) 0%,
            rgba(40, 30, 20, 0.95) 20%,
            rgba(60, 45, 30, 0.95) 40%,
            rgba(80, 60, 40, 0.95) 50%,
            rgba(60, 45, 30, 0.95) 60%,
            rgba(40, 30, 20, 0.95) 80%,
            rgba(20, 15, 10, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.4), 0 8px 16px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(212, 175, 55, 0.6);
}

/* Override for non-index pages on scroll */
body:not(.home-page) header.scrolled,
body:not(.home-page) header.solid {
    background: linear-gradient(135deg,
            rgba(25, 20, 15, 0.98) 0%,
            rgba(45, 35, 25, 0.98) 20%,
            rgba(70, 55, 40, 0.98) 40%,
            rgba(90, 70, 50, 0.98) 50%,
            rgba(70, 55, 40, 0.98) 60%,
            rgba(45, 35, 25, 0.98) 80%,
            rgba(25, 20, 15, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 6px 40px rgba(212, 175, 55, 0.5), 0 10px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 400;
    color: #d4af37;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Great Vibes', cursive;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
}

.logo:hover {
    color: #f4d03f;
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 0 30px rgba(244, 208, 63, 0.8);
}

.logo i {
    color: #d4af37;
    font-size: 1.8rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1) rotate(10deg);
    }
}

.logo img,
.logo-image {
    height: 55px;
    max-width: 240px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 10px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.6);
    border-radius: 10px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    color: #ffffff;
    padding: 0.8rem 1.3rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    padding-left: 1.6rem;
    border-left-color: #d4af37;
}

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    color: #d4af37;
    cursor: pointer;
    background: none;
    border: 2px solid #d4af37;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .logo {
        font-size: 1.6rem;
    }

    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 1024px) {
    .logo {
        font-size: 1.5rem;
    }

    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.85rem 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo img,
    .logo-image {
        height: 48px;
    }

    .mobile-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: left 0.4s ease;
        overflow-y: auto;
        z-index: 999;
        box-shadow: 4px 0 20px rgba(212, 175, 55, 0.3);
        border-right: 2px solid #d4af37;
    }

    nav.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 0 0 2rem;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 1.2rem 1.5rem;
        border-radius: 0;
        font-size: 1rem;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background: #d4af37;
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .nav-link:hover::before {
        transform: scaleY(1);
    }

    .nav-link:hover {
        padding-left: 2rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        background: rgba(212, 175, 55, 0.05);
        border: none;
        box-shadow: none;
        transform: none;
    }

    .nav-item.active .dropdown-menu {
        opacity: 1;
        max-height: 600px;
        padding: 0.5rem 0;
        border-left: 2px solid #d4af37;
    }

    .dropdown-item {
        padding: 0.9rem 1.5rem 0.9rem 2.5rem;
        font-size: 0.95rem;
    }

    .dropdown-item:hover {
        padding-left: 3rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }

    .logo img,
    .logo-image {
        height: 42px;
    }

    .nav-link {
        font-size: 0.95rem;
    }
}