:root {
  --primary: #6a1e55;
  --secondary: #a64d79;
  --accent: #d95f59;
  --dark: #1a1a1d;
  --light: #f4f4f4;

  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  --gradient: linear-gradient(135deg, var(--accent), var(--primary));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark);
  color: var(--light);
  font-family: var(--font-body);
  overflow-x: hidden;
}
#smooth-wrapper:not([style]) {
  .site-header,
  .hero-content,
  .hero-footer {
    opacity: 0;
  }
}

#smooth-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#smooth-content {
  overflow: visible;
  width: 100%;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 0;
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.header-link {
  color: var(--light);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-body);
  mix-blend-mode: difference;
  position: relative;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--light);
  text-decoration: none;
  mix-blend-mode: difference;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-image-wrapper {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: grayscale(0.2) brightness(0.6);
}
@media (max-width: 992px) {
  .hero-bg-image {
    object-position: 70%;
  }
}

.hero-content {
  z-index: 2;
  text-align: left;
  width: 90%;
  max-width: 1200px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 9rem);
  color: var(--light);
  line-height: 1;
  font-weight: 700;
}

.hero .line-wrapper {
  overflow: visible;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-top: 30px;
  max-width: 500px;
  font-weight: 300;
  line-height: 1.6;
}

.hero-footer {
  position: absolute;
  bottom: 30px;
  left: 5%;
  right: 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--light);
  mix-blend-mode: difference;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 700;
}

.social-links a {
  color: var(--light);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s ease;
}
.social-links a:hover {
  color: var(--accent);
}

/* About Section */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

h2,
.skill-panel h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 30px;
  color: var(--light);
  line-height: 1.2;
}

#about {
  padding-bottom: 50svh;
  @media (max-width: 992px) {
    padding-bottom: 100px;
  }
}
.about-content p {
  line-height: 1.8;
  margin-bottom: 15px;
}

/* --- FIXED SKILLS SECTION --- */
#skills-wrapper {
  position: relative;
  background-color: black;
  position: relative;
  .section-title {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    mix-blend-mode: screen;
    padding: 0 0.5em;
    font-size: 2rem;
  }
}

.skill-panel {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute; /* Changed to absolute */
  top: 0;
  left: 0;
  background-color: var(--dark);
  --progress: 0;
  &::before {
    content: "";
    background-color: rgba(0, 0, 0, 0.4);
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: brightness(calc(0.2 * var(--progress, 1)))
      grayscale(calc(1.4 - var(--progress, 1)));
  }
}
.skill-panel#skill-creative::before {
  background-image: url("./assets/images/creative.jpg");
}
.skill-panel#skill-horror::before {
  background-image: url("./assets/images/horror.jpg");
}
.skill-panel#skill-film::before {
  background-image: url("./assets/images/film.jpg");
}
.skill-panel#skill-talent::before {
  background-image: url("./assets/images/talent.jpg");
}

.skill-panel-content {
  width: 90%;
  max-width: clamp(800px, 70vw, 1200px);
  text-align: center;
  position: relative;
}

.skill-panel h2 {
  font-size: clamp(3rem, 8vw, 7rem);
  margin-bottom: 40px;
  color: var(--light);
  opacity: 0.9;
}

.skill-description {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.7;
  font-weight: 300;
  color: #ccc;
}

.skill-description .char {
  opacity: 0.2;
  color: #ddd;
}

/* Projects Section - Horizontal Scroll */
#projects-wrapper {
  overflow: hidden;
  padding: 120px 0;
  position: relative;
  z-index: 5;
  background-color: black;
  .section-title {
    position: absolute;
    z-index: 10;
    bottom: 11%;
    left: 0.5em;
    font-size: 2rem;
  }
}

#projects-container {
  width: 400%;
  height: 100vh;
  display: flex;
  flex-wrap: nowrap;
}

.project-panel {
  width: 100vw;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 clamp(50px, 10vw, 125px);
  background-color: color-mix(in oklch, var(--primary) 30%, var(--dark));
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-blend-mode: multiply;
}
.project-panel:nth-child(even) {
  background-color: var(--primary, purple);
}

.project-card {
  display: flex;
  align-items: center;
  gap: 50px;
  width: 100%;
  max-width: 1200px;
}

.project-card-image {
  flex-basis: 50%;
  overflow: hidden;
  border-radius: 8px;
}

.project-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-card-content {
  flex-basis: 50%;
  text-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.4);
}

.project-card-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: 1px;
  color: var(--light);
}

.project-card-content p {
  margin-top: 15px;
  line-height: 1.7;
  color: #fff;
}

/* Services Section */
#services {
  position: relative;
}
#services .section-title {
  text-align: center;
}
.hexagon-grid-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 100px auto;
  aspect-ratio: 1 / 0.9;
}
.hexagon-item,
.hexagon-center {
  position: absolute;
  width: 30%;
  height: 34%;
  cursor: pointer;
  transform-style: preserve-3d;
  overflow: hidden;
}
.hexagon-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1f1f22;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  transition: background-color 0.4s ease;
  border: 1px solid #333;
  overflow: hidden;
}
.hexagon-item:hover .hexagon-shape {
  background-color: var(--primary);
  border-color: var(--secondary);
}
.hexagon-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
  color: var(--light);
  z-index: 2;
}
.hexagon-item h3 {
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  font-weight: 700;
}
.hexagon-item p {
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  line-height: 1.5;
  margin-top: 10px;
  color: #ccc;
  opacity: 0;
  visibility: hidden;
}
.hexagon-center {
  width: 28%;
  height: 32%;
  top: 51.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hexagon-center .hexagon-shape {
  background: var(--gradient);
  border: none;
}
.center-logo {
  font-family: var(--font-heading);
  font-size: 4rem;
}

.hexagon-item[data-pos="1"] {
  top: 0;
  left: 35%;
}
.hexagon-item[data-pos="2"] {
  top: 17.2%;
  left: 58%;
}
.hexagon-item[data-pos="3"] {
  top: 52%;
  left: 58%;
}
.hexagon-item[data-pos="4"] {
  top: 69.2%;
  left: 35%;
}
.hexagon-item[data-pos="5"] {
  top: 52%;
  left: 12%;
}
.hexagon-item[data-pos="6"] {
  top: 17.2%;
  left: 12%;
}

/* gallery */
.gallery {
  overflow: hidden;
  min-height: 100svh;
  position: relative;
  background-color: var(--primary, var(--secondary, black));
  .gallery__container {
  }
  .gallery__image {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 50svh;
    will-change: transform;
    &:nth-child(2) {
      aspect-ratio: 16/9;
      @media (max-width: 992px) {
        aspect-ratio: 9/16;
      }
    }
    &:nth-child(1) {
      aspect-ratio: 1/1;
      @media (max-width: 992px) {
        aspect-ratio: 9/16;
      }
    }
    &:nth-child(3) {
      aspect-ratio: 12/8;
      @media (max-width: 992px) {
        aspect-ratio: 9/16;
      }
    }
    &:nth-child(4) {
      aspect-ratio: 5/9;
      @media (max-width: 992px) {
        aspect-ratio: 9/16;
      }
    }
    &:nth-child(5) {
      aspect-ratio: 12/9;
      @media (max-width: 992px) {
        aspect-ratio: 9/16;
      }
    }
    &:nth-child(6) {
      aspect-ratio: 1/1;
      @media (max-width: 992px) {
        aspect-ratio: 9/16;
      }
    }
    &:nth-child(7) {
      aspect-ratio: 16/9;
      height: 100svh;
      width: 100vw;
      @media (max-width: 992px) {
        img {
          object-position: 20%;
        }
      }
    }
    figcaption {
      position: absolute;
      top: 50%;
      left: 50%;
      translate: -50% -50%;
      padding: 0.5em;
      color: var(--dark, black);
      font-weight: bold;
      font-size: 1rem;
      white-space: nowrap;
      word-break: keep-all;
      width: fit-content;
      mix-blend-mode: plus-lighter;
      @media (max-width: 992px) {
        white-space: normal;
        word-break: normal;
      }
      &:empty {
        display: none;
      }
    }
    img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
  }
}

/* videos */
.video {
  height: 100svh;
  position: relative;
  overflow: hidden;
  video {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 0;
  }
  .video__content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0.3em;
    background-color: rgba(0, 0, 0, 0.4);
    font-size: var(--size-big, 2.5rem);
    font-family: var(--font-heading);
    mix-blend-mode: hard-light;
    .text-chunk {
      padding: 0;
      color: white;
      mix-blend-mode: exclusion;
    }
  }
}
#video-intro {
  background-color: var(--dark, black);
  .video__content {
    .text-chunk {
      position: absolute;
      &:nth-child(1) {
        top: 5%;
        right: calc(55% + clamp(1rem, 10vw, 4rem));
        text-align: right;
        font-size: clamp(1rem, 20vw, 6rem);
        /* color: var(--secondary, var(--primary, white)); */
        text-shadow: 0 0 3px black;
        @media (max-width: 992px) {
          top: 15%;
          left: 1rem;
          right: unset;
          text-align: left;
          font-size: clamp(1rem, 10vw, 5rem);
        }
      }
      &:nth-child(2) {
        top: 5%;
        left: calc(55% + clamp(1rem, 10vw, 4rem));
        font-size: clamp(1rem, 20vw, 6rem);
        /* color: var(--secondary, var(--primary, white)); */
        text-shadow: 0 0 3px black;
        @media (max-width: 992px) {
          left: unset;
          right: 1rem;
          top: 15%;
          font-size: clamp(1rem, 10vw, 5rem);
        }
      }
      &:nth-child(3) {
        bottom: 1rem;
        left: 1rem;
        @media (max-width: 992px) {
          display: none;
        }
      }
      &:nth-child(4) {
        bottom: 1rem;
        right: 1rem;
        @media (max-width: 992px) {
          display: none;
        }
      }
    }
  }
}

/* Contact Section */
.contact h2 {
  text-align: center;
}
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 40px auto 0;
}

input,
textarea {
  background: #222;
  border: 1px solid #444;
  padding: 15px;
  border-radius: 5px;
  color: var(--light);
  font-family: var(--font-body);
  font-size: 1rem;
}

.btn {
  background: var(--gradient);
  color: var(--light);
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid #333;
  a {
    color: var(--secondary, white);
    text-decoration: none;
  }

  @media (max-width: 992px) {
    padding: 30px 20px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
  }
  .project-card {
    flex-direction: column;
    text-align: center;
  }
  .hexagon-grid-container {
    display: flex;
    flex-direction: column;
    .hexagon-center {
      display: none;
    }
    .hexagon-item {
      position: static;
      width: 100%;
      border-top: solid 4px var(--secondary);
    }
    .hexagon-shape {
      position: static;
      clip-path: none;
    }
    .hexagon-content {
      top: 20%;
      padding-top: 3rem;
    }
  }
}
