
/* ==============================
   COLOR VARIABLES
================================= */

:root {
    --ink: #172536;
    --muted: #526174;
    --accent: #087e79;
    --line: #dce4ea;
    --surface: #f3f6f8;
    --white: #ffffff;
}


/* ==============================
   GENERAL STYLING
================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 'Segoe UI', sans-serif;
    color: var(--ink);
    line-height: 1.7;
    background: var(--white);
}

a {
    color: inherit;
}

.container {
    width: min(1100px, calc(100% - 48px));
    margin-inline: auto;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.2;
    letter-spacing: -0.045em;
    margin: 0 0 25px;
}

h3 {
    font-size: 1.13rem;
    line-height: 1.4;
    margin: 0 0 5px;
}

p {
    margin: 0 0 16px;
}

:focus-visible {
    outline: 3px solid #168f89;
    outline-offset: 3px;
}


/* ==============================
   NAVIGATION
================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 70px;
}

.brand {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

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


/* ==============================
   HERO SECTION
================================= */

.hero {
    background:
        linear-gradient(
            90deg,
            rgba(12, 25, 39, 0.96),
            rgba(12, 25, 39, 0.78)
        ),
        url('images/image1.jpg') center / cover;

    color: white;
}

.hero-inner {
    padding-block: 110px 120px;
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 750;
    color: var(--accent);
    margin: 0 0 12px;
}

.hero .eyebrow {
    color: #8be4d9;
}

.hero h1 {
    font-size: clamp(3.6rem, 9vw, 7rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
    margin: 20px 0 28px;
}

.hero h1 span {
    color: #59d9c9;
}

.intro {
    font-size: 1.2rem;
    color: #e0e8ef;
    max-width: 610px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}


/* ==============================
   BUTTONS
================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 12px 22px;

    border-radius: 7px;
    border: 1px solid transparent;

    font: inherit;
    font-weight: 650;

    text-decoration: none;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        opacity 0.2s ease;
}

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

.primary:hover {
    background: #07635f;
}

.hero .primary {
    background: #59d9c9;
    color: #102b32;
}

.hero .primary:hover {
    background: #a1eee3;
}

.secondary {
    border-color: #8d9ba9;
    color: white;
}

.secondary:hover {
    background: #ffffff18;
}

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


/* ==============================
   GENERAL SECTIONS
================================= */

.section {
    padding-block: 80px;
}

.alternate {
    background: var(--surface);
}

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


/* ==============================
   ABOUT SECTION
================================= */

.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 65px;
    align-items: center;
}

.portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
    background: var(--surface);
}

.text-link {
    color: var(--accent);
    font-weight: 650;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}


/* ==============================
   EDUCATION AND EXPERIENCE
================================= */

.timeline {
    border-top: 1px solid var(--line);
}

.timeline article {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 28px;
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}

.date {
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--muted);
}

.timeline p {
    margin: 3px 0;
}

.organisation {
    font-weight: 600;
}


/* ==============================
   TECHNICAL SKILLS
================================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.skill {
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.skill:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.skill p {
    margin: 0;
}


/* ==============================
   CONTACT SECTION
================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 70px;
}

.location {
    font-weight: 600;
}

.contact-form {
    display: grid;
    gap: 10px;
}

.contact-form label {
    font-size: 0.88rem;
    font-weight: 650;
}

.contact-form input,
.contact-form textarea {
    font: inherit;
    width: 100%;

    padding: 11px 13px;
    margin-bottom: 8px;

    border: 1px solid #bdc9d3;
    border-radius: 6px;

    background: white;
    color: var(--ink);

    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(8, 126, 121, 0.15);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form small {
    color: var(--muted);
    font-size: 0.78rem;
}

.contact-form button {
    justify-self: start;
}


/* ==============================
   CONTACT FORM STATUS
================================= */

#form-status {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

#form-status:empty {
    display: none;
}

#form-status.sending {
    color: var(--muted);
}

#form-status.success {
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 12px;
}

#form-status.error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 12px;
}


/* ==============================
   FOOTER
================================= */

footer {
    background: #142536;
    color: #d6e0e9;
    padding-block: 23px;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.footer-inner a {
    text-decoration: none;
}

.footer-inner a:hover {
    color: #59d9c9;
}


/* ==============================
   RESPONSIVE DESIGN
================================= */

@media (max-width: 760px) {

    html {
        scroll-padding-top: 130px;
    }

    .container {
        width: calc(100% - 36px);
    }

    .nav {
        padding-block: 12px;
        align-items: flex-start;
    }

    .nav-links {
        gap: 8px 14px;
        justify-content: flex-end;
    }

    .hero-inner {
        padding-block: 80px;
    }

    .hero h1 {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .intro {
        font-size: 1.05rem;
    }

    .section {
        padding-block: 55px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .portrait {
        max-width: 230px;
    }

    .timeline article {
        grid-template-columns: 1fr;
        gap: 6px;
    }

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

    .contact-form button {
        width: 100%;
    }

}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }

}
