/* Header & Footer Components - Dark Theme */

/* --- Header --- */
.headerWrapper {
    position: relative;
    z-index: 100;
}

.header {
    position: fixed;
    top: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0 .5rem 1.75rem;
    background: rgba(15, 23, 42, 0.6); /* Dark glass */
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all .4s cubic-bezier(.4,0,.2,1);
    overflow: visible;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent, rgba(59,130,246,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

body.hide-top-bar .header { top: 1rem; }
.header--hidden { transform: translate(-50%, -150%) !important; opacity: 0; }

/* Logo */
.logoSection {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.logoBox {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
    transition: all .3s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

.logoIcon {
    font-size: 1.4rem;
    color: #fff;
    z-index: 2;
}

.logoText { display: flex; flex-direction: column; }

.brandName {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #fff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Playfair Display', serif;
    letter-spacing: .01em;
    line-height: 1;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.tagline {
    font-size: .65rem;
    color: #94a3b8;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: block;
    font-family: 'Inter', sans-serif;
}

/* Menu */
.menuCloseBtn { display: none; } /* Hidden on Desktop */
.menuBar { display: flex; align-items: center; gap: .4rem; }

.menuLink {
    position: relative;
    padding: .4rem .6rem;
    white-space: nowrap;
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    border-radius: 8px;
    border: 1.5px solid transparent;
    transition: all .3s ease;
    font-family: 'Playfair Display', serif;
    font-size: .88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .02em;
}

.menuLink:hover {
    color: #fff;
    background: rgba(59, 130, 246, 0.1);
    border: 1.5px solid #3b82f6;
    padding: .6rem 1rem;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.menuLink.active {
    border: 1.5px solid #3b82f6;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.05);
    color: #60a5fa;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.menuLink.highlight {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff !important;
    padding: .6rem 1.8rem;
    border-radius: 999px;
    border: none !important;
    margin-right: -25px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    text-transform: none;
    z-index: 10;
}

.menuLink.highlight:hover {
    transform: scale(1.05) translateX(5px);
    margin-right: -50px;
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.4), 0 15px 35px rgba(59, 130, 246, 0.6);
}






/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    transition: all .3s ease;
    align-items: center;
    backdrop-filter: blur(10px);
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.hamburger span { width: 20px; height: 2px; background: #e2e8f0; border-radius: 4px; transition: all .3s ease; }

.hamburger.active { background: rgba(59,130,246,0.2); border-color: #3b82f6; }
.hamburger.active span:nth-child(1) { width: 24px; transform: translateY(8px) rotate(45deg); background: #fff; }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scale(0); }
.hamburger.active span:nth-child(3) { width: 24px; transform: translateY(-8px) rotate(-45deg); background: #fff; }

/* Top Bar - Dark */
.topBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2.75rem;
    background: rgba(5, 10, 20, 0.95); /* Deep sleek dark */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topBar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #6366f1 20%, 
        #a855f7 40%, 
        #ec4899 60%, 
        #8b5cf6 80%, 
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmerBorder 3s linear infinite;
    opacity: 1;
    box-shadow: 0 1px 15px rgba(236, 72, 153, 0.6);
}

@keyframes shimmerBorder {
    0% { background-position: 100% 0 }
    100% { background-position: -100% 0 }
}

.topBar.hidden { transform: translateY(-100%); }



.topBarContainer {
    width: 100%;
    max-width: 1350px;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topBarLeft, .topBarRight {
    display: flex;
    align-items: center;
}

.topBarLeft { gap: 0; } /* Items have own padding/margin or dividers */
.topBarRight { gap: 0.5rem; }

.topBarItem { 
    display: flex; 
    align-items: center; 
    gap: .75rem; 
    color: #94a3b8; 
    transition: all .3s ease; 
    font-weight: 500;
    letter-spacing: 0.02em;
}

.topBarItem i { 
    color: #3b82f6; 
    font-size: 0.9em;
    transition: all .3s ease; 
}

.topBarItem:hover { 
    color: #fff; 
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.topBarItem:hover i { 
    transform: scale(1.2); 
    color: #60a5fa; 
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.topBarSocial {
    color: #e2e8f0;
    margin-left: 0.2rem;
    font-size: 0.95rem;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.topBarSocial:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.topBarDivider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 1rem;
}

/* Mobile Menu */
/* Mobile Menu */
@media (max-width: 1024px) {
    .menuBar {
        position: fixed;
        inset: 0 0 0 auto; /* Right aligned */
        width: 80%; /* 80% Width */
        height: 100vh;
        background: rgba(5, 10, 20, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center; /* Keep centered vertically or use flex-start for top-heavy? User said "content small", let's keep centered but tighter */
        align-items: center;
        gap: 1.5rem; /* Increased gap */
        transform: translateX(100%); /* Slide from Right */
        transition: transform .4s cubic-bezier(.16,1,.3,1);
        z-index: 999;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .menuBar.active { transform: translateX(0); }
    
    /* Hide external hamburger when overlay active is simpler to manage via overlay opacity, 
       but we can also just hide it here if needed. 
       Actually, let's keep it simple: Ensure menu covers it or it fades out. */
    
    .menuLink {
        font-size: 1rem; /* Smaller font */
        color: #cbd5e1;
        width: 100%;
        max-width: 200px;
        padding: .6rem 0; /* Reduced padding */
        border-radius: 99px;
        justify-content: center;
    }
    
    .menuLink.active {
        background: rgba(15, 23, 42, 0.6);
        border: 1px solid #3b82f6;
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
        color: #fff;
    }
    
    /* Highlight button adjustments */
    .menuLink.highlight {
        margin-right: 0;
        margin-top: 1rem;
        padding: .75rem 2rem;
    }

    .hamburger { display: flex; margin-right: 0; } /* Removed excess margin */
    .topBar { display: none !important; }
    .header { 
        top: 1.5rem; 
        padding-right: 1.75rem; /* Match default left padding of 1.75rem */
    }

    /* Mobile Menu Overlay */
    .mobileMenuOverlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7); /* Darker dim */
        backdrop-filter: blur(16px); /* Stronger blur */
        -webkit-backdrop-filter: blur(16px);
        z-index: 998; /* Behind menu (999), above content */
        opacity: 0;
        visibility: hidden;
        transition: all .4s ease;
    }

    .mobileMenuOverlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Close Button */
    .menuCloseBtn {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all .3s ease;
        font-size: 1.1rem;
    }
    
    .menuCloseBtn:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #ef4444; /* Optional hover color */
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .header { 
        width: calc(100% - 1rem); 
        padding: .35rem 1rem; /* Symmetric padding */
    }
    .logoBox { width: 2.4rem; height: 2.4rem; }
    .brandName { font-size: 1.05rem; }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}