/* css/style.css */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;600;700&family=IBM+Plex+Mono:wght@400;600&display=swap");

:root {
    color-scheme: dark;
    --bg: #0b0e12;
    --bg-elevated: #11161d;
    --bg-quiet: #0f141b;
    --text: #f2f0ea;
    --text-muted: #b8c0c8;
    --accent: #a7ff3d;
    --accent-strong: #00e7ff;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(0, 231, 255, 0.12), transparent 60%),
        radial-gradient(900px 500px at 85% -20%, rgba(167, 255, 61, 0.12), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

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

a:hover {
    color: var(--accent);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 16px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    z-index: 10;
}

.skip-link:focus {
    top: 16px;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(12px);
    background: rgba(11, 14, 18, 0.8);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 0.95rem;
    color: var(--accent);
}

.prompt {
    opacity: 0.85;
}


nav {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

nav a {
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
    width: 100%;
}

main {
    padding-bottom: 80px;
}

section {
    padding: 64px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: center;
}

.eyebrow {
    font-family: "IBM Plex Mono", "Courier New", monospace;
    color: var(--accent);
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

.hero-name {
    font-size: clamp(2.8rem, 6vw, 4.4rem);
    line-height: 1.05;
    margin: 0 0 12px;
}

.hero-title {
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    margin: 0 0 18px;
    color: var(--text-muted);
}

.hero-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 6px;
}

.hero-mark {
    width: clamp(48px, 8vw, 88px);
    height: clamp(48px, 8vw, 88px);
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-mark:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 255, 61, 0.6);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(167, 255, 61, 0.35);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 0 0 24px;
}

h3 {
    font-size: 1.25rem;
    margin-top: 0;
}

.lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
}

.subtle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cta-row {
    display: flex;
    gap: 16px;
    margin: 24px 0 12px;
    flex-wrap: wrap;
}

.about-card {
    margin-top: 18px;
    padding: 16px 18px;
    background: var(--bg-quiet);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
}

.about-label {
    font-family: "IBM Plex Mono", "Courier New", monospace;
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.principles {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(167, 255, 61, 0.06);
}

.principle-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-family: "IBM Plex Mono", "Courier New", monospace;
    color: var(--text);
    font-size: 0.85rem;
}

.principle-list span {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg-quiet);
    border: 1px solid var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: var(--accent);
    color: #0b0e12;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(167, 255, 61, 0.25);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(167, 255, 61, 0.32);
}

.btn.ghost:hover {
    border-color: var(--accent);
}

.hero-terminal {
    display: flex;
    justify-content: center;
}

.terminal-window {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(145deg, rgba(17, 22, 29, 0.85), rgba(12, 16, 22, 0.9));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-family: "IBM Plex Mono", "Courier New", monospace;
    color: var(--accent);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.terminal-window pre {
    margin: 0;
    padding: 18px 16px 24px;
    white-space: pre-wrap;
    font-size: 0.9rem;
    color: var(--text);
}

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

.grid {
    display: grid;
    gap: 20px;
}

.metrics {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.pillars {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.projects {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.metric {
    font-size: 2rem;
    margin: 0 0 8px;
    color: var(--accent);
    font-family: "IBM Plex Mono", "Courier New", monospace;
}

.card ul {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--text-muted);
}

.tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-quiet);
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 0.85rem;
}

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, rgba(167, 255, 61, 0.12), rgba(0, 231, 255, 0.1));
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0 40px;
    color: var(--text-muted);
    text-align: center;
}

.signature {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-family: "IBM Plex Mono", "Courier New", monospace;
}

.signature-name {
    margin: 0;
    font-size: 1rem;
    color: var(--text);
}

.signature-title {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.1em;
    background-color: var(--accent);
    animation: blink 1s step-end infinite;
    margin-left: 4px;
    vertical-align: bottom;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeIn 0.6s ease-out both;
}

section:nth-of-type(1) { animation-delay: 0.05s; }
section:nth-of-type(2) { animation-delay: 0.12s; }
section:nth-of-type(3) { animation-delay: 0.18s; }
section:nth-of-type(4) { animation-delay: 0.24s; }
section:nth-of-type(5) { animation-delay: 0.3s; }
section:nth-of-type(6) { animation-delay: 0.36s; }

@media (max-width: 720px) {
    nav {
        display: none;
    }

    .site-header .wrap {
        justify-content: center;
    }

    .contact {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .cursor,
    .section {
        animation: none;
    }

    .btn,
    nav a::after {
        transition: none;
    }
}
