:root{
    --primary: #DAD2D8;
    --secondary: #143642;
    --accent: #B2FFA9;
}

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

html, body{
    scroll-behavior: smooth;
    font-family: "space mono", sans-serif;
    background: var(--primary);
}

h1, h2, h3, h4, h5, h6{
font-family: "Syne", sans-serif;
}

/* navigation bar */

header{
    background-color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#close-logo{
    display: none;
}

#logo{
    margin-left: 1em;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.3s ease;
    letter-spacing: 0;
}

#logo:hover{
    color: var(--accent);
    letter-spacing: 0.05em;
    transform: scale(1.02);
}

nav{
    background: var(--secondary);
    position: relative;
    margin-right: 1em;
}

ul{
    background-color: var(--secondary);
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
}

ul li{
    width: auto;
    padding: 0.8rem 1rem;
}

ul li:nth-child(1){
    margin-right: auto;
    display: none;
}

ul li a{
    font-weight: 400;
    font-size: 1.8rem;
    display: block;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
    letter-spacing: 0;
}

ul li a:hover{
    color: var(--accent);
    letter-spacing: 0.05em;
    transform: scale(1.02);
}

#hamburger{
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    gap: 0.5rem;
    z-index: 20;
}

.hamburger span{
    width: 2rem;
    height: 0.8rem;
    background-color: var(--primary);
}

.hero{
    padding: 2rem;
    width: 100%;
    margin-top: 6em;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.info{
    width: 80%;
    color: var(--secondary);
}

.info h1{
    font-size: 7rem;
}

.info h3{
    font-size: 5rem;
}

.info p{
    font-size: 2rem;
}

.info #contact-button{
    display: inline-block;
    background-color: var(--accent);
    color: var(--secondary);
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.info #contact-button:hover{
    background-color: var(--secondary);
    color: var(--accent);
    transform: scale(1.05);
}

.headshot{
}

.headshot img{
    border-radius: 50%;
    overflow: hidden;
}

/* About section */
.about {
    margin-top: 3rem;
    padding: 4rem 2rem;
}

.about-heading {
    font-family: "Syne", sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.about-heading span {
    color: var(--accent);
    -webkit-text-stroke: 1.5px var(--secondary);
    text-shadow: 3px 3px 0px var(--secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 0 auto;
}

.about-card {
    background: var(--secondary);
    color: var(--primary);
    border-radius: 0.75rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(178, 255, 169, 0.07);
    pointer-events: none;
}

.card-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.card-title {
    font-family: "Syne", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.card-body {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(218, 210, 216, 0.8);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.skill-tag {
    background: rgba(178, 255, 169, 0.12);
    border: 1px solid rgba(178, 255, 169, 0.35);
    color: var(--accent);
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    letter-spacing: 0.03em;
}

.study-entry {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 0.75rem;
}

.study-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 6px;
}

.study-title {
    font-family: "Syne", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.study-sub {
    font-size: 0.78rem;
    color: rgba(218, 210, 216, 0.6);
    margin-top: 0.2rem;
}

.card-quote {
    grid-column: 1 / -1;
    background: var(--accent);
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
}

.quote-mark {
    font-family: "Syne", sans-serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--secondary);
    opacity: 0.15;
    flex-shrink: 0;
    margin-top: -1rem;
}

.quote-text {
    font-family: "Syne", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.5;
}

.services-list {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(218, 210, 216, 0.85);
}

.service-item::before {
    content: '';
    width: 20px;
    height: 1px;
    min-width: 20px;
    background: var(--accent);
}

.quote-attr {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* Projects section */
.projects {
    padding: 4rem 2rem;
}

.projects-heading {
    font-family: "Syne", sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.projects-heading span {
    color: var(--accent);
    -webkit-text-stroke: 1.5px var(--secondary);
    text-shadow: 3px 3px 0px var(--secondary);
}

.carousel-track-outer {
    overflow: hidden;
    border-radius: 0.75rem;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.45s cubic-bezier(.4, 0, .2, 1);
}

.card-scene {
    width: calc(50% - 0.75rem);
    min-width: calc(50% - 0.75rem);
    height: 340px;
    perspective: 1000px;
    flex-shrink: 0;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(.4, 0, .2, 1);
}

.card-scene:hover .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.card-front {
    background: var(--secondary);
}

.card-front img {
    width: 100%;
    height: 65%;
    object-fit: cover;
    display: block;
}

.card-front-body {
    padding: 1rem 1.25rem;
}

.card-front-title {
    font-family: "Syne", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.card-back {
    background: var(--accent);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.card-back-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--secondary);
    opacity: 0.55;
    margin-bottom: 0.75rem;
}

.card-back-title {
    font-family: "Syne", sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.card-back-desc {
    font-size: 0.8rem;
    line-height: 1.75;
    color: var(--secondary);
    opacity: 0.8;
}

.card-back-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

.card-back-tag {
    background: rgba(20, 54, 66, 0.12);
    border: 1px solid rgba(20, 54, 66, 0.25);
    color: var(--secondary);
    font-size: 0.68rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    background: var(--secondary);
    border: none;
    color: var(--accent);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
}

.carousel-btn:hover { background: #1e4e60; transform: scale(1.08); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; transform: none; }

.carousel-dots { display: flex; gap: 0.5rem; }

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(20, 54, 66, 0.25);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.dot.active { background: var(--secondary); transform: scale(1.3); }

.tags{
    color: var(--accent);
}

/* Contact */
.contact {
    padding: 4rem 2rem;
}

.contact-heading {
    font-family: "Syne", sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.contact-heading span {
    color: var(--accent);
    -webkit-text-stroke: 1.5px var(--secondary);
    text-shadow: 3px 3px 0px var(--secondary);
}

.contact-inner {
    background: var(--secondary);
    border-radius: 0.75rem;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-blurb h3 {
    font-family: "Syne", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-blurb p {
    font-size: 0.82rem;
    line-height: 1.8;
    color: rgba(218, 210, 216, 0.75);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(218, 210, 216, 0.6);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.form-group input,
.form-group textarea {
    background: rgba(218, 210, 216, 0.07);
    border: 1px solid rgba(218, 210, 216, 0.15);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--primary);
    font-family: "Space Mono", monospace;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    resize: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(218, 210, 216, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(178, 255, 169, 0.5);
    background: rgba(178, 255, 169, 0.05);
}

.submit-btn {
    background: var(--accent);
    color: var(--secondary);
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 2.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.submit-btn:hover {
    background: var(--primary);
    transform: scale(1.03);
}

/* Footer */
footer {
    background: var(--secondary);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-text {
    font-size: 0.78rem;
    color: rgba(218, 210, 216, 0.5);
    text-align: center;
    letter-spacing: 0.04em;
}

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

.contact-detail a{
    color: rgba(218, 210, 216, 0.5);
}

/* Back to top */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--secondary);
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease, background 0.2s ease;
    z-index: 99;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

#back-to-top:hover {
    background: var(--accent);
    color: var(--secondary);
    transform: scale(1.1);
}

.card-back-link {
    display: inline-block;
    margin-top: 1.25rem;
    background: var(--secondary);
    color: var(--accent);
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    align-self: flex-start;
}

.card-back-link:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: scale(1.04);
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
}

.form-success-icon {
    color: var(--accent);
    font-size: 1.5rem;
}

.form-success h3 {
    font-family: "Syne", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.form-success p {
    font-size: 0.82rem;
    line-height: 1.8;
    color: rgba(218, 210, 216, 0.75);
}

#lang-switch {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--secondary);
    border: 2px solid var(--accent);
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 99;
}

#lang-switch:hover {
    background: var(--accent);
    transform: scale(1.1);
}


@media only screen and (max-width: 1024px){
    header{
        position: relative;
    }

    #hamburger{
        display: flex;
    }

    /* hamburger button */
    .hamburger{
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 1rem;
        gap: 0.5rem;
        z-index: 20;
    }

    .hamburger span {
        width: 2rem;
        height: 0.2rem;
        background-color: var(--primary);
        transition: all 0.3s ease;
        border-radius: 0.1rem;
    }

    .hamburger.active span:nth-child(1){
        transform: rotate(45deg) translate(0.5rem, 0.5rem);
    }

    .hamburger.active span:nth-child(2){
        opacity: 0;
    }

    .hamburger.active span:nth-child(3){
        transform: rotate(-45deg) translate(0.5rem, -0.5rem);
    }

    /* side nav */
    nav{
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--secondary);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 19;
        margin-right: 0;
        overflow-y: auto;
    }

    nav.active{
        transform: translateX(0);
    }

    ul{
        flex-direction: column;
        gap: 0;
        background-color: var(--secondary);
    }

    ul li{
        width: 100%;
        padding: 1.2rem 2rem;
        border-bottom: 1px solid rgba(218, 210, 216, 0.1);
    }

    ul li:nth-child(1){
        display: none;
        margin-right: 0;
    }

    ul li a{
        font-size: 1.5rem;
    }

    #logo{
        margin-left: 1rem;
        z-index: 20;
    }

    /* Hero section tablet */
    .hero{
        flex-direction: column;
        flex-flow: column-reverse;
        padding: 2rem 1.5rem;
        gap: 2rem;
        align-items: center;
    }

    .info{
        width: 100%;
    }

    .info h1{
        font-size: 4rem;
    }

    .info h3{
        font-size: 2.5rem;
    }

    .info p{
        font-size: 1.3rem;
    }

    .headshot{
        width: 100%;
        max-width: 400px;
        aspect-ratio: 1/1;
    }

    .headshot img{
        width: 100%;
    }

    /* overlay (moved out of nav to avoid stacking/transform issues) */
    #overlay{
        display: none;
    }

    #overlay.active{
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.3);
        z-index: 18;
    }

    /* hide the textual logo when mobile nav is open but keep its space so the hamburger (kruisje) doesn't shift */
    #logo.hidden{
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s ease;
        /* keep layout space (don't use display:none) */
    }
}

@media only screen and (max-width: 768px){
    /* Hero section mobile */

    .hero{
        flex-flow: column-reverse;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .info h1{
        font-size: 3rem;
    }

    .info h3{
        font-size: 2rem;
    }

    .info p{
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .info #contact-button{
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }

    .headshot{
        max-width: 250px;
        aspect-ratio: 1/1;
    }

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

    .card-quote {
        grid-column: auto;
    }

    .card-scene {
        width: calc(100% - 0rem);
        min-width: calc(100% - 0rem);
        height: 380px;
    }

    .projects-heading {
        font-size: 2rem;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .contact-heading {
        font-size: 2rem;
    }
}

@media only screen and (max-width: 480px){
    /* Hero section mobile small */

    .about{
        margin-top: 0rem;
    }

    .hero{
        flex-flow: column-reverse;
    }
    .hero{
        padding: 1rem;
        gap: 1.5rem;
        margin-top: 1em;
    }

    .info h1{
        font-size: 2.5rem;
    }

    .info h3{
        font-size: 1.5rem;
    }

    .info p{
        font-size: 1rem;
        line-height: 1.5;
    }

    .info #contact-button{
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .headshot img{
        width: 100%;
    }

    .card-scene {
        height: 340px;
    }

    .card-back {
        padding: 1.5rem;
    }

    .card-back-title {
        font-size: 1.1rem;
    }

    .card-back-desc {
        font-size: 0.75rem;
    }

    .contact {
        padding: 3rem 1rem;
    }

    .contact-inner {
        padding: 1.5rem;
    }

    .contact-heading {
        font-size: 1.75rem;
    }

    footer {
        padding: 1.25rem 1rem;
    }

    .footer-text {
        font-size: 0.7rem;
    }

    #back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    #lang-switch {
        bottom: 4.75rem;
        right: 1.25rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}
