:root {
    --navy: #071833;
    --navy-dark: #041024;
    --teal: #2dd4bf;
    --teal-dark: #1fb4a1;
    --success: #10b981;
    --error: #ef4444;
    --off-white: #f8f9fb;
    --text: #273043;
    --muted: #5b6475;
    --border: rgba(7, 24, 51, 0.1);
    --card-bg: #ffffff;
    --shadow: 0 20px 40px rgba(4, 16, 36, 0.1);
    font-size: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
    color: var(--text);
    background: var(--off-white);
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 1rem;
    background: var(--teal);
    color: #041024;
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

.site-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-dark));
    color: #fff;
    padding: 5rem 0 4rem;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(4, 16, 36, 0.95);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1.5rem, 4vw, 4rem);
    box-shadow: 0 12px 30px rgba(4, 16, 36, 0.25);
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 28px;
    width: auto;
    max-width: 90px;
    display: block;
}

.nav-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links {
    list-style: none;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    background: rgba(7, 24, 51, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transform-origin: top right;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-links.open {
    transform: scaleY(1);
    opacity: 1;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 100%;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.hero {
    padding: clamp(3rem, 10vw, 6rem) clamp(1.5rem, 4vw, 4rem);
}

.hero-content {
    max-width: 820px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: var(--teal);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-top: 0.5rem;
}

.tagline {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.hero-copy {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-cta {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-links {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: #fff;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

.section {
    margin-bottom: 4rem;
    scroll-margin-top: 120px;
}

.section.light {
    background: #fff;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--muted);
}

.section-content {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.timeline {
    margin-top: 2rem;
    border-left: 3px solid var(--border);
    padding-left: 1.5rem;
    display: grid;
    gap: 2rem;
}

.timeline-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.9rem;
    top: 1.5rem;
    width: 14px;
    height: 14px;
    background: var(--teal);
    border: 3px solid #fff;
    border-radius: 50%;
}

.timeline-item h3 {
    font-size: 1.25rem;
}

.timeline-item .role {
    font-weight: 600;
    margin-top: 0.25rem;
}

.timeline-item .meta {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.timeline-item ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    color: var(--muted);
}

.pill-grid {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pill {
    padding: 0.5rem 1rem;
    background: rgba(45, 212, 191, 0.12);
    color: var(--navy);
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.card-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1.25rem;
}

.card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: 0.5rem;
}

.badge-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.badge-grid span {
    display: block;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid var(--border);
    font-weight: 600;
}

.language-list {
    list-style: none;
    margin-top: 1.25rem;
    display: grid;
    gap: 0.5rem;
}

.project-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover,
.project-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px rgba(4, 16, 36, 0.2);
}

.project-label {
    font-size: 0.95rem;
/*    text-transform: uppercase;*/
    letter-spacing: 0.15em;
    color: var(--teal);
}

.project-details {
    list-style: disc;
    margin-left: 1rem;
    color: var(--muted);
    display: grid;
    gap: 0.35rem;
    font-size: 0.95rem;
}

.note {
    color: var(--muted);
    font-size: 0.9rem;
}

.awards-list {
    list-style: none;
    margin-top: 1.25rem;
    display: grid;
    gap: 0.75rem;
}

.contact-grid {
    margin-top: 2rem;
    display: grid;
    gap: 2rem;
}

.contact-grid div {
    display: grid;
    gap: 0.9rem;
}

.contact-btn {
    margin-top: 0.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
    background: var(--teal);
    color: var(--navy-dark);
    box-shadow: 0 15px 30px rgba(45, 212, 191, 0.3);
}

.btn.primary:hover,
.btn.primary:focus-visible {
    transform: translateY(-3px);
    background: var(--teal-dark);
}

.btn.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
    border-color: var(--teal);
    color: var(--teal);
}

.btn.secondary.ghost {
    border-color: rgba(7, 24, 51, 0.3);
    color: var(--navy);
    background: rgba(255, 255, 255, 0.9);
}

.btn.secondary.ghost:hover,
.btn.secondary.ghost:focus-visible {
    border-color: var(--teal);
    color: var(--navy);
}

.btn.tertiary {
    background: rgba(7, 24, 51, 0.07);
    color: var(--navy);
    border: 1px solid transparent;
}

.btn.tertiary:hover,
.btn.tertiary:focus-visible {
    border-color: var(--teal);
    color: var(--teal-dark);
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-6px);
}

@media (min-width: 640px) {
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (min-width: 900px) {
    .nav-toggle {
        display: none;
    }

    .nav-links {
        position: static;
        flex-direction: row;
        background: transparent;
        border: none;
        padding: 0;
        border-radius: 0;
        transform: none;
        opacity: 1;
        gap: 2rem;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .section.light {
        padding: 4rem;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
