/* Global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Oswald', sans-serif;
  font-size: 120%;
  color: white;
  background-color: #1a1a1a;
}

html {
  font-size: 100%;
  box-sizing: border-box;
}

img,
video,
iframe,
.container {
  max-width: 100%;
  height: auto;
}

header {
   background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
  backdrop-filter: blur(3px);
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  text-align: center;
}


header img {
  height: 6.25rem;
}

nav {
  margin-top: 0.5rem;
}

nav a {
  color: white;
  margin: 0 1.5rem;
  text-decoration: none;
  font-size: 1.6rem;
  transition: all 0.3s ease-in-out;
  position: relative;
  font-family: 'Oswald', sans-serif;
}

nav a:hover {
  transform: scale(1.1);
  color: rgb(200, 170, 150);
}

nav a:active {
  color: rgb(138, 100, 80);
}

section {
  padding: 7rem 2rem 5rem;
  text-align: center;
  scroll-margin-top: 9.375rem;
}

h2 {
  font-size: 3.4rem;
  margin-bottom: 2rem;
}

.showreels {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.showreel-column iframe,
.showreel-column video {
  width: 40rem;
  height: 22.5rem;
  max-width: 100%;
}

.showreel-column h3 {
  margin-bottom: 0.5rem;
  font-size: 2.7rem;
}

iframe,
video {
  width: 100%;
  max-width: 100%;
  height: auto;
}

#showreel {
  position: relative;
  background: linear-gradient(135deg, #000000, rgb(133, 99, 78), #ffffff);
  background-size: 400% 400%;
  animation: gradientMove 20s ease infinite;
  padding-top: 15rem;
  z-index: 1;

  filter: url(#noiseDistortion);
  animation: gradientMove 20s ease infinite, turbulenceAnim 5s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes turbulenceAnim {
  0% {
    filter: url(#noiseDistortion);
  }
  50% {
    filter: url(#noiseDistortion);
  }
  100% {
    filter: url(#noiseDistortion);
  }
}


#works {
  background-color: rgb(230, 228, 220);
  color: rgb(138, 100, 80);
}



.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
  justify-items: center;
}

.works-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 40rem;
  text-align: center;
}


.works-column h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

:root {
  --video-max-width: 42rem;
}

.works-column iframe {
  width: 140%;
  max-width: var(--video-max-width);
  aspect-ratio: 16 / 9;
}


 .about {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  background-color: #1a1a1a;
  color: white;
  text-align: left;
  gap: 2rem;
  padding: 2rem;
}

    .about img {
  width: 100%;
  max-width: 31.25rem;
  height: auto;
  margin-top: 2rem;
  border-radius: 0.75rem;
  flex-shrink: 1;
  object-fit: cover;
}

    .about-text {
  max-width: 43.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.30rem;
  line-height: 1.7;
  padding: 0.5rem;
  padding-top: 1rem;
}

.about-text p {
  margin-bottom: 0rem;
}

    .about-text h3 {
      color: rgb(138, 100, 80);
      font-family: 'Barlow Condensed', sans-serif;
    }

    links {
      background: rgb(230, 228, 220);
      color: rgb(138, 100, 80);
      text-align: center;
      padding: 3rem 1rem;
      height: 10rem;
    }
    .links {
      color: rgb(138, 100, 80);
      font-family: 'Oswald', sans-serif;
      }

    .socials {
      display: flex;
      justify-content: center;
      gap: 4rem;
      margin-top: 2rem;
    }

    .socials img {
      width: 6rem;
      height: 6rem;
    }

    footer {
      background: rgb(230, 228, 220);
      color: rgb(138, 100, 80);
      text-align: center;
      padding: 3rem 1rem;
      height: 25rem;
    }

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.styled-text {
  color: rgb(138, 100, 80);
  font-family: 'Oswald', sans-serif;
  border: 0.125rem solid rgb(138, 100, 80);
  padding: 0.3rem 0.6rem;
  border-radius: 0.375rem;
  text-decoration: none;
  display: inline-block;
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.styled-text:hover {
  color: white !important;
  background-color: rgb(138, 100, 80);
}

.styled-text:visited,
.styled-text:active,
.styled-text:focus,
.styled-text--plain {
  font-family: 'Oswald', sans-serif;
  color: rgb(138, 100, 80);
  display: inline-block;
  margin: 1rem 0;
  padding: 0.3rem 0.6rem;
  line-height: 1.5;
  height: 2.62rem;
  text-align: center;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  nav a {
    display: inline-block;
    margin: 0 0.8rem;
    font-size: 1.1rem;
  }

  .works-column:nth-child(1) {
    transform: translateX(0%);
  }

  .works-column:nth-child(2) {
    transform: translateX(0%);
  }


  #showreel {
    padding-top: 10rem;
  }

  .showreel-column iframe,
  .showreel-column video,
  .linear-audio iframe {
    width: 100%;
    height: auto;
  }


  .works-split {
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontally centers children */
    text-align: center;
  }

  .showreel-column,
  .works-column {
    max-width: 100%;
    padding: 1rem;
    align-items: center;
    text-align: center;
  }

  .works-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
  .works-column iframe,
.linear-audio iframe {
  width: 31.25rem;
  height: 11.563rem;
  max-width: 100%;
}

  .about {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about img {
    width: 100%;
    max-width: 16.5rem;
    height: auto;
  }

  .about-text {
    padding: 1rem;
    text-align: left;
  }

  .socials img {
    width: 2.25rem;
    height: 2.25rem;
  }
}
