:root {
  --color-background:#ffffff;
  --color-background-1:#fae8ed;
  --color-background-2:#fdd5df;
  --color-neutral-1:#ffc2d1;
  --color-primary-1:#ffb2c5;
  --color-primary-2:#ffa2b9;

  --profile-pic-size:200px;

  --banner-fixed-size:80px;
}

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

body {
    font-family: system-ui, sans-serif;
    align-items: center;
    min-height: 100vh;
    margin: 0;
       
    
  }

  #over-mij {
    background-image: linear-gradient(to bottom, white 0%, rgba(255, 255, 255, 0.5) 100%), url("../data/images/background.jpg");
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .logo {
    width: 150px;
    margin-bottom: 40px;
  }

  .contact-icon {
    height: 16px;
    width: 16px;
    margin-right: 5px;
  }

  a {
    text-decoration: none;
    color: var(--color-primary-2);
  }

  .card-holder {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    padding-left: 40px;
    padding-right: 40px;
    gap: 40px;
    flex-wrap: wrap; 
  }

  .free-card-holder {
    align-items: flex-start;
    gap: 60px;
  }

  /* Outer wrapper must NOT hide overflow */
  .profile-card-wrapper {
    position: relative;
    width: 800px;
    display: block;
    padding-top: 0px;
  }

  /* Inner card can hide overflow safely */
  .card {
    border-radius: 50px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    overflow: hidden;
  }

  .profile-card {
    padding: calc((var(--profile-pic-size)/2) + 10px) 32px 32px;
    background-color: var(--color-background);
  }

  .product-card {
    width: 450px;
    min-width: 450px;
    background-color: var(--color-background);
  }

  .contact-card {
    display: grid;
    grid-template-columns: var(--banner-fixed-size) 1fr;
    align-items: stretch;
  }

  .contact-card-information {
    padding: 40px;
  }

  .side-banner {
    width: 100%;
    height: 0;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .product-card-banner {
    margin-top: 0px;
    width: 100%;
    height: var(--banner-fixed-size);
    object-fit: cover;
    object-position: center;
  }

  .product-card-information {
    padding: 40px;
  }

  .general-information-block {
    width:600px;
    text-align: left;
  }

  .general-information-block h3 {
    font-size: 16px;
  }

  .avatar-wrapper {
    position: relative;
    top: calc(var(--profile-pic-size)/2);
    left: 50%;
    transform: translateX(-50%);
    width: var(--profile-pic-size);
    height: var(--profile-pic-size);
    border-radius: 50%;
    background: var(--color-background);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
  }

  .avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }

  section {
    align-items: center;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  h1 {
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0 0 16px;
    color: var(--color-primary-2);
  }

  h2 {
    font-size: 24px;
    margin: 0 0 16px;
    color: var(--color-primary-2);
  }

  h3 {
    font-size: 24px;
    margin: 0 0 16px;
    color: var(--color-primary-2);
  }

  h4 {
    font-size: 20px;
    margin: 0 0 16px;
    color: var(--color-primary-2);
  }

  .price {
    font-size: 18px;
    margin: 0 0 16px;
    color: var(--color-primary-2);
  }

  p.job-title {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-primary-2);
    margin-bottom: 8px;
  }

  p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-primary-2);
    margin-bottom: 24px;
  }

  .slogan {
    font-size: 12px;
    line-height: 1.6;
    color: var(--color-primary-2);
    letter-spacing: 2px;
    margin-bottom: 24px;
    margin-top: 24px;
  }

  li {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-primary-2);
    text-align: left;
  }

  a.card-link {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-primary-2);
    border-bottom: 1px solid #2f241a;
    padding-bottom: 4px;
  }


  header {
    display: block;
  }

  .information-side-banner {
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    width: 300px;
  }

  .logo-separator {
    max-width: 40px;
    max-height: 25px;
    margin: auto;
  }

  nav {
    display: flex;                /* ← horizontal flexbox */
    gap: 20px;
    align-items: center;          /* keep items vertically centered */
    justify-content: center;
    border-bottom: 2px solid var(--color-background-1);
  }

  .yang {
    background-color: var(--color-background-1);
  }

  nav li {
      list-style: none;
      margin: 0px;
      padding: 10px;
      align-items: center;
  }

  nav a {
      color: var(--color-primary-1);
      text-decoration: none;
      padding: 15px 0;
      font-size: 1.3em;
      font-weight: 600;
  }

  .contact-item {
    margin-top: 5px;
  }

  nav li {
    transition: background 0.3s ease, color 0.3s ease;
  }

  nav li:hover,
  nav li:focus {
      background: var(--color-background-1);
      color: #fff;
  }

  /* Mobile Responsive Adjustments */
  @media (max-width: 768px) {
      
      /* 1. Navigation: Allow wrapping or scrolling if items are too long */
      nav {
          flex-wrap: wrap;
          gap: 10px;
          padding: 10px;
      }

      nav a {
          font-size: 1em;
          padding: 5px 0;
      }

      /* 2. Containers: Remove fixed widths and padding */
      .card-holder {
          padding-left: 20px;
          padding-right: 20px;
          gap: 20px;
      }

      /* Profile Card: Make it fill the screen width */
      .profile-card-wrapper {
          width: 100%;
          max-width: 100%;
      }

      /* Product Cards: Remove min-width to prevent horizontal scrolling */
      .product-card {
          width: 100%;
          min-width: 0;
      }

      /* General Info: Make it full width */
      .general-information-block {
          width: 100%;
      }

      /* 3. Layout Transitions: Stack horizontal elements vertically */
      
      /* Afspraken Section: Stack image and text */
      .free-card-holder {
          flex-direction: column;
          align-items: center;
          text-align: center;
      }

      .general-information-block {
          text-align: left; /* Keep the list readable */
      }

      /* Contact Card: Change from 2-column grid to stacked */
      .contact-card {
          grid-template-columns: 1fr;
      }

      .side-banner {
        width: 100%;
        min-height: auto; /* Overrides the 100% min-height from desktop */
        height: var(--banner-fixed-size); /* Uses the existing variable */
        order: -1; /* Ensures the image sits at the top of the card */
      }

      /* 4. Visual Adjustments */
      .information-side-banner {
          width: 200px; /* Smaller image on mobile */
      }

      h1 {
          font-size: 24px;
      }

      .profile-card {
          padding: calc((var(--profile-pic-size)/2) + 10px) 20px 20px;
          border-radius: 30px; /* Slightly smaller radius for mobile */
      }
  }

  /* Extra Small Devices */
  @media (max-width: 480px) {
      :root {
          --profile-pic-size: 150px; /* Smaller avatar for tiny screens */
      }

      .logo {
          width: 120px;
      }
  }