/* Base */
* {
  box-sizing: border-box;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', Helvetica,Arial,Lucida,sans-serif;
  margin: 0;
  padding: 0;
}


h1, h2, h3 {
  position: relative;
}

h1 {
  text-transform: uppercase;
  font-size: 2.5rem;
  color: #0466b5;
  border-bottom: 0.1px solid #1a3b5d;
  padding-bottom: 0.3rem;
}

h2 {
  font-size: 2rem;
  color: #000;
  padding-left: 0.5rem;
  text-transform: uppercase;
}

h3 {
  font-size: 1.5rem;
  color: #000;
}

/* List */
ul {
  padding-left: 1.2rem;
  margin-top: 1rem;
}

ul li {
  margin-bottom: 0.6rem;
}

#contact-box a {
  text-decoration: none;
}

#contact-trigger a,
#faq-trigger {
  color:#b7b3b3;
  font-size: 20px;
}

#contact-trigger a {
  text-transform: capitalize;
  font-family: 'Poppins', sans-serif;
  font-weight: 100;
}

/* First section */
.postproduction-section.full-height {
  min-height: 100vh;
  padding: 1rem;
  display: flex;
  align-items: center;
  position: relative;
}

.postproduction-section {
  background-image: url("/public/image/junaamedia_img2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: 'Poppins', sans-serif;
  font-weight: 100;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center; /* Optional: centers the text inside the container */
}

/* Container */
.container {
  max-width: 100%;
  margin: 0 auto;
  color: #ffffff;
}

.scrolling-text p {
  max-width: 1200px;
}

.container p {
  font-size: 1.2rem;
  font-weight: 200;
  line-height: 1.8;
}

.full-height p {
  padding: 1rem;
  box-shadow: 0 5px 8px rgba(10, 92, 200, 0.535);
}

.full-height p::first-letter {
  font-size: 3rem;
  font-weight: 100;
  float: left;
  line-height: 1;
  margin-right: 1px;
  font-family: 'Poppins', sans-serif;
}

  .replay-icon, .replay-icon.show {
    display: none;
}

/* Button */
.btn-primary {
  display: inline-block;
  background-color: #0466b5;
  color: #fff;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #0465b554;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Second section */
#next-post-prod h2 {
  color: #000000;
}

.postproduction-section.alt {
  background: linear-gradient(135deg, #00000064, #6c23598f);
  padding: 30px 0;
  text-align: center;
  margin-bottom: 0;
}

.postproduction-section.alt h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.intro-text {
  font-family: 'Poppins', sans-serif;
  color: #000000;
  font-size: 1.1em;
  font-weight: 200;
  line-height: 1.5;
  margin: 0 auto;
  padding: 1rem;
  max-width: 1150px;
}

.image-grid-postprod {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.image-box-postprod {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-container-postprod {
  width: 100%;
  margin-bottom: 10px;
}

.image-container-postprod img {
  width: 80px;
  height: auto;
  object-fit: cover;
  cursor: pointer;
}

.image-box-postprod h3 {
  margin: 0;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.overlay-text-postprod {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  background-color: rgba(0, 0, 0, 0.8);
  color: rgb(255, 255, 255);
  padding: 20px;
  text-align: justify;
  font-size: 0.95em;
  margin-top: 10px;
  width: 90%;
}

.hover-target:hover + h3 + .overlay-text-postprod,
.hover-target:hover ~ .overlay-text-postprod,
  h3:hover + .overlay-text-postprod {
  opacity: 1;
  max-height: 900px;
}

/* 3 Services Section */
.postproduction-section-services {
  background: linear-gradient(68deg, #00000064, #6c23598f);
  padding-top: 0.1rem;
  padding-bottom: 7rem;
  text-align: center;
}

.services-box-items {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: linear-gradient(120deg, #000000a9, #302f2fc7, #6c235963, #ffffff7e);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.service-box {
  background-color: #000;
  color: #fff;
  cursor: pointer;
  padding: 0;
  width: 100%;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow: hidden;
}

.service-box:hover {
  background-color: white;
  color: black;
  border-left: 2px solid rgb(0, 153, 255);
}

/* Inner content */
.service-content {
  padding: 1rem;
}

/* Make h3 a flex container */
.service-content h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 100;
  color: inherit;
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  text-align: left;
}

/* Optional: style for the icon */
.service-content .s-icon {
  margin-left: 1rem;
  font-size: 1.3rem;
}

/* Paragraph initially hidden */
.service-content p {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
  text-align: justify;
  color: inherit;
}

.service-box:hover .service-content h3 {
  font-weight: 200;
}

/* Reveal paragraph on hover */
.service-box:hover .service-content p {
  opacity: 1;
  max-height: 900px;
  margin-top: 0.8rem;
  font-size: 1.1rem;
  font-weight: lighter;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(129, 87, 127, 0.456);
}

/* Postprod-benefits */
.postprod-benefits {
  padding: 3rem;
  background: rgb(60, 60, 60);
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.postprod-benefits h2 {
  font-size: 2rem;
  text-align: center;
  color: #ffffff;
  position: relative;
}

.benefit-card {
  max-width: 1200px;
  background: rgb(60, 60, 60);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.benefit-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 0;
  padding: 0 2rem;
}

.benefit-card p {
  opacity: 1;
  visibility: visible;
  transform: translateY(10px); /* Move it slightly down when hidden */
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 100;
  line-height: 1.7;
  color: white;
  padding: 0 2rem;
  margin-top: 0;
  text-align: justify;
}

/* Animation styles */
.animate-fade {
  opacity: 1;
}

.delay-1 {
  animation-delay: 0.4s;
}

.delay-2 {
  animation-delay: 0.8s;
}

/* Post Production Choisir Section */
.postprod-choisir {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #c4b9b9, #2a26298f);
  font-family: 'Segoe UI', sans-serif;
}

.container-choisir {
  margin: auto;
}

.postprod-choisir h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #000000;
}

.choisir-cards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.choisir-card {
  height: 400px;
  position: relative;
  background-color: transparent;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 12px 25px rgba(241, 181, 240, 0.255);
  cursor: pointer;
  padding: 2rem 1rem;
  transition: transform 0.3s ease;
}

.card-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 1rem;
  background-color: transparent;
}

.choisir-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: #000000;
  margin-bottom: 0.5rem;
  background-color: transparent;
  z-index: 2;
  position: relative;
}

.overlay-text-card-after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.98);
  color: white;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 10px;
  z-index: 3;
  overflow: hidden;
}

.overlay-text-content {
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 1px;
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
}

.choisir-card:hover .overlay-text-card-after {
  opacity: 1;
  visibility: visible;
}

/* projets-section */
.projets-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000d3;
}

.slideshow {
  width: 90%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.slider {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 500px;
}

.projet {
  position: absolute;
  width: 300px;
  height: 450px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.5s, opacity 0.5s;
  padding: 10px 0;
}

.projet::before,
.projet::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px; /* Border thickness */
  background: linear-gradient(to right,black, black, #8B5CF6, #EC4899, #ffe735, black, black); /* Gradient colors */
}

.projet::before {
  top: 2px; /* Position the top border 2px from the top */
}

.projet::after {
  bottom: 2px; /* Position the bottom border 2px from the bottom */
}

.projet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.462); /* Dark background */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease; /* Smooth transition */
}

.projet:hover .overlay {
  opacity: 1; /* Show overlay on hover */
}

.overlay p {
  width: 100%;
  font-size: 14px;
  font-style: oblique;
  font-weight: 100;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
  line-height: 1.7;
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.867);
}

#prev_button, #next_button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0);
  color: #f5efef;
  border: none;
  font-size: 1.6rem;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 0;
  z-index: 5;
}

#prev_button:hover, #next_button:hover {
  color: rgb(201, 186, 186);
}

#prev_button {
  left: 2px;
  border-right: 1px solid #fff;
}

#next_button {
  right: 2px;
  border-left: 1px solid #fff;
}

#prev_button:hover {
  border-right: none;
}

#next_button:hover {
  border-left: none;
}

/* contact section */
#contact-trigger {
  text-transform: capitalize;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 100;
}

/* Scroll to top button */
#scrollToTopBtn {
  position: fixed;
  line-height: 1.9;
  bottom: 75px;
  right: 1px;
  z-index: 99;
  border: none;
  background-color: rgba(128, 128, 128, 0.467);
  color: white;
  cursor: pointer;
  padding: 2px 15px;
  border-radius: 50%;
  font-size: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s, visibility 0.8s;
}

#scrollToTopBtn:hover {
  box-shadow: 0 2px 4px rgba(231, 74, 215, 0.718);
  background-color: darkgray;
  background: linear-gradient(to bottom, #2c8aef8f, #878a9572);
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container p {
    font-size: 1.2rem;
    line-height: 1.4;
    text-align: justify;
  }

  .image-grid-postprod {
    grid-template-columns: repeat(2, 1fr);
  }
  .choisir-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .replay-icon, .replay-icon.show {
    display: none;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    width: 100%;
    margin-top: 60px;
  }

  h1 {
    font-size: 1.7rem;
    margin: 0;
  }

  .scrolling-text-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px;
    transition: height 1s ease;
  }

  .scrolling-text-wrapper.shrink {
    height: 0;
    padding: 0;
  }

  .scrolling-text {
    position: absolute;
    bottom: -100%;
    animation: scrollUp 30s linear forwards;
  }

  .container p {
    font-size: 1.1rem;
    line-height: 1.2;
    padding: 1rem 0;
    text-align: justify;
  }

  @keyframes scrollUp {
    to {
      bottom: 100%;
    }
  }

  .replay-icon {
    display: none;
    font-size: 2.5rem;
    color: rgb(255, 255, 255);
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .replay-icon:hover {
    transform: scale(1.2);
  }

  .replay-icon.show {
    display: block;
  }

  .btn-primary {
    padding: 0.75rem 1.5rem;
  }

  #next-post-prod h2 {
    font-size: 1.5rem;
  }

  .intro-text {
    font-size: 1.1rem !important;
    width: 90%;
    margin: 0 auto;
  }

  .image-grid-postprod {
    grid-template-columns: 1fr;
  }

  .services-box-items {
    padding: 1rem;
  }

  .service-content h3 {
    font-size: 1.1rem;
  }

  .service-box:hover .service-content p {
    font-size: 1rem;
  }

  .postprod-benefits {
    padding: 3rem 0;
  }

  .services-postprod h2,
  .postprod-benefits h2,
  .container-choisir h2 {
    font-size: 1.5rem;
  }

  .benefit-card h3 {
    font-size: 1.2rem;
  }

  .benefit-card p {
    font-size: 1.1rem;
    padding: 1rem;
  }

  .choisir-cards-grid {
    grid-template-columns: 1fr;
  }

  .overlay-text-content {
    padding: 1rem;
  }

  .section-triggers {
    gap: 20px;
  }

  .slider {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

  #contact-trigger a,
  #faq-trigger h2 {
    font-size: 1.2rem;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    width: 100%;
  }

  h1 {
    font-size: 2.2rem;
    margin: 0;
  }

  .scrolling-text-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px;
    transition: height 1s ease;
  }

  .scrolling-text-wrapper.shrink {
    height: 0;
    padding: 0;
  }

  .scrolling-text {
    position: absolute;
    bottom: -100%;
    animation: scrollUp 30s linear forwards;
  }

  .container p {
    font-size: 1.4rem;
    line-height: 1.4;
    padding: 1rem;
    text-align: justify;
  }

  @keyframes scrollUp {
    to {
      bottom: 100%;
    }
  }

  .replay-icon {
    display: none;
    font-size: 2.5rem;
    color: rgb(255, 255, 255);
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .replay-icon:hover {
    transform: scale(1.2);
  }

  .replay-icon.show {
    display: block;
  }

  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
  }

  #next-post-prod h2 {
    font-size: 1.9rem;
    padding: 0 1rem;
  }

  .intro-text {
    font-size: 1.4rem !important;
    width: 95%;
    margin: 0 auto;
  }

  .image-grid-postprod {
    grid-template-columns: 1fr;
  }

  .services-box-items {
    padding: 3rem 1rem;
  }

  .service-content h3 {
    font-size: 1.5rem;
  }

  .service-box:hover .service-content p {
    font-size: 1.2rem;
  }

  .postprod-benefits {
    padding: 3rem 0;
  }

  .services-postprod h2,
  .postprod-benefits h2,
  .container-choisir h2 {
    font-size: 1.7rem;
  }

  .benefit-card h3,
  .image-box-postprod h3,
  .choisir-card h3 {
    font-size: 1.5rem;
  }

  .benefit-card p {
    font-size: 1.3rem;
    padding: 1.5rem;
  }

  .choisir-cards-grid {
    grid-template-columns: 1fr;
  }

  .overlay-text-content,
  .overlay-text-postprod {
    padding: 1rem;
    font-size: 1.3rem;
  }

  .section-triggers {
    gap: 20px;
  }

  #contact-trigger a {
    font-size: 1.5rem;
  }
  #faq-trigger {
    font-size: 1.5rem;
  }
}