/* CSS variables for palette and configuration */
:root {
    --color-onyx: #0a0a0a;
    --color-slate: #1f1f1f;
    --color-violet: #8a2be2;
    --color-green: #ccff00;
    --color-white: #f0f0f0;

    --font-header: 'Oswald', sans-serif;
    --font-body: 'Courier Prime', monospace;

    --spacing-base: 1rem;
    --spacing-section: 6rem; /* Reduced for less crowding */
}

/* Global Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-onyx);
    color: var(--color-white);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* Typography styles */
h1,
h2,
h3 {
    font-family: var(--font-header);
}

.section-title {
    font-size: clamp(2.5rem, 7vw, 7rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

/* Hamburger Menu */
.header {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.menu-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    z-index: 2;
}

.hamburger {
    display: block;
    position: relative;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: transform 0.3s, background-color 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: transform 0.3s;
}

.hamburger::before {
    transform: translateY(-10px);
}

.hamburger::after {
    transform: translateY(10px);
}

.menu-btn.is-active .hamburger {
    background-color: transparent;
}

.menu-btn.is-active .hamburger::before {
    transform: translateY(0) rotate(45deg);
}

.menu-btn.is-active .hamburger::after {
    transform: translateY(0) rotate(-45deg);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
    z-index: 999;
}

.nav-menu.is-active {
    opacity: 1;
    visibility: visible;
}

.nav-list {
    list-style: none;
    text-align: center;
}

.nav-link {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-header);
    font-size: clamp(2rem, 5vw, 4rem);
    padding: 0.5rem 1rem;
    display: block;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-green);
}

/* Sections Base */
.section {
    padding: var(--spacing-section) 5vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("hero_bg.png");
    background-size: cover;
    background-position: center;
    filter: contrast(110%) brightness(70%);
    animation: slowPulse 12s infinite alternate;
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
}

.REx-title {
    font-size: clamp(6rem, 20vw, 20rem);
    font-weight: 700;
    letter-spacing: -4px;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1px var(--color-white);
    animation: breathe 5s infinite ease-in-out;
}

/* Animations */
@keyframes slowPulse {
    0% {
        transform: scale(1);
        filter: contrast(110%) brightness(70%);
    }
    100% {
        transform: scale(1.03);
        filter: contrast(120%) brightness(60%);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.01);
        text-shadow: 0 0 30px rgba(204, 255, 0, 0.3);
    }
}

/* Glitch Effect (Toned Down) */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-onyx);
    clip: rect(0, 0, 0, 0);
}

.glitch:hover::before {
    left: 1px;
    text-shadow: -1px 0 var(--color-violet);
    animation: glitch-anim-1 1s infinite linear alternate-reverse;
}

.glitch:hover::after {
    left: -1px;
    text-shadow: -1px 0 var(--color-green);
    animation: glitch-anim-2 1.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    20% { clip: rect(10px, 9999px, 92px, 0); }
    40% { clip: rect(87px, 9999px, 98px, 0); }
    60% { clip: rect(21px, 9999px, 67px, 0); }
    80% { clip: rect(54px, 9999px, 50px, 0); }
    100% { clip: rect(2px, 9999px, 75px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(2px, 9999px, 99px, 0); }
    20% { clip: rect(78px, 9999px, 3px, 0); }
    40% { clip: rect(25px, 9999px, 100px, 0); }
    60% { clip: rect(5px, 9999px, 4px, 0); }
    80% { clip: rect(93px, 9999px, 33px, 0); }
    100% { clip: rect(74px, 9999px, 58px, 0); }
}

/* Tour List */
.tour-list {
    list-style: none;
    width: 100%;
    max-width: 800px;
    border-top: 1px solid var(--color-slate);
}

.tour-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-slate);
    position: relative;
}

.tour-item .date,
.tour-item .location {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-family: var(--font-header);
}

.btn-access {
    background: none;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding: 0.5rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-access:hover {
    background: var(--color-green);
    color: var(--color-onyx);
    border-color: var(--color-green);
}

/* Remaining styles for other sections can be simplified or adjusted as needed */

.drop-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 0;
    border: 1px solid var(--color-slate);
    background: linear-gradient(135deg, var(--color-slate) 0%, var(--color-onyx) 100%);
    width: 100%;
    max-width: 700px;
}

.countdown {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-family: var(--font-header);
}

.btn-unlock {
    background: var(--color-white);
    color: var(--color-onyx);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-family: var(--font-header);
    font-weight: 700;
}

.merch-grid, .media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin-top: 4rem;
}

.img-container {
    height: 350px;
}

.lore-img {
    max-width: 500px;
    width: 100%;
    margin-bottom: 2rem;
}

.transmission-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    border-left: 1px solid var(--color-violet);
    background: rgba(31, 31, 31, 0.2);
}

.bio-text {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.media-item p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

/* Cursor */
.cursor {
    display: none; /* Can be re-enabled if desired */
}
