/* ========== CUSTOM STYLES (non-Tailwind) ========== */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== MEGA MENU ========== */
.mega-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    background: #0a0a0a;
    padding: 50px 60px 60px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}
.mega-menu.visible {
    display: flex;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
}

/* ========== HAMBURGER ========== */
.hamburger span {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.mobile-menu.open {
    display: flex;
    opacity: 1;
}
.mobile-menu a {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.mobile-menu.open a {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.35s; }

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }
.rd3 { transition-delay: 0.3s; }
.rd4 { transition-delay: 0.4s; }

/* ========== HEADER SCROLL STATE ========== */
.header-transparent { background: transparent; }
.header-scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    border-radius: 100px;
}
.header-scrolled .nav-link,
.header-scrolled .logo-text,
.header-scrolled .header-right-link {
    color: #262626 !important;
}
.header-scrolled .logo-svg { fill: #262626 !important; }
.header-scrolled .header-sep { background: rgba(0, 0, 0, 0.2) !important; }
.header-scrolled .btn-marketplace {
    background: #262626 !important;
    color: #fff !important;
}

/* Dark header variant (stays dark on scroll) */
.header-dark { background: #0a0a0a; }
.header-dark.header-scrolled {
    background: #0a0a0a;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}
.header-dark.header-scrolled .nav-link,
.header-dark.header-scrolled .logo-text,
.header-dark.header-scrolled .header-right-link {
    color: #fff !important;
}
.header-dark.header-scrolled .logo-svg { fill: #fff !important; }
.header-dark.header-scrolled .btn-marketplace {
    background: #fff !important;
    color: #0a0a0a !important;
}

/* ========== NAV LINK UNDERLINE ========== */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .mega-menu {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}
