:root {
    --ink: #0B1220;
    --ink-soft: #141C2E;
    --paper: #F6F5F1;
    --paper-dim: #EAE8E1;
    --amber: #FFB238;
    --teal: #3ECF8E;
    --text-dim: #8B93A7;
    --text-muted: #5B6472;
    --font-display: 'Fraunces', serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 245, 241, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
}

.logo-dot { color: var(--amber); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-links a { color: var(--text-muted); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }

.nav-cta {
    background: var(--ink);
    color: var(--paper) !important;
    padding: 9px 18px;
    border-radius: 6px;
}
.nav-cta:hover { background: var(--ink-soft) !important; }

/* ---------- Hero ---------- */

.hero {
    background: var(--ink);
    color: var(--paper);
    padding: 110px 0 90px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--teal);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 3.1rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.highlight { color: var(--amber); font-style: italic; }

.hero-desc {
    color: var(--text-dim);
    font-size: 1.08rem;
    max-width: 480px;
    margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: var(--amber);
    color: var(--ink);
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
    border: 1px solid rgba(246, 245, 241, 0.25);
    color: var(--paper);
}
.btn-ghost:hover { border-color: var(--paper); transform: translateY(-2px); }

.btn-large { font-size: 1.05rem; padding: 16px 32px; }

/* ---------- Terminal (signature element) ---------- */

.hero-terminal {
    background: #0E1626;
    border: 1px solid rgba(246, 245, 241, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
    font-family: var(--font-mono);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #141C2E;
    border-bottom: 1px solid rgba(246, 245, 241, 0.08);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }

.terminal-title {
    margin-left: 8px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.terminal-body {
    padding: 22px 20px;
    min-height: 180px;
    font-size: 0.92rem;
}

.prompt { color: var(--teal); }

.cursor {
    color: var(--amber);
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.terminal-output {
    color: var(--text-dim);
    margin-top: 14px;
    white-space: pre-line;
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ---------- Sections ---------- */

.section { padding: 90px 0; }
.section.alt { background: var(--paper-dim); }

.section-label {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 40px;
}

.tag {
    font-family: var(--font-mono);
    color: var(--amber);
    font-size: 0.9rem;
}

.section h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.1rem;
}

.about-text {
    font-size: 1.15rem;
    max-width: 640px;
    color: var(--text-muted);
}

/* ---------- Skills ---------- */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.skill-group h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 600;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-pills span {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: var(--ink);
    color: var(--paper);
    padding: 6px 12px;
    border-radius: 5px;
}

/* ---------- Projects ---------- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.project-card {
    background: #FFFFFF;
    border: 1px solid rgba(11,18,32,0.08);
    border-radius: 10px;
    padding: 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(11,18,32,0.08);
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-top h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
}

.project-arrow {
    color: var(--amber);
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.project-card:hover .project-arrow { transform: translateX(4px); }

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.project-card .skill-pills span {
    background: var(--paper-dim);
    color: var(--ink);
}

/* ---------- Timeline ---------- */

.timeline {
    list-style: none;
    border-left: 2px solid rgba(11,18,32,0.12);
    max-width: 620px;
}

.timeline li {
    padding: 0 0 36px 28px;
    position: relative;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--amber);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.timeline h3 {
    font-size: 1.05rem;
    margin: 6px 0 4px;
    font-weight: 600;
}

.timeline p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Contact ---------- */

.contact-section {
    background: var(--ink);
    color: var(--paper);
    text-align: center;
}

.contact-section h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.4rem;
    margin-bottom: 14px;
}

.contact-desc {
    color: var(--text-dim);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.contact-links {
    margin-top: 24px;
    display: flex;
    gap: 24px;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.contact-links a { color: var(--text-dim); transition: color 0.2s ease; }
.contact-links a:hover { color: var(--paper); }

/* ---------- Footer ---------- */

footer {
    background: var(--ink);
    color: var(--text-dim);
    text-align: center;
    padding: 24px 0 36px;
    font-size: 0.85rem;
    border-top: 1px solid rgba(246,245,241,0.08);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .cursor { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.3rem; }
    .nav-links { gap: 18px; font-size: 0.85rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
}

@media (max-width: 520px) {
    .nav-links li:not(:last-child) { display: none; }
    .hero { padding: 80px 0 60px; }
}
