/* Our Work Section */
.our-work {
  text-align: center;
  width: 100%;
  padding: 180px 0 0px;
  position: relative;
}

.section-subtitle {
  color: #8c79cf;
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 15px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.8s 0.8s forwards;
}

.section-title {
  font-size: 3rem;
  margin: 0 auto 60px;
  max-width: 800px;
  line-height: 1.2;
  background: linear-gradient(to right, #ffffff, #c9b6f8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s 1s forwards;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) !important;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #8c79cf, transparent);
  border-radius: 3px;
  opacity: 0;
  animation: fadeIn 0.8s 1.3s forwards;
}

.section-description {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  opacity: 0;
  animation: fadeIn 0.8s 1.4s forwards;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Enhanced Carousel */
.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 60px 0;
}

.carousel-track {
  display: flex;
  gap: 30px;
  width: max-content;
  padding: 0 20px;
  will-change: transform;
  /* Animation removed - will be handled by JS */
}

.carousel-item {
  flex: 0 0 320px;
  height: 450px;
  position: relative;
  filter: drop-shadow(0 12px 30px rgba(140, 121, 207, 0.4));
  transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  opacity: 0;
  transform-origin: center bottom;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 40%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-item:hover::before {
  opacity: 1;
}

.carousel-item:nth-child(odd) {
  margin-top: 30px;
  transform: translateY(60px);
  animation: fadeInUp 0.8s forwards;
}

.carousel-item:nth-child(even) {
  margin-bottom: 30px;
  transform: translateY(-60px);
  animation: fadeInDown 0.8s forwards;
}

/* Staggered animation delays */
.carousel-item:nth-child(1) { animation-delay: 1.5s; }
.carousel-item:nth-child(2) { animation-delay: 1.6s; }
.carousel-item:nth-child(3) { animation-delay: 1.7s; }
.carousel-item:nth-child(4) { animation-delay: 1.8s; }
.carousel-item:nth-child(5) { animation-delay: 1.9s; }

.carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.video-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-item:hover .video-overlay {
  opacity: 1;
}

.carousel-item:hover {
  transform: scale(1.08) translateY(-8px) !important;
  filter: drop-shadow(0 20px 40px rgba(140, 121, 207, 0.7));
  z-index: 2;
}

.carousel-item:hover video {
  transform: scale(1.05);
}

/* Expanded Video State */
.carousel-item.expanded {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1000;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  margin: 0 !important;
  transform: none !important;
  animation: none !important;
}

.carousel-item.expanded video {
  width: auto !important;
  height: 80% !important;
  max-width: 90% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

.carousel-item.expanded .video-overlay {
  display: none;
}

.video-close-btn {
  position: fixed;
  top: 30px;
  right: 30px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.carousel-item.expanded ~ .video-close-btn {
  opacity: 1;
  pointer-events: all;
}

/* Results Gallery */
.results-section {
  padding: 20px 0 100px;
  background: rgba(0, 0, 0, 0.8);
  text-align: center;
  position: relative;
}

.results-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.results-gallery {
  margin-top: 60px;
}

.gallery-title {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 600;
  opacity: 0;
  animation: fadeIn 0.8s 1.6s forwards;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  cursor: pointer;
  height: auto;
  opacity: 0;
  transform: translateY(30px);
}

/* Animation for gallery items */
.gallery-item:nth-child(1) { animation: fadeInUp 0.8s 1.8s forwards; }
.gallery-item:nth-child(2) { animation: fadeInUp 0.8s 2.0s forwards; }
.gallery-item:nth-child(3) { animation: fadeInUp 0.8s 2.2s forwards; }
.gallery-item:nth-child(4) { animation: fadeInUp 0.8s 2.4s forwards; }

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(140, 121, 207, 0.4);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 30px 20px 20px;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-caption {
  color: white;
  text-align: center;
  margin-top: 15px;
  font-size: 1.1rem;
}

/* Partners Section */
.partners-section {
  text-align: center;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background-color: #000000;
  margin-bottom: 20px;
}

.partners-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.partners-section .section-subtitle {
  color: #8c79cf;
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 15px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.partners-section .section-title {
  font-size: 3rem;
  margin: 0 auto 60px;
  max-width: 800px;
  line-height: 1.2;
  background: linear-gradient(to right, #ffffff, #c9b6f8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.partners-section.active .section-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.partners-section.active .section-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.partner-logo {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(140, 121, 207, 0.1);
}

.partner-logo img {
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5);
  transition: all 0.6s ease;
  transform: scale(0.9);
}

.partner-name {
  color: #c9b6f8;
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 20px;
  opacity: 0.8;
  transition: all 0.6s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.partner-logo:hover img {
  filter: grayscale(0) brightness(1);
  transform: scale(1);
}

.partner-logo:hover .partner-name {
  opacity: 1;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(201, 182, 248, 0.5);
}

/* Animation Sequence */
.partners-section.active .partner-logo {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.partners-section.active .partner-logo:nth-child(1) { transition-delay: 0.4s; }
.partners-section.active .partner-logo:nth-child(2) { transition-delay: 0.5s; }
.partners-section.active .partner-logo:nth-child(3) { transition-delay: 0.6s; }
.partners-section.active .partner-logo:nth-child(4) { transition-delay: 0.7s; }
.partners-section.active .partner-logo:nth-child(5) { transition-delay: 0.8s; }
.partners-section.active .partner-logo:nth-child(6) { transition-delay: 0.9s; }
.partners-section.active .partner-logo:nth-child(7) { transition-delay: 1.0s; }
.partners-section.active .partner-logo:nth-child(8) { transition-delay: 1.1s; }
.partners-section.active .partner-logo:nth-child(9) { transition-delay: 1.2s; }
.partners-section.active .partner-logo:nth-child(10) { transition-delay: 1.3s; }
.partners-section.active .partner-logo:nth-child(11) { transition-delay: 1.4s; }
.partners-section.active .partner-logo:nth-child(12) { transition-delay: 1.5s; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Removed carouselScroll animation - handled by JS */

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .section-title {
    font-size: 2.5rem;
  }
  
  .partner-logo {
    height: 180px;
    padding: 30px;
  }
    .partners-content{
      max-width: fit-content !important;
  }
}

@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }
  
  .carousel-item {
    flex: 0 0 280px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .our-work {
    padding: 120px 0 80px;
  }
  
  .partner-logo {
    height: 160px;
    padding: 25px;
  }
  
  .partner-logo img {
    max-height: 60px;
  }
  
  .section-title {
    font-size: 2rem !important;
  }
  
  .section-subtitle {
    font-size: 1rem !important;
  }
  
  .gallery-item {
    height: 250px;
  }
}

@media (max-width: 600px) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .partner-logo {
    height: 140px;
  }
  
  .carousel-item {
    flex: 0 0 240px;
    height: 340px;
  }
}