/* ============================================================
   NANDITA — SHARED STYLES (used by all pages)
   ============================================================ */

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

:root {
    --paper: #fdf9ee;
    --paper-2: #f7f0dc;
    --paper-3: #efe6cc;
    --ink: #1a1a1a;
    --ink-soft: #3d3d3d;
    --ink-dim: #6b6b6b;
    --ink-dimmer: #a0a0a0;
    --blue: #1e3a8a;
    --blue-light: #3b82f6;
    --red: #b91c1c;
    --red-light: #ef4444;
    --green: #047857;
    --green-light: #10b981;
    --yellow: #fbbf24;
    --highlight: #fef08a;
    --pencil: #8b8b8b;

    /* Fonts */
    --font-head: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-body: 'Instrument Sans', 'Inter', system-ui, sans-serif;
    --font-hand: 'Caveat', 'Kalam', cursive;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

[data-theme="dark"] {
    --paper: #16161a;
    --paper-2: #1e1e24;
    --paper-3: #2a2a32;
    --ink: #f5f5f0;
    --ink-soft: #d4d4d0;
    --ink-dim: #9a9a95;
    --ink-dimmer: #6b6b68;
    --highlight: #4a3d10;
    --pencil: #7a7a75;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    min-height: 100vh;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(30, 58, 138, 0.06) 31px),
        repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(30, 58, 138, 0.03) 31px);
    transition: background 0.4s, color 0.4s;
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ============================================================
   NAV (used across all pages)
   ============================================================ */
.nav {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--paper-2);
    border: 2.5px solid var(--ink);
    border-radius: 100px;
    box-shadow: 4px 4px 0 var(--ink);
    max-width: calc(100% - 30px);
}

.nav-brand {
    font-family: var(--font-hand);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    padding: 0 14px 0 6px;
    border-right: 2px dashed var(--pencil);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 100px;
    white-space: nowrap;
    transition: all 0.2s;
    letter-spacing: 0.2px;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--ink);
    color: var(--paper);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 10px;
    border-left: 2px dashed var(--pencil);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    background: var(--paper);
    border: 2px solid var(--ink);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 2px 2px 0 var(--ink);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--green-light);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    animation: blink 1.5s infinite;
}

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

.nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--ink);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 2px 2px 0 var(--ink);
    transition: all 0.2s;
}

.nav-btn:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--ink);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--ink);
    background: var(--paper-2);
    border: 2.5px solid var(--ink);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--ink);
    white-space: nowrap;
}

.btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--ink);
    background: var(--highlight);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    box-shadow: 4px 4px 0 var(--blue);
}

.btn-primary:hover {
    background: var(--blue);
    color: #fff;
    box-shadow: 7px 7px 0 var(--ink);
}

.btn-lg {
    padding: 18px 38px;
    font-size: 17px;
}

/* ============================================================
   SECTION
   ============================================================ */
.section {
    padding: 90px 24px;
    max-width: 1150px;
    margin: 0 auto;
    position: relative;
}

.section-head {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--red);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: inline-block;
    padding: 6px 18px;
    border: 2px dashed var(--red);
    border-radius: 100px;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 900;
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    font-variation-settings: 'opsz' 144;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 15%;
    width: 70%;
    height: 10px;
    background: var(--highlight);
    opacity: 0.65;
    border-radius: 6px;
    transform: rotate(-1deg);
    z-index: -1;
}

.section-desc {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink-dim);
    margin-top: 30px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* ============================================================
   CARD
   ============================================================ */
.card {
    background: var(--paper-2);
    border: 2.5px solid var(--ink);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 5px 5px 0 var(--ink);
    transition: all 0.3s;
}

.card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--ink);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    padding: 14px 26px;
    background: var(--paper-2);
    border: 2.5px solid var(--ink);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    z-index: 9500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 5px 5px 0 var(--ink);
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 60px 24px 40px;
    text-align: center;
    border-top: 3px dashed var(--pencil);
    margin-top: 60px;
}

.footer-name {
    font-family: var(--font-head);
    font-size: 40px;
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.footer-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-quote {
    font-family: var(--font-hand);
    font-size: 20px;
    color: var(--ink-soft);
    max-width: 640px;
    margin: 0 auto 18px;
    line-height: 1.6;
    padding: 18px 24px;
    border: 2px dashed var(--pencil);
    border-radius: 6px;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-dimmer);
    letter-spacing: 1px;
}

/* ============================================================
   SCROLL BAR + BACK TOP
   ============================================================ */
.scroll-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--blue), var(--red), var(--green));
    z-index: 9999;
    transition: width 0.1s;
}

.back-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    border: 2.5px solid var(--ink);
    cursor: pointer;
    font-size: 20px;
    box-shadow: 4px 4px 0 var(--blue);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 900;
}

.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--blue);
    background: var(--blue);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .nav { padding: 8px 12px; }
    .nav-links { display: none; }
    .section { padding: 70px 18px; }
}

@media (max-width: 600px) {
    .section { padding: 55px 16px; }
    .btn { font-size: 14px; padding: 13px 22px; }
    .btn-lg { font-size: 15px; padding: 15px 28px; }
}