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

:root {
    --bg: #ffffff;
    --bg2: #f8f8f6;
    --ink: #111111;
    --muted: #888884;
    --soft: #e8e8e4;
    --accent: #1a3a6b;
    --accent-light: #eef2f9;
    --accent-mid: #4a6fa5;
    --line: #e4e4e0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
}

.nav-logo span {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    padding: 0.5rem 1.25rem;
}

.nav-cta:hover {
    background: var(--accent-mid) !important;
    color: white !important;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 8rem 4rem 4rem;
    max-width: 1300px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-left {
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding: 0.4rem 0.9rem;
    background: var(--accent-light);
    border: 1px solid rgba(26, 58, 107, 0.15);
}

.hero-tag::before {
    content: '●';
    font-size: 0.5rem;
}

.hero-headline {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    line-height: 1.0;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: var(--ink);
}

.hero-headline em {
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 2.5rem;
    max-width: 420px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
}

.hero-sub strong {
    color: var(--ink);
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 1.75rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-mid);
}

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

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

/* HERO RIGHT – THREE PILLARS */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    min-height: 420px;
}

.pillar-card {
    background: var(--bg);
    padding: 2rem 2.5rem;
    transition: background 0.2s;
    position: relative;
}

.pillar-card:hover {
    background: var(--accent-light);
}

.pillar-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s;
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.pillar-card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.pillar-card p {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.7;
}

/* MARQUEE */
.marquee-wrap {
    overflow: hidden;
    background: var(--accent);
    padding: 0.85rem 0;
}

.marquee-track {
    display: flex;
    animation: marquee 28s linear infinite;
    width: max-content;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 2rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    font-weight: 600;
}

.marquee-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.5rem;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* SECTIONS */
.section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 6rem 4rem;
}

.section-experience {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3rem;
}

.section-testimonials {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3rem;
}

.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
    max-width: 60px;
}

.section-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.02em;
    margin-bottom: 3.5rem;
    color: var(--ink);
    line-height: 1.1;
}

.section-title em {
    font-style: italic;
    color: var(--accent);
}

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 5rem;
}

.stat-cell {
    background: var(--bg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: background 0.2s;
}

.stat-cell:hover {
    background: var(--accent-light);
}

.stat-num {
    font-family: 'Instrument Serif', serif;
    font-size: 2.8rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.stat-desc {
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-text p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.about-text p strong {
    color: var(--ink);
    font-weight: 600;
}

.skills-block {
}

.skills-category {
    margin-bottom: 2rem;
}

.skills-cat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg2);
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s;
}

.skill:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.testimonials-carousel {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
}

.testimonials-track {
    flex: 1;
    min-height: 450px;
    overflow: hidden;
    position: relative;
}

.testimonials-track .testimonial {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.carousel-arrow {
    align-self: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.testimonial {
    padding: 2.5rem 3rem;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    position: relative;
    display: none;
    flex-direction: column;
}

.testimonial.active {
    display: flex;
}

.testimonial-quote {
    font-family: 'Instrument Serif', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ink);
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.2rem;
}

.testimonial-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.co-link {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.co-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* EXPERIENCE */
.exp-table {
    width: 100%;
    border-collapse: collapse;
}

.exp-item {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 3rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.15s;
}

.exp-item:first-child {
    border-top: 1px solid var(--line);
}

.exp-left {
}

.exp-dates {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.exp-co {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.exp-right h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
    color: var(--ink);
}

.exp-right p {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 580px;
}

.exp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.chip {
    font-size: 0.65rem;
    padding: 0.2rem 0.55rem;
    background: var(--accent-light);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(26, 58, 107, 0.12);
}

/* CONTACT */
.contact-section {
    background: var(--accent);
    color: white;
}

.contact-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 6rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.contact-left h2 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: white;
}

.contact-left h2 em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
}

.contact-left p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.9;
    margin-bottom: 2.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-link:hover {
    opacity: 0.7;
}

.cl-label {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    width: 70px;
    font-weight: 600;
}

.cl-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cf-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cf-field label {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.cf-field input,
.cf-field textarea,
.cf-field select {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 0.8rem 1rem;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    appearance: none;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.cf-field input:focus,
.cf-field textarea:focus,
.cf-field select:focus {
    border-color: rgba(255, 255, 255, 0.4);
}

.cf-field select option {
    background: var(--accent);
    color: white;
}

.cf-field textarea {
    resize: vertical;
    min-height: 100px;
}

.cf-submit {
    align-self: flex-start;
    background: white;
    color: var(--accent);
    border: none;
    padding: 0.9rem 2rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.cf-submit:hover {
    background: rgba(255, 255, 255, 0.85);
}

.cf-success {
    display: none;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    font-size: 0.68rem;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tag {
    animation: fadeUp 0.5s ease 0.1s forwards;
}

.hero-headline {
    animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-sub {
    animation: fadeUp 0.6s ease 0.3s forwards;
}

.hero-btns {
    animation: fadeUp 0.5s ease 0.4s forwards;
}

.hero-right {
    animation: fadeUp 0.6s ease 0.3s forwards;
}

.reveal {
    opacity: 1;
    transform: none;
}


/* RESPONSIVE */
@media (max-width: 900px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 5rem 2rem 2rem;
        border-left: 1px solid var(--line);
        transition: right 0.4s ease;
        z-index: 100;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--line);
    }

    .nav-links li:last-child {
        border-bottom: none;
        margin-top: 1rem;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 0.85rem;
        width: 100%;
    }

    .nav-cta {
        background: var(--accent) !important;
        color: white !important;
        padding: 0.9rem 1.5rem !important;
        text-align: center;
        margin-top: 0.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 7rem 1.5rem 3rem;
        gap: 3rem;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .exp-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Testimonials mobile improvements */
    .testimonials-carousel {
        flex-direction: column;
        gap: 1.5rem;
    }

    .testimonials-track {
        min-height: auto;
    }

    .testimonials-track .testimonial {
        position: static;
        height: auto;
    }

    .testimonial {
        padding: 1.75rem 1.5rem;
        display: none;
    }

    .testimonial.active {
        display: flex;
    }

    .testimonial-quote {
        font-size: 0.92rem;
        line-height: 1.75;
        margin-bottom: 1.5rem;
    }

    .testimonial-name {
        font-size: 0.78rem;
    }

    .testimonial-role {
        font-size: 0.64rem;
    }

    /* Arrange arrows horizontally at bottom on mobile */
    .carousel-arrow {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
    }

    .testimonials-carousel {
        display: grid;
        grid-template-columns: 52px 1fr 52px;
        grid-template-rows: auto;
        gap: 0.75rem;
        align-items: center;
    }

    .carousel-arrow-left {
        grid-column: 1;
        grid-row: 1;
    }

    .carousel-arrow-right {
        grid-column: 3;
        grid-row: 1;
    }

    .testimonials-track {
        grid-column: 2;
        grid-row: 1;
    }


    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 1.5rem;
    }

    .cf-row {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 1.25rem 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}