/* --------------------------------------------------
   Bengsonic
   Shared stylesheet
-------------------------------------------------- */

:root {
    --color-background: #ffffff;
    --color-background-alt: #f5f7f8;
    --color-text: #172126;
    --color-text-soft: #526168;
    --color-border: #dce2e5;

    --color-primary: #124e66;
    --color-primary-dark: #0b384a;

    --container-width: 1120px;
    --content-width: 760px;

    --radius: 8px;
}


/* Reset */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    color: var(--color-text);
    background: var(--color-background);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 17px;
    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}


/* Layout */

.container {
    width: min(92%, var(--container-width));
    margin-inline: auto;
}

.narrow {
    max-width: var(--content-width);
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--color-background-alt);
}


/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-border);
}

.header-content {
    min-height: 72px;

    display: flex;
    align-items: center;
    gap: 38px;
}

.logo {
    margin-right: auto;

    color: var(--color-text);
    text-decoration: none;

    font-size: 18px;
    font-weight: 750;
    letter-spacing: 0.12em;
}

.main-nav,
.language-nav {
    display: flex;
    align-items: center;
}

.main-nav {
    gap: 28px;
}

.main-nav a,
.language-nav a {
    color: var(--color-text-soft);
    text-decoration: none;

    font-size: 15px;
    font-weight: 500;
}

.main-nav a:hover,
.language-nav a:hover {
    color: var(--color-primary);
}

.language-nav {
    gap: 8px;
}

.language-nav span {
    color: var(--color-border);
}

.language-nav a.active {
    color: var(--color-primary);
    font-weight: 700;
}


/* Hero */

.hero {
    display: flex;
    align-items: center;

    min-height: 680px;
    padding: 120px 0;

    background:
        linear-gradient(
            135deg,
            #edf3f5 0%,
            #ffffff 60%
        );
}

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

.eyebrow,
.section-label {
    margin: 0 0 14px;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 900px;

    margin: 0;

    font-size: clamp(48px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-title {
    max-width: 790px;

    margin: 28px 0 0;

    color: var(--color-text);

    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.35;
    font-weight: 450;
}

.hero-description {
    max-width: 710px;

    margin: 24px 0 0;

    color: var(--color-text-soft);

    font-size: 19px;
}

.button {
    display: inline-block;

    margin-top: 36px;
    padding: 13px 22px;

    color: #ffffff;
    background: var(--color-primary);

    text-decoration: none;
    font-weight: 650;

    border-radius: var(--radius);

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}


/* Typography */

h2 {
    margin: 0 0 28px;

    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h3 {
    margin-top: 0;

    font-size: 21px;
}

p {
    margin-top: 0;
}

.narrow > p:not(.section-label) {
    color: var(--color-text-soft);
    font-size: 18px;
}


/* Expertise */

.competence-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

    margin-top: 46px;
}

.competence-card {
    padding: 30px;

    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.competence-card h3 {
    margin-bottom: 10px;
}

.competence-card p {
    margin: 0;
    color: var(--color-text-soft);
}

.tools {
    margin-top: 64px;
}

.tools h3 {
    margin-bottom: 20px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.tag-list li {
    padding: 8px 13px;

    color: var(--color-text-soft);
    background: #ffffff;

    border: 1px solid var(--color-border);
    border-radius: 999px;

    font-size: 14px;
}


/* Experience */

.timeline {
    margin-top: 50px;
    border-top: 1px solid var(--color-border);
}

.experience {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 35px;

    padding: 35px 0;

    border-bottom: 1px solid var(--color-border);
}

.experience-year {
    color: var(--color-primary);
    font-weight: 700;
}

.experience h3 {
    margin-bottom: 4px;
}

.experience-role {
    margin-bottom: 14px;

    color: var(--color-text-soft);
    font-weight: 600;
}

.experience div:last-child > p:last-child {
    max-width: 700px;
    margin-bottom: 0;

    color: var(--color-text-soft);
}


/* Contact */

.contact-section {
    padding: 110px 0;

    color: #ffffff;
    background: var(--color-primary-dark);
}

.contact-section .section-label {
    color: #9bc2d1;
}

.contact-section h2 {
    color: #ffffff;
}

.contact-section p {
    color: #d5e2e7;
}

.contact-email {
    display: inline-block;

    margin-top: 15px;

    color: #ffffff;

    font-size: clamp(22px, 4vw, 32px);
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}


/* Footer */

.site-footer {
    padding: 28px 0;

    color: var(--color-text-soft);
    background: #ffffff;

    font-size: 14px;
}

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

.footer-content p {
    margin: 0;
}


/* Accessibility */

a:focus-visible {
    outline: 3px solid #5ba3bd;
    outline-offset: 4px;
}


/* Mobile */

@media (max-width: 760px) {

    .header-content {
        min-height: 64px;
        gap: 16px;
    }

    .main-nav {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 80px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .section {
        padding: 72px 0;
    }

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

    .competence-card {
        padding: 24px;
    }

    .experience {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .footer-content {
        flex-direction: column;
        gap: 5px;
    }

}


/* Reduced motion */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }

}