/* PADDING */
.padding_small {
  padding: 16px 8px;
}

.padding_medium {
  padding: 32px;
}

.top_padding_zero {
  padding-top: 0px;
}

/* BORDERS */
.rounded {
  border-radius: 40px;
}

/* MARGIN */
.top_margin_zero {
  margin-top: 0px;
}

.margin_bottom_zero {
  margin-bottom: 0px;
}

.margin_bottom_medium {
  margin-bottom: 32px;
}

.margin_bottom_large {
  margin-bottom: 48px;
}

.margin_bottom_small {
  margin-bottom: 16px;
}

.margin_top_small {
  margin-top: 16px;
}

.margin_top_xsmall {
  margin-top: 8px;
}

h2 {
  margin-bottom: 8px;
}

/* FLEX */
.flex {
  display: flex;
}

.space_between {
  justify-content: space-between;
}

.align_center {
  align-items: center;
  text-align: center;
}

.align-start {
  align-items: flex-start;
}

.justify_center {
  justify-content: center;
}

.column {
  flex-direction: column;
}

.gap_xsmall {
  gap: 16px;
}

.gap_small {
  gap: 24px;
}

.gap_medium {
  gap: 48px;
}

.gap_large {
  gap: 100px;
}

/* GRID */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 64px;
}

.grid div {
  grid-column: span 6;
}

/* ALIGNMENT */
.align-left {
  text-align: left;
}

/* SECTION-SPECIFIC */
.navbar {
  height: 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
}

.navbar img {
  max-height: 30px;
}

.hero_section {
  height: 600px;
  background-image: url("images/background_1.png");
  background-size: cover;
  background-position: center;
  border-radius: 40px;
  margin-top: 16px !important;
  margin-bottom: 64px !important;
}

.footer {
  background-image: url("images/background_2.png");
  background-size: cover;
  background-position: center;
  padding: 20px;
}

body {
  margin: 0;
}

.body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
}

section {
  margin-top: 64px;
  margin-bottom: 128px;
}

.panel_double_text div {
  max-width: 45%;
}

#we_worked_with {
  padding-bottom: 128px;
  border-bottom: #e7e7e7 1px solid;
}

#mobile_navbar {
  display: none;
}

.panel_gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

/* cards */
.panel_gallery > div {
  border-radius: 40px;
  background: grey;
  height: 300px;
  padding: 30px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.panel_gallery span {
  max-width: 600px;
}

.panel_gallery div {
  background-size: cover;
}

.panel_gallery_logos {
  display: flex;
  gap: 12px;
}

.panel_gallery_logos img {
  height: 40px;
  mix-blend-mode: normal;
}

.panel_gallery div {
  transition: all 0.3s ease-in-out;
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
}

.panel_gallery div:hover {
  background-size: 103%;
}

.image_peeking_lower_right {
  max-height: 90%;
  max-width: 45%;
  position: absolute;
  bottom: 0;
  right: 0;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 40px;
  opacity: 0.8;
  z-index: 0;
}

.image_peeking_upper_right {
  max-height: 320px;
  max-width: 80%;
  position: absolute;
  bottom: 260px;
  right: 170px;
}

#carousel-track .carousel_item {
  border-radius: 40px;
  flex: 0 0 600px;
  height: 400px;
  margin-right: 16px;
  background-position: center;
  background-size: cover;
  flex-direction: column;
}

.carousel_logo {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-height: 60px;
}

.carousel_logo img {
  max-height: 60px;
  max-width: 200px;
  margin-right: 0px;
}

.padding_medium.flex.column.space_between {
  padding: 0px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* ensure it stretches fully */
}

/* sizes */
.panel_gallery_small {
  grid-column: span 4;
}
.panel_gallery_large {
  grid-column: span 8;
}

/* tablet: 6-column grid, small=2, large=4 */
@media (max-width: 1200px) {
  .panel_gallery {
    grid-template-columns: repeat(6, 1fr);
  }
  .panel_gallery_small {
    grid-column: span 2;
  }
  .panel_gallery_large {
    grid-column: span 4;
  }

  .panel_gallery div {
    background-size: cover;
    background-position: center;
  }
}

/* mobile: single column */
@media (max-width: 1200px) {
  .panel_gallery {
    grid-template-columns: 1fr;
  }
  .panel_gallery_small,
  .panel_gallery_large {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1200px) {
  #desktop_navbar {
    display: none;
  }

  .mobile_hide {
    display: none;
  }

  #mobile_navbar {
    display: flex;
    padding: 16px 8px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    height: 40px;
    align-items: center;
  }

  #mobile_navbar img {
    max-height: 30px;
  }

  .hero_section {
    height: 500px;
  }

  #we_worked_with {
    padding-bottom: 64px;
  }

  .panel_double_text div {
    max-width: 100%;
  }

  .panel_double_text {
    flex-direction: column;
  }

  .align-right {
    text-align: left;
  }

  section {
    margin-bottom: 64px;
  }

  .panel_gallery div:hover {
    background-size: cover;
  }

  .image_peeking_lower_right {
    opacity: 0.2;
    z-index: 0;
    max-width: 70%;
  }

  .grid {
    grid-template-columns: repeat(6, 1fr);
  }

  #carousel-track .carousel_item {
    border-radius: 40px;
    flex: 0 0 100%;
    gap: 0px;
    margin-right: 8px;
  }

  .mobile_column {
    flex-direction: column;
    gap: 16px;
  }

  .padding_medium {
    padding: 24px;
  }

  .mobile_padding {
    padding: 24px;
  }

  .mobile_padding_small {
    padding: 12px;
  }
}
