:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #444444;
    --accent: #1e3a8a;
    --border-light: #eaeaea;
    --font-stack: 'Inter', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.2s;
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.05em;
    text-decoration: none !important;
    color: var(--text-primary) !important;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.nav-links a.nav-cv-btn {
    border: 1px solid var(--accent);
    padding: 0.4rem 1rem !important;
    border-radius: 4px;
    margin-left: 1.5rem;
    color: var(--accent);
    font-weight: 600;
}

.nav-links a.nav-cv-btn:hover {
    background: var(--accent);
    color: white !important;
}

.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin: 1.5rem 0 0.5rem 0;
    color: var(--text-primary);
}

/* Hero subtitle tagline in accent blue */
.hero h2.section-title {
    color: var(--accent);
    border-top: none;
    padding-top: 0;
    margin-bottom: 2rem;
}

/* Fix #4: section-title as block with consistent border */
h2.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    display: block;
    /* was inline-block — now full width */
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 4rem;
    overflow: hidden;
    background: #fcfcfc;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.summary {
    max-width: 700px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    padding-left: 2rem;
    border-left: 4px solid var(--accent);
    /* Visual Anchor */
}

.summary p {
    margin-bottom: 1.5rem;
}

/* Currently Exploring Styles */
.exploring-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.exploring-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.exploring-item {
    font-size: 0.85rem;
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    color: var(--accent);
    font-weight: 500;
}

/* Fix #2: Proper section padding */
.section {
    padding: 4rem 0;
}

.alt-bg {
    background-color: #fafafa;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Architecture Principles */
.principles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.principle-card {
    padding: 1.75rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    position: relative;
    transition: box-shadow 0.2s;
}

.principle-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.principle-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.08;
    line-height: 1;
    margin-bottom: -0.5rem;
    letter-spacing: -0.05em;
}

.principle-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    color: var(--text-primary);
}

.principle-card p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .principles-grid {
        grid-template-columns: 1fr;
    }
}

/* Skills */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    /* Tightened from 1rem */
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Selected Work */
.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.work-card {
    padding: 2rem;
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--accent);
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.work-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.work-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.work-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent);
    background: #eff6ff;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.work-company {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

.work-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.work-challenge {
    font-size: 0.93rem;
    color: #444;
    background: #f8faff;
    border-left: 2px solid var(--accent);
    /* Softened from 3px */
    padding: 0.6rem 0.8rem;
    border-radius: 0 4px 4px 0;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.work-card>p {
    font-size: 0.93rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.work-label {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-right: 4px;
    opacity: 0.8;
}

.work-outcomes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.work-outcomes span {
    font-size: 0.8rem;
    background: #f1f5f9;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    color: #334155;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 162px;
    /* aligns with the right edge of the year column */
    top: 6px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.25;
}

.timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    margin-bottom: 3rem;
    /* Fix #5: was 1.5rem, too tight */
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 160px;
    top: 7px;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.5;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item .year {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 0;
    padding-right: 28px;
    /* space from the connector dot */
}

.role-details h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.3rem;
}

.role-details .company {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.role-details p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Job Bullets */
.job-bullets {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.job-bullets li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.job-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ccc;
    font-weight: bold;
}

.job-bullets li strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Newsletter / Writing Section */
.newsletter-block {
    background-color: #f8fafc;
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
}

.newsletter-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.newsletter-content .subtitle {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.newsletter-content p {
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    font-size: 1.1rem;
}

.writing-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.writing-topics span {
    font-size: 0.8rem;
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Button */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--text-primary);
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Contact */
.contact-block {
    text-align: center;
    padding: 0;
}

.contact-block .links {
    margin-top: 1rem;
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.contact-block a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
    font-size: 1.1rem;
}

.contact-block a:hover {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

/* Footer */
.site-footer {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-light);
    background: #fafafa;
    text-align: center;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.footer-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.footer-copy {
    font-size: 0.75rem;
    color: #aaa;
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Fix #8: Consolidated responsive breakpoints */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        margin-top: 2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        flex-direction: column;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        margin-left: 0;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-light);
        font-size: 1rem;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .hamburger {
        display: flex;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 3rem;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item::before {
        display: none;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .contact-block .links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .site-footer .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .navbar {
        position: relative;
    }
}