@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(10, 10, 10, 0.7);
    --gold: #D4AF37;
}

body {
    background-color: #050505;
    color: #fff;
    font-family: 'Urbanist', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.firefly {
    position: fixed; border-radius: 50%; background: var(--gold);
    box-shadow: 0 0 10px var(--gold); opacity: 0; pointer-events: none; z-index: 1;
    animation: firefly-float linear infinite;
}
@keyframes firefly-float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-150px) translateX(40px); opacity: 0; }
}

.page-section {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; visibility: hidden; transform: scale(0.98);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;

    padding-top: 100px;
    padding-bottom: 120px;
    overflow: hidden;
}

.page-section.scrollable {
    overflow-y: auto;
    scrollbar-width: none;

    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}
.page-section.scrollable::-webkit-scrollbar { display: none; }
.page-section.active { opacity: 1; visibility: visible; transform: scale(1); z-index: 20; }

.gate-overlay {
    position: fixed; inset: 0; z-index: 999; background-color: #050505;
    transition: transform 1s ease-in-out; display: flex; align-items: center; justify-content: center;
}
.gate-overlay.open { transform: translateY(-100%); }

.nav-wrapper {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    z-index: 100; display: flex; flex-direction: column; align-items: center;
}
.nav-items {
    display: flex; gap: 6px; margin-bottom: 10px;
    opacity: 0; transform: translateY(15px) scale(0.9); pointer-events: none;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
    padding: 6px 10px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.1);
}
.nav-wrapper.open .nav-items { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.nav-trigger {
    width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: black;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; cursor: pointer; box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    transition: 0.3s; z-index: 101;
}
.nav-wrapper.open .nav-trigger { transform: rotate(135deg); background: #fff; color: #000; }

.nav-btn {
    width: 32px; height: 32px; border-radius: 50%; background: transparent; color: #aaa;
    display: flex; align-items: center; justify-content: center; transition: 0.2s; position: relative;
}
.nav-btn.active, .nav-btn:hover { background: var(--gold); color: black; transform: scale(1.1); }
.nav-btn::after {
    content: attr(data-label); position: absolute; top: -25px;
    background: rgba(0,0,0,0.8); padding: 2px 6px; border-radius: 3px;
    font-size: 9px; opacity: 0; transition: 0.2s; pointer-events: none;
    white-space: nowrap; color: white;
}
.nav-btn:hover::after { opacity: 1; top: -30px; }

.font-royal { font-family: 'Cinzel', serif; }
.font-script { font-family: 'Great Vibes', cursive; }
.animate-spin-slow { animation: spin 8s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }