/* assets/header.css — the site header, in one place.
   Every selector is scoped under `header` so a page's own .logo/.hero
   rules cannot collide with it. Edit here to change the menu sitewide. */

header /* Navigation */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
    max-width: 320px;
    transition: all 0.5s ease-in-out;
}
header .navbar-container {
    background: #ffffff;
    backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease-in-out;
}
@media (min-width: 500px) {
  header {
        max-width: 450px;
    }
}
@media (min-width: 640px) {
  header {
        max-width: 540px;
    }
}
@media (min-width: 768px) {
  header {
        max-width: 720px;
    }
}
@media (min-width: 1024px) {
  header {
        max-width: 960px;
    }
}
@media (min-width: 1280px) {
  header {
        max-width: 1140px;
    }
}
@media (min-width: 1440px) {
  header {
        max-width: 1290px;
    }
}
header /* Scrolled state */
header.scrolled {
    top: 8px;
}
header /* Scrolled navbar container */
.navbar-container.scrolled {
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
header /* Logo */
.navbar-logo {
    flex-shrink: 0;
}
header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
header .logo img {
    height: 44px;
    width: auto;
    max-width: 198px;
    object-fit: contain;
}
header /* Desktop Navigation */
.navbar-nav {
    display: none;
    align-items: center;
}
@media (min-width: 1280px) {
  header .navbar-nav {
        display: flex;
    }
}
header .navbar-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
header .navbar-item {
    position: relative;
}
header .navbar-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    color: #0a0a0a;
    transition: all 0.2s ease;
    position: relative;
}
header .navbar-link:hover {
    border-color: #e3e7ed;
    background: rgba(59, 91, 253, 0.1);
    color: #1a1a1c;
}
header /* CTA Buttons */
.navbar-cta {
    display: none;
    align-items: center;
    gap: 12px;
}
@media (min-width: 1280px) {
  header .navbar-cta {
        display: flex;
    }
}
header .navbar-login-btn {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
    transition: all 0.2s ease;
}
header .navbar-login-btn:hover {
    border-color: #e3e7ed;
    background: rgba(59, 91, 253, 0.1);
    color: #1a1a1c;
}
header .navbar-cta-btn {
    position: relative;
    display: inline-block;
    cursor: pointer;
    overflow: hidden;
    border-radius: 50px;
    border: 1px solid #0251d9;
    background: #0364ff;
    color: white;
    text-align: center;
    font-weight: 400;
    text-transform: lowercase;
    text-decoration: none;
    transition: all 0.5s ease-in-out;
    box-shadow: 0 1px 2px 0px rgba(16, 24, 40, 0.05);
    padding: 10px 20px;
    font-size: 0.875rem;
    min-width: 90px;
}
header .navbar-cta-btn span {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
    text-transform: lowercase;
}
header .navbar-cta-btn span::first-letter {
    text-transform: uppercase;
}
header .navbar-cta-btn::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='white' viewBox='0 0 256 256'%3E%3Cpath d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    height: 0;
    width: 0;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}
header .navbar-cta-btn:hover {
    transform: scale(1.02);
}
header .navbar-cta-btn:hover::before {
    height: 12px;
    width: 12px;
    transform: translateY(-50%) translateX(-16px);
    opacity: 1;
}
header .navbar-cta-btn:hover span {
    transform: translateX(-8px);
}
header /* ── Glow Menu ─────────────────────────────────────────────────── */
.gm-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: visible;
}
header .gm-item {
    position: relative;
    list-style: none;
}
header .gm-item-soon {
    opacity: 0.75;
}
header .gm-amazon-img {
    height: 1.5em;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
}
header .gm-link {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    position: relative;
    overflow: visible;
}
header /* radial glow behind each item */
.gm-glow {
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
header .gm-item:hover .gm-glow, header .gm-item.gm-active .gm-glow {
    opacity: 1;
    transform: scale(2);
}
header /* 3D flip wrapper */
.gm-flip-wrap {
    position: relative;
    perspective: 600px;
}
header /* shared face styles */
.gm-face {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    font-size: 0.9rem;
    font-weight: 400;
    color: #374151;
    border-radius: 12px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: transform 0.45s cubic-bezier(0.36,0.66,0.04,1), opacity 0.3s ease, color 0.2s;
}
header .gm-front {
    transform-origin: center bottom;
    transform: rotateX(0deg);
    opacity: 1;
}
header .gm-back {
    position: absolute;
    inset: 0;
    transform-origin: center top;
    transform: rotateX(90deg);
    opacity: 0;
}
header .gm-item:hover .gm-front, header .gm-item.gm-active .gm-front {
    transform: rotateX(-90deg);
    opacity: 0;
}
header .gm-item:hover .gm-back, header .gm-item.gm-active .gm-back {
    transform: rotateX(0deg);
    opacity: 1;
}
header /* Active item text color boost */
.gm-item.gm-active .gm-face { color: #111827; }
header /* Icon base */
.gm-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: color 0.2s;
}
header /* Icon colors */
.gm-icon-blue { color: #3b82f6; }
header .gm-icon-purple { color: #8b5cf6; }
header .gm-icon-green { color: #22c55e; }
header .gm-icon-orange { color: #f97316; }
header .gm-icon-red { color: #ef4444; }
header /* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    background: #f0f2f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10001;
}
@media (min-width: 1280px) {
  header .mobile-menu-toggle {
        display: none;
    }
}
@media (max-width: 480px) {
  header .mobile-menu-content {
        max-width: 260px;
        padding: 70px 16px 16px;
    }
  header .mobile-menu-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
  header .mobile-menu-link {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
  header .mobile-menu-login, header .mobile-menu-cta {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}
header .mobile-menu-toggle:hover {
    background: #e3e7ed;
    transform: scale(1.05);
}
header .mobile-menu-toggle.active {
    background: #0364ff;
    transform: scale(1.05);
}
header .mobile-menu-toggle.active .hamburger-line {
    background: white;
}
header .hamburger-line {
    width: 24px;
    height: 2px;
    background: #1a1a1c;
    transition: all 0.2s ease;
    border-radius: 1px;
}
header /* Hamburger menu stays as hamburger, header no X transformation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: none;
}
header .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 1;
}
header .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: none;
}
header /* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
header .mobile-menu.active {
    opacity: 1;
    visibility: visible;
}
header .mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: white;
    padding: 80px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}
header .mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: #f8f9fa;
    border: 2px solid #e3e7ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10002;
    color: #6c757d;
}
header .mobile-menu-close:hover {
    background: #e9ecef;
    border-color: #0364ff;
    color: #0364ff;
    transform: scale(1.05);
}
header .mobile-menu-close:active {
    transform: scale(0.95);
}
header .mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}
header .mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
header .mobile-menu-link {
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a1c;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-align: left;
}
header .mobile-menu-link:hover {
    background: #f8f9fa;
    color: #0364ff;
    border-color: #e3e7ed;
    transform: translateX(4px);
}
header .mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e3e7ed;
}
header .mobile-menu-login {
    padding: 16px 24px;
    border: 2px solid #e3e7ed;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1c;
    text-align: center;
    transition: all 0.2s ease;
    background: white;
}
header .mobile-menu-login:hover {
    background: #f8f9fa;
    border-color: #0364ff;
    color: #0364ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 100, 255, 0.15);
}
header .mobile-menu-cta {
    position: relative;
    display: inline-block;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid #0364ff;
    background: linear-gradient(135deg, #0364ff 0%, #0251d9 100%);
    color: white;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(3, 100, 255, 0.3);
    padding: 16px 24px;
    font-size: 1rem;
    min-width: 120px;
}
header .mobile-menu-cta span {
    display: inline-block;
    transition: transform 0.3s ease;
}
header .mobile-menu-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(3, 100, 255, 0.4);
}
header .mobile-menu-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(3, 100, 255, 0.3);
}
header /* ==================== TUBELIGHT NAVBAR ==================== */

/* Allow glow to overflow above navbar container */
.navbar-container {
    overflow: visible;
}
header /* Navbar links list needs relative positioning for the sliding pill */
.navbar-links {
    position: relative;
}
header /* Each item appears above the pill */
.navbar-item {
    position: relative;
    z-index: 1;
}
header /* Active link text color */
.navbar-link.active {
    color: var(--primary) !important;
}
header /* Card header row */
.bento-card-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
