/* Base Layout and Typography */

/* Background Elements */
#threejs-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-overlay);
}

.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(152, 245, 225, 0.02) 2px,
        rgba(152, 245, 225, 0.02) 4px
    );
    pointer-events: none;
    z-index: var(--z-scanlines);
    animation: scanlines 0.1s linear infinite;
}

/* Background Text Elements */
.background-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 7rem;
    font-weight: 900;
    color: rgba(255, 0, 85, 0.025);
    z-index: var(--z-scanlines);
    white-space: nowrap;
    animation: occultDrift 25s linear infinite;
    font-family: var(--font-display);
    pointer-events: none;
}

.ritual-text {
    position: fixed;
    top: 18%;
    left: 7%;
    font-size: 1.7rem;
    color: rgba(255, 0, 85, 0.045);
    z-index: var(--z-scanlines);
    animation: drift 30s linear infinite reverse;
    font-family: var(--font-display);
    transform: rotate(-15deg);
    pointer-events: none;
}

.cult-text {
    position: fixed;
    bottom: 18%;
    right: 7%;
    font-size: 1.7rem;
    color: rgba(152, 245, 225, 0.045);
    z-index: var(--z-scanlines);
    animation: drift 35s linear infinite;
    font-family: var(--font-display);
    transform: rotate(15deg);
    pointer-events: none;
}

/* Logo */
.logo-svg-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: var(--z-background);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

#cult-logo {
    width: 320px;
    max-width: 80vw;
    height: auto;
    transition: filter var(--transition-fast), opacity var(--transition-fast);
    pointer-events: auto;
    cursor: pointer;
}

/* Main Layout */
main {
    position: relative;
    z-index: var(--z-content);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: var(--spacing-md);
    text-align: center;
}

.hero__logo-container {
    margin-bottom: var(--spacing-md);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__symbol {
    font-size: 3rem;
    color: var(--color-error);
    margin-bottom: var(--spacing-sm);
    text-shadow: 
        0 0 10px var(--color-error),
        0 0 20px var(--color-error),
        0 0 40px var(--color-error);
    animation: occultPulse 2s ease-in-out infinite;
    transform: rotate(180deg);
}

.hero__occult-symbols {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    pointer-events: none;
}

.symbol {
    position: absolute;
    color: var(--color-error);
    opacity: 0.6;
    animation: floatSymbol 4s ease-in-out infinite;
    text-shadow: 0 0 10px var(--color-error);
}

.symbol:nth-child(1) { top: 0; left: 0; animation-delay: 0s; }
.symbol:nth-child(2) { top: 0; right: 0; animation-delay: 0.5s; }
.symbol:nth-child(3) { bottom: 0; left: 0; animation-delay: 1s; }
.symbol:nth-child(4) { bottom: 0; right: 0; animation-delay: 1.5s; }
.symbol:nth-child(5) { top: 50%; left: -30px; animation-delay: 2s; }
.symbol:nth-child(6) { top: 50%; right: -30px; animation-delay: 2.5s; }

.hero__title {
    font-family: var(--font-display);
    font-size: 5.5rem;
    font-weight: 900;
    color: var(--color-primary);
    text-shadow: 
        0 0 30px var(--color-accent-3),
        0 0 60px var(--color-accent-3),
        0 0 80px var(--color-accent-1),
        0 0 120px var(--color-accent-1);
    animation: logoPulse 3s ease-in-out infinite;
    letter-spacing: 0.2em;
    position: relative;
    filter: blur(0.5px);
}

.hero__title::before {
    content: 'tiredudes';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--color-error);
    animation: glitch 0.3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    filter: blur(1.5px);
    opacity: 0.7;
}

.hero__title::after {
    content: 'tiredudes';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--color-accent-2);
    animation: glitch 0.3s infinite reverse;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
    filter: blur(2px);
    opacity: 0.7;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--color-accent-2);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    opacity: 0.85;
    letter-spacing: 0.1em;
    animation: fadeInUp 2s ease-out 0.5s both;
}

/* Collection Section */
.collection {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.collection__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    width: 100%;
}