/* ===========================
   Fonts
   =========================== */

@font-face {
  font-family: 'ZT Formom';
  src: url("fonts/ZTFormom-Regular.woff2") format('woff2'),
       url("fonts/ZTFormom-Regular.woff") format('woff');
  font-weight: normal;
}

@font-face {
  font-family: "ZT Formom Oblique";
  src: url("fonts/ZTFormom-Oblique.woff2") format("woff2"),
       url("fonts/ZTFormom-Oblique.woff") format("woff");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'ITC Garamond Book';
  src: url("fonts/ITCGaramondStd-BkNarrow.woff2") format('woff2'),
       url("fonts/ITCGaramondStd-BkNarrow.woff") format('woff');
  font-weight: normal;
}

@font-face {
  font-family: 'ITC Garamond Book Italic';
  src: url("fonts/ITCGaramondStd-BkNarrowIta.woff2") format('woff2'),
       url("fonts/ITCGaramondStd-BkNarrowIta.woff") format('woff');
  font-weight: normal;
}

@font-face {
  font-family: "Maison Neue Bold";
  src: url("fonts/MaisonNeue-Bold.woff2") format("woff2"),
       url("fonts/MaisonNeue-Bold.woff") format("woff");
  font-weight: normal;
  font-style: bold;
}

@font-face {
  font-family: "Maison Neue Mono";
  src: url("fonts/MaisonNeue-Mono.woff2") format("woff2"),
       url("fonts/MaisonNeue-Mono.woff") format("woff");
  font-weight: normal;
  font-style: monospace;
}

/* ===========================
   Reset & Base Styles
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Maison Neue Bold", sans-serif;
  background-color: black;
  color: white;
  line-height: 1.6;
  cursor: none;
}

button, a {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: background 0.3s ease;
  z-index: 99999;
}

.custom-cursor.clickable {
  background-color: white;
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(2);
}

.custom-cursor.blue-hover {
  background-color: blue;
}

.custom-cursor {
  transition: background-color 0.3s ease;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 3rem;
}

section {
  padding: 6rem 0;
  scroll-margin-top: 5px;
}

/* ===========================
   Navigation
=========================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease;
}

nav.opaque,
body.resume-page nav {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

nav .nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body.resume-page nav .home-link {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.resume-page nav .home-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

body.resume-page nav .home-link:hover img {
  transform: scale(1.2);
}

nav .nav-links {
  display: flex;
  gap: 2rem;
}

nav .nav-links a {
  font-family: "ITC Garamond Book", serif;
  color: white;
  text-decoration: none;
  font-size: 2rem;
  transition: font-style 0.3s ease, transform 0.2s ease;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  font-family: "ITC Garamond Book Italic", serif;
  transform: scale(1.1);
}

/* ===========================
   Hero / Showreel
=========================== */
#hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero .overlay {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 4rem;
  color: white;
}

.hero-left h1 {
  font-family: "Maison Neue Bold", sans-serif;
  font-size: 3rem;
  line-height: 0.9;
  text-align: left;
}

.hero-left p {
  font-family: "Maison Neue Mono", monospace;
  font-size: 1.3rem;
  line-height: 1.5;
  text-align: left;
  margin-top: 1rem;
}

.hero-right .hero-logo {
  max-height: 100px;
  object-fit: contain;
}

.gradient-transition {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, black 100%);
  z-index: 3;
  pointer-events: none;
}

/* ===========================
   Work Preview
=========================== */
#work-preview {
  padding: 4rem 2rem;
  background-color: black;
  text-align: center;
}

#work-preview h2 {
  font-family: "ITC Garamond Book", serif;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-buttons button {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.filter-buttons button:hover {
  background-color: #fff;
  color: #000;
}

.filter-buttons button.active {
  background-color: #fff;
  color: #000;
  border-color: #fff;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: start;
  justify-items: center;
}

.project {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  width: 400px;
  height: 300px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
}

.project .overlay .date {
  font-family: "Maison Neue Mono", monospace;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.project:hover img {
  transform: scale(1.05);
}

.project:hover .overlay {
  opacity: 1;
}

/* ===========================
   About Section
=========================== */
#about {
  position: relative;
  background: url("assets/about-bg.png") center/cover no-repeat;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: left;
  padding: 4rem 0rem;
  text-align: left;
}

#about h2 {
  font-family: "ITC Garamond Book", serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#about p {
  font-family: "Maison Neue Bold", sans-serif;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ===========================
   Contact Section
=========================== */
#contact {
  background-color: black;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

#contact h2 {
  font-family: "ITC Garamond Book", serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#contact p {
  font-family: "Maison Neue Bold", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: center;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

#contact input,
#contact textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-family: "Maison Neue Mono", monospace;
  font-size: 1rem;
  background-color: white;
  color: black;
}

#contact form button[type="submit"],
#contact form input[type="submit"] {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 8px 16px;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.3s ease;
  border-radius: 5px;
}

#contact form button[type="submit"]:hover,
#contact form input[type="submit"]:hover {
  background-color: #fff;
  color: #000;
}

#contact form button[type="submit"]:active,
#contact form input[type="submit"]:active {
  transform: scale(0.98);
}

/* ===========================
   Footer
=========================== */
#footer {
  background-color: black;
  color: white;
  padding: 5rem 0;
  border-top: 0px solid white;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 4rem;
  text-align: center;
}

.footer-left p,
.footer-right p {
  font-family: "Maison Neue Bold", sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-center a {
  margin: 0 0.8rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-center a img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.footer-center a:hover {
  transform: scale(1.2);
}

.footer-right a {
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.footer-right a:hover {
  transform: scale(1.05);
  font-family: "Maison Neue Bold", sans-serif;
  color: blue;
}

/* ===========================
   Resume Page
=========================== */
.resume-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  color: white;
  font-family: "Maison Neue Bold", sans-serif;
}

.resume-section h2 {
  font-family: "ITC Garamond Book", serif;
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  text-align: left;
}

.resume-item {
  font-family: "Maison Neue Bold", sans-serif;
  font-size: 1.1rem;
  line-height: 2rem;
  margin-bottom: 1rem;
}

.resume-section {
  margin-bottom: 3rem;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.award-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
}

.award-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.award-item:hover img {
  transform: scale(1.05);
}

.overlay-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  transition: all 0.3s ease;
  max-width: clamp(80px, 100%, 1200px);
}

.overlay-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.award-item:hover .overlay-logo {
  opacity: 0;
}

.overlay-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 255, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.award-item:hover .overlay-hover {
  opacity: 1;
}

.overlay-hover .film-title {
  font-family: 'Maison Neue Bold', sans-serif;
  font-size: 1.2rem;
  margin: 0 10px;
}

/* ===========================
   Lightbox / Modal
=========================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 255, 1);
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Lightbox active */
.lightbox.active {
  display: flex;
}

/* Lightbox content */
.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Video / iframe */
#lightbox-video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  border: none;
  background: black;
}

/* Lightbox info */
.lightbox-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  z-index: 10;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: -40px;
  right: -10px;
  font-size: 2rem;
  color: white;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

/* Navigation arrows */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  font-weight: bold;
  color: white;
  user-select: none;
  padding: 10px;
  transition: color 0.3s ease, transform 0.2s ease;
  z-index: 1101; /* above the video */
}

/* Position gauche */
.lightbox-prev {
  left: 20px;
}

/* Position droite */
.lightbox-next {
  right: 20px;
}

/* Effet au survol */
.lightbox-prev:hover,
.lightbox-next:hover {
  color: blue;
  transform: translateY(-50%) scale(1.2);
}

/* ===========================
   Responsive adjustments
=========================== */
@media (max-width: 768px) {
  .lightbox-content {
    width: 95%;
    height: 70%;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }

  /* Sections */
  section {
    scroll-margin-top: 90px;
    padding: 3rem 1.5rem;
  }

  /* Navigation */
  nav .nav-container {
    padding: 1rem;
    justify-content: space-between;
  }

  body.resume-page nav .home-link {
    left: 1rem;
  }

  nav .nav-links {
    gap: 1rem;
  }

  nav .nav-links a {
    font-size: 1.6rem;
  }

  body.resume-page nav .home-link img {
    width: 20px;
    height: 20px;
  }

  /* Hero */
  #hero .overlay {
    flex-direction: column;
    padding: 0 1.5rem;
    justify-content: center;
    text-align: center;
  }

  .hero-left h1 {
    font-size: 2.2rem;
  }

  .hero-left p {
    font-size: 1rem;
  }

  .hero-right .hero-logo {
    max-height: 60px;
    margin-top: 2rem;
  }

  /* Work Preview */
  #work-preview h2 {
    font-size: 2rem;
  }

  .filter-buttons {
    gap: 5px;
    margin-bottom: 20px;
  }

  .project {
    width: 100%;
    max-width: 280px;
    height: auto;
  }

  /* About Section */
  #about {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  #about h2 {
    font-size: 2rem;
  }

  #about p {
    font-size: 1rem;
  }

  /* Contact Section */
  #contact {
    padding: 2rem 1rem;
  }

  #contact h2 {
    font-size: 2rem;
  }

  #contact p {
    font-size: 1rem;
  }

  #contact form input,
  #contact form textarea {
    font-size: 0.9rem;
  }

  #contact form button[type="submit"],
  #contact form input[type="submit"] {
    padding: 6px 12px;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem;
  }

  .footer-center a img {
    width: 20px;
    height: 20px;
  }

  /* Resume Page */
  .resume-container {
    padding: 2rem 1rem;
  }

  .resume-section h2 {
    font-size: 1.8rem;
  }

  .resume-item {
    font-size: 1rem;
    line-height: 1.8rem;
  }

  .awards-grid {
    grid-template-columns: 1fr;
  }
}
