/* ===== Custom Styles for The Tribe ===== */

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

body {
    background-color: #0D0517;
}

/* ===== Navigation ===== */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(13, 5, 23, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 160, 23, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #D4A017, #FBBF24);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.25rem;
}

/* ===== Scroll Indicator ===== */
@keyframes scrollIndicator {
    0% { transform: translateY(-100%); opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.2s ease-in-out infinite;
}

/* ===== Menu Tabs ===== */
.menu-tab {
    background: transparent;
    color: #a78bba;
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: linear-gradient(135deg, #D4A017, #B8860B);
    color: #1A0A2E;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

/* ===== Menu Items ===== */
.menu-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(125, 63, 125, 0.2);
    transition: padding-left 0.3s ease;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    padding-left: 0.5rem;
}

/* ===== Gallery Hover ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== Form Focus States ===== */
input:focus,
textarea:focus {
    border-color: rgba(212, 160, 23, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1) !important;
}

/* ===== Fade In Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ===== Gold gradient text utility ===== */
.text-gold-gradient {
    background: linear-gradient(135deg, #FCD34D, #D4A017, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    #hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
    
    .floating-card {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1.5rem;
        max-width: 100%;
    }
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f5f0f7;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0D0517;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3d1d3d, #1A0A2E);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5e2d5e, #3d1d3d);
}
