/* ==========================================================================
   BITCOIN CASH CITY - MODERN GLASSMORPHISM & ANIMATIONS
   ========================================================================== */

:root {
    --bch-green: #00e3a5;
    --bch-green-glow: rgba(0, 227, 165, 0.25);
    --bch-green-hover: #00ffbc;
    --bg-dark: #111a16; 
    --surface-dark: rgba(22, 38, 30, 0.65); 
    --surface-border: rgba(0, 227, 165, 0.3);
    --text-main: #f8fafc;
    --text-muted: #e2e8f0;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    background-color: var(--bg-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* --- HEADER --- */
header {
    background-color: rgba(17, 26, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--bch-green);
    box-shadow: 0 4px 20px var(--bch-green-glow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container { max-width: 100%; margin: 0 auto; padding: 0 5%; display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; justify-content: flex-start; gap: 12px; text-decoration: none; cursor: pointer; }
.logo-img { height: 42px; width: auto; display: block; }

nav ul { list-style: none; display: flex; gap: 20px; align-items: center; flex-wrap: nowrap; margin: 0; padding: 0; }
nav a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.3s ease; white-space: nowrap; }
nav a:hover { color: var(--bch-green); text-shadow: 0 0 10px var(--bch-green); }
.nav-contact { background-color: var(--bch-green-glow); color: var(--bch-green) !important; padding: 8px 18px; border-radius: 50px; border: 1px solid var(--bch-green); font-weight: 600 !important; transition: all 0.3s ease; }
.nav-contact:hover { background-color: var(--bch-green); color: var(--bg-dark) !important; box-shadow: 0 0 20px var(--bch-green); }

.animated-title-wave { font-size: 24px; font-weight: 800; display: flex; gap: 6px; }
.white-word, a:visited .white-word { color: var(--text-main) !important; }
.green-word, a:visited .green-word { color: var(--bch-green) !important; text-shadow: 0 0 15px var(--bch-green); }

/* --- UTILITIES --- */
.text-center { text-align: center !important; }
.neon-link, a:visited.neon-link { color: #00ffbc !important; text-shadow: 0 0 8px rgba(0, 255, 188, 0.5); font-weight: 800; text-decoration: underline; text-decoration-color: rgba(0, 255, 188, 0.5); text-underline-offset: 4px; transition: 0.3s; }
.neon-link:hover { color: #ffffff !important; text-shadow: 0 0 12px rgba(0, 255, 188, 0.9); text-decoration-color: #ffffff; }

/* --- SECTIONS & OVERLAYS --- */
main { width: 100%; }

.section-container {
    width: 100%;
    padding: 100px 5%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(0, 227, 165, 0.15);
}
.section-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 26, 22, 0.8) 0%, rgba(17, 26, 22, 0.4) 50%, rgba(17, 26, 22, 0.8) 100%);
    z-index: 1;
}
.section-container > * { position: relative; z-index: 2; }

/* GLASS PANELS */
.glass-panel {
    background-color: var(--surface-dark);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
    border-top: 3px solid var(--bch-green);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), inset 0 0 20px rgba(0, 227, 165, 0.05);
    border-radius: 20px;
    padding: 40px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 { font-family: 'Inter', sans-serif; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
h1 { font-size: 3.5rem; color: var(--bch-green); text-shadow: 0 0 20px var(--bch-green-glow); }
h2 { font-size: 2.5rem; color: var(--bch-green); text-shadow: 0 0 15px var(--bch-green-glow); }
h3 { font-size: 1.5rem; color: var(--text-main); }
p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 20px; font-weight: 300; }

.page-header { background: rgba(0, 227, 165, 0.08); padding: 80px 20px; text-align: center; border-bottom: 1px solid var(--bch-green); box-shadow: inset 0 -20px 40px -20px var(--bch-green-glow); }

/* --- HERO & GRIDS --- */
.hero-content-wrapper { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 60px; max-width: 1400px; margin: 0 auto; }
.hero-image-container { flex: 0 0 auto; }
.founder-message-container { flex: 1 1 auto; }

.founder-img { width: 100%; max-width: 320px; height: auto; object-fit: contain; border: 4px solid var(--bch-green) !important; border-radius: 40px !important; box-shadow: 0 15px 35px rgba(0, 227, 165, 0.25) !important; background-color: rgba(0,0,0,0.4); }

.preface-tag { color: var(--bch-green); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 3px; font-weight: 800; margin-bottom: 15px; }
.founder-signature { font-family: 'Georgia', serif; font-style: italic; font-size: 1.5rem; color: var(--bch-green); margin-top: 20px; }

.split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; max-width: 1400px; margin: 0 auto; }
.feature-row { display: flex; align-items: center; gap: 80px; max-width: 1400px; margin: 0 auto; }
.feature-row > div { flex: 1; }
.feature-image img { width: 100%; height: 500px; object-fit: cover; border-radius: 20px; border: 2px solid var(--bch-green); box-shadow: 0 20px 40px rgba(0, 227, 165, 0.15); }

/* PERFECT CENTERING CARDS (Flexbox Overhaul) */
.news-grid, .gallery-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 40px; 
    max-width: 1400px; 
    margin: 0 auto; 
}
.news-card, .gallery-card, .resource-card { 
    background: var(--surface-dark); 
    backdrop-filter: blur(12px); 
    border: 1px solid var(--surface-border); 
    border-radius: 20px; 
    overflow: hidden; 
    transition: all 0.4s ease; 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    max-width: 400px; 
    flex: 1 1 320px; 
    height: auto; 
    min-height: 100%;
}
.news-card:hover, .gallery-card:hover, .resource-card:hover { transform: translateY(-8px); border-color: var(--bch-green); box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 25px var(--bch-green-glow); }
.news-img, .gallery-img { width: 100%; height: 260px; object-fit: cover; border-bottom: 1px solid var(--surface-border); }
.news-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; height: auto; }

/* Constrain Resource Images */
.resource-preview { padding: 20px; display: flex; justify-content: center; align-items: center; height: 180px; background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--surface-border); overflow: hidden; }
.resource-preview-link { display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; text-decoration: none; }
.resource-preview img { width: 100%; height: 100%; object-fit: contain; max-width: 100%; max-height: 100%; }

/* FAQ ACCORDION */
.faq-item { margin-bottom: 15px; border: 1px solid var(--surface-border); border-radius: 12px; overflow: hidden; background-color: var(--surface-dark); backdrop-filter: blur(16px); }
.accordion { width: 100%; background-color: transparent; color: var(--bch-green); cursor: pointer; padding: 20px 25px; text-align: left; border: none; outline: none; font-size: 1.2rem; font-weight: bold; transition: 0.3s; display: flex; justify-content: space-between; align-items: center; font-family: 'Inter', sans-serif; }
.accordion::after { content: '+'; font-size: 1.8rem; font-weight: normal; margin-left: 15px; }
.accordion.active::after { content: '−'; font-size: 1.8rem; }
.accordion.active, .accordion:hover { background-color: var(--bch-green-glow); color: var(--bch-green); border-bottom: 1px solid var(--bch-green); }
.panel { padding: 0 25px; background-color: rgba(0, 0, 0, 0.4); max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.panel p { padding: 20px 0; margin: 0; color: var(--text-muted); line-height: 1.6; font-size: 1.05rem; }

/* BUTTONS */
.cta-btn, .resource-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--bch-green); color: #000 !important; padding: 14px 32px; font-size: 1rem; font-weight: 800; text-transform: uppercase; text-decoration: none; border-radius: 50px; transition: all 0.3s ease; border: none; cursor: pointer; box-shadow: 0 5px 20px var(--bch-green-glow); margin-top: 15px; }
.cta-btn:hover, .resource-btn:hover { background: var(--bch-green-hover); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 227, 165, 0.5); }
.resource-btn { padding: 8px 16px; font-size: 0.85rem; margin-top: 0; }
.resource-actions { display: flex; gap: 10px; justify-content: center; align-items: center; width: 100%; margin-top: auto; padding-top: 20px; }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- FOOTER --- */
footer { background: #0a0f0d; padding: 80px 0 40px 0; border-top: 2px solid var(--bch-green); box-shadow: 0 -10px 30px var(--bch-green-glow); }
.footer-container { max-width: 1400px; margin: 0 auto; padding: 0 5%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px; }
footer h3 { color: var(--bch-green); font-size: 1.3rem; margin-bottom: 20px; border-bottom: 1px solid rgba(0,227,165,0.2); padding-bottom: 10px; }
footer a, footer p, footer li { color: var(--text-muted); font-size: 0.95rem; text-decoration: none; transition: 0.3s; margin-bottom: 10px; }
footer a:hover { color: var(--bch-green); text-shadow: 0 0 8px var(--bch-green); }
footer ul { list-style: none; }
.trademark { text-align: center; margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(0,227,165,0.2); color: #64748b; font-size: 0.85rem; }

/* RESPONSIVE */
@media (max-width: 1050px) {
    .menu-toggle { display: flex; flex-direction: column; cursor: pointer; }
    .menu-toggle .bar { width: 25px; height: 3px; background-color: var(--bch-green); margin: 4px 0; }
    
    /* Center Mobile Nav */
    nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-dark); border-bottom: 1px solid var(--surface-border); padding: 30px 0; }
    nav.active { display: flex; flex-direction: column; align-items: center; justify-content: center; }
    nav ul { flex-direction: column; width: 100%; gap: 20px; align-items: center; justify-content: center; padding: 0; margin: 0; }
    nav ul li { width: 100%; text-align: center; display: flex; justify-content: center; }
    nav a { color: var(--white) !important; font-size: 1.1rem; text-align: center; width: 100%; display: inline-block; }

    .feature-row, .split-grid, .hero-content-wrapper { flex-direction: column !important; text-align: center; gap: 50px; }
    .founder-message-container { text-align: center; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-container { padding: 60px 5%; }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 50px; }
}

@media (max-width: 480px) {
    .news-grid, .gallery-grid, .split-grid { display: flex; flex-direction: column; align-items: center; }
    .news-card, .gallery-card, .resource-card { width: 100%; max-width: 100%; }
    .glass-panel { padding: 25px; }
    .hero-content-wrapper { gap: 30px; }
}