/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

:root {
--spring-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
--spring-duration: 0.4s;
	--pkg-bronze: #a8894e;
    --pkg-bronze-light: #c8a96e;
    --pkg-bronze-gradient: linear-gradient(135deg, #c8a96e 0%, #a8894e 100%);
    --pkg-charcoal: #07090e;
    --pkg-charcoal-light: #2d2f36;
}

@keyframes wipe {
    0%   { -webkit-mask-position: 200% center; mask-position: 200% center; }
    100% { -webkit-mask-position: -200% center; mask-position: -200% center; }
}

@keyframes text {
    0% { background-position: 100% center; }    
    100% { background-position: -100% center; }    
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15%       { transform: scale(1.3); }
    30%       { transform: scale(1); }
    45%       { transform: scale(1.2); }
    60%       { transform: scale(1); }
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */

/* Header Styles */
.header {
    background: #07090e;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: min-content 1fr min-content;
    align-items: flex-start; 
    padding: 0 2rem;
}

/* LOGO */
.logo {
    grid-column: 1; 
    grid-row: 1;
    justify-self: start; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    min-width: 200px;
}

.logo a {
    text-decoration: none;
}

/* LOGO BOX */
.logo-box {
    border: 4px solid white;
    outline: 2px solid rgba(255,255,255,0.15);
    outline-offset: -6px;
    padding: 8px 16px;
    background: #dc143c;        
    display: inline-block;
    position: relative;
    isolation: isolate;
    scale: 1;
    transition: all var(--spring-duration) var(--spring-easing);
}

.logo-box:hover {
    scale: 1.05;
    transition-duration: calc(var(--spring-duration)*0.5);
}

/* LOGO TEXT - Z-Index fix for Animation */
.logo-text {
    font-family: 'Archivo Black', sans-serif;
    color: transparent; 
    background-clip: text;
    -webkit-background-clip: text;
    background-color: white;
    background-image: linear-gradient(120deg, transparent, rgba(255,255,255,0.66) 40%, rgba(255,255,255,0.9) 50%, transparent 52%);
    background-repeat: no-repeat;
    background-size: 300% 300%;
    background-position: center 200%;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

/* SHIMMER & BUBBLES - ROBUST FIX */
.shimmer {
    position: absolute;
    inset: -40px;
    border-radius: inherit;
    mix-blend-mode: screen;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(
        90deg, transparent 15%, white 45%, white 55%, transparent 85%
    );
    mask-image: linear-gradient(
        90deg, transparent 15%, white 45%, white 55%, transparent 85%
    );
    -webkit-mask-size: 200% 200%;
    mask-size: 200% 200%;
    -webkit-mask-position: 200% center;
    mask-position: 200% center;
    animation: wipe 4s linear infinite;
}

/* The Bubbles (Glow) - Hidden by default */
.shimmer::before,
.shimmer::after {
    content: "";
    border-radius: inherit;
    position: absolute;
    inset: 40px;
    transition: all 0.5s ease;
    opacity: 1;
}

/* 1. Outer Bubble (Glow outside box) */
.shimmer::before {
    z-index: 1; /* Bottom layer */
    box-shadow: 
        0 0 3px 2px rgba(255, 255, 255, 0.95),
        0 0 7px 4px rgba(255, 255, 255, 0.8),
        0 0 13px 8px rgba(255, 255, 255, 0.6),
        0 0 22px 6px rgba(255, 255, 255, 0.4);
}

/* 2. Inner Bubble (Glow inside border) */
.shimmer::after {
    z-index: 2; /* Middle layer */
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.95),
        inset 0 0 3px 1px rgba(255, 255, 255, 0.8),
        inset 0 0 9px 1px rgba(255, 255, 255, 0.7);
}

/* Trigger: Show Bubbles and Text Animation on Hover */
.logo-box:hover .shimmer::before,
.logo-box:hover .shimmer::after {
    opacity: 1; /* Makes bubbles visible */
}

.logo-box:hover .logo-text {
    animation: text .66s ease-in-out 1;
}

/* Tagline */
.tagline-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.line {
    width: 40px;
    height:1.5px;
    background: #c8a96e;
    animation: line-cycle 3s ease-in-out infinite;
}

@keyframes line-cycle {
    0%, 100% { background: #c8a96e; }
    50%       { background: #ffffff; }
}

.tagline {
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.8px;
    white-space: nowrap;
    color: #c8a96e;
    animation: tagline-cycle 3s ease-in-out infinite;
}

@keyframes tagline-cycle {
    0%, 100% { color: #c8a96e; }
    50%       { color: #ffffff; }
}

/* NAVIGATION MENU (Centered, Zero Gap) */
.nav-menu {
    grid-column: 2; /* Center Column */
    grid-row: 1;
    justify-self: center; /* Center of screen */
    display: flex;
    list-style: none;
    gap: 0; /* <--- ZERO GAP */
    align-items: center;
    margin: 0;
    padding: 0;
    margin-top: 20px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: #e6dcc8;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 5px;
    font-family: 'Hanken Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(200,169,110,0.12);   
    color: #c8a96e;                        
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    color: #333;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: block;
    font-size: 0.95rem;
    letter-spacing: normal !important;
    text-transform: none;
}

.dropdown a:hover {
    background: #f8f9fa;
    color: var(--pkg-bronze);
}

.sub-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.sub-dropdown a {
    color: #333;
    padding: 10px 18px;
    border-bottom: 1px solid #f0f0f0;
    display: block;
    font-size: 0.9rem;
}

.sub-dropdown a:hover {
    background: #f8f9fa;
    color: var(--pkg-bronze);
}

.dropdown-item {
    position: relative;
}

.dropdown-item:hover .sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-item > a .fas.fa-chevron-right {
    float: right;
    margin-top: 2px;
    font-size: 0.8rem;
}

/* Hamburger */
.hamburger {
    grid-column: 3; 
    grid-row: 1;
    justify-self: end;
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    margin-top: 15px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

/* =========================================
   HEADER RESPONSIVE QUERIES
   ========================================= */

/* MacBook / Standard Laptops */
@media (max-width: 1450px) {
    .nav-container {
        max-width: 1200px;
        padding: 0 1.5rem;
    }
    .nav-menu { gap: 0; }
    .nav-menu a { letter-spacing: 1px; padding: 0.5rem 0.6rem; }
}

/* Small Laptops */
@media (max-width: 1365px) {
    .nav-menu { gap: 0; }
    .nav-menu a { letter-spacing: 0px; font-size: 0.70rem; padding: 0.6rem 1rem; }
    .logo-text { font-size: 1.1rem; letter-spacing: 1px; }
    .logo-box { padding: 6px 14px; }
}

/* Tablet / Foldable */
@media (max-width: 1024px) {
    .nav-container { display: flex; justify-content: space-between; }
    .hamburger { display: flex; }
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        overflow-y: auto;
        z-index: 999;
        margin-top: 0;
    }
    .nav-menu.active { display: flex; }
    .nav-menu > li { width: 100%; border-bottom: 1px solid #e0e0e0; }
    .nav-menu a {
        width: 100%;
        justify-content: space-between;
        color: #666;
        padding: 1rem;
        letter-spacing: 1px;
        font-size: 1rem;
    }
    .logo { margin-top: 0; grid-column: unset; grid-row: unset; }
    .logo-box { 
        padding: 6px 12px; 
        border: 3px solid white;
        outline: 1px solid rgba(255,255,255,0.1);
        outline-offset: -4px;  
    }
    .logo-text { font-size: 1rem; letter-spacing: 1px; }
    .tagline { font-size: 0.55rem; max-width: 160px; white-space: normal; text-align: center; }
    .line { width: 15px; }
    
    /* Mobile Dropdowns */
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: #f8f9fa; margin: 0; border-radius: 8px; max-height: 0; overflow: hidden; display: none; }
    .dropdown.active { max-height: 500px; display: block; }
    .dropdown a:hover { background: var(--pkg-charcoal); color: white; }
}