body {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center all direct children horizontally */
  justify-content: flex-start;
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 2rem;
  box-sizing: border-box;
  color: #d9ca7e;
  font-size: 16px;
  min-height: 100vh;
  width: 100vw;
}

.main-content, .hero-section, .logo-section, .work-samples, .site-footer {
  width: 100%;
  /* max-width: 1000px; */
  box-sizing: border-box;
}

body,
.video-wrapper {
  background-color: #0b0d0c;
}

h2 {
  font-family: "Mooli", sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 3rem;
}

.hero-section {
  margin: 0 8vw;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center; /* Children fill the height */
  margin-bottom: 1rem;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-image-wrapper {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  margin-right: 1rem;
}

.hero-image {
  height: 100%; /* Fills the wrapper vertically */
  width: auto; /* Maintains aspect ratio */
  max-width: 100%; /* Prevents horizontal overflow */
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  display: block;
}

.hero-content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem;
  min-width: 0;
}
.hero-tagline {
  font-size: 4rem;
  font-weight: 100;
  margin: 0 0 1rem 0;
  color: #d9ca7e;
  font-family: "Mooli", sans-serif;
}

.hero-description {
  font-size: 1.5rem;
  color: #fff;
}

.hero-description span {
  color: #d9ca7e;
}

.section {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 2rem;
  width: 100%;
}

.section.cols-2-60-40 {
  grid-template-columns: 3fr 2fr;
}

.section.cols-2-40-60 {
  grid-template-columns: 2fr 3fr;
}

.section.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.section.cols-3-50-25-25 {
  grid-template-columns: 2fr 1fr 1fr;
}

.section.cols-3-30-30-60 {
  grid-template-columns: 1.5fr 1.5fr 3fr;
}

.section.cols-3-60-30-30 {
  grid-template-columns: 2fr 1.5fr 1.5fr;
}

.video-section,
.info-section {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-section {
  flex: 0 1 60%;
}

.info-section {
  flex: 1 1 40%;
}

.description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 1rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid #d9ca7e;
  border-radius: 8px;
}

.aspect-ratio-4-5 {
  aspect-ratio: 4 / 5;
}

.video-embed {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  border-radius: 8px;
}

.video-embed.in-view {
  opacity: 1;
}

.video-description {
  color: #fff;
  font-size: 1.2rem;
}

.portfolio-heading {
  text-align: center;
  font-family: "Mooli", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  /* margin: 0 0 0.25rem 0; */
  margin: 0;
  color: #d9ca7e;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolio-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0 1.5rem 0;
  background: transparent;
}

:root {
  --logo-width: 150px;
  --logo-gap: 2.5rem;
}

.logo-carousel {
  width: calc(var(--logo-width) * 3 + var(--logo-gap) * 2);
  max-width: 100vw;
  overflow: hidden;
  position: relative;
}

.logo-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  gap: var(--logo-gap);
}

.logo-img {
  height: 64px;
  width: var(--logo-width);
  min-width: var(--logo-width);
  max-width: var(--logo-width);
  object-fit: contain;
  filter: grayscale(100%) brightness(1.2);
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s;
  background: transparent;
}

.logo-img:hover {
  filter: none;
  opacity: 1;
}

.site-footer {
  width: 100%;
  background: #0b0d0c;
  color: #d9ca7e;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0 1.2rem 0;
  font-size: 1.5rem;
  border-top: 1px solid #222;
  margin-top: 2rem;
}
.site-footer .footer-linkedin .header-icon {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
  opacity: 0.85;
}
.site-footer .footer-linkedin:hover {
  opacity: 1;
}
.site-footer svg {
  display: block;
}

.footer-icon,
.header-icon {
  height: 3rem;
  width: auto;
}

.header-icon {
  padding-top: 1rem;
}

@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
    padding: 1rem 0 0.8rem 0;
  }
}

@media (max-width: 500px) {
  .section {
    grid-template-columns: 1fr !important;
  }
  .video-section,
  .info-section {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .section {
    flex-direction: column;
    flex-wrap: wrap;
  }
  .sub-section {
    width: 100%;
  }
  :root {
    --logo-width: 80px;
    --logo-gap: 1rem;
  }
  .logo-carousel {
    width: calc(var(--logo-width) * 3 + var(--logo-gap) * 2);
  }
  .logo-img {
    height: 36px;
  }
  .hero-section {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .hero-content {
    order: 1;
    align-items: center;
    text-align: center;
    width: 100%;
    min-width: 0;
    height: auto;
    justify-content: center;
    padding: 0.5rem 0;
  }
  .hero-image-wrapper {
    order: 2;
    width: 100%;
    min-width: 0;
    height: auto;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
  }
  .hero-image {
    max-width: 90vw;
    height: auto;
    margin-bottom: 1rem;
  }
  .section {
    display: flex !important;
    flex-direction: column !important;
  }
  .info-section {
    order: 2 !important;
  }
  .video-section {
    order: 1 !important;
  }
  .logo-carousel {
    --logo-width: 80px;
    --logo-gap: 1rem;
    width: min(100vw, calc(80px * 3 + 1rem * 2));
  }
  .logo-img {
    height: clamp(24px, 8vw, 40px);
    width: clamp(50px, 20vw, 80px);
  }
}
