/* ============================================================
   style.css — Benjamin Charming | thecharmingprogrammer.com
   Shared across all pages
   ============================================================ */

/* ── VARIABLES ── */
:root {
    --bg:        #070a10;
    --surface:   #0d1117;
    --card:      #111827;
    --border:    rgba(255,255,255,0.07);
    --accent:    #00ff9d;
    --accent2:   #0ea5e9;
    --danger:    #f43f5e;
    --text:      #e8eaf0;
    --muted:     #64748b;
    --mono:      'Space Mono', monospace;
    --display:   'Syne', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--display);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

/* ── SCAN LINE TEXTURE ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ── AMBIENT GLOW ── */
.ambient {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}
.ambient-1 {
    width: 600px; height: 600px;
    background: var(--accent);
    top: -200px; left: -200px;
    animation: drift 12s ease-in-out infinite alternate;
}
.ambient-2 {
    width: 500px; height: 500px;
    background: var(--accent2);
    bottom: -150px; right: -150px;
    animation: drift 15s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
    from { transform: translate(0,0); }
    to   { transform: translate(60px, 40px); }
}

/* ── HEADER & NAV ── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    background: rgba(7,10,16,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span { color: var(--muted); font-weight: 400; }

.nav-links { display: flex; gap: 0.25rem; align-items: center; }

.nav-links a {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--accent); background: rgba(0,255,157,0.06); }

.nav-links a.active { color: var(--accent); }

.nav-cta {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--bg) !important;
    background: var(--accent) !important;
    padding: 0.4rem 1rem !important;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; }

/* ── MAIN ── */
main { position: relative; z-index: 1; }

/* ── SECTION SHARED ── */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 3rem;
}

/* ── BUTTONS ── */
.btn {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.85rem 1.75rem;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 30px rgba(0,255,157,0.25);
}

.btn-primary:hover {
    box-shadow: 0 0 50px rgba(0,255,157,0.4);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ── DIVIDER ── */
.divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 1px;
    background: var(--border);
}

/* ── PAGE HERO (for inner pages) ── */
.page-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.page-hero .hero-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-hero .hero-tag::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.0;
    margin-bottom: 1.25rem;
}

.page-hero h1 em { font-style: normal; color: var(--accent); }

.page-hero p {
    font-family: var(--mono);
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.8;
}

/* ── CARDS (generic) ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
    border-color: rgba(0,255,157,0.3);
    transform: translateY(-4px);
}

.card-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(0,255,157,0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.card p  { font-size: 0.85rem; color: var(--muted); font-family: var(--mono); line-height: 1.6; }

/* ── FOOTER ── */
footer {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    padding: 4rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .logo { margin-bottom: 1rem; display: inline-flex; }

.footer-brand p {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 260px;
}

.footer-col h5 {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul a {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ── ANIMATIONS ── */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
