/* DARKSIDE Page Styles - Brutalist / Militant Glitch / Digital Cult */

/* Font Face Declaration */
@font-face {
    font-family: 'Nouvelle Grotesquerie';
    src: url('nouvelle-grotesquerie-regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Orbitron:wght@400;700;900&display=swap');

/* Base Styles */
.darkside-body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Space Mono', monospace;
    overflow-x: hidden;
    position: relative;
}

.darkside-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3;
}

/* Signal Loader */
.signal-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeOut 0.5s ease 2.5s forwards;
}

.signal-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.signal-label {
    animation: blink 1s infinite;
}

.signal-status {
    color: #888;
    animation: pulse 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Navigation */
.darkside-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
    animation: glitch 0.3s;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #e0e0e0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00ffff;
    transition: width 0.3s ease;
}

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

/* Hero Section */
.darkside-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.hero-title-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title-logo {
    max-width: 100%;
    height: auto;
    max-height: clamp(150px, 20vw, 300px);
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3));
}

.hero-title-logo:hover {
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.6));
    animation: glitch 0.3s;
    transform: scale(1.02);
}

.hero-subhead {
    font-family: 'Nouvelle Grotesquerie', sans-serif;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
    font-style: italic;
    transform: scaleX(1.2);
    transform-origin: center;
    display: inline-block;
}

.hero-body {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.hero-microcopy {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1rem;
}

/* Scanlines */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Grain Overlay */
.grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48ZmlsdGVyIGlkPSJhIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjkiIG51bU9jdGF2ZXM9IjQiLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsdGVyPSJ1cmwoI2EpIiBvcGFjaXR5PSIwLjA1Ii8+PC9zdmc+');
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* Glitch Animation */
@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Section Styles */
.darkside-section {
    padding: 6rem 2rem;
    position: relative;
    background: #0a0a0a;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.section-title {
    font-family: 'Nouvelle Grotesquerie', sans-serif;
    font-weight: normal;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    line-height: 1.2;
    transition: all 0.3s ease;
    transform: scaleX(1.2);
    transform-origin: left center;
    display: inline-block;
}

.section-title:hover {
    color: #00ffff;
    animation: glitch 0.3s;
}

.section-intro {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: #888;
    margin-bottom: 3rem;
    font-style: italic;
}

.section-body {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 2rem;
}

.section-closing {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    color: #888;
    margin-top: 3rem;
    font-style: italic;
    text-align: center;
}

.section-caption {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin-top: 1.5rem;
    font-style: italic;
}

/* Log Entry */
.log-entry {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.05);
    border-left: 2px solid #00ffff;
    font-family: 'Space Mono', monospace;
}

.log-timestamp {
    display: block;
    font-size: 0.7rem;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.log-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #b0b0b0;
}

/* DARKSIDE Rollout Video Section */
.darkside-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.darkside-rollout-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Pillars Grid */
.pillars-section {
    background: #0f0f0f;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.pillar-item {
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.pillar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.pillar-item:hover::before {
    left: 100%;
}

.pillar-item:hover {
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
}

.pillar-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.pillar-item:hover .pillar-name {
    color: #00ffff;
}

.pillar-reveal {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pillar-item:hover .pillar-reveal {
    opacity: 1;
    max-height: 100px;
    margin-top: 0.5rem;
}

/* CTA Buttons */
.cta-primary,
.cta-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: 1px solid;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: transparent;
    color: #00ffff;
    border-color: #00ffff;
}

.cta-primary:hover {
    background: #00ffff;
    color: #0a0a0a;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    animation: glitch 0.3s;
}

.cta-secondary {
    background: transparent;
    color: #e0e0e0;
    border-color: #666;
}

.cta-secondary:hover {
    border-color: #e0e0e0;
    color: #e0e0e0;
    box-shadow: 0 0 15px rgba(224, 224, 224, 0.3);
}

/* Music Section */
.spotify-embed-container {
    margin: 2rem auto;
    max-width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

.spotify-embed-container iframe {
    width: 100%;
    border: none;
    background: transparent;
}

.music-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

/* Visuals Section */
.visuals-section {
    background: #0f0f0f;
}

.visuals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.visual-item {
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.visual-item:hover {
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.visual-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    text-align: center;
}

.join-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #00ffff;
    background: rgba(0, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.email-input::placeholder {
    color: #666;
}

#joinSignal {
    padding: 1rem 2rem;
}

.social-links {
    margin-top: 2rem;
}

.social-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #00ffff;
}

/* Footer */
.darkside-footer {
    padding: 3rem 2rem;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #666;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00ffff;
}

.footer-copyright {
    display: flex;
    gap: 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        transform: scaleX(1.15);
    }
    
    .hero-subhead {
        font-size: 0.8rem;
        transform: scaleX(1.15);
    }
    
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pillar-item {
        aspect-ratio: 3/4;
    }
    
    .hero-ctas,
    .music-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .join-form {
        flex-direction: column;
    }
    
    .email-input {
        width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

