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

:root {
    --bg-color: #0D0D0D;
    --text-primary: #F0EEE6;
    --surface: #111111;
    --border-color: #1A1A1A;
    --text-muted: #555555;
    --text-subtle: #333333;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
    width: 100%;
    position: relative;
}

/* Typography */
.hero-text-main {
    font-family: 'Inter', sans-serif;
    font-size: 160px;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: var(--text-primary);
}

.vertical-text {
    font-family: 'Inter', sans-serif;
    font-size: 160px;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    transform: rotate(-90deg);
    transform-origin: center right;
    margin-right: 48px;
    display: inline-block;
}

@media (max-width: 900px) {
    .hero-text-main, .vertical-text {
        font-size: 96px;
    }
}

h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

.label, .section-title, .section-count {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary); /* Brightened from muted */
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    border: 0.5px solid var(--border-color);
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted); /* As seen in screenshots */
    background-color: transparent;
}

/* Navigation */
.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-color);
    border-bottom: 0.5px solid var(--border-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
}

.nav-brand {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 48px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    transition: color 0ms ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-btn {
    background: var(--surface);
    border: 0.5px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    justify-content: space-between;
    padding: 80px 48px;
    border-bottom: 0.5px solid var(--border-color);
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-details {
    margin-top: auto;
}

.hero-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Sections */
.section {
    border-bottom: 0.5px solid var(--border-color);
}

.section-header {
    padding: 24px 48px;
    border-bottom: 0.5px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Experience */
.experience-list {
    display: flex;
    flex-direction: column;
}

.experience-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    padding: 48px;
    border-bottom: 0.5px solid var(--border-color);
    align-items: start;
    transition: background-color 0ms ease;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-item:hover {
    background-color: var(--surface);
}

.exp-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exp-year {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.exp-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    border-radius: 4px; /* Optional slight rounding for logos */
}

.exp-logo-large {
    width: 180px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.exp-company {
    font-size: 32px;
    font-weight: 700;
}

.exp-badge {
    padding: 4px 12px;
    border: 0.5px solid var(--border-color);
    border-radius: 2px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-primary);
}

.exp-role {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.exp-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 600px;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.project-card {
    padding: 48px;
    border-bottom: 0.5px solid var(--border-color);
    border-right: 0.5px solid var(--border-color);
    transition: background-color 0ms ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 500px;
}

.project-card:nth-child(even) {
    border-right: none;
}

.project-card:nth-last-child(-n+2) {
    border-bottom: none;
}

.project-card:hover {
    background-color: var(--surface);
}

.project-index {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.project-title {
    font-size: 32px;
    margin-bottom: 8px;
}

.project-subtitle {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 48px;
}

.project-card-bottom {
    margin-top: auto;
}

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

.project-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    border-bottom: 1px solid var(--text-muted);
    padding-bottom: 2px;
    transition: color 0ms ease, border-color 0ms ease;
}

.project-link:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.project-badge {
    display: inline-block;
    margin-bottom: 32px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.about-left {
    padding: 80px 48px;
    border-right: 0.5px solid var(--border-color);
}

.about-lead {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 500px;
}

.about-right {
    padding: 80px 48px;
}

.about-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 500px;
}

.about-facts {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fact-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
}

.fact-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.fact-value {
    color: var(--text-muted);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.contact-left {
    padding: 80px 48px;
    border-right: 0.5px solid var(--border-color);
    display: flex;
    align-items: center;
}

.contact-heading {
    font-size: 120px;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.contact-right {
    padding: 80px 48px;
    display: flex;
    align-items: center;
}

.contact-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    transition: color 0ms ease;
}

.contact-links a:hover {
    color: var(--text-muted);
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    padding: 24px 48px;
}

.footer-left, .footer-right {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding: 48px 24px;
        gap: 24px;
    }
    .hero-left {
        gap: 32px;
    }
    .hero-text-main {
        font-size: 80px;
    }
    .vertical-text {
        font-size: 80px;
        writing-mode: horizontal-tb;
        transform: none;
        margin-right: 0;
        margin-top: 16px;
    }
    .about-grid, .contact-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    .about-left, .contact-left {
        border-right: none;
        border-bottom: 0.5px solid var(--border-color);
        padding: 48px 24px;
    }
    .about-right, .contact-right {
        padding: 48px 24px;
    }
    .project-card {
        padding: 48px 24px;
        border-right: none !important;
        border-bottom: 0.5px solid var(--border-color) !important;
        min-height: auto;
    }
    .project-card:last-child {
        border-bottom: none !important;
    }
    .experience-item {
        grid-template-columns: 1fr;
        padding: 48px 24px;
        gap: 24px;
    }
    .section-header {
        padding: 24px;
    }
    .nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 24px;
    }
    .nav-right {
        width: 100%;
        justify-content: space-between;
    }
    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
    }
    .contact-heading {
        font-size: 64px;
    }
    .about-lead {
        font-size: 32px;
    }
    .fact-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .footer {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 24px;
        text-align: center;
    }
}
