/* Arka Vilai — Personal Site Styles */

:root {
    --bg: #0e0d0b;
    --bg-card: #16150f;
    --bg-card-hover: #1e1c14;
    --text: #f0ebe0;
    --text-mid: #9e9889;
    --text-dim: #5e5c54;
    --accent: #e8702a;
    --accent-light: rgba(232,112,42,0.12);
    --border: rgba(240,235,224,0.08);
    --border-hover: rgba(240,235,224,0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(14,13,11,0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 48px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: var(--text-mid);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: var(--border); }
.nav-links a.active { color: var(--accent); }

/* ── PAGE HEADER ── */
.page-header {
    padding: 120px 48px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.page-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.page-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 20px;
}

.page-title em {
    font-style: normal;
    color: var(--accent);
}

.page-lead {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.75;
    max-width: 580px;
}

/* ── CONTENT SECTION ── */
.content-section {
    padding: 0 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.content-section.narrow { max-width: 720px; }

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 16px;
}

p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 600; }

ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

li {
    font-size: 0.92rem;
    color: var(--text-mid);
    margin-bottom: 6px;
    line-height: 1.6;
}

li strong { color: var(--text); }

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 60px 0;
}

/* ── CARDS ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.2s, background 0.2s;
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-link:hover { text-decoration: none; }

/* ── PROJECT CARDS ── */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    position: relative;
}

.project-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.project-meta {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.project-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.project-card p {
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-dim);
    background: rgba(240,235,224,0.05);
    padding: 3px 8px;
    border-radius: 4px;
}

.project-arrow {
    position: absolute;
    top: 28px;
    right: 28px;
    color: var(--accent);
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* ── GRID ── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

/* ── INFO CARD ── */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.info-card h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-card p {
    font-size: 0.88rem;
    margin-bottom: 0;
}

/* ── STAT ── */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 40px 0;
}

.stat-cell {
    background: var(--bg-card);
    padding: 24px 20px;
    text-align: center;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* ── LINKS ── */
.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 24px 0;
}

.link-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}

.link-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.link-icon {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-mid);
}

.link-card:hover .link-icon { color: var(--accent); }

.link-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.link-card p {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 0;
}

/* ── BUTTON ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: 'DM Sans', sans-serif;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover { background: #d4621f; transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-hover);
}

.btn-outline:hover { border-color: var(--text-mid); }

/* ── CTA ── */
.cta-section {
    padding: 80px 48px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 12px;
}

.cta-section p {
    margin-bottom: 28px;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid var(--border);
    padding: 32px 48px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

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

/* ── DIVIDER TEXT ── */
.section-divider {
    padding: 60px 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-divider-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-divider h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .link-grid { grid-template-columns: 1fr 1fr; }
    .stat-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .page-header { padding: 100px 20px 40px; }
    .content-section { padding: 0 20px; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .link-grid { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr 1fr; }
    .section-divider { padding: 40px 20px; }
    .cta-section { padding: 60px 20px; }
    footer { padding: 24px 20px; flex-direction: column; gap: 8px; text-align: center; }
}
