/* ==========================================
   1. VARIABLES & RESET
   ========================================== */
:root {
    --bg-dark: #000000;
    --card-bg: rgba(22, 27, 34, 0.75);
    --border-color: rgba(255, 255, 255, 0.12);
    --text-main: #ffffff;
    --text-muted: #8b949e;
    --accent-color: #ff6b35;
    --accent-hover: #e55a2b;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

/* ==========================================
   2. TYPOGRAPHY & FONTS
   ========================================== */
@font-face {
    font-family: 'PressStart2P';
    src: url('fonts/PressStart2P-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================
   3. BACKGROUND PATTERN & BODY
   ========================================== */
html {
    --s: 80px;
    --c1: #000000;
    --c2: #292929;
    
    --c: var(--c1) 0;
    --g: conic-gradient(at 50% 25%, #0000 75%, var(--c));
    background:
        repeating-linear-gradient(#0000 0 48%, var(--c) 50%), var(--g),
        conic-gradient(#0000 75%, var(--c)) calc(var(--s)/4) calc(var(--s)/2),
        var(--g) calc(var(--s)/2) var(--s) var(--c2);
    background-size: var(--s) var(--s), var(--s) calc(2*var(--s));
    min-height: 100vh;
}

body {
    background-color: transparent;
    font-family: var(--font-stack);
    color: var(--text-main);
    min-height: 100vh;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

/* ==========================================
   4. HEADER & NAVIGATION
   ========================================== */
header {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
    width: 100%;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.brand-name {
    font-family: 'PressStart2P', monospace, sans-serif;
    font-size: 1.8rem;
    font-weight: normal;
    color: var(--text-main);
    margin: 0 0 0.4rem 0;
    text-decoration: none;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    line-height: 1.3;
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.nav-container nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    margin: 0 auto;
    list-style: none;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* ==========================================
   5. MAIN LAYOUT & CARDS
   ========================================== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
}

.hero-img-placeholder {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background: #000000;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2rem auto;
    line-height: 1.5;
}

/* Social Links */
.social-section {
    margin-top: 2rem;
}

.social-title {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.social-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Support Card */
.support-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.5) 0%, rgba(22, 27, 34, 0.6) 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(8px);
}

.support-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.support-card p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    padding: 0.8rem 1.75rem;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ==========================================
   6. FOOTER STYLES
   ========================================== */
footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.footer-info {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* ==========================================
   7. MEDIA QUERIES
   ========================================== */
@media (max-width: 600px) {
    .nav-container {
        gap: 1.2rem;
    }
    .hero {
        padding: 2.5rem 1.25rem;
    }
}

/* ==========================================
   STORY PAGE SPECIFIC STYLES
   ========================================== */
.story-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2.25rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.story-image-box {
    width: 100%;
    max-height: 380px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #161b22;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-body h2 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 1.25rem 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.story-body p {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-body p:first-child {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.story-body p:last-child {
    margin-bottom: 0;
}

/* Quote Callout Box */
.quote-box {
    border-left: 3px solid var(--accent-color);
    background: rgba(255, 107, 53, 0.08);
    padding: 1.25rem 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 1.75rem 0;
    font-style: italic;
    color: var(--text-main);
    text-align: center;
}

.quote-box a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .story-card {
        padding: 2rem 1.25rem;
    }
}
