﻿/* ============================================================
   ROOT / VARIABLES  — Light mode defaults
   ============================================================ */
:root {
    --accent:       #6366f1;
    --accent-2:     #8b5cf6;
    --accent-3:     #06b6d4;
    --accent-dark:  #4f46e5;
    --accent-glow:  rgba(99, 102, 241, 0.15);
    --accent-grad:  linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

    --text:         #0f172a;
    --text-mid:     #334155;
    --text-soft:    #64748b;
    --border:       #e2e8f0;

    --font:         'Inter', sans-serif;
    --radius:       16px;
    --radius-lg:    28px;
    --shadow:       0 4px 24px rgba(99, 102, 241, 0.10);
    --shadow-lg:    0 20px 60px rgba(99, 102, 241, 0.14);
    --shadow-card:  0 2px 12px rgba(0, 0, 0, 0.06);
    --transition:   0.3s ease;

    --surface-bg:    #fafbff;
    --surface-nav:   rgba(250, 251, 255, 0.85);
    --surface-card:  #ffffff;
    --surface-light: #f1f5fb;
    --surface-dark:  #0f172a;
    --surface-hero:  linear-gradient(150deg, #f0f1ff 0%, #faf8ff 45%, #eff9ff 100%);

    --hero-role-color: #6366f1;
}

/* ── Dark mode token overrides ── */
body.dark {
    --accent:       #818cf8;
    --accent-2:     #a78bfa;
    --accent-3:     #22d3ee;
    --accent-dark:  #6366f1;
    --accent-glow:  rgba(129, 140, 248, 0.18);
    --accent-grad:  linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);

    --text:         #f1f5f9;
    --text-mid:     #94a3b8;
    --text-soft:    #475569;
    --border:       #1e293b;

    --shadow:       0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg:    0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-card:  0 2px 16px rgba(0, 0, 0, 0.4);

    --surface-bg:    #08080f;
    --surface-nav:   rgba(8, 8, 15, 0.88);
    --surface-card:  #0f1420;
    --surface-light: #0d1117;
    --surface-dark:  #020408;
    --surface-hero:  linear-gradient(150deg, #080c18 0%, #09090f 45%, #07101a 100%);

    --hero-role-color: #818cf8;
}

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

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--surface-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
}

a { text-decoration: none; }
img { display: block; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    background: var(--surface-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition), background var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-brand {
    font-size: 1.45rem;
    font-weight: 900;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-mid);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-glow); }

/* Hire Me button */
.nav-cta {
    background: var(--accent-grad);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1.3rem;
    border-radius: 10px;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.45); }

/* ── Theme toggle ── */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-mid);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
    position: relative;
}

/* Subtle background orbs */
.hero::before,
.hero::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.35;
}
.hero::before {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
    top: -100px; left: -100px;
}
.hero::after {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%);
    top: 200px; right: -80px;
}

body.dark .hero::before { opacity: 0.25; }
body.dark .hero::after  { opacity: 0.2; }

/* ── Photo side ── */
.hero-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.photo-wrap {
    position: relative;
    width: 340px;
    /* NO fixed height — let dots + badge flow below naturally */
}

.photo-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 352px;   /* exactly the 340px circle + 6px each side */
    height: 352px;
    border-radius: 50%;
    background: transparent;
    border: 2.5px solid transparent;
    background-clip: padding-box;
    z-index: 0;
    box-shadow:
        0 0 0 2.5px rgba(99,102,241,0.5),
        0 0 20px 6px rgba(99,102,241,0.25),
        0 0 50px 14px rgba(139,92,246,0.15);
    animation: sparkle-glow 3s ease-in-out infinite;
}

body.dark .photo-ring {
    box-shadow:
        0 0 0 2.5px rgba(129,140,248,0.6),
        0 0 22px 8px rgba(129,140,248,0.3),
        0 0 55px 18px rgba(167,139,250,0.18);
}

@keyframes sparkle-glow {
    0%, 100% {
        box-shadow:
            0 0 0 2.5px rgba(99,102,241,0.5),
            0 0 20px 6px  rgba(99,102,241,0.25),
            0 0 50px 14px rgba(139,92,246,0.15);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 0 0 2.5px rgba(99,102,241,0.8),
            0 0 32px 12px rgba(99,102,241,0.35),
            0 0 70px 24px rgba(139,92,246,0.22);
        transform: scale(1.012);
    }
}

.slideshow {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    background: var(--surface-light);
    box-shadow: var(--shadow-lg);
}

.slideshow .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;  /* show face without black gap at bottom */
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
}
.slideshow .slide.active { opacity: 1; }

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 1.2rem;
    position: relative;
    z-index: 2;
}

.slide-dots .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, width 0.3s;
}
.slide-dots .dot.active {
    background: var(--accent);
    transform: scale(1);
    width: 22px;
    border-radius: 4px;
}

.available-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(16,185,129,0.08));
    border: 1.5px solid rgba(34,197,94,0.4);
    color: #16a34a;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    margin-top: 1.1rem;
    position: relative;
    z-index: 2;
    letter-spacing: 0.2px;
    /* keep badge inside hero-left flow, never overlap hero-right */
    align-self: center;
}
body.dark .available-badge { color: #4ade80; border-color: rgba(74,222,128,0.4); background: rgba(74,222,128,0.08); }

.pulse-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50%       { opacity: 0.8; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ── Text side ── */
.hero-right { flex: 1; }

.hero-greeting {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.hero-name {
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.hero-name .accent {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent { color: var(--accent); }

.hero-aka {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 1.1rem;
}
.hero-aka strong { color: var(--text-mid); font-weight: 600; }

.hero-role {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--hero-role-color);
    margin-bottom: 1.6rem;
    height: 2rem;
    overflow: hidden;
    white-space: nowrap;
}

.cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 2.2rem;
    max-width: 520px;
}

/* ── Buttons ── */
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.8rem; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.9rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    letter-spacing: 0.1px;
}

.btn-primary {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99,102,241,0.45);
}

.btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}
.btn-outline:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.15);
}

/* ── Stats ── */
.hero-stats { display: flex; align-items: center; gap: 2.5rem; }

.stat-item { display: flex; flex-direction: column; }

.stat-n {
    font-size: 2.1rem;
    font-weight: 900;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-l {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 0.25rem;
}

.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ============================================================
   SHARED SECTION
   ============================================================ */
.section { padding: 6rem 2rem; }

.bg-white { background: var(--surface-bg); }
.bg-light  { background: var(--surface-light); }
.bg-dark   { background: var(--surface-dark); }

body.dark .bg-white { background: var(--surface-bg); }
body.dark .bg-light  { background: var(--surface-light); }
body.dark .bg-dark   { background: var(--surface-dark); }

.container { max-width: 1100px; margin: 0 auto; }

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.section-label.light { color: var(--accent-2); }

.section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 3rem;
    color: var(--text);
}
.section-title .accent {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-title.light { color: #f1f5f9; }

/* reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-body {
    max-width: 720px;
    margin-bottom: 3.5rem;
}
.about-body p {
    font-size: 1.05rem;
    color: var(--text-mid);
    margin-bottom: 1rem;
    line-height: 1.9;
}
.about-body strong { color: var(--text); font-weight: 700; }

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.pillar {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.pillar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-grad);
    opacity: 0;
    transition: opacity 0.25s;
    z-index: 0;
}
.pillar:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.pillar:hover::before { opacity: 0.04; }
.pillar > * { position: relative; z-index: 1; }

.pillar-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--accent-glow);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    transition: background 0.25s;
}
.pillar:hover .pillar-icon { background: var(--accent-grad); color: #fff; }

.pillar h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.pillar p {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.65;
}

/* ============================================================
   SERVICES  (dark section)
   ============================================================ */
.services-list { display: flex; flex-direction: column; }

.service-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    transition: background 0.2s;
    cursor: default;
}
.service-row:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.service-row:hover { background: rgba(129,140,248,0.06); }

.service-num {
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1.5px;
    min-width: 28px;
    flex-shrink: 0;
}

.service-info { flex: 1; }
.service-info h3 { font-size: 1rem; font-weight: 700; color: #f1f5f9; margin-bottom: 0.25rem; }
.service-info p  { font-size: 0.875rem; color: #64748b; line-height: 1.55; }

.service-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; flex-shrink: 0; }
.service-tags span {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-2);
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.25);
    padding: 0.22rem 0.65rem;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.4rem;
}

.project-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, var(--surface-card) 60%);
}
body.dark .project-card.featured {
    background: linear-gradient(135deg, rgba(129,140,248,0.1) 0%, var(--surface-card) 70%);
}

.project-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 0.9rem 1.5rem 0;
    display: inline-block;
}

.project-body {
    padding: 1rem 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.project-body p {
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.25rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    transition: gap 0.2s, color 0.2s;
}
.project-link:hover { gap: 0.75rem; color: var(--accent-2); }

/* More card */
.more-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.9rem;
    padding: 2rem;
    background: linear-gradient(135deg, #080c18 0%, #1a1040 100%);
    border-color: rgba(139,92,246,0.4) !important;
    position: relative;
    overflow: hidden;
}
.more-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(139,92,246,0.2), transparent 70%);
}

.more-icon {
    width: 46px; height: 46px;
    background: rgba(139,92,246,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-2);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.more-card h3 { font-size: 1rem; font-weight: 700; color: #f1f5f9; position: relative; z-index: 1; }
.more-card p  { font-size: 0.875rem; color: #64748b; line-height: 1.6; position: relative; z-index: 1; }
.more-card .btn-primary { position: relative; z-index: 1; }

/* ============================================================
   CONTACT  (dark section)
   ============================================================ */
.contact-container { text-align: center; }

.contact-sub {
    font-size: 1rem;
    color: #64748b;
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.85;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.2rem 2rem;
    color: #f1f5f9;
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
    backdrop-filter: blur(10px);
}
.contact-pill:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    background: rgba(99,102,241,0.08);
}
.contact-pill i       { color: var(--accent); font-size: 1.5rem; }
.contact-pill div     { text-align: left; }
.contact-pill strong  { display: block; font-size: 0.9rem; font-weight: 700; color: #f1f5f9; }
.contact-pill span    { font-size: 0.8rem; color: #64748b; }

.whatsapp-pill i               { color: #4ade80 !important; }
.whatsapp-pill:hover           { border-color: #4ade80 !important; background: rgba(74,222,128,0.06) !important; }

.contact-note {
    font-size: 0.85rem;
    color: #475569;
}

/* ============================================================
   TABLE OF CONTENTS BAR
   ============================================================ */
.toc-bar {
    position: fixed;
    top: 68px;
    inset-inline: 0;
    z-index: 190;
    background: var(--surface-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    /* right-edge fade — hints that there's more to scroll */
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image:         linear-gradient(to right, black 80%, transparent 100%);
}

/* Bouncing chevron on the right to signal scrollability */
.toc-bar::after {
    content: '\203A'; /* › */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--accent);
    animation: toc-bounce 1.4s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.85;
}

@keyframes toc-bounce {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50%       { transform: translateY(-50%) translateX(5px); }
}

/* On wider screens where nothing is clipped, hide the hint */
@media (min-width: 900px) {
    .toc-bar {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .toc-bar::after { display: none; }
}

.toc-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.toc-inner::-webkit-scrollbar { display: none; }

.toc-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

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

.toc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-soft);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
    border: 1px solid transparent;
}
.toc-link i { font-size: 0.7rem; }
.toc-link:hover {
    color: var(--accent);
    background: var(--accent-glow);
}
.toc-link.active {
    color: var(--accent);
    background: var(--accent-glow);
    border-color: var(--accent);
}

/* Push page content down to account for both nav + toc */
.hero { padding-top: calc(7rem + 42px); }

/* ============================================================
   TECH STACK
   ============================================================ */
.tech-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.tech-category {}

.tech-cat-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-soft);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 0.9rem 0.75rem;
    width: 82px;
    cursor: default;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
    position: relative;
}
.tech-icon:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(99,102,241,0.15);
    background: var(--surface-card);
}

/* Tooltip — rich card style */
.tech-icon::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: var(--surface-card);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.45;
    white-space: normal;
    width: 180px;
    text-align: center;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s, transform 0.18s;
    z-index: 50;
}
/* Arrow */
.tech-icon::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--border);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s;
    z-index: 51;
}
.tech-icon:hover::after  { opacity: 1; transform: translateX(-50%) scale(1); }
.tech-icon:hover::before { opacity: 1; }

.tech-icon i {
    font-size: 2rem;
    line-height: 1;
    /* fallback color for icons that don't have .colored variant */
    color: var(--accent);
}

/* Override devicon grey fallbacks for dark mode */
body.dark .tech-icon i.devicon-github-original { color: #f1f5f9; }
body.dark .tech-icon i.devicon-flask-original   { color: #f1f5f9; }
body.dark .tech-icon i.devicon-linux-plain      { color: #f1f5f9; }
body.dark .tech-icon i.devicon-bash-plain       { color: #94a3b8; }
body.dark .tech-icon i.devicon-ssh-original     { color: #94a3b8; }

.tech-icon span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-soft);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.tech-icon:hover span { color: var(--accent); }

/* ============================================================
   HOSTING
   ============================================================ */
.hosting-intro {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 640px;
    margin-bottom: 3rem;
    line-height: 1.85;
}

.hosting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.hosting-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    position: relative;
}
.hosting-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.hosting-card.featured {
    border-color: var(--accent);
    background: linear-gradient(160deg, rgba(99,102,241,0.06) 0%, var(--surface-card) 60%);
}
body.dark .hosting-card.featured {
    background: linear-gradient(160deg, rgba(129,140,248,0.1) 0%, var(--surface-card) 70%);
}

.hosting-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0.28rem 0.75rem;
    border-radius: 6px;
    align-self: flex-start;
}
.hosting-badge.free    { background: rgba(34,197,94,0.12);  color: #16a34a; border: 1px solid rgba(34,197,94,0.3); }
.hosting-badge.popular { background: var(--accent-glow);    color: var(--accent); border: 1px solid var(--accent); }
.hosting-badge.specs   { background: rgba(6,182,212,0.1);   color: #0891b2; border: 1px solid rgba(6,182,212,0.3); }
body.dark .hosting-badge.free    { color: #4ade80; border-color: rgba(74,222,128,0.35); }
body.dark .hosting-badge.specs   { color: #22d3ee; border-color: rgba(34,211,238,0.3); }

.hosting-price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}
.price-amount {
    font-size: 2rem;
    font-weight: 900;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}
.price-period {
    font-size: 0.85rem;
    color: var(--text-soft);
    font-weight: 500;
}

.hosting-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-top: -0.4rem;
}

.hosting-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.hosting-features li {
    font-size: 0.875rem;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.hosting-features li i.fa-check { color: #22c55e; font-size: 0.75rem; }
.hosting-features li i.fa-times  { color: var(--text-soft); font-size: 0.75rem; }
.hosting-features li.muted       { color: var(--text-soft); }

.hosting-btn { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* Specs card */
.specs-card { background: var(--surface-light); }
body.dark .specs-card { background: var(--surface-light); }

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 0.5rem;
    text-align: center;
    transition: border-color 0.2s;
}
.spec-item:hover { border-color: var(--accent); }
.spec-item i      { font-size: 1.1rem; color: var(--accent); }
.spec-val         { font-size: 1rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.spec-lbl         { font-size: 0.65rem; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.5px; }

.specs-note {
    font-size: 0.78rem;
    color: var(--text-soft);
    text-align: center;
    margin-top: -0.25rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #04060e;
    border-top: 1px solid #111827;
    padding: 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 900;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer p { font-size: 0.8rem; color: #475569; }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: #475569; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ============================================================
   ORIGIN BADGE
   ============================================================ */
.origin {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    color: var(--text-soft);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .hero {
        flex-direction: column;
        padding-top: 7rem;
        text-align: center;
        gap: 1.5rem;  /* tighter gap — badge + dots already add spacing */
    }
    .hero-left {
        /* wrap photo + dots + badge tightly so nothing bleeds into text */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
    }
    .hero-btns  { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-desc  { margin: 0 auto 2rem; }
    .nav-links  { display: none; }
    .nav-cta    { margin-left: auto; }
}

@media (max-width: 640px) {
    .photo-wrap { width: 260px; }
    .slideshow  { width: 260px; height: 260px; }
    .photo-ring { width: 272px; height: 272px; } /* 260 + 6px each side */
    .section { padding: 4rem 1.25rem; }
    .service-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .service-tags { display: none; }
    .projects-grid { grid-template-columns: 1fr; }
    .footer-inner  { flex-direction: column; text-align: center; }
    .hero-name { letter-spacing: -1px; }
}
