/* =========================================================
   VARIABLES
========================================================= */

:root {
    --navy: #0b1f3a;
    --navy-light: #253a57;

    --background: #f5f3ef;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.08);

    --text: #0b1f3a;
    --secondary-text: #6b7686;

    --border: rgba(11, 31, 58, 0.12);
    --portfolio-border: rgba(255, 255, 255, 0.14);

    --max-width: 1200px;

    --radius-large: 28px;
    --radius-medium: 22px;
    --radius-small: 16px;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--text);

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


img {
    display: block;
    max-width: 100%;
}


a {
    color: inherit;
}


.section-container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}


/* =========================================================
   NAVIGATION
========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    background: rgba(245, 243, 239, 0.84);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-bottom: 1px solid var(--border);

    z-index: 1000;
}


.nav-container {
    width: min(90%, var(--max-width));

    height: 70px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.logo {
    text-decoration: none;

    color: var(--navy);

    font-size: 16px;
    font-weight: 650;

    letter-spacing: -0.01em;
}


nav {
    display: flex;
    align-items: center;

    gap: 36px;
}


nav a {
    text-decoration: none;

    color: var(--secondary-text);

    font-size: 14px;
    font-weight: 500;

    transition: color 0.2s ease;
}


nav a:hover {
    color: var(--navy);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 150px 5% 100px;
}


.hero-content {
    width: min(100%, var(--max-width));

    margin: 0 auto;
}


.eyebrow,
.section-label {
    margin-bottom: 22px;

    color: var(--secondary-text);

    text-transform: uppercase;

    letter-spacing: 0.13em;

    font-size: 12px;
    font-weight: 650;
}


.hero h1 {
    max-width: 1050px;

    font-size: clamp(56px, 8vw, 108px);

    line-height: 0.96;

    letter-spacing: -0.055em;

    font-weight: 650;
}


.hero h1 span {
    display: block;

    color: var(--secondary-text);
}


.hero-description {
    max-width: 720px;

    margin-top: 42px;

    color: var(--secondary-text);

    font-size: clamp(18px, 2vw, 23px);

    line-height: 1.55;

    letter-spacing: -0.015em;
}


.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 42px;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 13px 23px;

    border-radius: 999px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 550;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}


.button:hover {
    transform: translateY(-2px);
}


.primary-button {
    background: var(--navy);
    color: #ffffff;
}


.primary-button:hover {
    background: var(--navy-light);
}


.secondary-button {
    border: 1px solid var(--border);

    background: rgba(255, 255, 255, 0.5);
}


.secondary-button:hover {
    background: #ffffff;
}


/* =========================================================
   ABOUT
========================================================= */

.section {
    padding: 150px 0;
}


.about-grid {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 100px;

    align-items: center;
}


.about-image img {
    width: 100%;

    aspect-ratio: 4 / 5;

    object-fit: cover;
    object-position: center top;

    border-radius: var(--radius-large);
}


.about-content h2 {
    max-width: 730px;

    margin-bottom: 34px;

    font-size: clamp(38px, 5vw, 66px);

    font-weight: 600;

    line-height: 1.05;

    letter-spacing: -0.04em;
}


.about-content > p:not(.section-label) {
    max-width: 710px;

    margin-bottom: 21px;

    color: var(--secondary-text);

    font-size: 18px;

    line-height: 1.72;
}


/* =========================================================
   INTERESTS & SKILLS
========================================================= */

.skills-heading {
    margin-top: 55px;
}


.skills-heading .section-label {
    margin-bottom: 18px;
}


.interests {
    border-top: 1px solid var(--border);
}


.interest {
    display: flex;

    align-items: center;

    gap: 28px;

    padding: 18px 0;

    border-bottom: 1px solid var(--border);
}


.interest span {
    flex-shrink: 0;

    width: 30px;

    color: var(--secondary-text);

    font-size: 12px;
}


.interest p {
    color: var(--navy);

    font-size: 17px;
    font-weight: 500;
}


/* =========================================================
   PORTFOLIO
========================================================= */

.portfolio-section {
    padding: 150px 0;

    background: var(--navy);

    color: #ffffff;
}


.portfolio-section .section-label {
    color: rgba(255, 255, 255, 0.48);
}


.portfolio-heading {
    margin-bottom: 120px;
}


.portfolio-heading h2 {
    margin-bottom: 27px;

    font-size: clamp(60px, 9vw, 110px);

    font-weight: 600;

    line-height: 0.94;

    letter-spacing: -0.055em;
}


.portfolio-heading > p:last-child {
    max-width: 680px;

    color: rgba(255, 255, 255, 0.6);

    font-size: 20px;

    line-height: 1.6;
}


/* =========================================================
   PROJECT LAYOUT
========================================================= */

.project {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 80px;

    align-items: start;

    padding: 110px 0;

    border-top: 1px solid var(--portfolio-border);
}


.project.reverse {
    grid-template-columns: 1.1fr 0.9fr;
}


.project.reverse .project-info {
    order: 2;
}


.project.reverse .project-gallery {
    order: 1;
}


/* =========================================================
   PROJECT TEXT
========================================================= */

.project-info {
    position: sticky;

    top: 115px;
}


.project-number {
    margin-bottom: 28px;

    color: rgba(255, 255, 255, 0.35);

    font-size: 13px;

    letter-spacing: 0.1em;
}


.project-info h3 {
    margin-bottom: 18px;

    font-size: clamp(38px, 4vw, 58px);

    font-weight: 550;

    line-height: 1.03;

    letter-spacing: -0.035em;
}


.project-category {
    margin-bottom: 35px;

    color: rgba(255, 255, 255, 0.43);

    font-size: 14px;

    line-height: 1.5;
}


.project-description {
    max-width: 510px;

    margin-bottom: 18px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 17px;

    line-height: 1.72;
}


/* =========================================================
   PROJECT VIDEO / EXTERNAL LINK
========================================================= */

.project-link {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 16px;

    padding: 11px 17px;

    border: 1px solid rgba(255, 255, 255, 0.24);

    border-radius: 999px;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 550;

    background: rgba(255, 255, 255, 0.07);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.project-link:hover {
    background: rgba(255, 255, 255, 0.14);

    border-color: rgba(255, 255, 255, 0.4);

    transform: translateY(-2px);
}


/* =========================================================
   GENERAL PROJECT GALLERY
========================================================= */

.project-gallery {
    display: grid;

    gap: 22px;

    align-content: start;
}


.media-card {
    background: var(--surface-soft);

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: var(--radius-medium);

    padding: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.media-card img {
    display: block;

    max-width: 100%;

    height: auto;

    border-radius: var(--radius-small);
}


/* =========================================================
   IMAGE TYPES
========================================================= */

.portrait-card img {
    width: auto;

    max-width: 100%;
    max-height: 560px;
}


.detail-card img {
    width: auto;

    max-width: 100%;
    max-height: 380px;
}


.standard-card img {
    width: 100%;
}


.wide-card img {
    width: 100%;
}


.feature-card {
    grid-column: 1 / -1;
}


/* =========================================================
   BACHELOR THESIS
========================================================= */

.gallery-thesis {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px;
}


.gallery-thesis .thesis-main {
    grid-column: 1 / -1;
}


.gallery-thesis .thesis-main img {
    width: 100%;

    height: auto;

    object-fit: contain;
}


.gallery-thesis .thesis-portrait {
    align-items: center;

    padding: 14px;
}


.gallery-thesis .thesis-portrait img {
    width: auto;

    max-width: 100%;

    max-height: 620px;

    object-fit: contain;
}


.gallery-thesis .thesis-detail {
    grid-column: 1 / -1;

    width: 88%;

    justify-self: center;
}


.gallery-thesis .thesis-detail img {
    width: 100%;

    height: auto;

    object-fit: contain;
}


/* =========================================================
   BIKE
========================================================= */

.gallery-bike {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* =========================================================
   ADDICTION SIMULATOR
========================================================= */

.gallery-hybrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px;
}


.gallery-hybrid .hybrid-main {
    grid-column: 1 / -1;
}


.gallery-hybrid .hybrid-main img {
    width: 100%;

    height: auto;

    object-fit: contain;
}


.gallery-hybrid .hybrid-secondary img {
    width: 100%;

    height: auto;

    object-fit: contain;
}


/* =========================================================
   SMART BLINDS
========================================================= */

.gallery-blinds {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px;

    max-width: 620px;

    margin: 0 auto;
}


.gallery-blinds .media-card img {
    width: 100%;

    height: auto;

    max-height: none;

    object-fit: contain;
}


.gallery-blinds .media-card:nth-child(3) {
    grid-column: 1 / -1;

    width: calc(50% - 11px);

    justify-self: center;
}


/* =========================================================
   ROBOT
========================================================= */

.gallery-robot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* =========================================================
   VR FOOTBALL
========================================================= */

.gallery-vr {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px;
}


.gallery-vr .media-card {
    align-items: center;
}


.gallery-vr img {
    width: 100%;

    height: auto;

    object-fit: contain;
}


.gallery-vr .feature-card {
    grid-column: 1 / -1;
}


/* =========================================================
   WINDMILL
========================================================= */

.gallery-windmill {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    padding: 170px 0;
}


.contact-content {
    max-width: 930px;
}


.contact-content h2 {
    max-width: 900px;

    margin-bottom: 32px;

    font-size: clamp(54px, 7vw, 95px);

    font-weight: 600;

    line-height: 0.98;

    letter-spacing: -0.05em;
}


.contact-content > p:not(.section-label) {
    max-width: 670px;

    margin-bottom: 15px;

    color: var(--secondary-text);

    font-size: 20px;

    line-height: 1.62;
}


/* =========================================================
   CONTACT LINKS
========================================================= */

.contact-links {
    display: flex;
    flex-direction: column;

    margin-top: 65px;
}


.contact-links a {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 24px 0;

    border-top: 1px solid var(--border);

    color: var(--navy);

    text-decoration: none;

    font-size: clamp(18px, 2.2vw, 27px);

    letter-spacing: -0.02em;

    transition:
        padding-left 0.25s ease,
        opacity 0.25s ease;
}


.contact-links a:last-child {
    border-bottom: 1px solid var(--border);
}


.contact-links a:hover {
    padding-left: 10px;

    opacity: 0.58;
}


.contact-value {
    color: var(--secondary-text);

    font-size: 0.68em;

    text-align: right;

    letter-spacing: 0;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 30px 0;

    border-top: 1px solid var(--border);
}


.footer-container {
    display: flex;

    align-items: center;
    justify-content: space-between;

    color: var(--secondary-text);

    font-size: 13px;
}


.footer-container a {
    text-decoration: none;

    transition: color 0.2s ease;
}


.footer-container a:hover {
    color: var(--navy);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .about-grid {
        grid-template-columns: 1fr;

        gap: 60px;
    }


    .about-image {
        max-width: 600px;
    }


    .project,
    .project.reverse {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .project.reverse .project-info,
    .project.reverse .project-gallery {
        order: initial;
    }


    .project-info {
        position: static;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

    .section-container,
    .nav-container {
        width: 90%;
    }


    .nav-container {
        height: 64px;
    }


    .logo {
        font-size: 14px;
    }


    nav {
        gap: 16px;
    }


    nav a {
        font-size: 13px;
    }


    .hero {
        min-height: auto;

        padding-top: 160px;
        padding-bottom: 100px;
    }


    .hero h1 {
        font-size: clamp(46px, 14vw, 70px);

        line-height: 0.98;
    }


    .hero-description {
        margin-top: 32px;

        font-size: 18px;
    }


    .hero-buttons {
        margin-top: 34px;
    }


    .section {
        padding: 100px 0;
    }


    .about-grid {
        gap: 48px;
    }


    .about-image {
        width: 100%;
    }


    .about-image img {
        border-radius: 20px;
    }


    .about-content h2 {
        font-size: 42px;
    }


    .about-content > p:not(.section-label) {
        font-size: 17px;
    }


    .portfolio-section {
        padding: 100px 0;
    }


    .portfolio-heading {
        margin-bottom: 70px;
    }


    .portfolio-heading h2 {
        font-size: 64px;
    }


    .portfolio-heading > p:last-child {
        font-size: 18px;
    }


    .project {
        padding: 75px 0;
    }


    .project-info h3 {
        font-size: 38px;
    }


    .project-category {
        margin-bottom: 26px;
    }


    .project-description {
        font-size: 16px;
    }


    .gallery-thesis,
    .gallery-bike,
    .gallery-hybrid,
    .gallery-blinds,
    .gallery-robot,
    .gallery-vr,
    .gallery-windmill {
        grid-template-columns: 1fr;
    }


    .gallery-thesis .thesis-main,
    .gallery-thesis .thesis-detail {
        grid-column: auto;

        width: 100%;
    }


    .gallery-thesis .thesis-portrait img {
        width: 100%;

        max-height: none;
    }


    .gallery-hybrid .hybrid-main {
        grid-column: auto;
    }


    .gallery-blinds {
        max-width: none;
    }


    .gallery-blinds .media-card:nth-child(3) {
        grid-column: auto;

        width: 100%;
    }


    .feature-card {
        grid-column: auto;
    }


    .portrait-card img,
    .detail-card img,
    .standard-card img,
    .wide-card img {
        width: 100%;

        max-width: 100%;
        max-height: none;
    }


    .media-card {
        padding: 12px;

        border-radius: 18px;
    }


    .media-card img {
        border-radius: 14px;
    }


    .project-link {
        margin-top: 10px;
    }


    .contact-section {
        padding: 110px 0;
    }


    .contact-content h2 {
        font-size: 52px;
    }


    .contact-content > p:not(.section-label) {
        font-size: 18px;
    }


    .contact-links {
        margin-top: 50px;
    }


    .contact-links a {
        align-items: flex-start;

        flex-direction: column;

        gap: 4px;
    }


    .contact-value {
        text-align: left;

        font-size: 15px;

        overflow-wrap: anywhere;
    }


    .footer-container {
        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 430px) {

    .nav-container {
        width: 92%;
    }


    .logo {
        font-size: 13px;
    }


    nav {
        gap: 11px;
    }


    nav a {
        font-size: 12px;
    }


    .hero {
        padding-top: 145px;
    }


    .hero h1 {
        font-size: 44px;
    }


    .button {
        width: 100%;
    }


    .about-content h2 {
        font-size: 36px;
    }


    .portfolio-heading h2 {
        font-size: 55px;
    }


    .project-info h3 {
        font-size: 34px;
    }


    .contact-content h2 {
        font-size: 44px;
    }

}