/* ==========================================================================
   Flock Red & Black Theme
   ========================================================================== */

:root {
    --color-primary: #FF3131; /* Red */
    --color-black: #000000;
    --color-white: #ffffff;
    
    --font-main: 'Roboto', sans-serif;
    --font-title: 'Silkscreen', system-ui; /* Less chaotic, pixel glitch style */
    --font-code: 'VT323', monospace; /* Hacker aesthetic */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-primary);
    color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1.5rem;
}

p:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.5;
}

.section-title span {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 0.2rem 1rem;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Title cursor for typing effect */
.title-cursor {
    font-family: var(--font-code);
    animation: blink 1s step-end infinite;
    font-weight: bold;
    color: var(--color-black);
}

.lead {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 500;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.text-stat {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.3;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.top-bar {
    background-color: var(--color-white);
    color: var(--color-black);
    text-align: center;
    padding: 0.5rem 0;
    font-family: var(--font-title);
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid var(--color-white);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-placeholder {
    font-family: var(--font-title);
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    text-transform: uppercase;
    line-height: 1;
}

.logo-placeholder.small {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--color-primary);
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001; /* Above nav if full screen */
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    line-height: 1.1;
}

.hero-title.font-code {
    font-family: var(--font-code);
}

.hero-title span {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 0.2rem 1rem;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero-subtitle {
    font-family: var(--font-code);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2.5rem;
    color: var(--color-white);
    font-weight: 500;
    letter-spacing: 1px;
}

.hero-date {
    margin-bottom: 3.5rem;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
}

.hero-date span {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 0.5rem 1.5rem;
    display: inline-block;
    border: 4px solid var(--color-black);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
    padding: 5rem 0;
}

.text-content {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

/* ==========================================================================
   Hacker Box (Why Should I Care)
   ========================================================================== */

.hacker-box {
    background-color: var(--color-black);
    border: 4px solid var(--color-white);
    padding: 3rem;
    color: var(--color-white);
    font-family: var(--font-code);
    font-size: 1.3rem;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    box-shadow: 16px 16px 0px rgba(0,0,0,0.5);
}

.hacker-content p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hacker-content p:last-child {
    margin-bottom: 0;
}

.hacker-content .prompt {
    color: var(--color-primary);
    margin-right: 0.5rem;
    font-weight: bold;
}

.cursor {
    display: inline-block;
    width: 10px;
    font-weight: bold;
    animation: blink 1s step-end infinite;
}

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

/* ==========================================================================
   Full Width Image Link & Video
   ========================================================================== */

.full-width-video-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    margin-top: 0;
}

.full-width-video {
    width: 100%;
    height: auto;
    display: block;
    border-top: 4px solid var(--color-black);
    border-bottom: 4px solid var(--color-black);
}

.video-caption {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 0.5rem;
    padding-bottom: 2rem;
    font-weight: 700;
}

.full-width-image-link {
    display: block;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    margin-top: 4rem;
}

.full-width-image {
    width: 100%;
    height: auto;
    display: block;
    border-top: 4px solid var(--color-black);
    border-bottom: 4px solid var(--color-black);
    transition: transform 0.5s ease;
}

.full-width-image-link:hover .full-width-image {
    transform: scale(1.02);
}

/* ==========================================================================
   Components & Buttons
   ========================================================================== */

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn {
    font-family: var(--font-main);
    font-size: 0.875rem;
    font-weight: 900;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0;
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
}

.btn-outline {
    background-color: var(--color-black);
    color: var(--color-white);
    border: 3px solid var(--color-black);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-black);
    box-shadow: 6px 6px 0px var(--color-black);
}

.btn-outline.inverse {
    background-color: var(--color-black);
    color: var(--color-white);
    border: 3px solid var(--color-white);
}

.btn-outline.inverse:hover {
    background-color: var(--color-white);
    color: var(--color-black);
    box-shadow: 6px 6px 0px var(--color-white);
}

.btn-solid {
    background-color: var(--color-black);
    color: var(--color-white);
    border: 3px solid var(--color-black);
}

.btn-solid:hover {
    background-color: var(--color-white);
    color: var(--color-black);
    box-shadow: 6px 6px 0px var(--color-black);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 3px solid var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 6px 6px 0px var(--color-primary);
}

.btn.block {
    display: block;
    width: 100%;
}

.block-inline {
    display: inline-block;
    min-width: 250px;
}

/* CTA Box */
.cta-box {
    border: 4px solid var(--color-white);
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--color-black);
    color: var(--color-white);
    position: relative;
    text-align: center;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: -16px;
    bottom: -16px;
    background: var(--color-white);
    z-index: -1;
}

.cta-box h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.cta-box h3 span {
    background-color: var(--color-white);
    color: var(--color-black);
    padding: 0.2rem 1rem;
    display: inline-block;
}

.event-details {
    margin-bottom: 2.5rem;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
}

.detail-row:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-row .label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

.detail-row .value {
    font-weight: 500;
}

.detail-row .text-right {
    text-align: right;
    max-width: 70%;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    border-top: 4px solid var(--color-white);
    padding: 5rem 0;
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
}

.footer-content p {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* ==========================================================================
   Popup Styles
   ========================================================================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 1rem;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    position: relative;
    max-width: 500px;
    width: 100%;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.popup-overlay.show .popup-container {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: -45px;
    right: -10px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--color-primary);
}

.popup-box {
    margin: 0;
    width: 100%;
    box-shadow: 16px 16px 0px rgba(255, 49, 49, 0.4);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-black);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        border-bottom: 4px solid var(--color-white);
        display: none;
    }
    
    .nav.active {
        display: flex;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .hacker-box {
        padding: 1.5rem;
        font-size: 1.1rem;
    }
    
    .cta-box {
        padding: 2rem;
        margin-right: 16px;
    }
}
