/* ===========================================
   POORAV RAWAT — Terminal Theme
   Inspired by liamellison.dev
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Azeret+Mono:wght@300;400;500;700&display=swap');

:root {
    --bg: #ffffff;
    --bg-secondary: #ffffff;
    --text: #000000;
    --text-bright: #000000;
    --text-muted: #000000;
    --text-dim: #000000;
    --accent: #16A34A;
    --accent-dim: rgba(22, 163, 74, 0.08);
    --accent-hover: #15803D;
    --border: #000000;
    --font: 'Azeret Mono', monospace;
}

/* ─── Reset ─────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ─── Global link hover ──────────────────── */
a {
    transition: color 0.15s ease;
}

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

/* ─── Page Container ─────────────────────── */
.page {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Profile Image ─────────────────────── */
.profile-container {
    margin-bottom: 24px;
}

.profile-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--border);
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: #eeeeee;
    /* Light grey placeholder */
}

/* ─── Navigation ─────────────────────────── */
.nav {
    display: flex;
    gap: 24px;
    margin-bottom: 56px;
    font-size: 13px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link.active {
    color: var(--accent);
}

/* ─── ASCII Hero Name ────────────────────── */
.hero-name {
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 28px;
    min-height: 40px;
}

/* Cursor blink effect */
.ascii-cursor {
    display: inline-block;
    color: #000000;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ─── Hero Sub-text ──────────────────────── */
.hero-sub {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 52px;
    font-size: 13px;
}

.hero-sub p {
    color: var(--text-muted);
    line-height: 1.6;
}

.hero-sub .highlight {
    color: var(--text);
}

/* ─── Section Headers ────────────────────── */
.section-label {
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
    font-weight: 400;
}

/* ─── Bio Section ────────────────────────── */
.bio-section {
    margin-bottom: 52px;
}

.bio-section p:not(.section-label) {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}

.bio-section p:not(.section-label):last-child {
    margin-bottom: 0;
}

/* ─── Experience Section ─────────────────── */
.experience-section {
    margin-bottom: 52px;
}

.exp-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0;
    text-decoration: none;
    transition: color 0.15s ease;
    color: var(--text);
}

.exp-item:hover .exp-title {
    color: var(--accent);
}

.exp-item:hover .exp-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

.exp-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.exp-title {
    font-size: 11.5px;
    color: var(--text);
    transition: color 0.15s ease;
    font-weight: 400;
}

.exp-date {
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.exp-role {
    font-size: 11.5px;
    color: var(--text-muted);
}

.exp-arrow {
    font-size: 11.5px;
    color: var(--text-dim);
    transition: transform 0.15s ease, color 0.15s ease;
    margin-left: 4px;
}

/* ─── Achievements Section ───────────────── */
.achievements-section {
    margin-bottom: 52px;
}

.achievement-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0;
    text-decoration: none;
    transition: color 0.15s ease;
    color: var(--text);
}

.achievement-item:hover .achievement-title {
    color: var(--accent);
}

.achievement-item--static:hover .achievement-title {
    color: var(--text);
    cursor: default;
}

.achievement-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.achievement-title {
    font-size: 11.5px;
    color: var(--text);
    transition: color 0.15s ease;
    font-weight: 400;
}

.achievement-date {
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.achievement-desc {
    font-size: 11.5px;
    color: var(--text-muted);
}

/* ─── Writing / Blog Section ─────────────── */
.writing-section {
    margin-bottom: 52px;
}

.writing-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.writing-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: color 0.15s ease;
}

.writing-item:hover .writing-title {
    color: var(--accent);
}

.writing-index {
    font-size: 11.5px;
    color: var(--text-dim);
    min-width: 24px;
    flex-shrink: 0;
    font-weight: 400;
}

.writing-title {
    font-size: 11.5px;
    color: var(--text);
    transition: color 0.15s ease;
    font-weight: 400;
    flex: 1;
}

.writing-date {
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.view-all-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 11.5px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.view-all-link:hover {
    color: var(--accent);
}

/* ─── Links Section ──────────────────────── */
.links-section {
    margin-bottom: 52px;
}

.links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.link-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
    letter-spacing: 0.01em;
}

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

.link-item svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.link-item:hover svg {
    opacity: 1;
}

/* ─── Projects / Feed Page ───────────────── */
.projects-section {
    margin-bottom: 0;
}

.project-entry {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    display: block;
    transition: color 0.15s ease;
}

.project-entry:hover .project-entry-title {
    color: var(--accent);
}

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

.project-entry-title {
    font-size: 11.5px;
    color: var(--text);
    font-weight: 400;
    transition: color 0.15s ease;
}

.project-entry-year {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 400;
    white-space: nowrap;
}

.project-entry-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.project-tag {
    font-size: 10px;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 2px;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.more-projects {
    margin-top: 16px;
    font-size: 11.5px;
    color: var(--text-muted);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
}

.github-more-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

/* ─── Blog Post Page ─────────────────────── */
.blog-page .page {
    max-width: 680px;
}

.blog-header {
    margin-bottom: 48px;
}

.blog-back {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    transition: color 0.15s ease;
}

.blog-back:hover {
    color: var(--accent);
}

.blog-title {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-date {
    font-size: 12px;
    color: var(--text-muted);
}

.blog-body {
    font-size: 13px;
    line-height: 1.9;
    color: var(--text-muted);
}

.blog-body p {
    margin-bottom: 20px;
}

.blog-body h2 {
    font-size: 15px;
    color: var(--text);
    font-weight: 700;
    margin: 32px 0 12px;
    letter-spacing: 0.01em;
}

.blog-body h3 {
    font-size: 13px;
    color: var(--text);
    font-weight: 700;
    margin: 24px 0 8px;
}

.blog-body a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-dim);
    transition: border-color 0.15s ease;
}

.blog-body a:hover {
    border-color: var(--accent);
}

.blog-body code {
    font-family: var(--font);
    font-size: 12px;
    background: var(--bg-secondary);
    padding: 1px 5px;
    border-radius: 2px;
    color: var(--accent);
}

.blog-body blockquote {
    border-left: 2px solid var(--accent);
    padding-left: 16px;
    margin: 20px 0;
    color: var(--text-muted);
    font-style: italic;
}

/* ─── Footer ─────────────────────────────── */
.footer {
    margin-top: auto;
    padding-top: 48px;
    font-size: 11.5px;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.02em;
}

/* ─── Selection ──────────────────────────── */
::selection {
    background: var(--accent);
    color: #ffffff;
}

/* ─── Scrollbar ──────────────────────────── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* ─── Responsive ─────────────────────────── */
@media (max-width: 600px) {
    .page {
        padding: 32px 20px 60px;
    }

    .nav {
        margin-bottom: 44px;
    }

    .hero-name {
        font-size: 22px;
    }

    .links-row {
        gap: 16px;
    }
}

/* ─── Reduced Motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}