body{
    background-color: #000;
    color: #fff;
}

/* ----------------------------------- */
/*            Hero section             */
/* ----------------------------------- */
.hero {
    height: var(--viewport-section-height);
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    transition: opacity 0.4s ease-out;
}

.hero > picture {
  position: absolute;
  inset: 0; /* top 0 right 0 bottom 0 left 0*/
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover; /* similar to background-size: cover */
  z-index: -1;
}

.hero__bg_overlay{
    background: rgba(0, 0, 0, 0.3); /* dark overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero h1,
.hero h2 {
  position: relative;
  z-index: 1; /* text will be above the dark overlay */
  color: #fff;
  text-transform: uppercase;
}

.hero h1{
    font-size: clamp(2rem, 2vw, 4rem);
    letter-spacing: 1.5px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: clamp(1rem, 0.8vw, 1.5rem);
    font-weight: 450;
    margin-top: 0.4rem;
    letter-spacing: 0.6px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
  position: relative;
  z-index: 1; /* text will be above the dark overlay */
  color: #fff;
  text-transform: none;
  font-family: "Passions Conflict", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2rem, 1.5vw, 2.5rem);
  margin-top: 0.7rem;
  letter-spacing: 0.6px;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
  padding-left: 1rem;
}

/* alignment of h1, paragraph + line border */
.hero__content {
  margin-top: calc(var(--viewport-section-height) * 0.22);
  margin-left: 19.5vw;
  position: absolute;
}

.hero__content .headings {
  padding-left: 1rem;
  border-left: 1px solid white;
}

/* scroll down arrow */
.scroll_arrow_container {
  position: absolute;
  bottom: 80px;

  /* center horizontally */
  left: 50%;
  transform: translateX(-50%);

  width: 32px;
  height: 32px;
  background-color: #ccc;
  border-radius: 50%;

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

  cursor: pointer;
  transition: background-color 0.3s;
  animation: upNdown 3s infinite linear;
  z-index: 1;
}

.scroll_arrow_container:hover {
  background-color: #aaa;
}

.scroll_arrow_container img {
  width: 22px;
  height: auto;
}

@keyframes upNdown {
  0%, 100% {
    transform: translateX(-50%) translateY(0); 
  }
  50% { 
    transform: translateX(-50%) translateY(-15px); 
  }
}

/* ----------------------------------- */
/*       Featured work section         */
/* ----------------------------------- */

.featured_work{
  margin-top: var(--viewport-section-height);
  width: 100%;
  position: relative;
  padding-top: 50px;
}

.featured_work_heading{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.featured_work_heading h3{
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    font-size: clamp(2.5rem, 3vw, 4rem);
    white-space: nowrap;
}

/* Animated Heading */
.split-char {
  position: relative;
  opacity: 0;
  transform: translateY(5vw); 
  transition: transform 0.5s ease-in-out, opacity 0.7s ease-in-out; 

  display: inline-block;

  @media(max-width: 980px){
    transform: translateY(44px); 
  }
}

@media(prefers-reduced-motion){
  .split-char{
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }
}

.anySplitChar {
  opacity: 1;
  transform: translateY(0); 
}

 .split-char:nth-child(2){
  transition-delay: 0.04s;
}
.split-char:nth-child(3){
  transition-delay: 0.10s;
}
.split-char:nth-child(4){
  transition-delay: 0.16s;
}
.split-char:nth-child(5){
  transition-delay: 0.22s;
}
.split-char:nth-child(6){
  transition-delay: 0.28s;
}
.split-char:nth-child(7){
  transition-delay: 0.34s;
}
.split-char:nth-child(8){
  transition-delay: 0.4s;
}
.split-char:nth-child(9){
  transition-delay: 0.46s;
}
.split-char:nth-child(10){
  transition-delay: 0.52s;
}
.split-char:nth-child(11){
  transition-delay: 0.58s;
}
.split-char:nth-child(12){
  transition-delay: 0.64s;
}
/* ends here */

/* MARQUEE CLIENT LOGOS */
.clients_marquee {
  position: relative;
  width: 100%;
  margin-top: 5rem;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* Inner white box */
.clients_marquee__inner {
  width: 100%;
  margin: 0px 30px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e2e2e2 100%);
  border-radius: 5rem;
  padding-block: 1.25rem;
  padding-inline: 1.5rem;
  overflow: hidden;
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.35),
    inset 0 0 2px rgba(255, 255, 255, 0.4); /* tiny highlight inside */
}

/* Track that will slide left/right */
.clients_marquee__track {
  display: inline-flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  width: max-content;
  will-change: transform;
  /* No animation - controlled by JS */
}

/* Logos (black on white) */
.clients_marquee__item img {
  height: clamp(24px, 3vw, 40px);
  width: auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.clients_marquee__item img:hover {
  opacity: 1;
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .clients_marquee__track {
    transform: none !important;
  }
}


/* CLIENT CATEGORIES GRID */
.client_categories_container {
  width: 100%;
  max-width: 100%;
  position: relative;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background-color: #000;
}

/* Hrefs need to be positioned relative so the .client_content div child can be positioned absolute in the center */
.client_categories_container a {
  position: relative; /* parent for absolute text overlay -> .client_content */
  overflow: hidden;
  text-align: center;
  cursor: pointer;
}

.client_categories_container img:hover {
  transform: scale(1.01);
}

.client_categories_container img {
  transition: transform 0.4s linear;
}

/* Image fills the grid cell */
.client_categories_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* H4 and paragraph centered in the grid cells */
.client_content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* shift to true center */
  text-align: center;
}

.client_content h4{
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 1.5px;
}

.client_content p{
  font-size: clamp(1rem, 2vw, 1.5rem);
  text-decoration: underline;
}

/* Dark overlay over the grid cell images */
.client_cover::after {
    content: "";                
    position: absolute;
    inset: 0;                     
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}


/* ----------------------------------- */
/*            Media Queries            */
/* ----------------------------------- */

/* Responsive: switch to 1 column on smaller screens */
@media (max-width: 980px) {
  .client_categories_container {
    grid-template-columns: 1fr;
  }
}

/* Background photo position */
@media (max-width: 1023px) {
  .hero__bg {
    object-position: calc(50% - 100px) center;
  }
}

@media (max-width: 767px) {
  .hero__bg {
    object-position: calc(50% - 140px) center;
  }
}

@media (max-width: 645px) {
  .hero__bg {
    object-position: calc(50% - 170px) center;
  }
}

@media (max-width: 500px) {
  .clients_marquee__inner {
    margin: 0px 20px;
  }

  .hero__content {
    margin-left: 16vw;
  }
}