/* Colours  */
:root {
    --blue: #2b74ff;
    --yellow: #fedd59;
    --white: #ffffff;
    --cream: #fffcf2;
    --charcoal: #333333;
    --light: #f7f9fc;

    --ticker-speed: 40s; /* Lower = faster */
    --logo-height: 60px;
    --logo-gap: 6rem;
}

/* Fonts */
@font-face {
    font-family: "Cooper Black";
    src: url("./fonts/Cooper-Black.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

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

@font-face {
    font-family: "Passion One";
    src: url("./fonts/PassionOne-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

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

a, a:visited, a:hover {
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}

body {
    font-family: "Inter", Arial, sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.6;
    border: 1.5rem solid var(--blue);
    border-style: none solid;
    min-height: 100vh;
}

h1, h2 {
    font-family: "Cooper Black", serif;
}

h3 {
    font-family: "Passion One", sans-serif;
}

.page-button {
    padding: 0 1.5rem;
    background-color: var(--white);
    border-radius: 999px;
    border: solid 0.4rem var(--charcoal);
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
    min-width: 207px;
}

.page-button a{
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    gap: 1rem;
    text-decoration: none;
    color: var(--charcoal);
    font-family: "Passion One", sans-serif;
    transition: color 0.2s ease;
    font-size: 2rem;
}

.page-button:hover {
    background-color: var(--charcoal);
    a {
        color: var(--white);
    }
    img {
        filter: brightness(500%);
    }
}

.text-icon {
    height: 0.5em;
    width: auto;
    display: inline-block;
}

/* NAV */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1rem 5%;

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img{
    height: 6rem;
}


.nav-links {
    display: flex;
    gap: 4rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-family: "Passion One", sans-serif;
    color: var(--blue);
    font-weight: 500;
    font-size: 2rem;
    position: relative;
}

.nav-links li:not(:last-child) a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0.4rem;
    bottom: -0.4rem;
    left: 0;
    background-color: var(--charcoal);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links li:not(:last-child) a:hover::after {
    transform: scaleX(1);
}

#nav-contact-btn {
    display: inline-block;
    color: var(--charcoal);
    background: var(--yellow);
    text-decoration: none;
    padding: 0 1rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02rem;
    box-shadow: -0.4rem 0.4rem 0 var(--charcoal);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#nav-contact-btn:hover {
    transform: translate(0.2rem, -0.2rem);
    box-shadow: -0.6rem 0.6rem 0 var(--charcoal);
}

#nav-contact-btn:active {
    transform: translate(-0.2rem, 0.2rem);
    box-shadow: -0.2rem 0.2rem 0 var(--charcoal);
}


/* ==========================================================================
   SMOOTH STICKY HEADER & RESPONSIVE HAMBURGER MENU
   ========================================================================== */

/* Header Base Styling with Smooth Transform Transition */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--cream);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Class toggled via JS when scrolling down on mobile */
.site-header.header-hidden {
    transform: translateY(-100%);
}

.hamburger-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 1.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger-toggle span {
    width: 100%;
    height: 0.25rem;
    background-color: var(--charcoal);
    border-radius: 4px;
    transform-origin: 1px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s linear,
                background-color 0.3s ease;
}

/* --- Mobile Breakpoint (max-width: 600px) --- */
@media (max-width: 600px) {
    /* Scale down the logo height to save vertical reading space */
    .logo img {
        height: 3.5rem;
        transition: height 0.3s ease;
    }

    .hamburger-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--cream);
        border-bottom: 0.4rem solid var(--blue);
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 1rem;
        
        /* Subtle Fade & Slide Down Overlay */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-1rem);
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Subtle Morphing Animation for Hamburger to Close (X) */
    .hamburger-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
    }

    .hamburger-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    .hamburger-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    #nav-contact-btn {
        padding: 0.5rem 2rem;
    }
}

/* FOOTER */

/* --- Footer Container Reset & Base Styling --- */
.site-footer {
  background-color: var(--cream); /* Dark background */
  color: var(--charcoal);            /* Light gray text */
  padding: 40px 20px;
  font-family: "Passion One", sans-serif;
}

.site-footer a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--blue); /* Transitions to LinkedIn blue on hover */
}


/* --- Footer Illustration --- */
.footer-illustration {
  background: var(--blue);
  padding-top: 32px;
}


.footer-illustration img {
  display: block;
  margin: 0 auto;           /* centers horizontally */
  width: 100%;
  max-width: 1000px;       /* caps size */
  height: auto;
}


/* --- Footer Title --- */
.footer-header {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 15px;
}

.footer-header h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: "Passion One", sans-serif;
}

/* --- Footer Grid Layout --- */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Column Structures --- */
.footer-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes the copyright & SVG to the bottom */
/*   min-height: 150px; */
}

/* --- Navigation Links (Center Col) --- */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: left;
  padding: 0 5px;
  font-size: 1.2rem;
}

/* --- Text Alignment Helpers --- */
.text-right {
  text-align: right;
}

.align-right {
  display: flex;
  justify-content: flex-end;
}

/* Margins reset */
.footer-col p {
  margin: 0 0 0 0;
  line-height: 1.5;
  font-size: 1.2rem;
}

/* --- SVG Icon Styling --- */
.linkedin-link {
  display: inline-block;
  width: 5rem;
}

.linkedin-icon {
  fill: var(--charcoal); /* Matches text color by default */
  width: 100%;
  height: 100%;
  transition: fill 0.2s ease;
}

.linkedin-link:hover .linkedin-icon {
  fill: var(--blue); /* LinkedIn signature blue on hover */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr; /* Stack columns on tablet/mobile */
    gap: 40px;
    text-align: left;
  }

  .footer-col {
    min-height: auto; /* Allow natural heights when stacked */
    justify-content: center;
    gap: 15px;
    order: 1;
  }
    
    .footer-nav {
        padding: 0;
    }

  .text-right, 
  .align-right {
    text-align: left;
    justify-content: left;
  }
    
  .col-left {
    order: 3;
  }
    
  .col-right {
    order: 1;
  }
    
  .col-center {
    order: 2;      
  }
}


/* ==========================================================================
   HERO SECTION (BALANCED 40/60 GRID)
   ========================================================================== */

.hero {
    width: min(90%, 1400px);
    margin: 0 auto;
    padding: 3rem 0 2rem;
    container-type: inline-size;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: center;
}

/* ==========================================================================
   LEFT COLUMN
   ========================================================================== */

.hero-text {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: left;
}

/* Prevent unwanted breaking */
.hero-line-1,
.hero-line-3 {
    white-space: nowrap;
}

.hero-line-1 {
    font-family: "Passion One", sans-serif;
    color: var(--charcoal);

    /*
     * Scales with the available layout,
     * but has sensible minimum/maximum limits.
     */
    font-size: clamp(1.5rem, 3cqw, 3.5rem);
    line-height: 1.1;
}

.hero-line-2 {
    font-family: "Cooper Black", serif;
    color: var(--blue);

    font-size: clamp(2rem, 4.7cqw, 4.75rem);
    line-height: 1.05;

    margin: 0.5rem 0;

    /*
     * You control the line break with <br>,
     * so prevent any additional wrapping.
     */
    white-space: nowrap;
}

.hero-line-3 {
    font-family: "Passion One", sans-serif;
    color: var(--charcoal);

    font-size: clamp(1.1rem, 2cqw, 2.25rem);
    line-height: 1.2;
}


/* ==========================================================================
   RIGHT COLUMN
   ========================================================================== */

.hero-image-container {
    min-width: 0;
    width: 100%;

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

.hero-image-container img {
    display: block;

    width: 100%;
    height: auto;

    /*
     * For an illustration/SVG, contain is usually safer than cover.
     * It preserves the entire illustration.
     */
    object-fit: contain;
}


/* ==========================================================================
   MOBILE RESPONSIVE FALLBACK
   ========================================================================== */

@media (max-width: 900px) {
    .hero {
        width: 90%;
    }

    .hero-content {
        grid-template-columns: 1fr; /* Stacks vertically on tablet/mobile */
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
        align-items: center;
    }

    .hero-line-1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .hero-line-2 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-line-3 {
        font-size: clamp(1.1rem, 4vw, 1.75rem);
    }

    .hero-image-container {
        max-height: 400px;
    }

    .hero-image-container img {
        max-height: 400px;
        object-fit: contain; /* Prevents heavy cropping when stacked vertically */
    }
}

/* ROUTE START */
#route-start {
    display: grid;
    grid-template-columns: auto 1fr minmax(300px, 45%);
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 2rem auto 0;
    gap: 2rem;
}

#line-start {
    border: solid 0.5rem var(--charcoal);
}

#line-start a {
    font-size: clamp(1.75rem, 3vw, 3rem);
    margin: 0 auto;
}

.partners-carousel {
    width: 100%;
    text-align: center;
    margin-left: auto;
    overflow: hidden; /* Constrains ticker width to grid cell */
}

/* LOGO TICKER */
.logoTicker {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

#logoTrack {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: tickerScroll var(--ticker-speed) linear infinite;
}

@keyframes tickerScroll {
    from { 
        transform: translate3d(-50%, 0, 0); 
    }
    to { 
        transform: translate3d(0, 0, 0); 
    }
}

#logoTrack img {
    height: var(--logo-height);
    width: auto;
    flex-shrink: 0;
    padding: 0 2rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

#logoTrack img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.logoTicker::before,
.logoTicker::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logoTicker::before {
    left: 0;
    background: linear-gradient(to right, var(--cream), transparent);
}

.logoTicker::after {
    right: 0;
    background: linear-gradient(to left, var(--cream), transparent);
}


/* ==========================================================================
   HERO RESPONSIVE OVERRIDES
   ========================================================================== */

/* --- Tablet / Medium Screens (max-width: 900px) --- */
@media (max-width: 900px) {
    .hero {
        padding: 2rem 5% 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr; /* Stack text and image */
        text-align: center;
        gap: 2rem;
    }

    .hero h3 {
        text-align: center;
    }

    .hero img {
        max-width: 80%;
        margin: 0 auto;
    }

    #route-start {
        grid-template-columns: 1fr; /* Stack button and partners vertically */
        justify-items: center;
        text-align: center;
        gap: 2rem;
    }
}

/* --- Mobile / Small Screens (max-width: 600px) --- */
@media (max-width: 600px) {
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3.25rem);
    }

    .hero h3 {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }

    .hero img {
        max-width: 100%;
    }

    #line-start {
        width: 65%;
        text-align: center;
    }

    #line-start a {
        width: 100%;
        justify-content: center;
        font-size: 1.75rem;
    }

    /* Scaling ticker logos down slightly for phone screens */
    #logoTrack img {
        height: calc(var(--logo-height) * 0.75);
        padding: 0 1.25rem;
    }
}



/* PROJECTS */


.projects {
    position: relative;
    isolation: isolate;
    padding: 2rem 8%;
    max-width: 1500px;
    margin: auto;
}

#route-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: visible;
}

.route-stop {
    position: relative;
    z-index: 2;
}

.project {
    display: grid;
    /* width: fit-content; */
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 4rem 0 6rem;
}

#line-stop-4 {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    padding-top: 4rem;
    /* margin-top: 8rem; */
}

#molens {
    width: 50%;
    /* padding: 2rem 0; */
}

.project-content {
    margin-right: 0;
}


.project-right {
    /* background: var(--light); */
    margin-right: 1rem;
    padding: 0 3rem;
    border-radius: 24px;
}

.project-right .project-image-container{
    transform: translateX(-3rem);
}

.project-left .route-anchor {
    position: absolute;
    left: -50px;
    top: 50%;
}

.project-right .route-anchor {
    position: absolute;
    right: -50px;
    top: 50%;
}

.project-image .route-anchor {
    position: absolute;
    right: -50px;
    top: 50%;
}

.bottom {
    position: absolute;
    bottom: 0;
    /* top: auto !important; */
    left: 50%;
    transform: translateX(-50%);
}

.line-illustration {
    z-index: 1;
}



.project-image-container {
    height: 40vw;
    width: 40vw;
    max-height: 400px;
    max-width: 400px;
    border-radius: 3rem;
    border: 5px solid var(--blue);
    position: relative;
    display: flex;
    flex-direction: column;
    
    /* WARNING: overflow: hidden will clip your drop-shadow! */
    /* If you need overflow:hidden for internal images, consider putting */
    /* the drop-shadow on a parent wrapper div instead. */
    overflow: hidden; 

    /* 1. Define a default shadow direction variable */
    --shadow-x: 2rem; 
    
    /* 2. Apply the filter using variables with correct shorthand order */
    filter: drop-shadow(var(--shadow-x) 2rem 0px var(--blue));
}

/* 3. Simply swap the Y-axis variable for the left version */
.project-image-container.left {
    --shadow-x: -2rem;
}


.project-image-icon {
    position: absolute;
    right: 1rem;          /* Distance from the right edge */
    
    /* 
       To place it in the "bottom right of the background image part":
       The image ends at 66.66% from the top. We substract a bit 
       of spacing so it sits comfortably right inside the image frame.
    */
    top: calc(66.66% - 60px); /* Adjust '45px' based on your icon's actual height */
    
    width: auto;          /* Adjust icon size as needed */
    height: 60px;
    z-index: 10;          /* Makes sure it floats on top of the image */
    order: 2;
}

.project-image-container .project-image-background {
    width: 100%;
    height: 66.66%;
    object-fit: cover;
    order: 1;
}

.project-image-text {
    width: 100%;
    height: 33.33%;      /* Exactly one-third height */
    background-color: #ffffff;
    color: #333333;       /* Adjust text color as needed */
    
    /* Center the text nicely inside the box */
    display: flex;
    align-items: center;
    /* justify-content: center; */
    padding: 0 2rem;
    box-sizing: border-box;
    /* text-align: center; */
    font-family: "Passion One", sans-serif;
    font-size: 2rem;
    line-height: 1;
    order: 3;             /* Ensures it stays at the bottom visually */
}

.project-content :nth-child(*){
    padding-bottom: 1rem;
}

.project-content h2 {
    font-size: clamp(2rem, 3vw, 4rem);
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {

    .projects {
        padding: 2rem 0;
        width: 100%;
    }

    /*
     * Every article becomes a single vertical column.
     * The route itself occupies the left-hand gutter.
     */
    .project {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        max-width: none;

        gap: 2rem;
        margin: 4rem 0;

        padding-left: 4.5rem;
        padding-right: 1.5rem;

        position: relative;
    }

    /*
     * The DOM order differs between the desktop articles:
     *
     * article 1: content -> image
     * article 2: image -> content
     * article 3: content -> image
     *
     * On mobile we always want:
     *
     * content -> image
     */
    .project-content {
        order: 1;
        margin: 0;
        width: 100%;
    }

    .project-image-container,
    .project-right .project-image-container,
    .project-image-container.left {
        order: 2;

        width: min(100%, 400px);
        height: auto;
        aspect-ratio: 1 / 1;

        margin: 0 auto;

        /*
         * All cards cast their shadow in the same direction.
         */
        --shadow-x: 2rem;

        transform: none;
        
        filter: none;
    }

    .project-image-background {
        height: 66.66%;
    }

    .project-image-text {
        height: 33.33%;
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    /*
     * All route anchors occupy the same left-hand track.
     */
    .project .route-anchor {
        position: absolute;

        left: 1.5rem;
        right: auto;

        top: 0;

        width: 0;
        height: 0;

        transform: none;
    }

    /*
     * Remove the desktop-specific right/left positioning.
     */
    .project-left .route-anchor,
    .project-right .route-anchor,
    .project-image .route-anchor {
        left: 1.5rem;
        right: auto;
    }

    /*
     * The second article currently has extra desktop padding.
     */
    .project-right {
        margin-right: 0;
        padding-left: 4.5rem;
        padding-right: 1.5rem;
    }

    /*
     * Don't let the desktop shadow direction leak into mobile.
     */
    .project-image-container.left {
        --shadow-x: 2rem;
    }

    circle {
        transform: translateY(18px);
    }


}

/* ABOUT SECTION */
.about {
    background: var(--blue);
    padding: 6rem 8%;
    display: flex;
    gap: 4rem;
    align-items: center;
    flex-direction: row;
    justify-content: center;
}

/* 1. CROPPED CIRCLE IMAGE */
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--white);
    filter: drop-shadow(-1rem 1rem 0px var(--white));
}

/* 2. TEXT CONTAINER (Holds the H2 and the Bubble) */
.about-text-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between the H2 and the speech bubble */
}

/* White Heading outside the bubble */
.about h2 {
    font-size: clamp(2rem, 3vw, 4rem);
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* 3. SPEECH BUBBLE */
.about-content {
    background-color: white;
    color: var(--charcoal);
    padding: 2.5rem;
    border-radius: 24px;
    position: relative; /* Required to anchor the pointer */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 600px;
}

/* 4. THE SPEECH BUBBLE POINTER */
.about-content::before {
    content: "";
    position: absolute;
    left: -18px;
    /* Adjusted top alignment so the tail points closer to the center of the image */
    top: 40px; 
    
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 20px solid white; 
}

.about p {
    margin: 0;
    line-height: 1.6;
}


/* QUOTES */

.quotes {
  padding: 6rem 1.5rem;
  overflow: hidden;
}

.quotes__inner {
  max-width: 900px;
  margin: 0 auto;
}

.quotes h2 {
  margin-bottom: 4rem;
  text-align: center;
}

.quotes__carousel {
  position: relative;
}

/*
 * The fixed/minimum height prevents the page from jumping
 * when quotes have different lengths.
 *
 * Adjust this value if your quotes are generally longer/shorter.
 */
.quotes__slides {
  position: relative;
  height: 0;
}


/* --------------------------------
   Slides
-------------------------------- */

.quotes__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  text-align: center;

  opacity: 0;
  visibility: hidden;
  transform: translateX(25px);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0s linear 0.4s;
}

.quotes__slide.is-active {
  position: absolute;

  opacity: 1;
  visibility: visible;
  transform: translateX(0);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0s linear 0s;
}


/* Previous / next animation */

.quotes__slide.is-leaving-left {
  opacity: 0;
  transform: translateX(-25px);
}

.quotes__slide.is-leaving-right {
  opacity: 0;
  transform: translateX(25px);
}

.quotes__slide.is-entering-left {
  opacity: 0;
  transform: translateX(-25px);
}

.quotes__slide.is-entering-right {
  opacity: 0;
  transform: translateX(25px);
}


/* --------------------------------
   Quotation mark
-------------------------------- */

.quotes__mark {
  display: block;

  height: auto;
  margin-bottom: 1rem;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 7rem;
  line-height: 0.7;
}


/* --------------------------------
   Quote
-------------------------------- */

.quotes__text {
  max-width: 750px;
  margin: 0 auto 2rem;

  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.4;
  font-weight: 400;
}


/* --------------------------------
   Author
-------------------------------- */

.quotes__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;

  margin: 0;
}

.quotes__name {
  font-size: 1.1rem;
  font-weight: 600;
}

.quotes__date {
  font-size: 0.9rem;
  opacity: 0.6;
}


/* --------------------------------
   Controls
-------------------------------- */

.quotes__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;

  margin-top: 2rem;
}


/* --------------------------------
   Arrow buttons
-------------------------------- */

.quotes__button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 3.25rem;
  height: 3.25rem;

  padding: 0;

  border: 3px solid var(--charcoal);
  border-radius: 50%;

  background: var(--white);

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.quotes__button:hover {
  opacity: 0.75;
}

.quotes__button:active {
  transform: scale(0.94);
}

.quote-arrow {
  display: block;

  width: 1rem;
  height: 1rem;

  object-fit: contain;
}

.quote-arrow--prev {
  transform: rotate(180deg);
}


/* --------------------------------
   Dots
-------------------------------- */

.quotes__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quotes__dot {
  width: 8px;
  height: 8px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: currentColor;

  opacity: 0.25;

  cursor: pointer;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.quotes__dot.is-active {
  opacity: 1;
  transform: scale(1.25);
}


/* --------------------------------
   Mobile
-------------------------------- */

@media (max-width: 600px) {
  .quotes {
    padding: 4rem 1.25rem;
  }

  .quotes h2 {
    margin-bottom: 3rem;
  }

  .quotes__slides {
    min-height: 460px;
  }

  .quotes__mark {
    font-size: 5rem;
  }

  .quotes__text {
    font-size: 1.4rem;
  }

  .quotes__controls {
    margin-top: 1rem;
  }

  .quotes__button {
    width: 2.75rem;
    height: 2.75rem;
  }
}


/* --------------------------------
   Reduced motion
-------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .quotes__slide {
    transition: none;
  }

  .quotes__button,
  .quotes__dot {
    transition: none;
  }
}

/* ==========================================================================
   1. BLOG LAYOUT & CONTAINER STRUCTURE
   ========================================================================== */

.post-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: auto;
}

/* Centered Header elements */
.post-content > h1,
.post-content > .project-role,
.post-content > .post-date {
    width: 100%;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.post-content > h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.post-content > .post-date {
    font-size: 1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Thumbnail Styling */
.post-thumbnail {
    align-self: center;
    width: 100%;
    max-width: 750px; /* Sweeter spot for cover image width */
    margin-bottom: 4rem;
    position: relative;
    padding: 40px;
    background: var(--cream);
    border: 5px solid var(--blue);
    border-radius: 3rem;
    filter: drop-shadow(var(--blue) 2rem 2rem);
}

.post-thumbnail img {
    display: block;      /* Removes the default inline baseline gap below images */
    width: 100%;         /* Forces the image to fill the .post-thumbnail width */
    height: auto;        /* Maintains the proper aspect ratio while scaling */
    
    /* WARNING ON DROP-SHADOW: 
       A 2rem (32px) offset is quite large. If the image scales down on mobile,
       this huge shadow will push outside the screen and cause horizontal scrolling.
    */
}


/* ==========================================================================
   2. THE POST BODY TYPOGRAPHY (The Main Column)
   ========================================================================== */

.post-body {
    width: 100%;
    max-width: 750px; /* Golden standard width for comfortable reading */
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.125rem; /* 18px - perfect for long-form text */
    line-height: 1.75;  /* Breathable line spacing */
    color: var(--charcoal);
}


/* ==========================================================================
   3. INNER ELEMENT STYLING (The Kitchen Sink)
   ========================================================================== */

/* Universal spacing for all block elements inside the article */
.post-body > * {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.post-content>h1 { 
    font-size: 2.5rem;
}

/* Headings within the content */
.post-body h1, 
.post-body h2, 
.post-body h3 {
    color: var(--charcoal);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5rem; /* More space above headings to separate sections */
    margin-bottom: 1rem;
}

.post-body h1 { font-size: 2rem; }
.post-body h2 { font-size: 1.6rem; }
.post-body h3 { font-size: 1.3rem; }

/* Lists */
.post-body ul, 
.post-body ol {
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

/* Inner Images (Images added inside the body by the writer) */
.post-body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2.5rem auto; /* Centers the inner images with healthy vertical breathing room */
}

/* Blockquotes */
.post-body blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border: 4px solid var(--blue);
    background-color: white;
    border-radius: 2rem;
/*     border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem; */
    font-style: italic;
    color: var(--charcoal);
    
}

.post-body blockquote p {
    margin: 0; /* Clears default paragraph spacing inside quotes */
}

/* Tables (Responsive & Elegant) */
.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
    text-align: left;
    overflow-x: auto;
    display: block; /* Allows table to scroll horizontally on small mobile screens */
}

.post-body th {
    background-color: #f1f5f9;
    color: var(--charcoal);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--blue);
}

.post-body td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: var(--charcoal); /* Text colour */
}

.post-body tr:hover {
    background-color: #f8fafc; /* Soft hover effect for table rows */
}


/* CONTACT FORM STUFF */

.contact-intro {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center; /* Centers the text block vertically with the image */
}

.contact-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-column: 1;
}

.contact-title {
    margin: 3rem 0 0;
}

.contact-description {
    margin: 0;
}

.contact-foto {
    width: 20rem;
    height: 20rem;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
    grid-column: 2;
}

.contact-foto img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-section {
    width: 100%;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 1rem;
}

.contact-alternative {
    margin-top: 1.5rem;
}

.contact-description {
    color: var(--charcoal);
}

.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group-container {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    font-weight: 700;
}

.form-label {
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.form-input::placeholder,
.form-textarea:focus-visible {
    color: #6b7280;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.form-textarea {
    min-height: 120px;
    font-family: "Inter", sans-serif;
}

.form-submit {
    font-family: "Passion One", sans-serif;
    font-size: 2rem;
    color: var(--charcoal);
    background: var(--yellow);
    text-decoration: none;
    margin: 2rem 1rem;
    padding: 1rem;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02rem;
    box-shadow: -0.4rem 0.4rem 0 var(--charcoal);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-submit:hover {
    transform: translate(0.2rem, -0.2rem);
    box-shadow: -0.6rem 0.6rem 0 var(--charcoal);
    cursor: pointer;
}

.form-submit:active {
    transform: translate(-0.2rem, 0.2rem);
    box-shadow: -0.2rem 0.2rem 0 var(--charcoal);
}

.contact-options {
    display: grid;
    /* Forces exactly 3 equal columns */
    grid-template-columns: 1fr 2fr 1fr; 
    gap: 1.5rem; /* Adds clean spacing between columns */
    width: 100%;
}

.contact-option {
    display: flex;
    flex-direction: column;
    align-items: center;    /* Centers text/elements horizontally */
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    border: var(--blue) 2px;
    border-radius: 8px;
}

.contact-option-heading {
    margin-bottom: 0.5rem;
    font-family: "Inter", sans-serif;
    font-size: 1.25rem;
}

.contact-option-content {
    margin: 0;
    font-size: 1rem;
    font-family: "Inter", sans-serif;
    word-break: break-word; /* Prevents long emails from breaking the layout on mobile */
}

/* SVG Size, Display, and Color Control */
.contact-svg {
    display: inline-block; /* Forces the browser to respect the width and height */
    vertical-align: middle;
    width: 28px;           /* Constrains the icon perfectly */
    height: 28px;
    fill: var(--blue);         /* Sets the official LinkedIn blue */
    transition: transform 0.2s ease;
}

/* Ensures the parent tags don't accidentally collapse to 0px width */
.linkedin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; 
}

#download-cv {
    width: 100%;
    display: inline-block;
    text-align: center;
    line-height: normal;
}



/* PROJECTS */


.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  /* font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; */
}

/* Filter buttons style */
.filter-navigation {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.filter-btn:hover {
  background-color: #e5e7eb;
}

.filter-btn.active {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Grid layout for project cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Project Cards */
.project-card {
  border-bottom: 1px solid var(--charcoal);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 2rem;
}


/* For hiding unselected cards smoothly */
.project-card.hidden {
  display: none !important;
}

.project-logo-container {
  background: #f9fafb;
  margin: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 150px;
  max-width: 150px
}

.project-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-company {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: #111827;
}

.project-role {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.view-project-link {
  display: inline-block;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

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

.view-project-link:visited {
  color: #2563eb;
}




/* BLOG OVERVIEW PAGE */

/* Container */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.page-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 1rem;
}

/* Common Post Typography */
.post-date {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.post-title {
  color: #111827;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.post-description {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Buttons */
.blog-btn {
    font-family: "Passion One", sans-serif;
    font-size: 2rem;
    color: var(--charcoal);
    background: var(--yellow);
    text-decoration: none;
    text-align: center;
    margin: 2rem 1rem;
    padding: 1rem;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02rem;
    box-shadow: -0.4rem 0.4rem 0 var(--charcoal);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-btn:hover {
    transform: translate(0.2rem, -0.2rem);
    box-shadow: -0.6rem 0.6rem 0 var(--charcoal);
    cursor: pointer;
}

.blog-btn:active {
    transform: translate(-0.2rem, 0.2rem);
    box-shadow: -0.2rem 0.2rem 0 var(--charcoal);
}

.blog-btn.secondary {
    font-family: "Passion One", sans-serif;
    font-size: 1.8rem;
    text-decoration: none;
    margin: 2rem 1rem;
    padding: 1rem;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02rem;
    box-shadow: -0.4rem 0.4rem 0 var(--charcoal);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-btn.secondary:hover {
    transform: translate(0.2rem, -0.2rem);
    box-shadow: -0.6rem 0.6rem 0 var(--charcoal);
    cursor: pointer;
}

.blog-btn.secondary:active {
    transform: translate(-0.2rem, 0.2rem);
    box-shadow: -0.2rem 0.2rem 0 var(--charcoal);
}


/* ==========================================================================
   1. FEATURED CARD (Newest Post)
   ========================================================================== */
.featured-post-section {
  margin-bottom: 4rem;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Split visual weight */
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  min-height: 400px;
}

.featured-image {
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.featured-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content .badge {
  align-self: flex-start;
  background-color: #eff6ff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.featured-content .post-title {
  font-size: 2rem;
  font-weight: 800;
}

.featured-content .post-description {
  font-size: 1.1rem;
}

/* ==========================================================================
   2. BLOG GRID (Older Posts)
   ========================================================================== */
.blog-grid-section .section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #e5e7eb;
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content .post-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-content .post-description {
  font-size: 0.95rem;
  flex-grow: 1; /* Pushes the button to the bottom so cards look uniform */
}

/* ==========================================================================
   3. RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (max-width: 900px) {
  .featured-card {
    grid-template-columns: 1fr; /* Stack visually on tablets and small screens */
  }
  
  .featured-image {
    height: 250px;
  }
  
  .featured-content {
    padding: 1.75rem;
  }
  
  .featured-content .post-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .page-main-title {
    font-size: 2rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr; /* Single column on mobile devices */
  }
}

/* 


@media (max-width: 900px) {

    .selling-points {
        grid-template-columns: 1fr;
    }

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

    .project-right {
        background: transparent;
    }

    .navbar {
        flex-wrap: wrap;
        gap: 1rem;
    }
} */


/* ==========================================================================
   MOBILE-FRIENDLY RESPONSIVE OVERRIDES
   ========================================================================== */

/* --- Tablet & Medium Screens (max-width: 900px) --- */
@media (max-width: 900px) {
    /* Global Container Adjustments */
    body {
        border-width: 0.75rem;
        padding: 0.75rem 0;
    }
    
    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 5% 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero h3 {
        text-align: center;
    }

    .hero img {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Route & Ticker Section */
    #route-start {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .partners-carousel,
    .logoTicker {
        width: 90%;
        margin-left: 2rem;
    }

    /* Projects Grid & Single Column Stack */
    .project {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin: 2rem 0 6rem;
    }

    .project-image-container {
        width: 100%;
        max-width: 320px;
        height: 320px;
        margin: 0 auto;
        /* Reduce shadow distance to prevent horizontal overflow */
        --shadow-x: 1rem;
        filter: drop-shadow(var(--shadow-x) 1rem 0px var(--blue));
    }

    .project-image-container.left {
        --shadow-x: -1rem;
    }

    .project-right .project-image-container {
        transform: translate(0, 0);
    }

    #molens {
        width: 80%;
    }


    /* About Section */
    .about {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 5%;
        text-align: center;
    }

    .about-text-container {
        align-items: center;
    }

    .about-content::before {
        /* Change speech bubble tail to point UP towards the image */
        left: 50%;
        top: -18px;
        transform: translateX(-50%);
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-bottom: 20px solid white;
        border-top: none;
    }

    /* Contact Page Layout */
    .contact-intro {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 2rem;
    }

    .contact-text {
        grid-column: 1;
    }

    .contact-foto {
        grid-column: 1;
        width: 14rem;
        height: 14rem;
    }

    .contact-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Projects Overview Grid */
    .project-card {
        flex-direction: column;
        text-align: center;
    }

    .project-logo-container {
        margin: 1.5rem 0 0 0;
    }
}

/* --- Mobile / Small Screens (max-width: 600px) --- */
@media (max-width: 600px) {
    /* Base Body Updates */
    body {
        border-width: 0.5rem;
    }

    /* Intro Animation Scaling */
    #intro-text {
        font-size: 2rem;
        top: 10vh;
        width: 90%;
    }

    #bus-stop {
        height: 25vh;
        right: 10vw;
    }

    #woman {
        height: 15vh;
        right: 50vw;
    }

    #bus {
        height: 22vh;
    }

    /* Typography Adjustments */
    .page-button {
        width: 100%;
        justify-content: center;
    }

    .page-button a {
        font-size: 1.5rem;
    }

    #line-start a {
        font-size: 2rem;
    }

    /* Blog / Post Content Adjustments */
    .post-content {
        padding: 1rem 1rem;
    }

    .post-thumbnail {
        padding: 15px;
        border-radius: 1.5rem;
        border-width: 3px;
        /* Reduce shadow to prevent horizontal overflow */
        filter: drop-shadow(var(--blue) 0.75rem 0.75rem);
    }

    .post-body {
        font-size: 1rem;
    }

    .post-body blockquote {
        padding: 0.75rem 1rem;
        border-width: 3px;
        border-radius: 1rem;
    }

    .post-body table {
        font-size: 0.875rem;
    }

    .post-body th, 
    .post-body td {
        padding: 0.5rem;
    }

    /* Footer Adjustments */
    .site-footer {
        padding: 30px 15px;
    }

    .footer-col, .footer-header {
        align-items: center;
        text-align: center;
    }

    .footer-nav {
        align-items: center;
    }

    .text-right, 
    .align-right {
        text-align: center;
        justify-content: center;
    }

    .linkedin-link {
        width: 3.5rem;
    }

    /* Buttons Scaling */
    .blog-btn,
    .blog-btn.secondary,
    .form-submit {
        font-size: 1.5rem;
        margin: 1rem 0;
        width: 100%;
    }
}

/* ==========================================================================
   CONTACT PAGE MOBILE RESPONSIVE OVERRIDES
   ========================================================================== */

/* --- Tablet / Medium Screens (max-width: 900px) --- */
@media (max-width: 900px) {
    /* 1. Stack Intro Section Vertically with Image Above Text */
    .contact-intro {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 2rem;
    }

    .contact-foto {
        grid-column: 1;
        grid-row: 1; /* Moves photo above the text */
        width: 14rem;
        height: 14rem;
    }

    .contact-text {
        grid-column: 1;
        grid-row: 2; /* Keeps text below the photo */
    }

    /* 2. Stack Telefoon, E-mail, and LinkedIn Vertically */
    .contact-options {
        grid-template-columns: 1fr; /* Single vertical column */
        gap: 1rem;
    }

    .contact-option {
        width: 100%;
        padding: 1.25rem 1rem;
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    /* Center align headers and descriptions */
    .contact-title,
    .contact-description {
        text-align: center;
    }
}

/* --- Mobile / Small Screens (max-width: 600px) --- */
@media (max-width: 600px) {
    /* 3. Touch-Friendly Form Controls */
    .contact-section {
        padding: 1.5rem 1rem;
    }

    .form-input {
        height: 3.25rem; /* ~52px height for optimal touch targeting */
        font-size: 1rem; /* Prevents auto-zoom on iOS safari */
        padding: 0.75rem 1rem;
    }

    .form-textarea {
        min-height: 140px;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .form-label {
        font-size: 1rem;
        margin-bottom: 0.35rem;
    }

    .form-submit,
    #download-cv {
        font-size: 1.5rem;
        padding: 1.25rem 1rem;
        margin: 1.5rem 0;
        width: 100%;
        display: block;
        text-align: center;
    }

    /* Fluid Typography for Mobile Headlines */
    .contact-intro h1,
    .contact-title {
        font-size: 2rem;
    }

    .about {
    background: var(--blue);
    padding: 6rem 8%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}
}
.bedankt-container {
    display: flex;
    flex-direction: column;
    margin: 30vh auto;
    padding: 20px;
}
.bedankt {
    text-align: center;
}

.bedankt-subtitle {
    text-align: center;
}

#bedankt-btn {
    padding: 0 20px;
    margin: 20px auto;
}