body {
  font-family: "Open Sans", sans-serif;
  background: #ebf1f6;
  color: #000;
  overflow-x: hidden;
  margin-top: 0;
  padding: 0;
}

.container {
  width: 90%;
  margin: auto;
}

header {
  width: 100%;
  padding-top: 3%;
}

.hero-section {
  position: relative;
  padding-top: 11.5%;
}

.hero-text-block {
  font-size: clamp(2.2rem, 8vw, 9rem);
  font-weight: 500;
  line-height: 1.05; /* Tighter line spacing */
}

.hero-text-block span {
  margin-left: -1%;
  padding-left: 0;
  letter-spacing: 2px;
  line-height: inherit;
}

.hero-text-block span span {
  color: #eeff69;
}

.help-heading {
  margin-top: 11%;
  font-size: clamp(1.3rem, 4vw, 4.4rem);
}

.services-section {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 4%;
  width: 92%;
}

.section-desc {
  width: 90%;
  position: relative;
  color: #999;
  font-size: clamp(1rem, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.5;
  word-wrap: break-word;
  margin-top: 8%;
}

.section-desc.animate-text span {
  color: #999;
  transition: color 0.3s ease;
}

.section-desc.animate-text span.animated {
  color: #000;
}

/* Letter-by-letter coloring for services section */
.animate-text-letter {
  color: #999;
  transition: color 0.2s ease;
}

.animate-text-letter.colored {
  color: #000 !important;
}

.section-title {
  position: relative;
  color: #000;
  font-size: clamp(2rem, 4vw, 50px);
  font-weight: 500;
  line-height: 1;
  word-wrap: break-word;
}

.service-card {
  width: 45.5%;
}

.process-section {
  width: 92%;
  margin-top: 4%;
}

.how-i-function {
  position: relative;
  color: black;
  font-size: clamp(2rem, 4vw, 50px);
  font-weight: 500;
  line-height: 1.4;
  word-wrap: break-word;
  margin-bottom: 4.5%;
}

.process-section-boxes {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row;
}

.process-step {
  width: 30%;
}

.step-number {
  color: #f23839;
  font-size: 60px;

  font-weight: 400;
  line-height: 60px;
  word-wrap: break-word;
  margin-bottom: 10%;
}

.process-step-title {
  width: 50%;
  color: black;
  font-size: 30px;

  font-weight: 500;
  line-height: 32px;
  word-wrap: break-word;
}

.process-step-desc {
  width: 80%;
  color: black;
  font-size: 20px;

  font-weight: 400;
  line-height: 22px;
  word-wrap: break-word;
  margin-top: 5%;
}

.text-span-70-black {
  color: black;
  font-size: 70px;

  font-weight: 400;
  line-height: 70px;
  word-wrap: break-word;
}
.text-span-70-white {
  color: white;
  font-size: 70px;

  font-weight: 400;
  line-height: 70px;
  word-wrap: break-word;
}
.text-span-70-highlight {
  color: #f0ff77;
  font-size: 70px;

  font-weight: 400;
  line-height: 70px;
  word-wrap: break-word;
}

.portfolio-intro-section {
  width: 97%;
  margin: auto;
  margin-top: 10.5%;
}

.portfolio-intro-boxes {
  width: 100%;
  margin-top: 5.5%;
}

.portfolio-intro {
  position: relative;
  margin-left: 2.5%;
}

.portfolio-intro-box {
  width: 100%;
}

.portfolio-intro-box:first-child {
  margin-bottom: 1.5%;
}

.portfolio-intro-box-box {
  width: 49.5%;
  background-color: #d9d9d9;
  border-radius: 23px;
}

.portfolio-intro-boxes .portfolio-intro-box:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.portfolio-intro-box-box-right {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 50%;
}

.portfolio-intro-box-box-right .portfolio-intro-box-box-box {
  width: 50%;
}

.portfolio-intro-boxes .portfolio-intro-box:last-child {
  background-color: #d9d9d9;
  border-radius: 23px;
  padding: 1%;
  width: 98%;
  height: clamp(400px, 90vh, 900px);
  min-height: 400px;
}

.portfolio-intro-img59-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.portfolio-intro-img59 {
  width: 100%;
}

/* Scrollytelling Image Animation */
.portfolio-intro-box:last-child {
  position: relative;
  border-radius: 23px;
}

.scrollytelling-viewport {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 20px;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top;
  will-change: transform;
}

.portfolio-intro-img6 {
  margin-top: 6%;
  margin-left: 5.9%;
  padding-bottom: 5%;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.3s ease;
  transform-style: preserve-3d;
  transform-origin: center;
}

.portfolio-intro-img7 {
  margin-top: 17%;
  margin-left: 25.9%;
  padding-bottom: 10%;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.3s ease;
  transform-style: preserve-3d;
  transform-origin: center;
}

.portfolio-intro-img8 {
  margin-top: 13.5%;
  margin-left: -9%;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.3s ease;
  transform-style: preserve-3d;
  transform-origin: center;
}

.portfolio-intro-img6:hover,
.portfolio-intro-img7:hover,
.portfolio-intro-img8:hover {
  transform: translateZ(0) scale(1.06) rotateX(1deg) rotateY(-1deg);
}

.graphic-design-section {
  padding-top: 0; /* No padding - header will have margin */
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2%;
  width: 88%;
  margin-left: 3%;
  margin-top: 10%; /* Push entire section down */
  min-height: 300vh;
  position: relative; /* Establish containing block */
}

#gd-sticky-header {
  position: sticky;
  top: 0;
  width: 40%;
  align-self: flex-start;
  z-index: 10;
  padding-top: 7%; /* Space for SVG above title */
}

.graphic-design-title {
  position: relative;
  color: black;
  font-size: clamp(2rem, 12vw, 150px);
  font-weight: 400;
  line-height: 1;
  word-wrap: break-word;
  margin-top: 4%;
}

.graphic-design-title svg {
  position: absolute;
  top: -35%;
  right: -3%;
}

.design-desc-5150 {
  width: 85%;
  margin-left: 3%;
  margin-top: 1%;
  position: relative;
  color: black;
  font-size: 20px;
  font-weight: 400;
  line-height: 25px;
  word-wrap: break-word;
}

.gallery-grid {
  width: 58%;
  flex: 1 1 0;
  width: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  justify-items: start; /* keep items to the left within tracks */
  align-items: start;
  row-gap: 1.8%;
  column-gap: 1%;
  perspective: 1000px; /* 3D perspective for items */
}

.gallery-item {
  border-radius: 23px;
  width: 100%;
  margin: 0;
  opacity: 0; /* Start hidden */
  transform: translateY(60px) translateZ(-50px) rotateX(10deg);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  pointer-events: none;
}

/* Visible state - applied when should be shown */
.gallery-item.visible {
  opacity: 1;
  transform: translateY(0) translateZ(0) rotateX(0deg);
  pointer-events: auto;
}

.gallery-item-img {
  position: relative;
  border-radius: 23px;
  width: 100%;
}

.gallery-item-label {
  margin-left: 2%;
  margin-top: 2.5%;
}

.gallery-item-label-title {
  color: black;
  font-size: 20px;

  font-weight: 500;
  line-height: 20px;
  word-wrap: break-word;
}

.gallery-item-label-subtitle {
  color: #686868;
  font-size: 15px;

  font-weight: 500;
  line-height: 20px;
  word-wrap: break-word;
}

.logos-philosophy-section {
  margin-top: 32%;
  width: 50%;
  margin-left: 40%;
}

.logos-box {
  margin-top: 3.5%;
  margin-left: 1%;
}

.logos-title {
  position: relative;
  width: 65%;
  color: black;
  font-size: clamp(2rem, 12vw, 150px);
  font-weight: 400;
  line-height: 1;
  word-wrap: break-word;
}

.logos-title svg {
  position: absolute;
  top: -35%;
  right: 0%;
}

.logos-desc {
  margin-top: 3%;
  width: 64%;
  position: relative;
  color: black;
  font-size: 20px;
  font-weight: 300;
  line-height: 25px;
  word-wrap: break-word;
}

.last-logo-box {
  margin-top: 9% !important;
}

.last-logo-box .logos-desc {
  width: 66% !important;
}

.logos-portfolio-box {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  width: 100%;
  padding-right: 5%;
  transition: justify-content 0.6s ease-out, padding-right 0.6s ease-out;
}

.logos-portfolio-box.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* justify-content se kontroliše kroz JavaScript postepeno */
  padding-right: 5%;
}

.portfolio-viewport {
  width: 50%;
  max-width: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: width 0.5s ease-out, max-width 0.5s ease-out;
  perspective: 1500px;
}

.logos-portfolio-box.is-fixed .portfolio-viewport {
  max-width: 100%;
}

.portfolio-items {
  display: flex !important;
  align-items: stretch;
  justify-content: flex-start;
  width: 300% !important;
  gap: 0 !important;
  transition: transform 0.45s ease-out !important;
  transform-origin: center center;
  transform-style: preserve-3d;
}

.portfolio-item {
  flex: 0 0 calc(300% / 12);
  max-width: calc(300% / 12);
  opacity: 1;
  transition: all 0.45s ease-out;
  position: relative;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
}

/* Width states */
.portfolio-viewport.width-2 {
  width: 50%;
}

.portfolio-viewport.width-3 {
  width: 70%;
}

.portfolio-viewport.width-4 {
  width: 100%;
}

.portfolio-item img {
  width: 65%;
  height: auto;
  object-fit: contain;
  margin: 0 auto 12px auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.portfolio-num {
  position: relative;
  color: black;
  font-size: 50px;
  font-weight: 300;
  word-wrap: break-word;
}

.portfolio-desc {
  position: relative;
  color: #686868;
  font-size: 20px;
  font-weight: 300;
  word-wrap: break-word;
}

.portfolio-title {
  position: relative;
  color: black;
  font-size: 30px;
  font-weight: 400;
  word-wrap: break-word;
}

.three-tibo-donuts {
  width: 90%;
  padding-top: 12%;
}

.three-tibo-donuts-desc {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.three-tibo-donuts-desc .three-tibo-donuts-desc-box:first-child {
  width: 70%;
}

.text-50-regular {
  color: black;
  font-size: clamp(1.2rem, 4vw, 50px);
  font-weight: 400;
  line-height: 1.4;
  word-wrap: break-word;
}

.text-50-regular .tribo-desc-letter {
  color: #999;
  transition: color 0.2s ease;
}

.text-50-regular .tribo-desc-letter.colored {
  color: #000 !important;
}

#tribo-title {
  position: relative;
  display: inline-block;
  color: white;
  font-size: 23px;
  font-weight: 700;
  line-height: 30px;
  background: #f23839;
  padding: 10px 15px;
  border-radius: 133.5px;
  word-wrap: break-word;
  overflow: hidden;
  white-space: nowrap;
  max-width: 250px;
}

#tribo-title .marquee-wrapper {
  display: inline-block;
  animation: marquee 8s linear infinite;
  padding-right: 30px;
}

#tribo-title .marquee-wrapper::after {
  content: attr(data-text);
  padding-left: 30px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.three-tibo-donuts-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
  row-gap: 1rem;
  margin-top: 3%;
}

.tribo-item {
  background: #5b77ff;
  border-radius: 23px;
  padding: 2rem;
  min-height: 5vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tribo-item-full {
  position: relative;
  grid-column: 1 / -1; /* Span full width */
}

.three-tibo-donuts-layout .tribo-item:first-child img {
  padding-top: 5%;
  padding-bottom: 6%;
}

.tribo-item-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tribo-item-box img {
  position: absolute;
  right: -4.1%;
}

.tribo-item p {
  width: 50%;
  position: relative;
  text-align: center;
  color: white;
  font-size: 25px;
  font-weight: 400;
  line-height: 27px;
  word-wrap: break-word;
}

.tribo-item p span {
  position: relative;
  color: #001a3a;
  font-size: 40px;
  font-weight: 800;
  word-wrap: break-word;
}

.tribo-item-full img {
  padding-top: 5.5%;
  margin-left: 4%;
}

.tribo-item-full img {
  width: 54.2%;
}

.tribo-item-full-img-first {
  width: 100% !important;
  z-index: 2;
}

.tribo-item-full-img {
  position: absolute;
  bottom: 0;
  right: 0.5%;
  z-index: 1;
}

.tribo-item-1 img {
  width: 85.5%;
}

.tribo-item-2 img {
  width: 55%;
}

.tribo-item-4 {
  padding-bottom: 98%;
}

.tribo-item-4 img {
  width: 100%;
  position: absolute;
  top: 0;
  right: 0;
}

.tribo-item-5 img {
  width: 100%;
}

.tribo-item-6 {
  padding-bottom: 0%;
}

.tribo-item-6 img {
  position: absolute;
  width: 100%;
  bottom: -0%;
  left: 0;
}

.tribo-item-7 {
  padding-bottom: 65%;
}

.tribo-item-7 img {
  position: absolute;
  bottom: -7%;
  left: -5%;
}

footer {
  margin-top: 10%;
  /* padding: 5% 0; */
}

footer h3 {
  font-size: clamp(2rem, 5vw, 6.2rem);
  font-weight: 400;
  /* margin-bottom: 5%; */
  margin-bottom: 2%;
  line-height: 1.1;
}

footer .contact-info-boxes a {
  font-size: 2rem;
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

footer .contact-info-boxes a span {
  font-weight: 700;
}

footer .contact-info-boxes2 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

footer .contact-info-boxes2 .contact-info-box:last-child img {
  width: 100%;
}

footer .contact-info-boxes2 a,
footer .contact-info-boxes2 p {
  color: #000;
  text-decoration: none;
}

footer .contact-info-boxes2 a span {
  font-weight: 700;
}

.contact-info-boxes {
  display: flex;
  gap: 3rem;
  justify-content: flex-start;
}

.contact-info-box a {
  font-size: 1.2rem;
  color: #000;
  text-decoration: none;
  font-weight: 500;
}
/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Mobile devices: 320px - 480px */
@media (max-width: 480px) {
  .container {
    width: 95%;
  }

  header {
    padding-top: 5%;
  }

  .hero-section {
    padding-top: 20%;
  }

  .hero-text-block {
    font-size: 2.2rem;
    line-height: 1.1;
  }

  .hero-text-block span {
    letter-spacing: 1px;
  }

  .help-heading {
    margin-top: 15%;
    font-size: 1.3rem;
  }

  .services-section {
    flex-direction: column;
    width: 100%;
    margin-top: 10%;
  }

  .service-card {
    width: 100%;
    margin-bottom: 10%;
  }

  .section-title {
    font-size: 2rem;
    line-height: 2.2rem;
  }

  .section-desc {
    width: 100%;
    font-size: 1rem;
    line-height: 1.5rem;
    margin-top: 5%;
  }

  .process-section {
    width: 100%;
    margin-top: 10%;
  }

  .how-i-function {
    font-size: 2rem;
    line-height: 2.2rem;
    margin-bottom: 8%;
  }

  .process-section-boxes {
    flex-direction: column;
  }

  .process-step {
    width: 100%;
    margin-bottom: 10%;
  }

  .step-number {
    font-size: 2rem;
  }

  .process-step-title {
    width: 100%;
    font-size: 1.1rem;
  }

  .process-step-desc {
    width: 100%;
    font-size: 0.9rem;
    line-height: 1.3rem;
  }

  .portfolio-intro-section {
    width: 100%;
    margin-top: 15%;
  }

  .portfolio-intro {
    margin-left: 0;
  }

  .text-span-70-black,
  .text-span-70-white,
  .text-span-70-highlight {
    font-size: 2.2rem;
    line-height: 2.4rem;
  }

  .portfolio-intro-boxes {
    flex-direction: column;
  }

  .portfolio-intro-box {
    width: 100%;
    margin-bottom: 5%;
  }

  .portfolio-intro-box-box {
    width: 100%;
    margin-bottom: 4%;
  }

  .portfolio-intro-boxes .portfolio-intro-box:first-child {
    flex-direction: column;
  }

  .portfolio-intro-box-box-right {
    width: 100%;
    flex-direction: column;
  }

  .portfolio-intro-box-box-right .portfolio-intro-box-box-box {
    width: 100%;
    margin-bottom: 4%;
  }

  .portfolio-intro-img6,
  .portfolio-intro-img7,
  .portfolio-intro-img8 {
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Graphic Design Section */
  .graphic-design-section {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    margin-top: 15%;
    min-height: auto;
    gap: 10%;
  }

  #gd-sticky-header {
    position: relative;
    width: 100%;
    padding-top: 0;
  }

  .graphic-design-title {
    font-size: 2rem;
    line-height: 2.2rem;
  }

  .graphic-design-title svg {
    position: absolute;
    top: -30%;
    right: 0%;
    width: 30px;
    height: 30px;
  }

  .design-desc-5150 {
    width: 100%;
    margin-left: 0;
    font-size: 0.9rem;
    line-height: 1.4rem;
  }

  .gallery-grid {
    width: 100%;
    grid-template-columns: 1fr;
    row-gap: 5%;
    column-gap: 0;
  }

  .gallery-item-label-title {
    font-size: 0.9rem;
  }

  .gallery-item-label-subtitle {
    font-size: 0.8rem;
  }

  /* Logos Section */
  .logos-philosophy-section {
    margin-top: 15%;
    width: 100%;
    margin-left: 0;
  }

  .logos-title {
    width: 100%;
    font-size: 2rem;
    line-height: 2.2rem;
  }

  .logos-title svg {
    position: absolute;
    top: -30%;
    right: 0%;
    width: 30px;
    height: 30px;
  }

  .logos-box {
    margin-top: 8%;
    margin-left: 0;
  }

.logos-heading {
  font-size: clamp(1.3rem, 3vw, 2.5rem);
  line-height: 1.2;
}  .logos-desc {
    width: 100% !important;
    font-size: 0.9rem;
    line-height: 1.4rem;
  }

  /* Portfolio Carousel */
  .logos-portfolio-box {
    min-height: 80vh;
    padding-right: 0;
    justify-content: center;
  }

  .logos-portfolio-box.is-fixed {
    padding-right: 0;
  }

  .portfolio-viewport {
    width: 100%;
    max-width: 100%;
  }

  .portfolio-viewport.width-2,
  .portfolio-viewport.width-3,
  .portfolio-viewport.width-4 {
    width: 100%;
  }

  .portfolio-item {
    padding: 10px 8px;
  }

  .portfolio-num {
    font-size: 1.5rem;
  }

  .portfolio-title {
    font-size: 1rem;
  }

  .portfolio-desc {
    font-size: 0.8rem;
    line-height: 1.1rem;
  }

  .portfolio-item img {
    width: 80%;
  }

  /* Three Tribo Donuts Section */
  .three-tibo-donuts {
    width: 100%;
    padding-top: 15%;
  }

  footer {
    margin-top: 15%;
  }

  footer h3 {
    font-size: 2rem;
    line-height: 2.2rem;
    margin-bottom: 5%;
  }

  .contact-info-boxes {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-info-box a {
    font-size: 1rem;
  }

  .three-tibo-donuts-desc {
    flex-direction: column;
  }

  .three-tibo-donuts-desc .three-tibo-donuts-desc-box:first-child {
    width: 100%;
    margin-bottom: 10%;
  }

  .text-50-regular {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  #tribo-title {
    font-size: 1rem;
    padding: 5px 10px;
    max-width: 120px;
  }

  .three-tibo-donuts-layout {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 2rem;
  }

  .tribo-item {
    padding: 1rem;
    min-height: 200px;
  }

  .tribo-item-full {
    grid-column: 1 / -1;
  }

  .tribo-item p {
    width: 100%;
    font-size: 1rem;
    line-height: 1.3rem;
  }

  .tribo-item p span {
    font-size: 1.5rem;
  }

  .tribo-item-box img {
    position: relative;
    right: auto;
    margin-top: 1rem;
  }

  .tribo-item-1 img,
  .tribo-item-2 img,
  .tribo-item-4 img,
  .tribo-item-5 img,
  .tribo-item-6 img,
  .tribo-item-7 img {
    width: 100%;
    padding: 0;
  }

  .tribo-item-4 {
    padding-bottom: 0;
  }

  .tribo-item-4 img {
    position: relative;
    top: auto;
  }

  .tribo-item-6 img {
    position: relative;
    bottom: auto;
    left: auto;
  }

  .tribo-item-7 img {
    position: relative;
    bottom: auto;
    left: auto;
  }

  footer {
    padding-top: 10%;
    text-align: center;
  }

  footer h3 {
    font-size: 1.5rem;
  }

  .contact-info-boxes {
    flex-direction: column;
  }

  .contact-info-box {
    width: 100%;
    margin-bottom: 2rem;
  }
}

/* Tablets and small devices: 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    width: 92%;
  }

  header {
    padding-top: 4%;
  }

  .hero-section {
    padding-top: 18%;
  }

  .hero-text-block {
    font-size: 4rem;
    line-height: 1.1;
  }

  .hero-text-block span {
    letter-spacing: 1px;
  }

  .help-heading {
    margin-top: 12%;
    font-size: 2rem;
  }

  .services-section {
    flex-direction: column;
    width: 100%;
    margin-top: 8%;
  }

  .service-card {
    width: 100%;
    margin-bottom: 8%;
  }

  .section-title {
    font-size: 2.5rem;
    line-height: 2.8rem;
  }

  .section-desc {
    width: 100%;
    font-size: 1.2rem;
    line-height: 1.8rem;
    margin-top: 5%;
  }

  .process-section {
    width: 100%;
    margin-top: 8%;
  }

  .how-i-function {
    font-size: 2.5rem;
    line-height: 2.8rem;
    margin-bottom: 6%;
  }

  .process-section-boxes {
    flex-direction: column;
    gap: 5%;
  }

  .process-step {
    width: 100%;
  }

  .step-number {
    font-size: 2.5rem;
  }

  .process-step-title {
    width: 100%;
    font-size: 1.5rem;
  }

  .process-step-desc {
    width: 100%;
    font-size: 1rem;
    line-height: 1.4rem;
  }

  .portfolio-intro-section {
    width: 100%;
    margin-top: 12%;
  }

  .text-span-70-black,
  .text-span-70-white,
  .text-span-70-highlight {
    font-size: 3rem;
    line-height: 3.2rem;
  }

  .portfolio-intro-boxes .portfolio-intro-box:last-child {
    height: 60vh;
    min-height: 400px;
  }

  .portfolio-intro-boxes {
    flex-direction: column;
  }

  .portfolio-intro-box {
    width: 100%;
    margin-bottom: 5%;
  }

  .portfolio-intro-box-box {
    width: 100%;
    margin-bottom: 4%;
  }

  .portfolio-intro-boxes .portfolio-intro-box:first-child {
    flex-direction: column;
  }

  .portfolio-intro-box-box-right {
    width: 100%;
    flex-direction: column;
  }

  .portfolio-intro-box-box-right .portfolio-intro-box-box-box {
    width: 100%;
    margin-bottom: 4%;
  }

  .portfolio-intro-img6,
  .portfolio-intro-img7,
  .portfolio-intro-img8 {
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Graphic Design Section */
  .graphic-design-section {
    flex-direction: column;
    width: 94%;
    margin-left: 3%;
    margin-top: 12%;
    min-height: auto;
    gap: 8%;
  }

  #gd-sticky-header {
    position: relative;
    width: 100%;
    padding-top: 0;
  }

  .graphic-design-title {
    font-size: 3rem;
    line-height: 3.2rem;
  }

  .graphic-design-title svg {
    width: 50px;
    height: 50px;
  }

  .design-desc-5150 {
    width: 100%;
    margin-left: 0;
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .gallery-grid {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 3%;
    column-gap: 2%;
  }

  .gallery-item-label-title {
    font-size: 1rem;
  }

  .gallery-item-label-subtitle {
    font-size: 0.85rem;
  }

  /* Logos Section */
  .logos-philosophy-section {
    margin-top: 15%;
    width: 100%;
    margin-left: 0;
  }

  .logos-title {
    width: 100%;
    font-size: 3rem;
    line-height: 3.2rem;
  }

  .logos-title svg {
    width: 50px;
    height: 50px;
  }

  .logos-box {
    margin-top: 8%;
    margin-left: 0;
  }

  .logos-heading {
    font-size: 2rem;
    line-height: 2.3rem;
  }

  .logos-desc {
    width: 100% !important;
    font-size: 1rem;
    line-height: 1.5rem;
  }

  /* Portfolio Carousel */
  .logos-portfolio-box {
    min-height: 100vh;
    padding-right: 0;
    justify-content: center;
  }

  .logos-portfolio-box.is-fixed {
    padding-right: 0;
  }

  .portfolio-viewport {
    width: 90%;
    max-width: 100%;
  }

  .portfolio-viewport.width-2,
  .portfolio-viewport.width-3,
  .portfolio-viewport.width-4 {
    width: 90%;
  }

  .portfolio-item {
    padding: 12px 10px;
  }

  .portfolio-num {
    font-size: 2rem;
  }

  .portfolio-title {
    font-size: 1.1rem;
  }

  .portfolio-desc {
    font-size: 0.9rem;
    line-height: 1.2rem;
  }

  .portfolio-item img {
    width: 75%;
  }

  /* Three Tribo Donuts Section */
  .three-tibo-donuts {
    width: 100%;
    padding-top: 12%;
  }

  .three-tibo-donuts-desc {
    flex-direction: column;
  }

  .three-tibo-donuts-desc .three-tibo-donuts-desc-box:first-child {
    width: 100%;
    margin-bottom: 8%;
  }

  .text-50-regular {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  #tribo-title {
    font-size: 1.2rem;
    padding: 6px 12px;
  }

  .three-tibo-donuts-layout {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 2rem;
  }

  .tribo-item {
    padding: 1.5rem;
    min-height: 250px;
  }

  .tribo-item p {
    width: 100%;
    font-size: 1.2rem;
    line-height: 1.5rem;
  }

  .tribo-item p span {
    font-size: 1.8rem;
  }

  .tribo-item-box img {
    position: relative;
    right: auto;
    margin-top: 1rem;
  }

  .tribo-item-1 img,
  .tribo-item-2 img,
  .tribo-item-4 img,
  .tribo-item-5 img,
  .tribo-item-6 img,
  .tribo-item-7 img {
    width: 100%;
    padding: 0;
  }

  .tribo-item-4 {
    padding-bottom: 0;
  }

  .tribo-item-4 img {
    position: relative;
    top: auto;
  }

  .tribo-item-6 img {
    position: relative;
    bottom: auto;
    left: auto;
  }

  .tribo-item-7 img {
    position: relative;
    bottom: auto;
    left: auto;
  }

  footer {
    padding-top: 8%;
  }

  footer h3 {
    font-size: 2rem;
  }

  .contact-info-boxes {
    display: flex;
    gap: 2rem;
  }

  .contact-info-box {
    flex: 1;
  }
}

/* Medium devices: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    width: 92%;
  }

  .hero-section {
    padding-top: 16%;
  }

  .hero-text-block {
    font-size: 5.5rem;
    line-height: 1.05;
  }

  .help-heading {
    margin-top: 10%;
    font-size: 2.5rem;
  }

  .services-section {
    width: 94%;
    margin-top: 5%;
  }

  .section-title {
    font-size: 3rem;
    line-height: 3.2rem;
  }

  .section-desc {
    width: 95%;
    font-size: 1.4rem;
    line-height: 2rem;
  }

  .process-section {
    width: 94%;
    margin-top: 5%;
  }

  .how-i-function {
    font-size: 3rem;
    line-height: 3.2rem;
  }

  .process-step-title {
    font-size: 1.8rem;
  }

  .process-step-desc {
    font-size: 1.1rem;
    line-height: 1.5rem;
  }

  .portfolio-intro-section {
    width: 98%;
    margin-top: 12%;
  }

  .text-span-70-black,
  .text-span-70-white,
  .text-span-70-highlight {
    font-size: 4.5rem;
    line-height: 4.8rem;
  }

  /* Graphic Design Section */
  .graphic-design-section {
    width: 92%;
    margin-left: 4%;
    margin-top: 12%;
    min-height: 280vh;
    gap: 3%;
  }

  #gd-sticky-header {
    width: 35%;
  }

  .graphic-design-title {
    font-size: 80px;
    line-height: 100px;
  }

  .gallery-grid {
    width: 62%;
  }

  /* Logos Section */
  .logos-philosophy-section {
    margin-top: 28%;
    width: 55%;
    margin-left: 38%;
  }

  .logos-title {
    font-size: 100px;
    line-height: 100px;
  }

  .logos-desc {
    font-size: 1.1rem;
    line-height: 1.6rem;
  }

  /* Portfolio Carousel */
  .portfolio-viewport {
    width: 60%;
  }

  .portfolio-viewport.width-2 {
    width: 60%;
  }

  .portfolio-viewport.width-3 {
    width: 80%;
  }

  .portfolio-viewport.width-4 {
    width: 100%;
  }

  .portfolio-title {
    font-size: 1.8rem;
  }

  .portfolio-desc {
    font-size: 1rem;
    line-height: 1.4rem;
  }

  /* Three Tribo Donuts Section */
  .three-tibo-donuts {
    width: 94%;
    padding-top: 12%;
  }

  .three-tibo-donuts-desc .three-tibo-donuts-desc-box:first-child {
    width: 80%;
  }

  .text-50-regular {
    font-size: 3rem;
    line-height: 4rem;
  }

  #tribo-title {
    font-size: 1.5rem;
    padding: 8px 12px;
    max-width: 180px;
  }

  .three-tibo-donuts-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .tribo-item {
    padding: 1.8rem;
    min-height: 350px;
  }

  .tribo-item p {
    width: 60%;
    font-size: 1.5rem;
    line-height: 1.8rem;
  }

  .tribo-item p span {
    font-size: 2.2rem;
  }
}

/* Large devices: 1025px - 1440px */
@media (min-width: 1025px) and (max-width: 1440px) {
  .hero-text-block {
    font-size: 7rem;
  }

  .help-heading {
    font-size: 3rem;
  }

  .services-section {
    width: 92%;
    margin-top: 5%;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .section-desc {
    font-size: 1.8rem;
    line-height: 2.5rem;
  }

  .process-section {
    width: 92%;
  }

  .how-i-function {
    font-size: 3.5rem;
  }

  .text-span-70-black,
  .text-span-70-white,
  .text-span-70-highlight {
    font-size: 5rem;
    line-height: 5.2rem;
  }

  .graphic-design-section {
    width: 90%;
    margin-left: 5%;
    min-height: 280vh;
  }

  .graphic-design-title {
    font-size: 120px;
    line-height: 120px;
  }

  .logos-philosophy-section {
    margin-top: 30%;
    width: 48%;
    margin-left: 42%;
  }

  .logos-title {
    font-size: 120px;
    line-height: 120px;
  }

  footer h3 {
    font-size: 5rem;
  }
}

/* Extra large screens: 1441px and above */
@media (min-width: 1441px) {
  .container {
    max-width: 1800px;
  }

  .hero-text-block {
    font-size: 9rem;
  }

  .help-heading {
    font-size: 4.4rem;
  }

  .graphic-design-title {
    font-size: 150px;
  }

  .logos-title {
    font-size: 150px;
  }

  footer h3 {
    font-size: 6.2rem;
  }

  /* Ensure scrollytelling section doesn't get too large */
  .portfolio-intro-boxes .portfolio-intro-box:last-child {
    max-height: 900px;
  }
}

/* Landscape orientation fixes for tablets and small laptops */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .portfolio-intro-boxes .portfolio-intro-box:last-child {
    height: 80vh;
    min-height: 450px;
  }

  .graphic-design-section {
    min-height: 250vh;
  }
}

/* Portrait orientation fixes for tablets */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-text-block {
    font-size: 5rem;
  }

  .portfolio-intro-boxes .portfolio-intro-box:last-child {
    height: 50vh;
    min-height: 400px;
  }
}

/* Ensure images don't overflow on any screen size */
@media (max-width: 1024px) {
  img {
    max-width: 100%;
    height: auto;
  }

  .portfolio-intro-img6,
  .portfolio-intro-img7,
  .portfolio-intro-img8 {
    width: 100%;
  }
}

/* Fix carousel for very small screens */
@media (max-width: 380px) {
  .portfolio-item {
    padding: 8px 6px;
  }

  .portfolio-num {
    font-size: 1.2rem;
  }

  .portfolio-title {
    font-size: 0.9rem;
  }

  .portfolio-desc {
    font-size: 0.7rem;
    line-height: 1rem;
  }

  .portfolio-item img {
    width: 90%;
  }
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
  a, button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .contact-info-box a {
    padding: 0.5rem 0;
  }
}

/* Prevent horizontal scroll on all devices */
@media (max-width: 1440px) {
  body {
    overflow-x: hidden;
  }

  * {
    max-width: 100%;
  }

  .portfolio-items {
    max-width: none !important;
  }
  .portfolio-viewport {
    width: 55%;
  }

  .portfolio-viewport.width-2 {
    width: 55%;
  }

  .portfolio-viewport.width-3 {
    width: 72%;
  }

  .portfolio-viewport.width-4 {
    width: 100%;
  }

  .text-50-regular {
    font-size: 4rem;
    line-height: 5rem;
  }

  .three-tibo-donuts-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}
