/*
 * Table of Contents:
 * 1. Base & Typography
 * 2. Layout & Structure
 * 3. Navigation
 * 4. Home Page
 * 5. Bio Page
 * 6. Video Gallery
 * 7. Modal
 * 8. Media Queries
 */

/* 1. Base & Typography */
@font-face {
  font-family: "Dubiel";
  src: url("../fonts/dubiel.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "PTSans";
  src: url("../fonts/PTSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "PTSans", sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* 2. Layout & Structure */
main {
  flex: 1;
  padding: 20px 0;
}

.page-content {
  font-family: "PTSans", sans-serif;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 30px;
}

.page-content h1 {
  font-family: "Dubiel", serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

footer {
  margin-top: auto;
  text-align: center;
  padding: 2rem;
  color: #999;
  font-size: 0.9rem;
}

/* 3. Navigation */
.main-nav {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
  position: relative;
  z-index: 1001; /* Higher than video embeds */
}

.main-nav .nav-menu {
  position: relative;
  z-index: 1001;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.main-nav a {
  font-family: "Dubiel", serif;
  font-size: 1.5rem;
  text-decoration: none;
  color: #999;
  transition: color 0.3s ease;
}

.main-nav .active a {
  color: #000;
}

/* Submenu */
.has-submenu {
  position: relative;
}

.main-nav ul .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 0.5rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  min-width: 200px;
}

.main-nav ul .has-submenu:hover .submenu {
  display: block;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 1rem;
  cursor: pointer;
  position: relative;
  z-index: 1002; /* Higher than the nav menu */
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  background: #000;
  height: 2px;
  width: 24px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.hamburger {
  top: 50%;
  transform: translate(-50%, -50%);
}

.hamburger::before {
  top: -8px;
}
.hamburger::after {
  bottom: -8px;
}

.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  top: 0;
  transform: translate(-50%, 0) rotate(45deg);
}

.menu-toggle.active .hamburger::after {
  bottom: 0;
  transform: translate(-50%, 0) rotate(-45deg);
}

/* 4. Home Page */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.home .wrapper {
  width: 100%;
  max-width: 800px;
  padding: 0 30px;
}

.home .content {
  text-align: center;
  width: 100%;
}

.home h1 {
  margin: 0;
  padding: 5px 0;
  font-weight: 500;
}

.home .title,
.home .subtitle {
  font-size: 4rem;
  color: #000;
  font-family: "Dubiel", serif;
}

.home .subtitle {
  margin-bottom: 30px;
}

.home .menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: "Dubiel", serif;
}

.home .menu a {
  text-decoration: none;
  color: #999;
  font-size: 3rem;
  transition: color 0.3s ease;
}

.home .menu a:hover {
  color: #000;
}

/* 5. Bio Page */
.bio-page {
  max-width: 1200px;
}

.bio-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.bio-text {
  flex: 1;
}

.bio-text h2.subtitle {
  font-size: 1.5rem;
  color: #666;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-weight: normal;
}

.bio-image {
  flex: 0 0 400px;
}

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

/* 6. Video Gallery */
.video-gallery {
  max-width: 1200px;
  margin: 0 auto;
}

.video-grid {
  display: grid;
  gap: 40px;
  margin-top: 2rem;
}

.video-card {
  background: white;
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.play-button svg {
  width: 24px;
  height: 24px;
  fill: white;
  margin: 0;
}

.video-thumbnail:hover .play-button {
  background: rgba(0, 0, 0, 1);
}

.video-info {
  padding: 1rem 0;
}

.video-info h2 {
  font-size: 1.2rem;
  margin: 0 0 0.25rem 0;
}

.video-info p {
  margin: 0 0;
  color: #666;
  font-size: 0.9rem;
}

.video-info .name {
  color: #000;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 7. Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

.video-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
}

.modal-content video {
  width: 100%;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Fashion Slider */
.fashion-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Campaign Navigation */
.campaign-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 1.5rem 0;
  justify-content: center;
}

.campaign-button {
  background: transparent;
  border: none;
  padding: 8px 0;
  font-family: "Dubiel", serif;
  font-size: 1.2rem;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.campaign-button:hover {
  color: #666;
}

.campaign-button.active {
  color: #000;
}

/* Campaign Slides */
.campaign-slides {
  display: none;
  margin-top: 2rem;
}

.campaign-slides.active {
  display: block;
}

.campaign-info {
  margin-top: 1rem;
  text-align: left;
}

.campaign-info h2 {
  font-family: "PTSans", sans-serif;
  font-size: 1rem;
  margin: 0 0 0.3rem 0;
  font-weight: 600;
}

.campaign-info p {
  font-family: "PTSans", sans-serif;
  margin: 0;
  color: #666;
  font-size: 0.8rem;
  line-height: 1.3;
}

.campaign-info .name {
  color: #000
}

/* Slider Container */
.slider-container {
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.slider-content {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
  height: 500px; /* Fixed height container */
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.slide.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

/* Slider Navigation */
.slider-arrow {
  position: absolute;
  top: 250px; /* Position at middle of fixed height container */
  margin-top: -24px; /* Half of the button height */
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
  fill: #000;
}

.slider-arrow.prev {
  left: 10px;
}

.slider-arrow.next {
  right: 10px;
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot:hover {
  background: #999;
}

.dot.active {
  background: #333;
}

/* Campaign Mobile Dropdown */
.mobile-nav {
  display: none;
}

.campaign-dropdown {
  width: 100%;
  margin: 1rem 0;
}

.campaign-dropdown select {
  width: 100%;
  padding: 10px;
  font-family: "Dubiel", serif;
  font-size: 1.1rem;
  color: #999;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23999%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.campaign-dropdown select:focus {
  outline: none;
  border-color: #999;
}

@media (max-width: 768px) {
  /* Show dropdown instead of buttons */
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
  
  /* Adjust spacing and sizes */
  .fashion-gallery {
    padding: 0 15px;
  }
  
  .page-content h1 {
    margin-bottom: 1rem;
  }
  
  .campaign-slides {
    margin-top: 1rem;
  }

  .slider-content {
    height: 350px; /* Smaller fixed height for mobile */
  }

  .slide img {
    max-height: 350px;
  }

  .slider-arrow {
    width: 36px;
    height: 36px;
    top: 175px; /* Half of mobile container height */
    margin-top: -18px; /* Half of button height */
  }

  .slider-arrow svg {
    width: 18px;
    height: 18px;
  }
  
  .slider-dots {
    margin-top: 8px;
  }
  
  .dot {
    width: 8px;
    height: 8px;
  }
}

/* 8. Media Queries */
@media (max-width: 768px) {
  /* Navigation */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 1rem;
  }

  .main-nav {
    position: relative;
    padding: 0;
    border-bottom: 1px solid #eee;
  }

  .main-nav .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }

  .main-nav .nav-menu.active {
    display: block;
  }

  .main-nav .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .main-nav .nav-menu li:last-child {
    border-bottom: none;
  }

  .main-nav .nav-menu li a {
    display: block;
    padding: 1rem 0;
  }

  .main-nav .nav-menu .submenu {
    position: static;
    box-shadow: none;
    border-top: 1px solid #eee;
    background: #f9f9f9;
  }

  .main-nav .nav-menu .submenu li {
    border-bottom: none;
  }

  .main-nav .nav-menu .submenu a {
    padding: 0.75rem 0;
    font-size: 0.9em;
  }

  /* Bio Page */
  .bio-content {
    flex-direction: column;
  }

  .bio-image {
    flex: 0 0 auto;
    width: 100%;
    margin-top: 20px;
  }
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
}


/* Contact Page */
.contact-page {
  text-align: center;
}

.contact-info {
  margin-top: 2rem;
}

.contact-info a {
  display: block;
  color: #000;
  text-decoration: none;
  margin: 0.5rem 0;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #666;
}

.contact-note {
  color: #666;
  margin: 1.5rem 0;
}

.film-crews {
  margin-top: 2rem;
}

.film-crews h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
