/* ============================================================
   Shekainah Agustin — Portfolio — Forest Noir
   Deep Navy (#07080E) × Green (#22C55E) × Sapphire (#3B82F6) × Teal (#10B981)
   Fonts: Syne (headings) + Manrope (body)
   ============================================================ */

/* ── 1. Design Tokens ── */
:root {
    /* Backgrounds */
    --bg:           #07080E;
    --bg-surface:   #0B0D1A;
    --glass-bg:     rgba(11, 13, 26, 0.82);
    --glass-border: rgba(34, 197, 94, 0.08);
    --nav-bg:       rgba(8, 9, 16, 0.93);
    --nav-border:   rgba(34, 197, 94, 0.13);

    /* Primary — Amber */
    --accent:       #22C55E;
    --accent-hover: #4ADE80;
    --accent-light: rgba(34, 197, 94, 0.10);
    --accent-glow:  rgba(34, 197, 94, 0.32);

    /* Secondary — Sapphire */
    --accent2:       #3B82F6;
    --accent2-hover: #60A5FA;
    --accent2-light: rgba(59, 130, 246, 0.10);
    --accent2-glow:  rgba(59, 130, 246, 0.28);

    /* Tertiary — Emerald */
    --accent3:       #10B981;
    --accent3-light: rgba(16, 185, 129, 0.10);
    --accent3-glow:  rgba(16, 185, 129, 0.25);

    /* Text */
    --text:       #EEF2FF;
    --text-muted: #7A8BA8;
    --text-dim:   rgba(238, 242, 255, 0.28);

    /* Borders */
    --border:       rgba(255, 255, 255, 0.05);
    --border-hover: rgba(34, 197, 94, 0.28);

    /* Status */
    --success-bg:   rgba(16, 185, 129, 0.08);
    --success-text: #34D399;
    --error-bg:     rgba(239, 68, 68, 0.09);
    --error-text:   #F87171;
    --code-bg:      rgba(4, 4, 12, 0.96);

    /* Shadows */
    --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.55);
    --shadow:    0 8px 48px rgba(0, 0, 0, 0.68);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.80);

    /* Shape */
    --radius:    16px;
    --radius-sm: 10px;
    --radius-xs: 7px;

    /* Nav pill height + top padding */
    --pill-h:   56px;
    --pill-top: 14px;
}

/* ── 2. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }

body {
    font-family: 'Manrope', system-ui, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 70% 55% at 90% 5%,  rgba(34, 197, 94,  0.07) 0%, transparent 58%),
        radial-gradient(ellipse 60% 50% at  5% 95%, rgba(59,  130, 246,  0.06) 0%, transparent 54%),
        radial-gradient(ellipse 48% 40% at 50% 50%, rgba(16,  185, 129,  0.03) 0%, transparent 62%);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 { font-family: 'Syne', system-ui, sans-serif; }

/* ── 3. Floating Pill Navigation ── */

/* Outer wrapper — centers the pill, transparent so page shows through */
.topnav {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    justify-content: center;
    padding: var(--pill-top) 20px 0;
    pointer-events: none; /* click-through on the padding area */
}

/* The actual pill */
.nav-pill {
    pointer-events: all;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--nav-border);
    border-radius: 99px;
    max-width: 860px;
    width: 100%;
    height: var(--pill-h);
    display: flex;
    align-items: center;
    padding: 0 8px 0 6px;
    gap: 2px;
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.60),
        0 0 0 1px rgba(34, 197, 94, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* Brand / Logo */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    padding: 0 6px 0 2px;
}

.brand-monogram {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.80rem;
    font-weight: 900;
    color: #07080E;
    letter-spacing: -0.05em;
    font-family: 'Syne', sans-serif;
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.30), 0 2px 8px rgba(0, 0, 0, 0.40);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-brand:hover .brand-monogram {
    transform: scale(1.10);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.55);
}

.brand-name {
    font-family: 'Syne', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-sub {
    font-size: 0.60rem;
    color: rgba(122, 139, 168, 0.45);
    font-weight: 500;
    letter-spacing: 0.04em;
    display: block;
    line-height: 1;
}

/* Pill separator */
.nav-sep {
    width: 1px;
    height: 20px;
    background: rgba(34, 197, 94, 0.10);
    flex-shrink: 0;
    margin: 0 4px;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1px;
    flex: 1;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.845rem;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 99px;
    transition: background 0.15s, color 0.15s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Manrope', inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.nav-link:hover  { background: var(--accent-light); color: var(--accent); }
.nav-link.active { background: var(--accent-light); color: var(--accent); font-weight: 700; }

.activities-btn .btn-arrow {
    transition: transform 0.20s ease;
    opacity: 0.38;
    flex-shrink: 0;
}
.activities-btn.open { background: var(--accent-light); color: var(--accent); }
.activities-btn.open .btn-arrow { transform: rotate(180deg); opacity: 1; }

/* Nav Auth */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.auth-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 5px 12px;
    background: var(--accent-light);
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 99px;
    white-space: nowrap;
    font-weight: 600;
}

.auth-dot {
    width: 5px;
    height: 5px;
    background: var(--success-text);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--success-text);
    animation: pulseDot 2.2s ease-in-out infinite;
}

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

.auth-link {
    color: #07080E;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 18px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    border: none;
    border-radius: 99px;
    transition: all 0.18s ease;
    white-space: nowrap;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 14px rgba(34, 197, 94, 0.28);
}

.auth-link:hover {
    background: linear-gradient(135deg, #4ADE80 0%, #22C55E 100%);
    box-shadow: 0 4px 22px rgba(34, 197, 94, 0.48);
    transform: translateY(-1px);
    color: #07080E;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(34, 197, 94, 0.18);
    color: var(--text-muted);
    padding: 7px 9px;
    border-radius: 99px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
}

.mobile-toggle:hover {
    border-color: rgba(34, 197, 94, 0.40);
    color: var(--accent);
    background: var(--accent-light);
}

/* ── 4. Activities Dropdown Card ── */
/* Floats below the pill, centered, uses fixed positioning */
.activities-panel {
    position: fixed;
    top: calc(var(--pill-top) + var(--pill-h) + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: min(820px, 94vw);
    background: rgba(9, 10, 20, 0.97);
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    border: 1px solid rgba(34, 197, 94, 0.10);
    border-radius: 20px;
    z-index: 195;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(34, 197, 94, 0.04);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.activities-panel.open {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.activities-grid {
    padding: 16px 16px 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.activity-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    color: rgba(122, 139, 168, 0.58);
    text-decoration: none;
    font-size: 0.81rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    letter-spacing: -0.01em;
}

.activity-link:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-color: rgba(34, 197, 94, 0.14);
}

.activity-link.active {
    background: var(--accent2-light);
    color: var(--accent2);
    border-color: rgba(59, 130, 246, 0.18);
    font-weight: 700;
}

.activity-num {
    min-width: 22px;
    height: 22px;
    background: rgba(34, 197, 94, 0.07);
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(122, 139, 168, 0.45);
    flex-shrink: 0;
    font-family: 'Syne', monospace;
}

.activity-link:hover .activity-num  { background: rgba(34, 197, 94, 0.14); color: var(--accent); }
.activity-link.active .activity-num { background: rgba(59, 130, 246, 0.14); color: var(--accent2); }

/* ── 5. Hero Banner ── */
.hero-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -44px;
    margin-bottom: 56px;
    padding: 118px 28px 108px;
    position: relative;
    overflow: hidden;
    background: #060810;
}

/* Amber glow top-right, sapphire bottom-left */
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 68% 55% at 88% 12%, rgba(34, 197, 94,  0.11) 0%, transparent 58%),
        radial-gradient(ellipse 60% 52% at 10% 82%, rgba(59,  130, 246,  0.10) 0%, transparent 55%),
        radial-gradient(ellipse 44% 36% at 50% 110%, rgba(16, 185, 129,  0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Geometric grid dots */
.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(34, 197, 94, 0.07) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
}

/* Split layout: left text + right stats card */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 64px;
    align-items: center;
}

.hero-left { text-align: left; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.08);
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 99px;
    border: 1px solid rgba(34, 197, 94, 0.22);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 28px;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.12);
}

.hero-badge-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulseDot 2.2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.05em;
    margin-bottom: 20px;
    font-family: 'Syne', sans-serif;
    line-height: 1.05;
}

.hero-accent {
    background: linear-gradient(110deg, #22C55E 0%, #4ADE80 40%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 480px;
    margin-bottom: 24px;
    line-height: 1.80;
}

.hero-tech {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-tech-badge {
    font-size: 0.70rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 99px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.htb-html  { background: rgba(34, 197, 94, 0.10); color: #FCD34D; border-color: rgba(34, 197, 94, 0.22); }
.htb-css   { background: rgba(59,  130, 246, 0.09); color: #93C5FD; border-color: rgba(59, 130, 246, 0.20); }
.htb-php   { background: rgba(139, 92, 246, 0.09);  color: #C4B5FD; border-color: rgba(139, 92, 246, 0.20); }
.htb-mysql { background: rgba(16, 185, 129, 0.08);  color: #6EE7B7; border-color: rgba(16, 185, 129, 0.20); }

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-btn {
    font-size: 0.90rem;
    padding: 13px 32px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    border: none;
    color: #07080E;
    font-weight: 800;
    box-shadow: 0 0 32px rgba(34, 197, 94, 0.35), 0 4px 16px rgba(0, 0, 0, 0.28);
    border-radius: 99px;
    letter-spacing: -0.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.20s ease;
    cursor: pointer;
    font-family: 'Manrope', inherit;
}

.hero-btn:hover {
    background: linear-gradient(135deg, #4ADE80 0%, #22C55E 100%);
    box-shadow: 0 0 52px rgba(34, 197, 94, 0.55), 0 4px 20px rgba(0, 0, 0, 0.32);
    color: #07080E;
    transform: translateY(-2px);
}

.hero-btn-ghost {
    font-size: 0.90rem;
    padding: 13px 32px;
    background: rgba(238, 242, 255, 0.04);
    border: 1px solid rgba(238, 242, 255, 0.12);
    color: var(--text);
    font-weight: 700;
    border-radius: 99px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.20s ease;
    letter-spacing: -0.01em;
    cursor: pointer;
    font-family: 'Manrope', inherit;
}

.hero-btn-ghost:hover {
    background: rgba(238, 242, 255, 0.08);
    border-color: rgba(238, 242, 255, 0.22);
    transform: translateY(-2px);
    color: var(--text);
}

/* Right-side stats card */
.hero-right { display: flex; justify-content: center; }

.hero-stats-card {
    background: rgba(11, 13, 26, 0.80);
    border: 1px solid rgba(34, 197, 94, 0.12);
    border-radius: 22px;
    padding: 28px 26px;
    width: 100%;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.hero-stats-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.45), transparent);
}

.hero-stats-card-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-stats-card-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: rgba(34, 197, 94, 0.04);
    border: 1px solid rgba(34, 197, 94, 0.08);
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
    transition: border-color 0.18s, background 0.18s;
}

.stat-item:hover {
    border-color: rgba(34, 197, 94, 0.20);
    background: rgba(34, 197, 94, 0.07);
}

.stat-num {
    font-size: 2.1rem;
    font-weight: 800;
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #22C55E 0%, #4ADE80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* ── 6. Page Hero ── */
.page-hero {
    background: #060810;
    padding: 64px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(34, 197, 94, 0.07);
    margin-top: 10px;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 70%, rgba(59,  130, 246, 0.08) 0%, transparent 52%),
        radial-gradient(ellipse at 82% 24%, rgba(34, 197, 94,  0.09) 0%, transparent 52%);
    pointer-events: none;
}

.page-hero h1 {
    position: relative;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
    margin-bottom: 10px;
    font-family: 'Syne', sans-serif;
}

.accent-text {
    background: linear-gradient(110deg, #22C55E 0%, #4ADE80 50%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    position: relative;
    color: var(--text-muted);
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    font-weight: 500;
}

/* ── 7. Layout ── */
.container {
    width: 92%;
    max-width: 1100px;
    margin: 48px auto;
    flex: 1;
}

/* ── 8. Cards ── */
.card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
    padding: 30px 34px;
    margin-bottom: 20px;
    transition: box-shadow 0.24s ease, transform 0.24s ease, border-color 0.24s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.40), transparent);
}

.card:hover {
    box-shadow: var(--shadow), 0 0 0 1px rgba(34, 197, 94, 0.12);
    transform: translateY(-2px);
    border-color: rgba(34, 197, 94, 0.18);
}

.card h2 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(34, 197, 94, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.02em;
}

.card h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    border-radius: 2px;
    flex-shrink: 0;
}

.card p  { color: var(--text-muted); margin-bottom: 10px; }
.card ul,
.card ol { padding-left: 22px; color: var(--text-muted); }
.card li { margin-bottom: 5px; }

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    background: rgba(34, 197, 94, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.07);
    transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.feature-item:hover {
    border-color: rgba(34, 197, 94, 0.20);
    background: rgba(34, 197, 94, 0.06);
    transform: translateY(-1px);
}

.feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(34, 197, 94, 0.09);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid rgba(34, 197, 94, 0.12);
}

.feature-body strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.01em;
}

.feature-body span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Checklist */
.checklist {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.03);
    border: 1px solid rgba(34, 197, 94, 0.06);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.checklist li:hover {
    border-color: rgba(34, 197, 94, 0.18);
    background: rgba(34, 197, 94, 0.06);
    color: var(--text);
}

.checklist li::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%2322C55E' stroke-width='1.4'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%2322C55E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}

/* ── 9. Demo Area ── */
.demo-area {
    background: rgba(4, 4, 14, 0.70);
    border: 1px dashed rgba(34, 197, 94, 0.14);
    border-radius: var(--radius-sm);
    padding: 22px 26px;
    margin: 16px 0;
    color: var(--text);
}

/* ── 10. Buttons ── */
.btn,
.source-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: #07080E;
    padding: 9px 20px;
    border-radius: 99px;
    font-size: 0.855rem;
    font-weight: 700;
    font-family: 'Manrope', inherit;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s ease;
    box-shadow: 0 2px 14px rgba(34, 197, 94, 0.25);
    margin: 4px 4px 4px 0;
    letter-spacing: -0.01em;
}

.btn:hover,
.source-btn:hover {
    background: linear-gradient(135deg, #4ADE80 0%, #22C55E 100%);
    box-shadow: 0 4px 26px rgba(34, 197, 94, 0.44);
    transform: translateY(-1px);
    color: #07080E;
}

.source-btn {
    background: rgba(5, 5, 16, 0.88);
    border: 1px solid rgba(34, 197, 94, 0.16);
    box-shadow: none;
    color: var(--accent);
}

.source-btn:hover {
    background: rgba(8, 9, 22, 0.96);
    border-color: rgba(34, 197, 94, 0.34);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.10);
    transform: none;
    color: var(--accent);
}

.btn-indigo {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #fff;
    box-shadow: 0 2px 16px rgba(59, 130, 246, 0.28);
}
.btn-indigo:hover {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    box-shadow: 0 4px 26px rgba(59, 130, 246, 0.46);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.26);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 4px 22px rgba(239, 68, 68, 0.42);
    color: #fff;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
    border-radius: 99px;
    margin: 2px;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: var(--accent);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--accent-light);
    border-color: rgba(34, 197, 94, 0.50);
    box-shadow: none;
    transform: none;
    color: var(--accent);
}

/* ── 11. Source Code Block ── */
.source-code {
    background: var(--code-bg);
    color: #FCD34D;
    padding: 20px 22px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin-top: 10px;
    font-size: 0.80rem;
    line-height: 1.72;
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    border: 1px solid rgba(34, 197, 94, 0.10);
}

/* ── 12. Tables ── */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

thead tr {
    background: rgba(5, 5, 14, 0.90);
    border-bottom: 1px solid rgba(34, 197, 94, 0.14);
}

thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.70rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-family: 'Syne', sans-serif;
    color: var(--accent);
}

tbody tr {
    border-bottom: 1px solid rgba(34, 197, 94, 0.05);
    transition: background 0.14s;
    background: rgba(9, 10, 20, 0.60);
}

tbody tr:hover td { background: rgba(34, 197, 94, 0.05); color: var(--text); }
tbody tr:nth-child(even) td { background: rgba(34, 197, 94, 0.02); }

tbody td {
    padding: 11px 16px;
    color: var(--text-muted);
    border: none;
}

/* ── 13. Forms ── */
input, select, textarea {
    width: 100%;
    padding: 11px 14px;
    margin-top: 5px;
    margin-bottom: 14px;
    border: 1px solid rgba(34, 197, 94, 0.12);
    border-radius: var(--radius-xs);
    font-family: 'Manrope', inherit;
    font-size: 0.875rem;
    color: var(--text);
    background: rgba(5, 5, 14, 0.72);
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

input::placeholder, textarea::placeholder { color: rgba(122, 139, 168, 0.40); }
select option { background: #0B0D1A; color: var(--text); }

label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ── 14. Alerts ── */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    margin-bottom: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    border-left: 3px solid transparent;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-left-color: var(--success-text);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    border-left-color: #ef4444;
}

/* ── 15. Gallery Grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.gallery-item {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
    box-shadow: var(--shadow-sm);
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.38), transparent);
}

.gallery-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.02em;
}

.gallery-item p { color: var(--text-muted); font-size: 0.81rem; margin-bottom: 8px; }

.gallery-item code {
    color: var(--accent);
    font-size: 0.79rem;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.gallery-item:hover {
    box-shadow: var(--shadow), 0 0 0 1px rgba(34, 197, 94, 0.18);
    transform: translateY(-3px);
    border-color: rgba(34, 197, 94, 0.22);
}

/* ── 16. Login Page ── */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62vh;
    padding: 24px 0;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(10, 11, 22, 0.88);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(34, 197, 94, 0.10);
    border-radius: 22px;
    padding: 40px 40px 36px;
    box-shadow: var(--shadow), 0 0 80px rgba(34, 197, 94, 0.06);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.55), rgba(59, 130, 246, 0.28), transparent);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.login-logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.90rem;
    font-weight: 900;
    color: #07080E;
    letter-spacing: -0.06em;
    font-family: 'Syne', sans-serif;
    box-shadow: 0 0 36px rgba(34, 197, 94, 0.40);
}

.login-card h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text);
    text-align: center;
    margin-bottom: 6px;
    padding-bottom: 0;
    border-bottom: none;
    letter-spacing: -0.04em;
}

.login-card h2::before { display: none; }

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 28px;
}

.login-credentials {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.14);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 22px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.login-credentials p      { margin: 3px 0; }
.login-credentials strong { color: var(--accent); }

/* ── 17. Members Page ── */
.member-hero {
    text-align: center;
    padding: 14px 0 18px;
    margin-bottom: 22px;
}

.member-avatar {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 900;
    color: #07080E;
    letter-spacing: -0.06em;
    font-family: 'Syne', sans-serif;
    margin: 0 auto 16px;
    box-shadow: 0 0 36px rgba(34, 197, 94, 0.38);
}

.member-welcome {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.035em;
    font-family: 'Syne', sans-serif;
    margin-bottom: 6px;
}

.member-name {
    background: linear-gradient(110deg, #22C55E, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.member-subtitle {
    color: var(--text-muted);
    font-size: 0.895rem;
    margin-bottom: 0;
}

/* ── 18. Footer ── */
.footer {
    background: #060810;
    border-top: 1px solid rgba(34, 197, 94, 0.07);
    padding: 40px 28px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }

.footer-logo {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 900;
    color: #07080E;
    letter-spacing: -0.05em;
    font-family: 'Syne', sans-serif;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.28);
}

.footer-brand-text {
    font-size: 0.83rem;
    font-weight: 700;
    color: rgba(238, 242, 255, 0.40);
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.01em;
}

.footer-copy {
    font-size: 0.77rem;
    color: rgba(122, 139, 168, 0.44);
    text-align: center;
    line-height: 1.7;
}

.footer-copy a { color: var(--accent); text-decoration: none; }
.footer-copy a:hover { color: var(--accent-hover); }

.footer-stack {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.stack-tag {
    font-size: 0.66rem;
    font-weight: 700;
    color: rgba(122, 139, 168, 0.46);
    padding: 3px 9px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.10);
    border-radius: 5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── 19. Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #060810; }
::-webkit-scrollbar-thumb { background: rgba(34, 197, 94, 0.20); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(34, 197, 94, 0.40); }

/* ── 20. Responsive ── */
@media (max-width: 960px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-left { text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-tech { justify-content: center; }
    .hero-cta  { justify-content: center; }
    .hero-right { max-width: 380px; margin: 0 auto; width: 100%; }
    .activities-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-pill { border-radius: 22px; max-width: calc(100% - 0px); }

    .brand-sub  { display: none; }
    .brand-name { display: none; }

    .nav-sep   { display: none; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(6, 8, 16, 0.98);
        -webkit-backdrop-filter: blur(28px);
        backdrop-filter: blur(28px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        z-index: 190;
        padding: 80px 24px 40px;
    }

    .nav-links.mobile-open { display: flex; }

    .nav-link {
        font-size: 1.3rem;
        font-weight: 700;
        padding: 12px 28px;
        border-radius: 14px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .nav-auth { display: none; }
    .mobile-toggle { display: flex; }

    .activities-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .activities-panel.open {
        transform: translateY(0);
    }

    .activities-grid { grid-template-columns: repeat(2, 1fr); padding: 16px 14px 28px; }

    .hero-banner { padding: 88px 20px 72px; margin-top: -10px; }
    .page-hero { padding: 52px 20px; }
    .container { width: 95%; margin: 30px auto; }
    .card { padding: 22px 20px; }
    .login-card { padding: 30px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { justify-content: center; }
    .footer-stack { justify-content: center; }
    .checklist { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .activities-grid { grid-template-columns: 1fr 1fr; }
    .brand-monogram { width: 34px; height: 34px; font-size: 0.72rem; border-radius: 10px; }
    .hero-title { font-size: 2.5rem; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .stat-num { font-size: 1.8rem; }
    .features-grid { grid-template-columns: 1fr; }
}

/* ── Mobile overlay extras ── */
.mobile-close {
    display: none;
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.18);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
    flex-shrink: 0;
}

.mobile-close:hover { background: var(--accent-light); color: var(--accent); }

.nav-auth-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(34, 197, 94, 0.08);
    width: 100%;
    max-width: 280px;
}

@media (max-width: 768px) {
    .mobile-close     { display: flex; }
    .nav-auth-mobile  { display: flex; }

    .nav-links .nav-link {
        font-size: 1.15rem;
    }
}

/* ── Scroll-shrink: pill tightens when user scrolls down ── */
.topnav.scrolled { padding-top: 8px; }
.topnav.scrolled .nav-pill {
    height: 48px;
    border-color: rgba(34, 197, 94, 0.18);
    box-shadow:
        0 2px 20px rgba(0, 0, 0, 0.70),
        0 0 0 1px rgba(34, 197, 94, 0.06);
}
.topnav.scrolled .brand-monogram { width: 32px; height: 32px; font-size: 0.72rem; }

.topnav,
.nav-pill,
.brand-monogram { transition: all 0.28s ease; }
