:root {
  --primary-color: #ef0065;
  --secondary-color: rgb(6, 170, 204);
  --tertiary-color: hwb(227 5% 69%);
  --quaternary-color: rgb(255, 179, 0);
  --background-gradient: radial-gradient(circle, #ffbd20, #ffd75e);
  --font-family: "Candara, Calibri, Segoe, Segoe UI, Optima, Arial, sans-serif";
  --border-radius: 8px;
  --box-shadow-light: 0px 4px 6px rgba(0, 0, 0, 0.1),
    0px 1px 3px rgba(0, 0, 0, 0.06);
  --box-shadow-vibrant: 0px 6px 15px rgba(239, 0, 101, 0.3),
    0px 3px 8px rgba(6, 170, 204, 0.25);
  --text-shadow-subtle: 1px 1px 3px rgba(12, 26, 79, 0.3);
  --text-shadow-hover: 2px 2px 6px rgba(239, 0, 101, 0.5),
    1px 1px 3px rgba(6, 170, 204, 0.4);
  --scale-hover: scale(1.05);
}

html,
body {
  height: auto;
  min-height: 100%;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Ensure content starts at the top */
  min-height: 100vh;
  background-size: cover; /* Ensure it covers the entire page */
  background-repeat: no-repeat; /* Prevent the gradient from repeating */
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  font-style: normal;
  font-weight: 300;
  color: var(--tertiary-color);
  height: auto;
  scroll-snap-type: y mandatory;
  background-color: white;
}

.apple-eve {
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/*Back to top button */
.blok:nth-of-type(odd) {
  background-color: white;
}

.blok:nth-of-type(even) {
  background-color: rgb(6, 170, 204);
}

@keyframes border-transform {
  0%,
  100% {
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  }
  14% {
    border-radius: 40% 60% 54% 46% / 49% 60% 40% 51%;
  }
  28% {
    border-radius: 54% 46% 38% 62% / 49% 70% 30% 51%;
  }
  42% {
    border-radius: 61% 39% 55% 45% / 61% 38% 62% 39%;
  }
  56% {
    border-radius: 61% 39% 67% 33% / 70% 50% 50% 30%;
  }
  70% {
    border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%;
  }
  84% {
    border-radius: 46% 54% 50% 50% / 35% 61% 39% 65%;
  }
}

.progress-wrap {
  position: fixed;
  right: 30px;
  bottom: 30px;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  border-radius: 50px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}
.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.progress-wrap::after {
  position: absolute;
  font-family: "unicons";
  content: "\2191";
  text-align: center;
  line-height: 46px;
  font-size: 24px;
  color: rgba(6, 170, 204, 0.6); /* --- Pijl kleur --- */
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 1;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}
.progress-wrap:hover::after {
  opacity: 0;
}
.progress-wrap::before {
  position: absolute;
  font-family: "unicons";
  content: "\2191";
  text-align: center;
  line-height: 46px;
  font-size: 24px;
  opacity: 0;
  background: var(--secondary-color); /* --- Pijl hover kleur --- */
  background-clip: text;
  -webkit-text-fill-color: transparent;
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 2;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}
.progress-wrap:hover::before {
  opacity: 1;
}
.progress-wrap svg path {
  fill: none;
}
.progress-wrap svg.progress-circle path {
  stroke: rgba(6, 170, 204, 0.5); /* --- Lijn progres kleur --- */
  stroke-width: 6;
  box-sizing: border-box;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}

/**/

.hero {
  background: radial-gradient(circle, #ffbd20, #ffd75e);
}

a {
  color: unset; /* Removes any applied color */
  text-decoration: unset; /* Removes any applied text decoration */
}

.parlare {
  font-family: "parlare", sans-serif;
}

h1 {
  font-weight: 200;
  font-size: 12vh;
  line-height: 14vh;
  margin: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Roboto Condensed", sans-serif;
}

h2 {
  font-size: 8vh;
  font-weight: 300;
}

h3 {
  font-size: 4.5vh;
  font-weight: 300;
}

h4 {
  font-size: 3.4vh;
  font-weight: 300;
  line-height: 4vh;
}

h5,
p {
  font-size: 2.5vh;
  font-weight: 300;
  line-height: 3.2vh;
  margin: 20px 0;
}

.portrait-screen,
.mobile-screen {
  display: none !important;
}

.buttons {
  box-shadow: var(--box-shadow-light);
}

.buttons:hover {
  --box-shadow-vibrant: 0px 6px 15px rgba(239, 0, 101, 0.3),
    0px 3px 8px rgba(6, 170, 204, 0.25);
}

/* Language change transitions */
.fade {
  position: relative; /* Ensures elements overlap */
  transition: opacity 0.2s ease-in-out; /* Smooth ease-in-out transition */
  opacity: 1;
  display: inline; /* Ensure text stays inline */
  font-size: smaller;
}

/* Fading out */
.fade-out {
  opacity: 0;
}

/* Fading in */
.fade-in {
  opacity: 1;
}

/**/

.apple-eve {
  width: 100%;
  min-height: 100vh;
}

.header {
  height: 85vh;
  margin: 0;
}

.click-buttons {
  position: absolute;
  left: 70px;
  top: 50px;
  margin: 0px;
  display: flex;
  flex-direction: row;
  height: auto;
  width: auto;
  z-index: 10;
  width: 90%;
}

/*Overlay buttons */

.contact-btn {
  position: static;
  height: 40px;
  width: 40px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  z-index: 1;
  margin-right: 50px;
}

.contact-btn img {
  height: 60px;
  width: 60px;
  transition: ease-in-out 0.5s;
}

.contact-btn img:hover {
  transform: scale(1.2);
}

.sidebar {
  height: 100vh;
  width: 70vw;
  background: var(--primary-color);
  position: absolute;
  top: -50px;
  left: -70px;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  transform: translateX(-150%);
  transition: transform 0.8s ease-in-out;
  z-index: 20;
  box-shadow: var(--box-shadow-vibrant);
}

.sidebar__close {
  position: absolute;
  top: 50%;
  right: -30px;
  background: #fff;
  height: 60px;
  width: 60px;
  border-radius: 50%;
  box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-100%);
  cursor: pointer;
  transition: transform 0.4s ease-in-out 0.2s;
}

.sidebar__close::before,
.sidebar__close::after {
  content: "";
  height: 2px;
  background: #898989;
  width: 24px;
  display: block;
  position: absolute;
}

.sidebar__close::after {
  transform: rotate(90deg);
}

.menu-control {
  display: none;
}

.menu-control:checked + .sidebar {
  transform: translateX(0);
}

.menu-control:checked + .sidebar .sidebar__close {
  transform: translateX(0) rotate(45deg);
}

.menu-control:checked + .sidebar .sidebar__menu a {
  transform: translateX(0);
}

.sidebar-contact-form {
  height: 100%;
  margin: 100px 0;
  justify-content: center;
  text-align: center;
}

.sidebar-contact-form h2 {
  font-size: 6vw;
}

.sidebar-contact-form form {
  display: block;
  margin: 0 auto;
  max-width: 70%;
  align-self: center;
  color: var(--primary-color);
}

.sidebar-contact-form input,
.sidebar-contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  background-color: rgb(255, 255, 255, 0.5);
  color: var(--tertiary-color);
  font-family: "Roboto";
}

.sidebar-contact-form input::placeholder,
.sidebar-contact-form textarea::placeholder {
  color: rgb(12, 26, 79, 0.5);
}

.sidebar-contact-form button {
  padding: 0px;
  background: var(--primary-color);
  color: var(--tertiary-color);
  border: none;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 0 auto;
  align-self: center;
}

.sidebar-contact-form button:hover {
  background: rgb(255, 255, 255, 0.2);
}

/*Submit form*/
/* General button styles */
.submit-button {
  max-width: 80px;
  max-height: 80px;
  text-align: center;
  position: relative;
  cursor: pointer;
  appearance: none;
  border: 0;
  transition: all 0.3s ease;
  font-family: "parlare", sans-serif;
  z-index: 10;
  padding: 0;
}

.submit-button img {
  max-width: 100%;
  max-height: 100%;
}

/* Animation state */
.button-container {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
}

.submit-button,
.spinner,
.checkmark,
.xmark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.submit-button.animate {
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 0;
  visibility: hidden;
  opacity: 0;
}

.spinner,
.checkmark,
.xmark {
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  width: 120%;
  height: 120%;
}

.active-animation {
  visibility: visible;
  opacity: 1;
  display: block;
  transition: all 0.3s ease;
  z-index: 50;
  width: 120%;
  height: 120%;
}

.animation {
  z-index: 50;
}

.error-message {
  position: absolute;
  bottom: -40px; /* Adjust to position below button */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 0, 0, 0.9); /* Semi-transparent red */
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.error-message.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* Optional: Shake effect */
@keyframes shake {
  0%,
  100% {
    transform: translateX(-50%) translateY(-5px);
  }
  25% {
    transform: translateX(-47%) translateY(-5px);
  }
  50% {
    transform: translateX(-53%) translateY(-5px);
  }
  75% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.error-message.shake {
  animation: shake 0.3s ease-in-out;
}

/* Toggle Button*/
* {
  border: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --hue: 223;
  --primary: #ffffff7a;
  --trans-dur: 0.6s;
  --trans-timing: cubic-bezier(0.65, 0, 0.35, 1);
  font-size: 40px;
}

input {
  font: 1em/1.5 sans-serif;
}

body:has(.switch__input:checked) {
  background-color: hsl(var(--hue), 10%, 20%);
}
.switch,
.switch__input {
  display: block;
  -webkit-tap-highlight-color: transparent;
}
.switch {
  margin: auto;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  transition: all ease-in-out 0.5s;
}
.switch__icon {
  color: hsla(var(--hue), 10%, 80%);
  pointer-events: none;
  position: absolute;
  top: 0.375em;
  left: 0.375em;
  width: 0.75em;
  height: 0.75em;
  transition: color var(--trans-dur),
    transform var(--trans-dur) var(--trans-timing);
}
.switch__icon:nth-of-type(2) {
  right: 0.375em;
  left: auto;
}
.switch__inner,
.switch__inner-icons {
  border-radius: 0.5em;
  display: block;
  overflow: hidden;
  position: absolute;
  top: 0.25em;
  left: 0.25em;
  width: 2.25em;
  height: 1em;
}
.switch__inner:before,
.switch__inner-icons {
  transition: transform var(--trans-dur) var(--trans-timing);
  transform: translateX(-1.25em);
}
.switch__inner:before {
  background-color: var(--primary);
  border-radius: inherit;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
}
.switch__inner-icons {
  pointer-events: none;
}
.switch__inner-icons .switch__icon {
  color: hsl(0, 0%, 100%);
  top: 0.125em;
  left: 0.125em;
  transform: translateX(1.25em);
}
.switch__inner-icons .switch__icon:nth-child(2) {
  right: 0.125em;
  left: auto;
}
.switch__input {
  background-color: #ffd75e;
  border-radius: 0.75em;
  box-shadow: none;
  outline: transparent;
  width: 2.75em;
  height: 1.5em;
  -webkit-appearance: none;
  appearance: none;

  transition: background-color var(--trans-dur), box-shadow var(--trans-dur);
}

.switch:hover .switch__input {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4); /* Enhanced text shadow */
}

.switch:hover {
  transform: scale(1.2);
}

.switch__input:checked {
  background-color: #bb0f59;
}
.switch__input:checked ~ .switch__icon {
  color: hsla(var(--hue), 10%, 40%);
}
.switch__input:checked ~ .switch__inner:before,
.switch__input:checked ~ .switch__inner-icons {
  transform: translateX(1.25em);
}
.switch__input:not(:checked) ~ .switch__icon:first-of-type,
.switch__input:checked ~ .switch__icon:nth-of-type(2) {
  transform: rotate(360deg);
}
.switch__input:checked ~ .switch__inner-icons .switch__icon:first-of-type {
  transform: translateX(-1.25em) rotate(-360deg);
}
.switch__input:checked ~ .switch__inner-icons .switch__icon:nth-of-type(2) {
  transform: translateX(-1.25em) rotate(360deg);
}
.switch__input:focus-visible {
  box-shadow: 0 0 0 0.0625em hsla(var(--hue), 90%, 50%, 1),
    0 0.125em 0.5em hsla(var(--hue), 10%, 10%, 0.1);
}
.switch__sr {
  overflow: hidden;
  position: absolute;
  width: 1px;
  height: 1px;
}

/*Menu buttons*/
.menu-buttons {
  z-index: 20;
  position: absolute;
  width: 350px;
  height: 200px;
  right: 5%;
  top: 50px;
  font-family: "Roboto Condensed", sans-serif;
}

.menu-button {
  font-style: normal;
  font-weight: 300;
  font-size: 4vh;
  line-height: 5vh;
  text-align: right;
  color: #0c1a4f;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  transition: all ease-in-out 0.3s;
  z-index: 10;
}

.menu-button:hover {
  color: rgb(6, 170, 204);
  font-weight: 700;
  font-size: 5vh;
  text-shadow: 2px 4px 6px rgba(3, 125, 149, 0.25);
}

.header-illustration {
  width: 100%;
  height: 100%;
  transition: ease-in-out 0.2s;
}

.top-leaf {
  /* BeachCode2palm 2 */
  position: absolute;
  width: 245px;
  height: 108px;
  left: 55%;
  top: 0px;
  z-index: 10;
}

.header-apple-eve {
  position: absolute;
  left: 0px;
  max-width: 55%;
  top: 60px;
}

.heading-signature {
  position: absolute;
  width: 60dvw;
  right: 0;
  top: 40dvh;
  aspect-ratio: 103 / 48;
}

.heading-signature .paint,
.heading-signature .signature,
.heading-signature h1 {
  position: absolute;
}

.heading-signature .paint {
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.heading-signature .signature {
  width: 50%;
  height: auto;
  opacity: 0.82;
  filter: drop-shadow(3px 12px 8.8px rgba(0, 0, 0, 0.25));
  top: 8dvh;
  left: 55%;
  transform: translateX(-50%);
  z-index: 1;
}

.heading-signature h1 {
  height: auto;
  color: #06aacc;
  font-size: 2.5dvw;
  line-height: 3.5dvw;
  text-shadow: 2px 4px 6px rgba(3, 125, 149, 0.25);
  top: auto;
  bottom: 20%;
  left: 15%;
  padding: 0;
  margin: 0;
  font-family: "roboto";
  font-weight: 300;
  height: fit-content;
  transform: none;
}

/* INTRO SECTION*/

.intro {
  width: 100%;
  min-height: 100vh; /* Full screen height */
  background: url("/img/large_screen/Intersect.png");
  background-size: cover; /* Ensure the image covers the section */
  background-position: top left; /* Align the image */
  background-repeat: no-repeat; /* Prevent tiling */
}

.intro-content {
  margin-left: 10%;
  padding-top: 200px;
  padding-bottom: 70px;
  display: flex;
  height: auto;
}

.intro-text {
  width: 60%;

  left: 217px;
  top: 72px;
  text-align: justify;
}

.intro-text h2,
.intro-text h3 {
  color: var(--secondary-color);
}

.intro-text h5 {
  margin-top: 15px;
}

.palm-video {
  position: relative;
  right: -3vw;
  width: 260px;
  max-width: 30%;
  height: 200px;
  align-self: flex-end;
  margin-bottom: 50px;
  overflow: hidden;
}

.palm-video video {
  width: 250px;
  max-width: 100%;
  top: -10px;
  position: relative;
}

/*PARALLAX*/
.parallax-wrap {
  overflow: hidden;
}

.background-img {
  top: 0;
  left: 0;
  width: 100%;
  height: 130vh;
  position: sticky;
  z-index: -1;
  background: no-repeat center center;
  background-size: cover;
  /* Parallax effect */
  background-attachment: fixed;
}

.background-end {
  width: 100%;
  height: 50vh;

  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/*HORIZONTAL SCROLL SECTION */
.sticky-parent {
  background-color: #bb0f59;
  overflow: visible;

  height: 350vh;
}

.sticky {
  overflow: hidden;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
  background-color: white;
}

.scroll-section {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  will-change: transform;
  display: flex;
  align-items: center;
  padding: 0;
}

.outer-skip {
  position: relative;
  text-align: right;
  width: 90vw;
  top: -80px;
}

.skip {
  position: sticky;
  top: 50px;
  font-size: 2.5vh;
  font-weight: 500;
  transition: all 0.5s ease-in-out;
  z-index: 10;
}

.skip:hover {
  transform: scale(1.5);
  color: var(--tertiary-color);
}

/* DEVELOPMENT AND DESIGN */

.dd-container {
  overflow: visible;
}

section {
  height: 100vh; /* Each section takes the full viewport */
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 3em;
  z-index: 1; /* On top of the background */
  position: relative;
  background: white;
}

.chapter-frontpage {
  display: flex;
  width: 100vw;
  height: 100vh;
}

#web-development .chapter-frontpage {
  margin-right: 15vw;
  width: 120vw;
}

.chapter-title {
  display: flex;
  flex-direction: row;
  text-align: left;
  gap: 10px;
  height: 100%;
  margin-left: 15%;
}

.your-underline {
  display: flex;
  flex-direction: column;
}

.underline {
  position: relative;
  width: 70%;
  height: auto;
  left: -50px;
  bottom: 20px;
  flex: none;
  order: 1;
  flex-grow: 0;
  z-index: -1;
}

.pointer {
  position: relative;
  right: -50%;
  top: 45%;
  flex-direction: row;
  justify-content: center;
}

.tools-and-tech .pointer {
  right: -60%;
}

.chapter-content {
  width: 100vw;
  justify-content: center;
  text-align: center;
  align-items: center;
  padding: 0 15vw;
}

.web-dev-intro {
  padding: 0 5vw;
  width: 120vw;
}

.web-dev-intro {
  display: flex;
  gap: 100px;
}

.web-dev-intro .text {
  line-height: 34px;
  display: flex;
  align-items: center;
  text-align: center;
  color: #0c1a4f;
  align-self: center;
}

.web-dev-intro img {
  align-self: flex-end;
  max-height: 50%;
}

.website-types-content {
  width: auto;
  padding: 0 5vw;
  margin: 0 15vw;
  height: 100vh;
}
.grid-card-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin: 50px 100px;
  height: 85%;
  align-items: center;
  justify-content: center;
}

.hover-card-flex {
  display: flex;
  flex-direction: row;
  gap: 50px;
}

.grid-card-item {
  background: #fff;
  width: 100%;
  height: 100%;
  justify-content: center;
  text-align: center;
  align-items: center;
  border: 1px solid #ffbd2059;
  border-radius: 20px 20px 0 0;
  text-align: center;
  font-size: 1.2em;
  transition: transform 0.3s ease; /* Smooth transition for scaling */
  transform-origin: center; /* Scale from the center of the item */
}

.grid-card-item:hover {
  transform: scale(1.3); /* Enlarge by 150% */
  z-index: 10; /* Ensure the hovered item is above others */
}

.grid-card-item:not(:hover) {
  transition: transform 0.3s ease; /* Smooth adjustment */
}

.card-item {
  color: var(--tertiary-color);
  display: inline-block;
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  margin: 8px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.card-item * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.45s ease;
  transition: all 0.45s ease;
}

.card-item:after {
  background-color: var(--quaternary-color);
  height: 150%;
  bottom: -145%;
  content: "";
  left: 0;
  right: 0;
  position: absolute;
  -webkit-transition: all 0.5s linear;
  transition: all 0.5s linear;
}

.webiste-types-animation {
  vertical-align: top;
  max-width: 70%;
  backface-visibility: hidden;
  padding: 10%;
  margin: 0 auto;
  opacity: 0.8;
}

.card-item figcaption {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  align-items: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1em;
  opacity: 0;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
  padding: 5% 10%;
}

.card-item figcaption h5 {
  font-size: 12px;
  line-height: 16px;
  color: var(--quaternary-color);
  margin-bottom: 0;
}

.card-item figcaption p {
  font-size: 10px;
  line-height: normal;
}

.card-item:hover > .webiste-types-animation,
.card-item.hover > .webiste-types-animation {
  opacity: 0.07;
}

.card-item:hover:after,
.card-item.hover:after {
  bottom: 95%;
}

.card-item:hover figcaption,
.card-item.hover figcaption {
  opacity: 1;
  -webkit-transition-delay: 0.4s;
  transition-delay: 0.4s;
}

.content-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: auto;
  height: 80vh;
  gap: 50px;
}

.web-dev-intro .content-box {
  flex-direction: row;
}

.first-content {
  padding-left: 0;
}

.content-web-design .content-box {
  padding: 0px 100px;
}

.content-web-design .text {
  width: auto;
  height: 279px;
}

.content-web-design .text p {
  font-size: 1.8vw;
  line-height: 2.7vw;
}

.web-des-illustration {
  align-self: self-end;
  max-width: 30%;
  position: relative;
  left: 20%;
}

.wireframes-illustrations img {
  max-width: 100%;
}

.wireframes-illustrations img {
  align-self: center;
  width: 100%;
}

.content-web-design .h4 {
  color: #bb0f59;
  font-weight: 400;
}

/*PORTFOLIO*/

.accordion-sticky-container {
  height: 150vh;
}

#accordion {
  position: sticky;
  top: 0;
  transform: scale(1); /* Normal scale */
  transition: transform 0.5s ease-in-out; /* Smooth zoom effect */
  max-width: 100vw;
  height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
}

.sticky-active {
  scroll-snap-align: start;
}

#accordion .chapter-frontpage {
  width: auto !important;
}

.portfolio .scroll-section {
  width: 100vw !important;
}
.portfolio .chapter-frontpage {
  height: 100vh;
  padding-top: 25vh;
}

.portfolio .chapter-frontpage .chapter-title {
  width: 100%;
  align-items: flex-start;
}

.portfolio .chapter-frontpage .chapter-title h1 {
  position: static;
  transform: none;
}

.portfolio .chapter-frontpage {
  z-index: 1;
}

.horizontal-accordion {
  display: flex;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  justify-content: flex-end;
}

/* Accordion Item */
.accordion-item {
  flex: 0 0 100px; /* Initial width for inactive state */
  height: 100%;
  background-color: var(--accordion-bg);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: flex 0.5s ease-in-out;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 15px rgba(6, 170, 204, 0.2),
    /* Soft blue shadow */ 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle dark shadow for contrast */
}

.accordion-item:hover .accordion-header {
  transform: scale(1.1);
}

.accordion-item.active {
  flex: 1 0 auto; /* Expand to fill available space */
}

.accordion-header {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 5vh;
  cursor: pointer;
  height: 100%;
  transition: all 0.5s ease-in-out;
}

/* Accordion Content */
.accordion-content {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 100%;
  height: 100%;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  background-color: var(--accordion-bg);
  position: absolute;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: auto;
}

.accordion-item.active {
  overflow: visible;
}

.accordion-item.active .accordion-content {
  display: flex;
  opacity: 1;
}

.close-accordion {
  width: 30px;
  height: 30px;
  background-image: url(/img/large_screen/close_btn.png);
  background-size: cover;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  margin-bottom: 20px;
}

.close-accordion:hover {
  background-image: url(/img/large_screen/close_btn_hover.png);
}

.side-pointer {
  width: 220px;
  height: 40px;
  background-image: url(/img/large_screen/pointer.png);
  background-size: cover;
  position: fixed;
  bottom: 60px;
  left: 20%;
  z-index: 300;
  transition: all ease-in-out 0.5s;
}

.app-pointer {
  bottom: 50px !important;
}

/* Content Block */
.content-block {
  color: var(--tertiary-color);
  font-size: 1.5em;
  text-align: center;
  background: white;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  overflow-x: auto; /* Enable horizontal scrolling */
  scroll-behavior: smooth; /* Smooth scrolling */
  width: 100%;
  height: 100%;
  padding: 20px;
  overflow-y: hidden; /* Hide vertical scroll */
  scrollbar-width: thin; /* Firefox: Makes the scrollbar thin */
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent; /* Firefox: Custom color */
}

.content-block::-webkit-scrollbar {
  height: 8px;
}

.content-block::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3); /* Color of the scrollbar thumb */
  border-radius: 4px; /* Round scrollbar edges */
}

.content-block::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5); /* Darker color on hover */
}

.content-block::-webkit-scrollbar-track {
  background: transparent; /* Background of the scrollbar track */
}

.portfolio-content-unit {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  width: auto;
  margin: 0 150px;
  gap: 52px;
  isolation: isolate;
}

.breaker-portfolio {
  height: 100%;
  justify-content: center;
}

.breaker-portfolio img {
  height: 70%;
  position: relative;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  box-shadow: none !important;
}

.chef-thoupos {
  width: 1278px;
}

.blachy-piotrkowicz {
  width: 2000px;
}

.portfolio-text {
  margin: 0 50px;
}

.portfolio-text h5 {
  font-weight: bold;
  color: #036c93;
  align-self: flex-end;
}

.portfolio-text,
.flex-unit p {
  font-size: 16px;
  line-height: 24px;
}

.chef-thoupos .portfolio-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px;
  gap: 10px;
  height: 510px;
  width: 40vw;
  text-align: right;
}
.websites-media {
  height: 510px;
}

.websites-media p {
  margin: 0 0 20px 0;
}

.then-now-img {
  height: 468px;
  display: block;
}

.close-look {
  cursor: zoom-in;
}

.chef-thoupos-img-all,
.komornik-img-all {
  height: 508px;
  width: auto;
}

.grid {
  display: grid;
  grid-template-columns: 278px auto; /* Left column for video and cooking, right for mobile gallery */
  grid-template-rows: 202px auto; /* Top row for hero, bottom row for the rest */
  grid-template-areas:
    "hero hero"
    "video mobile-gallery"
    "cooking mobile-gallery";
  width: auto;
  gap: 10px; /* Automatic gaps */
}

.grid-item {
  object-fit: cover; /* Ensures proper fit */
}

.web-hero {
  grid-area: hero;
  width: 100%;
}

.mobile-gallery {
  grid-area: mobile-gallery;
  width: 82px;
}

.mobile-gallery img,
.blachy-media-column a img {
  display: block;

  height: auto;
}

.mobile-gallery img {
  max-width: 100%; /* Optional: Prevent overflow */
}

.then-now-img img {
  height: 100%;
  width: auto;
}

.video {
  grid-area: video;
  width: 278px;
  height: 120px;
}

.video video {
  display: block;
  max-width: 100%; /* Optional: Prevent overflow */
  height: auto;
}

.cooking {
  grid-area: cooking;
  width: 278px;
  height: 162px;
}

.cooking img {
  display: block;
  max-width: 100%; /* Optional: Prevent overflow */
  height: auto;
}

.blachy-intro {
  text-align: right;
}

.blachy-intro p {
  width: 300px;
}

.blachy-text p {
  width: 400px;
}

.blachy-media-column {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
  height: 468px;
}

.komornik-text {
  width: 30vw;
  text-align: right;
}

/*APPS*/

.app-background-image {
  height: 350px;
  width: 515px;
  background-size: cover;
}

.app-text-left,
.app-text-right {
  width: 40vw;
}

.app-text-left {
  text-align: right;
}

.app-text-right {
  text-align: left;
}

.app-bold {
  font-weight: 500;
  color: var(--secondary-color);
}

.portfolio img,
.portfolio .app-background-image,
.portfolio img video {
  border-radius: 8px; /* Smooth corners for a modern look */
  box-shadow: 0 8px 15px rgba(6, 170, 204, 0.2),
    /* Soft blue shadow */ 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle dark shadow for contrast */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation */
}

/* Vertical Accordion for Portrait Screens */
.vertical-accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%; /* Full height */
  position: absolute;
  bottom: 0;
  justify-content: flex-end;
}

.vertical-accordion .accordion-item {
  width: 100%; /* Full width */
  transition: height 0.5s ease-in-out; /* Smooth roll-out animation */
}

.vertical-accordion .accordion-item.active {
  height: calc(
    100vh - 100px
  ); /* Expand to fill available height minus inactive item height */
}

.vertical-accordion .accordion-header {
  height: auto; /* Adjust height */
  width: 100%; /* Full width */
  text-align: center; /* Center the text */
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  font-size: 2.5vh;
}

.vertical-accordion .close-accordion {
  margin-right: 20px;
}

.vertical-accordion .accordion-item.active .accordion-header {
  display: none; /* Hide header */
}

.horizontal-accordion .accordion-item.active .accordion-header {
  display: block; /* Ensure header stays visible in landscape mode */
}

.vertical-accordion .accordion-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-x: auto; /* Horizontal scrolling */
  width: 100%;
  height: 100%;
  padding: 20px;
}

.portfolio-text,
.flex-unit p {
  line-height: 2.7vh;
}

.app-bold {
  text-align: center;
}

/*TOOLS & TECH STACK*/
.tools-brackets {
  position: relative;
  left: -60px;
}
.blue-bracket,
.yellow-bracket {
  position: relative;
  max-height: 100px;
  top: 20px;
}

.tools-and-tech .text {
  width: 20%;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  padding: 0px;
  gap: 8px;
  justify-content: space-between;
  width: 603px;
  flex: none;
  order: 1;
  flex-grow: 0;
  max-width: 60%;
}

.tech-stack img {
  flex: 1 1 calc(50% - 8px); /* Each image takes up 50% of the container width minus the gap */
  max-width: calc(50% - 8px); /* Prevents overflowing */
  box-sizing: border-box;
}

/*FOOTER*/
footer {
  width: 100%;
  background-color: white;
  margin: 0;
  position: relative;
  height: 80vh;
  margin-top: 100px;
}

.pink-intersect {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%; /* Full width */
  height: auto; /* Maintain aspect ratio */
  z-index: 0;
}

.contact-signature,
.contact-details,
.footer-mark {
  color: white;
  z-index: 2;
}

.contact-signature {
  position: absolute;
  bottom: 25vh;
  right: 10vw;
}

.contact-details {
  position: absolute;
  bottom: 18vh;
  right: 10vw;
  font-weight: normal;
}

.contact-details a {
  transition: all 0.3s ease;
}

.contact-details a:hover {
  color: var(--secondary-color);
}

.footer-mark {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .content-block {
    overflow-x: auto;
    overflow-y: hidden;
  }
  .tech-stack {
    padding: 70px 0;
  }
  .header-illustration h3 {
    left: 70% !important;
    max-width: 30%;
  }
}

/*Medium screens*/
@media (min-width: 768px) and (orientation: portrait) {
  /* Styles for tablets */
  h1 {
    font-size: 7vw;
    line-height: 8vw;
  }
  h2 {
    font-size: 7vw;
  }
  h3 {
    font-size: 2.7vw;
  }
  h4 {
    font-size: 2vw;
    line-height: 2.5vw;
  }
  h5,
  p {
    font-size: 2.5vh;
    line-height: 3.5vh;
  }

  .header-apple-eve {
    max-width: 70%;
    top: 10vh !important;
  }

  .top-leaf {
    left: 37% !important;
  }

  .heading-signature .signature {
    top: 4dvh;
  }

  .heading-signature h1 {
    bottom: 3dvh;
  }

  .content-web-design .content-box {
    height: auto;
    width: 100%;
    gap: 0;
  }

  .menu-buttons .menu-button {
    font-size: 2.5vh;
  }

  .chapter-content.web-dev-intro {
    height: 100dvh;
    width: 100dvw;
    margin: 5dvh 5dvw;
    padding: 10vh 2vw;
  }

  .website-types-content {
    padding: 10dvh 0;
  }

  .hover-cards.grid-card-container {
    height: 100%;
  }

  .content-web-design .content-box {
    gap: 200px;
  }
  .wireframes-illustrations img {
    height: 35dvh;
  }

  .web-des-illustration {
    align-self: center;
    left: 0;
  }

  .accordion-content .side-pointer {
    bottom: 190px;
  }

  /*FOOTER*/
  footer {
    height: 50vh;
  }

  .contact-details {
    bottom: 4vh;
    right: 4vw;
  }
  .contact-signature {
    bottom: 10vh;
  }
  .yellow-bracket,
  .blue-bracket {
    height: 100px;
  }
}

/*Portrait: Big & Middle Size*/
@media (orientation: portrait) {
  h1 {
    font-size: 12vw;
    line-height: 16vw;
  }
  h2 {
    font-size: 7vw;
  }
  h3 {
    font-size: 2.7vw;
  }
  h4 {
    font-size: 2.5vw;
    line-height: 4.5vw;
  }
  h5,
  p {
    font-size: 2.5vw;
    line-height: 4vw;
  }
  .header {
    height: 60vh;
  }

  .header-apple-eve {
    max-width: 80%;
    top: 10vh !important;
  }

  .top-leaf {
    left: 45% !important;
  }

  .menu-button {
    font-size: 1.5vh;
  }

  .contact-section .sidebar,
  .sidebar-contact-form button {
    background-color: white;
    color: var(--primary-color);
  }

  .menu-section .sidebar {
    background-color: white;
    color: var(--secondary-color);
  }

  .header-illustration h3 {
    top: 53vh !important;
    max-width: 25%;
    font-size: 2.2vh;
  }

  .contact-box h2 {
    font-size: 7vw;
  }

  .intro-content,
  .web-dev-intro,
  .content-box {
    flex-direction: column !important;
  }
  .intro-text {
    width: 85%;
    height: auto;
  }

  .palm-video {
    margin-top: 50px;
    align-self: center;
    position: static;
  }

  .portrait-screen {
    display: inline !important;
  }

  .horizontal-screen {
    display: none;
  }

  /*Web dev & des */
  .background-img {
    height: 50vh;
  }

  .underline {
    width: 50%;
    left: -20px;
    bottom: 10px;
  }
  .pointer {
    right: -38%;
  }

  .tools-and-tech .pointer {
    right: -50%;
  }

  .chapter-content {
    margin: 0 100px;
    padding: 10vh 10vw;
  }

  .content-box {
    margin-top: 50px;
    height: 100%;
    gap: 10vh;
    padding: 0 30px !important;
  }

  .website-types-content {
    margin: 0 100px;
    height: 100%;
    justify-content: center;
  }

  .hover-cards {
    margin: 0;
  }

  .card-item {
    aspect-ratio: 2 / 3; /* Portrait aspect ratio */
  }

  .grid-card-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 10px 30px;
    margin: 0px;
  }

  .content-web-design .text p {
    font-size: 2.5vh;
    line-height: 3vh;
  }

  .web-des-illustration {
    max-width: 50%;
    top: 5vh;
  }

  /*Portfolio*/

  .side-pointer {
    bottom: 90px;
    left: 30%;
    margin: 0 auto;
  }
  .portfolio-text {
    width: 60vw !important;
  }

  .blachy-intro p {
    width: auto;
  }

  .app-content {
    display: grid;
    grid-template-columns: 700px 700px;
    grid-auto-rows: 50%;
    align-items: baseline;
    gap: 50px 200px;
  }

  .flex-unit {
    height: 50%;
    width: 700px;
    font-size: 1vh;
  }

  .app-background-image {
    margin: 50px auto;
  }

  .app-text-left {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 2;
  }

  .app-img-left {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 3;
  }

  .app-text-right {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
  }

  .app-img-right {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
  }

  /*TOOLS & TECH*/

  .tools-and-tech .text {
    width: auto;
  }

  .tools-brackets {
    left: -70px;
  }
  .blue-bracket,
  .yellow-bracket {
    position: relative;
    top: 10px;
    margin: 0 10px;
  }

  /*FOOTER*/
  footer {
    height: 30vh;
  }

  .contact-details {
    bottom: 4vh;
    right: 4vw;
  }
  .contact-signature {
    bottom: 10vh;
  }

  .menu-button {
    font-size: 1.5vh;
  }
}

/*Smartphones*/
@media (max-width: 450px) {
  .big-screen {
    display: none !important;
  }

  .mobile-screen {
    display: inline !important;
  }

  h1 {
    font-size: 12vw;
    line-height: 16vw;
  }
  h2 {
    font-size: 6vh;
  }
  h3 {
    font-size: 2.4vh;
  }
  h4,
  .content-web-design .text p {
    font-size: 2vh;
    line-height: 2.5vh;
  }
  h5,
  p {
    font-size: 1.9vh;
    line-height: 2.7vh;
    font-weight: 300;
  }

  .header {
    height: 80vh;
    overflow: hidden;
    width: 100%;
  }

  .click-buttons {
    justify-content: space-around;
    left: 20px;
    top: 20px;
  }

  .close-button {
    width: 30px !important;
  }

  .menu-mobile {
    position: absolute;
    right: 20px;
    top: 20px;
  }

  .side-leaf {
    position: absolute;
    left: auto !important;
    right: 0;
    top: 10vh !important;
  }

  .header-apple-eve {
    top: 15vh !important;
    max-width: 75%;
  }

  .heading-signature {
    width: 100dvw;
    top: 55dvh;
  }

  .heading-signature .signature {
    top: 4dvh;
    width: 70%;
  }

  .heading-signature h1 {
    font-size: 6dvw;
    line-height: 6.9dvw;
    left: 5%;
    bottom: -15%;
  }

  .intro {
    z-index: 20;
  }

  .intro-content {
    padding-top: 150px;
    padding-bottom: 100px;
    margin: 0;
    align-items: center;
    width: 100%;
  }

  .intro-text {
    margin: 0 50px;
    text-align: center;
  }

  .palm-video {
    max-width: 60%;
  }

  #web-development .chapter-frontpage,
  #web-development .chapter-content {
    width: 170vw;
  }

  .web-dev-intro img {
    max-width: 50%;
    margin-bottom: 50px;
  }

  .pointer {
    right: -4%;
  }

  .pointer img {
    max-width: 70%;
  }

  .web-dev-intro .content-box {
    margin-top: 100px;
  }

  .chapter-content {
    padding: 3vh 0;
    height: 100vh;
  }

  .grid-card-container {
    flex-direction: row;
  }

  .hover-card-flex {
    flex-direction: column;
    gap: 10px;
    max-height: 90vh;
    padding-top: 100px;
  }

  .content-web-design .content-box {
    height: auto;
    gap: 30px;
    margin-top: 80px;
  }

  .content-web-design .text {
    height: auto;
  }

  .wireframes-illustrations {
    height: auto;
  }

  .wireframes-illustrations img {
    max-height: 80%;
    width: 80%;
  }

  .web-des-illustration {
    max-width: 60%;
    top: 15vh;
  }

  .accordion-item {
    height: 50px !important;
  }

  .vertical-accordion .accordion-item.active {
    height: calc(100vh - 50px) !important;
  }

  .vertical-accordion .accordion-content {
    flex-direction: column;
  }
  .close-accordion {
    width: 20px;
    height: 20px;
    margin-bottom: 10px;
  }

  .portfolio-text p {
    width: 70vw !important;
  }

  .portfolio-content-unit {
    margin-left: 20px;
  }

  .flex-unit {
    width: 90%;
  }

  .flex-unit p {
    font-size: 12px;
    text-align: center;
  }
  .flex-unit a div {
    max-width: 100%;
    max-height: 100%;
  }

  .app-content {
    grid-template-columns: 85vw 85vw;
    gap: 50px 100px;
  }

  .accordion-content .content-block {
    padding: 0;
  }

  #accordion-apps .portfolio-content-unit {
    margin: 0 50px;
  }

  .tools-brackets {
    left: -45px;
  }
  .blue-bracket,
  .yellow-bracket {
    height: 70px;
    top: 15px;
    margin: 0;
  }

  .tools-and-tech .chapter-content {
    justify-content: center;
    height: auto;
    gap: 30px;
  }

  .tools-and-tech .text {
    max-width: 80%;
  }

  .tech-stack {
    width: 100%;
    max-width: 100%;
  }

  .tech-stack img {
    max-width: 80%;
    height: auto;
    align-self: center;
    margin: 0 auto;
  }

  footer {
    overflow-x: hidden;
    height: 60vh;
    margin-top: 0;
  }

  .contact-signature {
    max-width: 80%;
    bottom: 20vh;
    right: -8vw;
  }

  .contact-details {
    bottom: 10vh;
    text-align: right;
  }

  .footer-mark {
    font-family: "Candara Light";
    font-size: 12px;
  }

  /*Menu resp */
  .menu-section {
    justify-self: center;
    text-align: right;

    width: 100px;
    align-items: end;
    flex-direction: column;
  }
  .hamburger {
    position: relative;
    top: 30%;
    left: 70%;
    display: flex;
    height: 25px;
    width: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    z-index: 1;
    align-self: flex-end;
  }

  .hamburger i {
    display: inline-block;
    height: 3px;
    width: 30px;
    background: var(--secondary-color);
    border-radius: 2px;
  }

  .sidebar {
    padding: 50px 15px;
    width: 90vw;
    left: -30px;
    top: -20px;
  }

  .menu-section .sidebar {
    width: 90vw;
    align-items: center;
  }

  .mobile-nav {
    width: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    font-family: "Roboto";
    position: static;
    height: 100%;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav .menu-button {
    font-size: 18px;
    line-height: 40px;
    transition: all ease-in-out 0.5s;
    font-family: "Roboto Condensed", sans-serif;
    color: var(--secondary-color);
  }

  .mobile-nav .menu-button:hover {
    font-size: 22px;
  }

  .menu-control:checked + .menu-section .sidebar {
    transform: translateX(150px);
  }

  .sidebar__close {
    width: 40px;
    height: 40px;
    right: -20px;
  }

  #contactForm {
    max-width: 80%;
  }
}
