@font-face {
    font-family: "Fira Code";
    src: url("./fonts/FiraCode-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fira Code";
    src: url("./fonts/FiraCode-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fira Code";
    src: url("./fonts/FiraCode-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fira Code";
    src: url("./fonts/FiraCode-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --background: #090022;
    --background-secondary: #10052d;
    --primary: #00e6c3;
    --accent: #ff624e;
    --text: #f7f5ff;
    --header-height: 76px;
    --content-width: 1230px;
    --page-gutter: 48px;
    --about-icon-size: 48px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    font-size: 16px;
    background:
        linear-gradient(180deg,
            #090022 0%,
            #10052d 22%,
            #090022 45%,
            #160747 68%,
            #090022 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: var(--text);
    font-family: "Fira Code", monospace;
}

a {
    color: inherit;
    text-decoration: none;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    width: 100%;
    height: var(--header-height);
    padding: 0 max(24px, calc((100% - var(--content-width)) / 2));

    background-color: rgba(9, 0, 34, 0.96);
    backdrop-filter: blur(10px);
}

.header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -14px;

    width: 100%;
    height: 14px;

    background: linear-gradient(to bottom,
            rgba(9, 0, 34, 0.75),
            rgba(9, 0, 34, 0));

    pointer-events: none;
}

.logo {
    color: var(--accent);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 38px;
    margin-left: 64px;
}

.navigation a,
.language-button {
    color: var(--accent);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    transition:
        color 150ms ease,
        transform 150ms ease;
}

.language-button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.navigation a:hover,
.language-button:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.language-button.active {
    color: var(--primary);
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: var(--accent);
    font-size: 16px;
}

.hero {
    min-height: 100vh;
    background-color: var(--background);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    width: min(calc(100% - var(--page-gutter)), var(--content-width));
    min-height: 100vh;
    margin: 0 auto;
}

.hero-content {
    position: relative;
    min-height: 100vh;
}

.hero-text {
    position: absolute;
    left: 0;
    bottom: 7vh;
    z-index: 3;
}

.profession {
    margin-bottom: 6px;
    color: var(--primary);
    font-size: clamp(25px, 3.2vw, 45px);
    font-weight: 600;
    line-height: 1.15;
    text-transform: uppercase;
}

h1 {
    color: var(--primary);
    font-size: clamp(44px, 6vw, 82px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 2px;
}

.hero-image-wrapper {
    position: absolute;
    right: -40px;
    bottom: 0;
    z-index: 2;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    width: min(52vw, 680px);
    height: calc(100% - var(--header-height));
}

.hero-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    max-height: 88vh;
    object-fit: contain;
    object-position: bottom;
}

.contact-button {
    position: absolute;
    top: 31%;
    left: max(2.5vw, 20px);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 114px;
    border: 1px solid var(--primary);
    color: var(--accent);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.contact-button:hover {
    background-color: var(--primary);
    color: var(--background);
}

.scroll-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    width: 30px;
    height: 54px;
    transform: translate(-50%, -50%);
}

.scroll-indicator::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 32px;
    background-color: var(--accent);
    transform: translateX(-50%);
}

.scroll-indicator::after {
    content: "";
    position: absolute;
    bottom: 18px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: translateX(-50%) rotate(45deg);
}

.content-section {
    padding: 120px 48px;
    background-color: var(--background-secondary);
}

.content-section:nth-child(even) {
    background-color: var(--background);
}

.content-section h2 {
    max-width: 850px;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.15;
}

.section-label {
    margin-bottom: 70px;
    color: var(--accent);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1;
    text-align: left;
    font-weight: bold;
}

.about-section {
    padding: 100px 48px;
    background-color: var(--background);
}

.about-container {
    display: grid;
    grid-template-columns: minmax(300px, 490px) minmax(500px, 1fr);
    align-items: center;
    gap: clamp(50px, 7vw, 110px);
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.about-image-wrapper {
    width: 100%;
}

.about-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.93;
    object-fit: cover;
}

.about-content {
    position: relative;
}

.about-title {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1;
    text-align: right;
}

.about-title span {
    margin-left: 24px;
}

.about-description {
    max-width: 690px;
    margin-left: auto;
    color: var(--primary);
    font-size: clamp(16px, 1.2vw, 17px);
    line-height: 1.3;
    text-align: right;
}

.about-details {
    position: relative;
    width: min(100%, 620px);
    height: 300px;
    margin-top: 28px;
    margin-left: auto;
}

.about-intro {
    position: absolute;
    top: 0;
    left: -45px;
    color: var(--accent);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
}

.about-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--primary);
    font-size: 17px;
    line-height: 1.3;
}

.about-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Standort rechts neben „Ich bin“ */
.about-location {
    top: 0;
    left: 245px;
}

/* Remote-Arbeit unten mittig */
.about-remote {
    top: 135px;
    left: 225px;
}

/* Neue Möglichkeiten rechts */
.about-relocate {
    top: 68px;
    right: 25px;
}

/* Pfeil von „Ich bin“ zu Remote */
.arrow-location {
    top: 45px;
    left: 195px;
    width: 38px;
}

/* Pfeil von neuen Möglichkeiten Richtung Remote */
.arrow-remote {
    top: 125px;
    right: 158px;
    width: 38px;
}

/* Pfeil zum Kontakt-Button */
.arrow-talk {
    top: 135px;
    right: 16px;
    width: 42px;
}

.about-arrow {
    position: absolute;
    display: block;
    height: auto;
    object-fit: contain;
}

.about-button {
    position: absolute;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 170px;
    min-height: 52px;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--accent);
    font-size: 16px;
    font-weight: 600;

    transition:
        transform 150ms ease,
        background-color 150ms ease;
}

.about-button:hover {
    background-color: var(--accent);
    color: var(--background);
    transform: translateY(-3px);
}

.about-icon {
    position: relative;
    display: block;
    flex: 0 0 var(--about-icon-size);
    width: var(--about-icon-size);
    height: var(--about-icon-size);
}

.about-icon::before,
.about-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform-origin: center;
    transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity;
}

.about-icon::before {
    opacity: 1;
}

.about-icon::after {
    opacity: 0;
}

.about-item:hover .about-icon::before {
    opacity: 0;
}

.about-item:hover .about-icon::after {
    opacity: 1;
}

.location-icon::before {
    background-image: url("./img/location.svg");
}

.location-icon::after {
    background-image: url("./img/locationhover.svg");
    transform: scale(1.3) translate(0, 3.95px);
}

.remote-icon::before {
    background-image: url("./img/iconRemote.svg");
}

.remote-icon::after {
    background-image: url("./img/iconRemoteHover.svg");
    transform: scale(1.109) translate(-3.2px, -2.05px);
}

.relocate-icon::before {
    background-image: url("./img/koffer.svg");
}

.relocate-icon::after {
    background-image: url("./img/kofferHover.svg");
    transform: scale(1.05) translate(0, 1px);
}

.skills-container {
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.skills-section {
    display: flex;
    flex-direction: column;
}

.skills-section h2 {
    margin-bottom: 64px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 72px 80px;
    width: 100%;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    text-align: center;
}

.skill-item img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    transition: transform 180ms ease;
}

.skill-item span {
    color: #00f4c4;
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
}

/* .skill-item:hover img {
    transform: scale(1.12);
} */

.skill-item-challenge img {
    width: 88px;
    height: 88px;
}

.projects-section {
    padding: 100px 48px;
    background-color: var(--background);
}

.projects-container {
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.projects-title {
    margin-bottom: 70px;
    color: var(--accent);
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1;
    text-align: center;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(380px, 0.95fr);
    align-items: center;
    gap: clamp(50px, 7vw, 90px);
}

.project-preview {
    width: 100%;
    max-width: 590px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.project-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-content h3 {
    margin-bottom: 18px;
    color: var(--primary);
    font-size: clamp(38px, 4vw, 54px);
    line-height: 1;
}

.project-technologies {
    margin-bottom: 38px;
    color: var(--primary);
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.5;
}

.project-description {
    max-width: 560px;
    margin-bottom: 44px;
    color: var(--primary);
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.45;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.project-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    min-height: 54px;
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 600;
    transition:
        color 450ms ease,
        transform 450ms ease;
}

.project-button-outline {
    border: 1px solid var(--primary);
    color: var(--accent);
}

.project-button-outline:hover {
    color: var(--primary);
    transition: color 450ms ease, transform 450ms ease;
}

.project-button-filled {
    border: 1px solid var(--primary);
    background-color: var(--primary);
    color: var(--background);
}

.project-button-filled:hover {
    color: var(--accent);
}

.project-card+.project-card {
    margin-top: 80px;
}

.project-card-reverse .project-preview {
    grid-column: 2;
    grid-row: 1;
}

.project-card-reverse .project-content {
    grid-column: 1;
    grid-row: 1;
}

.project-insights {
    position: relative;
    width: 100%;
    margin-top: 110px;
    padding-top: 42px;
}

.project-insights-title {
    margin-bottom: 38px;
    color: var(--accent);
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 600;
    line-height: 1.35;
}

.project-insights-title span {
    display: inline;
    color: var(--accent);
    font-size: inherit;
    font-weight: inherit;
}

.project-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(50px, 7vw, 110px);
    padding-left: 120px;
}

.project-insight {
    position: relative;
}

.project-insight h3 {
    margin-bottom: 6px;
    color: var(--accent);
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 600;
    line-height: 1.2;
}

.project-insight-label {
    margin-bottom: 30px;
    color: var(--primary);
    font-size: clamp(16px, 1.3vw, 17px);
    line-height: 1.4;
}

.project-insight-text {
    color: var(--primary);
    font-size: clamp(16px, 1.3vw, 17px);
    line-height: 1.45;
}


.project-insights-arrow {
    position: absolute;
    top: 112px;
    left: 4px;
    display: block;
    width: 48px;
    height: auto;
    transform: rotate(-32deg);
}

.contact-section {
    position: relative;
    padding: 100px 48px 60px;
    background-color: var(--background-secondary);
}

.contact-container {
    position: relative;
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.contact-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    align-items: end;
    gap: clamp(50px, 7vw, 100px);
    margin-bottom: 34px;
}

.contact-title-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 18px;
}

.contact-title {
    color: var(--accent);
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 600;
    line-height: 1;
}

.contact-title-arrow {
    display: block;
    width: 72px;
    height: auto;
}

.contact-description {
    max-width: 560px;
    color: var(--primary);
    font-size: clamp(16px, 1.3vw, 17px);
    line-height: 1.45;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 2px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--primary);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.4;
    transition:
        color 150ms ease,
        transform 150ms ease;
}

.contact-detail:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.contact-detail strong {
    font-weight: 600;
}

.contact-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    color: var(--accent);
    font-size: 24px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 40px;
}

.contact-form-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-field {
    position: relative;
}

.contact-field-error {
    display: block;
    min-height: 20px;
    margin-top: 6px;
    color: var(--accent);
    font-size: 16px;
    line-height: 1.4;
}

.contact-field label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.contact-field input,
.contact-field textarea {
    display: block;
    width: 100%;
    border: 1px solid var(--primary);
    border-radius: 0;
    outline: none;
    background-color: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease,
        background-color 150ms ease;
}

.contact-field input {
    height: 58px;
    padding: 0 16px;
}

.contact-field textarea {
    min-height: 146px;
    padding: 15px 16px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: rgba(0, 230, 195, 0.72);
}

.contact-field input:hover,
.contact-field textarea:hover {
    border-color: var(--accent);
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 98, 78, 0.12);
    background-color: rgba(255, 255, 255, 0.02);
}

.contact-field input.is-invalid,
.contact-field textarea.is-invalid {
    border-color: var(--accent);
}

.contact-field input:-webkit-autofill,
.contact-field input:-webkit-autofill:hover,
.contact-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    border-color: var(--primary);
    box-shadow: 0 0 0 1000px var(--background) inset;
    transition: background-color 9999s ease-out;
}

.contact-form-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-top: 34px;
}

.contact-form-status-success {
    color: var(--primary);
}

.contact-form-status-error {
    color: var(--accent);
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 760px;
    color: var(--primary);
    font-size: 16px;
    line-height: 1.45;
    cursor: pointer;
}

.privacy-field {
    flex: 1 1 auto;
    max-width: 760px;
}

.privacy-field .contact-field-error {
    padding-left: 28px;
}

.privacy-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.privacy-checkbox-control {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid var(--accent);
}

.privacy-checkbox input:checked+.privacy-checkbox-control {
    background-color: var(--accent);
}

.privacy-checkbox input:checked+.privacy-checkbox-control::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border-right: 2px solid var(--background);
    border-bottom: 2px solid var(--background);
    transform: rotate(45deg);
}

.privacy-checkbox input:focus-visible+.privacy-checkbox-control {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.privacy-checkbox a {
    color: var(--accent);
}

.privacy-checkbox a:hover {
    text-decoration: underline;
}

.contact-submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 54px;
    padding: 12px 24px;
    border: 1px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        color 150ms ease,
        border-color 150ms ease,
        background-color 150ms ease,
        transform 150ms ease;
}

.contact-submit-button:not(:disabled):hover {
    border-color: var(--accent);
    background-color: var(--accent);
    color: var(--background);
    transform: translateY(-3px);
}

.contact-submit-button:disabled {
    border-color: rgba(247, 245, 255, 0.3);
    color: rgba(247, 245, 255, 0.4);
    cursor: not-allowed;
    background-color: transparent;
    transform: none;
}

.contact-form-status {
    min-height: 24px;
    margin-top: 18px;
    color: var(--primary);
    font-size: 16px;
}

.contact-scroll-top {
    position: absolute;
    top: 132px;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 58px;
    color: var(--accent);
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    transition:
        color 150ms ease,
        transform 150ms ease;
}

.contact-scroll-top:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

.footer {
    padding: 48px;
    background-color: var(--background-secondary);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 40px;
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.footer-brand {
    justify-self: start;
}

.footer-logo {
    display: inline-block;
    color: var(--accent);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    transition:
        color 150ms ease,
        transform 150ms ease;
}

.footer-logo:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-role {
    margin-top: 6px;
    color: var(--accent);
    font-size: 16px;
    text-transform: uppercase;
}

.footer-center {
    text-align: center;
}

.footer-copyright {
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 16px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.footer-legal a {
    color: var(--accent);
    font-size: 16px;
    transition: color 150ms ease;
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-socials {
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 24px;
}

.footer-social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: transform 150ms ease;
}

.footer-social-link:hover {
    transform: translateY(-3px);
}

.footer-social-icon {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 180ms ease;
}

.footer-social-icon-default {
    opacity: 1;
}

.footer-social-icon-hover {
    opacity: 0;
}

.footer-social-link:hover .footer-social-icon-default {
    opacity: 0;
}

.footer-social-link:hover .footer-social-icon-hover {
    opacity: 1;
}

.burger-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-left: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.burger-icon {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

@media only screen and (max-width: 900px) {

    .hero-inner {
        width: min(100% - 32px, var(--content-width));
    }

    .navigation {
        gap: 20px;
        margin-left: 34px;
    }

    .hero-image-wrapper {
        right: -5%;
        width: 60vw;
        opacity: 0.78;
    }

    .contact-button,
    .scroll-indicator {
        display: none;
    }

    .hero-text {
        bottom: 45px;
    }
}

@media only screen and (max-width: 700px) {
    :root {
        --header-height: 68px;
    }

    .header {
        position: fixed;
        padding: 0 16px;
        background-color: rgba(9, 0, 34, 0.92);
        backdrop-filter: blur(10px);
    }

    .logo {
        font-size: 21px;
    }

    .navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        z-index: 999;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 42px;

        height: 416px;
        margin-left: 0;
        padding: 42px 20px 92px;

        background: linear-gradient(145deg,
                var(--background),
                #1b0b5a);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);

        transition:
            opacity 180ms ease,
            visibility 180ms ease,
            transform 180ms ease;
    }

    .navigation a {
        color: var(--accent);
        font-size: 18px;
        font-weight: 600;
    }

    .header.menu-open .navigation {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .burger-button {
        display: flex;
        margin-left: auto;
    }

    .language-switch {
        position: fixed;
        top: calc(var(--header-height) + 330px);
        left: 50%;
        z-index: 1001;

        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: 0;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-50%) translateY(-12px);

        transition:
            opacity 180ms ease,
            visibility 180ms ease,
            transform 180ms ease;
    }

    .header.menu-open .language-switch {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .hero,
    .hero-inner,
    .hero-content {
        min-height: 100svh;
    }

    .hero-inner {
        width: min(100% - 32px, 390px);
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-top: var(--header-height);
    }

    .hero-image-wrapper {
        position: static;
        width: 100%;
        height: auto;
        margin-top: 28px;
        opacity: 1;
    }

    .hero-image {
        width: 100%;
        max-height: 56vh;
    }

    .hero-text {
        position: static;
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }

    .profession {
        font-size: clamp(20px, 6vw, 28px);
    }

    h1 {
        max-width: 100%;
        font-size: clamp(34px, 10vw, 48px);
        overflow-wrap: break-word;
    }

    .image-background {
        width: 70%;
    }

    .content-section {
        padding: 90px 20px;
    }

    .footer {
        padding: 44px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 30px;
    }

    .footer-brand,
    .footer-socials {
        justify-self: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-socials {
        order: 2;
    }

    .footer-center {
        order: 3;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 14px 24px;
    }
}

@media only screen and (max-height: 620px) and (orientation: landscape) {

    .hero,
    .hero-inner,
    .hero-content {
        min-height: 620px;
    }

    .hero-image-wrapper {
        width: 43vw;
    }

    .profession {
        font-size: 28px;
    }

    h1 {
        font-size: 52px;
    }
}

@media only screen and (min-width: 1440px) {

    .hero-inner {
        width: var(--content-width);
    }

    .hero-content {
        position: relative;
        display: block;
        min-height: 100vh;
    }

    .hero-text {
        position: absolute;
        top: 18vh;
        left: 0;
        bottom: auto;
    }

    .profession {
        font-size: 34px;
    }

    h1 {
        font-size: 58px;
    }

    .contact-button {
        position: absolute;
        top: 38vh;
        left: 80px;
        width: 120px;
        height: 38px;
        writing-mode: horizontal-tb;
    }

    .scroll-indicator {
        position: absolute;
        top: 50%;
        left: 165px;
    }

    .hero-image-wrapper {
        right: -40px;
        bottom: 0;
        width: 700px;
        height: 84vh;
    }

    .hero-image {
        width: 100%;
        max-height: 84vh;
    }
}

@media only screen and (min-width: 1800px) {
    .hero-text {
        top: 17vh;
    }

    .hero-image-wrapper {
        right: -70px;
        width: 760px;
        height: 88vh;
    }

    .hero-image {
        max-height: 88vh;
    }

    .contact-button {
        left: 115px;
    }

    .scroll-indicator {
        left: 200px;
    }
}

@media only screen and (max-width: 1000px) {
    .about-container {
        grid-template-columns: 1fr 1.2fr;
        gap: 45px;
    }

    .about-description {
        text-align: left;
    }

    .about-title {
        text-align: left;
    }

    .about-details {
        min-height: auto;
        margin-top: 35px;
    }

    .about-intro,
    .about-item,
    .about-arrow {
        position: static;
    }

    .about-intro {
        margin-bottom: 25px;
    }

    .about-item {
        margin-bottom: 20px;
    }

    .about-arrow {
        display: none;
    }

    .about-button {
        position: static;
        margin-top: 30px;
        margin-left: 0;
    }

    .project-card {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .project-preview {
        max-width: 700px;
        margin: 0 auto;
    }

    .project-content {
        max-width: 700px;
        margin: 0 auto;
    }

    .project-card-reverse .project-preview,
    .project-card-reverse .project-content {
        grid-column: auto;
        grid-row: auto;
    }

    .project-insights-grid {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-left: 0;
    }

    .project-insights-arrow {
        display: none;
    }

    .project-insight-label {
        margin-bottom: 16px;
    }

    .contact-header {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 35px;
    }

    .contact-details {
        padding-right: 60px;
    }

    .contact-scroll-top {
        top: 190px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media only screen and (max-width: 700px) {
    .about-section {
        padding: 90px 20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 45px;
        min-height: auto;
    }

    .about-image-wrapper {
        max-width: 460px;
        margin: 0 auto;
    }

    .about-title span {
        margin-left: 8px;
    }

    .about-description {
        font-size: 16px;
    }

    .about-item {
        font-size: 16px;
    }

    .about-item img {
        width: 40px;
        height: 40px;
    }

    .projects-section {
        min-height: auto;
        padding: 90px 20px;
    }

    .projects-title {
        margin-bottom: 48px;
        text-align: left;
    }

    .project-card {
        gap: 34px;
    }

    .project-technologies {
        margin-bottom: 24px;
    }

    .project-description {
        margin-bottom: 32px;
    }

    .project-links {
        gap: 14px;
    }

    .project-button {
        min-width: 112px;
        min-height: 48px;
        padding: 10px 18px;
        font-size: 16px;
    }

    .project-card+.project-card {
        margin-top: 55px;
    }

    .project-insights {
        margin-top: 75px;
        padding-top: 32px;
    }

    .project-insights-title {
        margin-bottom: 34px;
    }

    .contact-section {
        min-height: auto;
        padding: 90px 20px;
    }

    .contact-title-wrapper {
        gap: 18px;
    }

    .contact-title-arrow {
        width: 52px;
    }

    .contact-description {
        font-size: 16px;
    }

    .contact-details {
        gap: 14px;
        padding-right: 45px;
    }

    .contact-detail {
        align-items: flex-start;
        gap: 12px;
        font-size: 16px;
        overflow-wrap: anywhere;
    }

    .contact-form-column {
        gap: 22px;
    }

    .contact-field input {
        height: 54px;
    }

    .contact-field textarea {
        min-height: 160px;
    }

    .contact-form-footer {
        flex-direction: column;
        gap: 28px;
    }

    .contact-submit-button {
        align-self: flex-end;
    }

    .contact-scroll-top {
        top: 205px;
        width: 34px;
        font-size: 38px;
    }
}

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 56px 40px;
    }
}

@media (max-width: 600px) {
    .skills-section h2 {
        margin-bottom: 44px;
    }

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

    .skill-item img {
        width: 60px;
        height: 60px;
    }

    .skill-item span {
        font-size: 16px;
    }
}

@media only screen and (min-width: 1200px) {
    .project-insights-title {
        white-space: nowrap;
    }
}

@media only screen and (max-width: 700px) {

    .skills-container,
    .projects-container,
    .contact-container {
        width: min(100% - 32px, 390px);
    }

    .section-label,
    .projects-title {
        text-align: center;
    }

    .project-card {
        text-align: center;
    }

    .project-content,
    .project-preview {
        width: 100%;
        max-width: 390px;
    }

    .project-links {
        justify-content: center;
    }
}

@media only screen and (max-width: 700px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

}

@media only screen and (max-width: 700px) {
    .about-image-wrapper {
        display: none;
    }

    .about-content,
    .about-title,
    .about-description,
    .about-details,
    .about-intro,
    .about-item {
        text-align: center;
    }

    .about-description {
        margin-right: auto;
        margin-left: auto;
    }

    .about-details {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: auto;
        margin-right: auto;
        margin-left: auto;
    }

    .about-intro {
        width: 100%;
        margin-bottom: 28px;
    }

    .about-item {
        justify-content: center;
        width: 100%;
    }

    .about-button {
        margin-right: auto;
        margin-left: auto;
    }

    .section-label,
    .projects-title,
    .project-content,
    .project-description,
    .project-technologies,
    .contact-title,
    .contact-description,
    .contact-details,
    .footer,
    .footer-center {
        text-align: center;
    }

    .contact-title-wrapper {
        justify-content: center;
    }

    .contact-detail {
        justify-content: center;
        text-align: center;
    }

    .project-links {
        justify-content: center;
    }
}

@media only screen and (max-width: 700px) {
    .project-insights {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: none;
        -webkit-overflow-scrolling: touch;
        padding: 32px 16px 22px;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .project-insights::-webkit-scrollbar {
        display: none;
    }

    .project-insights-title {
        width: calc(100vw - 32px);
        margin-bottom: 32px;
        text-align: center;
        white-space: normal;
    }

    .project-insights-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 24px;
        width: max-content;
        padding-left: 0;
    }

    .project-insight {
        flex: 0 0 260px;
        padding: 24px 20px;
        border: 1px solid var(--primary);
        background-color: rgba(16, 5, 45, 0.78);
        text-align: center;
    }

    .project-insight h3,
    .project-insight-label,
    .project-insight p {
        text-align: center;
    }
}

.skills-mobile-cta {
    display: none;
}

@media only screen and (max-width: 700px) {
    .skills-mobile-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 48px;
        text-align: center;
    }

    .skills-mobile-arrow {
        display: block;
        width: 16px;
        height: auto;
        margin-bottom: 22px;
    }

    .skills-mobile-text {
        max-width: 330px;
        margin-bottom: 26px;
        color: var(--primary);
        font-size: 16px;
        line-height: 1.35;
        text-align: center;
    }

    .skills-mobile-button {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 138px;
        min-height: 48px;
        padding: 10px 20px;
        background-color: var(--primary);
        color: var(--background);
        font-size: 16px;
        font-weight: 500;
    }
}

body {
    background-color: var(--background);
}

main {
    background:
        radial-gradient(circle at 85% 55%,
            rgba(54, 16, 190, 0.75) 0%,
            rgba(26, 7, 92, 0.45) 22%,
            rgba(9, 0, 34, 0) 48%),
        linear-gradient(180deg,
            #090022 0%,
            #0d032c 30%,
            #130640 58%,
            #090022 100%);
}

.hero,
.about-section,
.content-section,
.content-section:nth-child(even),
.skills-section,
.projects-section,
.contact-section {
    background-color: transparent;
    background-image: none;
}

/* Subtle scroll reveals */
.scroll-reveal {
    --reveal-order: 0;
    opacity: 0;
    translate: 0 42px;
    scale: 0.985;
    transition:
        opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
        translate 900ms cubic-bezier(0.22, 1, 0.36, 1),
        scale 900ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--reveal-order) * 80ms);
    will-change: opacity, translate, scale;
}

.scroll-reveal.is-visible {
    opacity: 1;
    translate: 0 0;
    scale: 1;
}

.about-image-wrapper.scroll-reveal,
.project-card:nth-of-type(even).scroll-reveal {
    translate: -44px 20px;
}

.about-image-wrapper.scroll-reveal.is-visible,
.project-card:nth-of-type(even).scroll-reveal.is-visible {
    translate: 0 0;
}

.about-content.scroll-reveal,
.project-card:nth-of-type(odd).scroll-reveal,
.contact-form.scroll-reveal {
    translate: 44px 20px;
}

.about-content.scroll-reveal.is-visible,
.project-card:nth-of-type(odd).scroll-reveal.is-visible,
.contact-form.scroll-reveal.is-visible {
    translate: 0 0;
}

@media (max-width: 700px) {
    .scroll-reveal,
    .about-image-wrapper.scroll-reveal,
    .about-content.scroll-reveal,
    .project-card:nth-of-type(even).scroll-reveal,
    .project-card:nth-of-type(odd).scroll-reveal,
    .contact-form.scroll-reveal {
        translate: 0 28px;
    }

    .scroll-reveal.is-visible,
    .about-image-wrapper.scroll-reveal.is-visible,
    .about-content.scroll-reveal.is-visible,
    .project-card:nth-of-type(even).scroll-reveal.is-visible,
    .project-card:nth-of-type(odd).scroll-reveal.is-visible,
    .contact-form.scroll-reveal.is-visible {
        translate: 0 0;
    }
}

/* Balanced scaling for large desktop and ultra-wide displays */
@media only screen and (min-width: 1600px) {
    :root {
        --content-width: 1500px;
        --page-gutter: 96px;
        --header-height: 84px;
        --about-icon-size: 56px;
    }

    body {
        font-size: 18px;
    }

    .header {
        padding-right: max(48px, calc((100% - var(--content-width)) / 2));
        padding-left: max(48px, calc((100% - var(--content-width)) / 2));
    }

    .logo,
    .footer-logo {
        font-size: 34px;
    }

    .navigation a,
    .language-button,
    .language-switch,
    .footer-role,
    .footer-copyright,
    .footer-legal a {
        font-size: 18px;
    }

    .navigation {
        gap: 46px;
        margin-left: 80px;
    }

    .hero-text {
        top: 17vh;
    }

    .profession {
        font-size: 44px;
    }

    h1 {
        font-size: 76px;
    }

    .hero-image-wrapper {
        right: -30px;
        width: 800px;
    }

    .content-section,
    .about-section,
    .projects-section {
        padding: 130px 72px;
    }

    .contact-section {
        padding: 130px 72px 80px;
    }

    .section-label,
    .about-title,
    .projects-title,
    .contact-title {
        font-size: 72px;
    }

    .about-container {
        grid-template-columns: minmax(420px, 590px) minmax(620px, 1fr);
    }

    .about-description,
    .project-technologies,
    .project-description,
    .project-insight-label,
    .project-insight-text,
    .contact-description,
    .contact-detail,
    .privacy-checkbox,
    .contact-field-error,
    .contact-form-status {
        font-size: 18px;
    }

    .about-description {
        max-width: 780px;
    }

    .about-details {
        width: min(100%, 700px);
    }

    .skill-item img,
    .skill-item-challenge img {
        width: 104px;
        height: 104px;
    }

    .skill-item span {
        font-size: 20px;
    }

    .skills-grid {
        gap: 88px 100px;
    }

    .project-card {
        grid-template-columns: minmax(560px, 1.1fr) minmax(480px, 0.9fr);
        gap: 110px;
    }

    .project-preview {
        max-width: 720px;
    }

    .project-description,
    .contact-description {
        max-width: 660px;
    }

    .project-content h3 {
        font-size: 60px;
    }

    .project-button,
    .about-button,
    .contact-submit-button,
    .contact-field input,
    .contact-field textarea {
        font-size: 18px;
    }

    .project-insights-title {
        font-size: 28px;
    }

    .project-insight h3 {
        font-size: 28px;
    }

    .footer {
        padding: 60px 72px;
    }
}

@media only screen and (min-width: 2400px) {
    :root {
        --content-width: 1800px;
        --page-gutter: 144px;
        --header-height: 92px;
        --about-icon-size: 64px;
    }

    body {
        font-size: 20px;
    }

    .navigation a,
    .language-button,
    .language-switch,
    .footer-role,
    .footer-copyright,
    .footer-legal a {
        font-size: 20px;
    }

    .profession {
        font-size: clamp(52px, 1.5vw, 68px);
    }

    h1 {
        font-size: clamp(92px, 3.2vw, 132px);
    }

    .hero-image-wrapper {
        right: -60px;
        width: clamp(940px, 24vw, 1200px);
        height: 90vh;
    }

    .hero-image {
        max-height: 90vh;
    }

    .content-section,
    .about-section,
    .projects-section {
        padding: 160px 96px;
    }

    .contact-section {
        padding: 160px 96px 100px;
    }

    .section-label,
    .about-title,
    .projects-title,
    .contact-title {
        font-size: 84px;
    }

    .about-description,
    .project-technologies,
    .project-description,
    .project-insight-label,
    .project-insight-text,
    .contact-description,
    .contact-detail,
    .privacy-checkbox,
    .contact-field-error,
    .contact-form-status,
    .project-button,
    .about-button,
    .contact-submit-button,
    .contact-field input,
    .contact-field textarea {
        font-size: 20px;
    }

    .about-container {
        grid-template-columns: minmax(520px, 700px) minmax(720px, 1fr);
        gap: 150px;
    }

    .about-description {
        max-width: 900px;
    }

    .project-card {
        grid-template-columns: minmax(680px, 1.1fr) minmax(560px, 0.9fr);
        gap: 140px;
    }

    .project-preview {
        max-width: 840px;
    }

    .project-description,
    .contact-description {
        max-width: 760px;
    }

    .project-content h3 {
        font-size: 68px;
    }

    .skill-item img,
    .skill-item-challenge img {
        width: 120px;
        height: 120px;
    }

    .skill-item span {
        font-size: 22px;
    }

    .project-insights-title,
    .project-insight h3 {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-icon::before,
    .about-icon::after {
        transition: none;
    }

    .scroll-reveal {
        opacity: 1;
        translate: 0 0;
        scale: 1;
        transition: none;
    }
}
