/* ====================
    VIDEO GALLERY - PREMIUM
======================= */
#videoGallery {
  padding: 100px 20px;
  background: linear-gradient(135deg, #0a1018 0%, #1a2433 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#videoGallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(77, 168, 218, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(16, 37, 66, 0.15) 0%, transparent 50%);
  z-index: -1;
}

#videoGallery::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent, 
    #4da8da, 
    #102542, 
    #4da8da, 
    transparent);
  z-index: 1;
}

#videoGallery h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2em;
  font-weight: 800;
  color: transparent;
  text-align: center;
  margin-bottom: 70px;
  letter-spacing: 0.5px;
  line-height: 1.2;
  position: relative;
  padding: 0 20px;
  background: linear-gradient(45deg, #ffffff, #4da8da, #b3d4fc);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 5px 25px rgba(77, 168, 218, 0.3);
}

#videoGallery h2::after {
  content: '✨';
  position: absolute;
  right: -10px;
  top: -15px;
  font-size: 0.5em;
  animation: sparkle 3s infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.videos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.video-card {
  position: relative;
  border-radius: 24px;
  overflow: visible;
  background: transparent;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  transform-origin: center;
}

.video-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, 
    #4da8da, 
    transparent 30%, 
    transparent 70%, 
    #102542);
  border-radius: 26px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.video-card:hover::before {
  opacity: 1;
  animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
  0% { opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { opacity: 0.3; }
}

.video-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, 
    rgba(16, 37, 66, 0.95), 
    rgba(26, 58, 107, 0.9));
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.video-card:hover .video-card-inner {
  transform: translateY(-10px);
  box-shadow: 
    0 30px 60px rgba(77, 168, 218, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(16, 37, 66, 0.95) 0%,
    rgba(16, 37, 66, 0.7) 50%,
    rgba(16, 37, 66, 0.95) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: 24px;
  padding: 30px;
  text-align: center;
}

.video-card:hover .video-overlay {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.play-container {
  position: relative;
  margin-bottom: 30px;
}

.play-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #4da8da, #2a7bb6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  box-shadow: 
    0 15px 35px rgba(77, 168, 218, 0.5),
    0 0 0 15px rgba(77, 168, 218, 0.2);
  transition: all 0.3s ease;
  position: relative;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.play-icon::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  border: 2px solid rgba(77, 168, 218, 0.3);
  border-radius: 50%;
  animation: ripple 2s infinite;
}

.play-icon::after {
  content: '';
  position: absolute;
  width: 140%;
  height: 140%;
  border: 1px solid rgba(77, 168, 218, 0.1);
  border-radius: 50%;
  animation: ripple 2s infinite 0.5s;
}

.video-overlay:hover .play-icon {
  transform: scale(1.15);
  background: linear-gradient(135deg, #2a7bb6, #4da8da);
  box-shadow: 
    0 20px 50px rgba(77, 168, 218, 0.7),
    0 0 0 20px rgba(77, 168, 218, 0.3);
}

.video-overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards 0.3s;
}

.video-overlay p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1em;
  color: #b3d4fc;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards 0.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-content {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
}

.video-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(16, 37, 66, 0.3) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.video-card blockquote {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  position: relative;
  transform: scale(1);
  transition: transform 0.5s ease;
}

.video-card:hover blockquote {
  transform: scale(1.02);
}

.tiktok-embed {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  display: block !important;
}

.tiktok-embed iframe {
  width: 100% !important;
  height: 100% !important;
  border-radius: 24px !important;
  border: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  background: linear-gradient(
    to top,
    rgba(16, 37, 66, 0.95) 0%,
    rgba(16, 37, 66, 0.7) 70%,
    transparent 100%
  );
  z-index: 3;
  transform: translateY(100%);
  transition: transform 0.5s ease;
  backdrop-filter: blur(10px);
  border-radius: 0 0 24px 24px;
}

.video-card:hover .video-info {
  transform: translateY(0);
}

.video-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-info h4::before {
  content: '▶';
  font-size: 0.8em;
  color: #4da8da;
}

.video-info p {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95em;
  color: #b3d4fc;
  line-height: 1.5;
  margin-bottom: 15px;
}

.video-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-stats span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  color: #8bb9f7;
  font-weight: 500;
}

.video-stats i {
  font-size: 1.2em;
  color: #4da8da;
}

/* Floating particles effect */
.video-card .particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: 24px;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(77, 168, 218, 0.1);
  border-radius: 50%;
  animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100%) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100%) rotate(360deg);
    opacity: 0;
  }
}

/* Loading animation */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 3px solid rgba(77, 168, 218, 0.3);
  border-top: 3px solid #4da8da;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 20;
  display: none;
}

.video-card.loading .loading-spinner {
  display: block;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .videos-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  #videoGallery h2 {
    font-size: 2.8em;
  }
}

@media (max-width: 992px) {
  .video-card {
    min-height: 480px;
  }
  
  .video-content {
    height: 450px;
  }
}

@media (max-width: 768px) {
  #videoGallery {
    padding: 80px 15px;
  }
  
  #videoGallery h2 {
    font-size: 2.4em;
    margin-bottom: 50px;
  }
  
  .videos-container {
    grid-template-columns: 1fr;
    max-width: 600px;
    gap: 40px;
  }
  
  .video-card {
    min-height: 460px;
  }
  
  .video-content {
    height: 420px;
  }
  
  .play-icon {
    width: 80px;
    height: 80px;
    font-size: 32px;
  }
  
  .video-overlay h3 {
    font-size: 1.6em;
  }
}

@media (max-width: 480px) {
  #videoGallery h2 {
    font-size: 2em;
  }
  
  .videos-container {
    gap: 30px;
    padding: 0 10px;
  }
  
  .video-card {
    min-height: 400px;
  }
  
  .video-content {
    height: 380px;
  }
  
  .play-icon {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
  
  .video-overlay {
    padding: 20px;
  }
  
  .video-overlay h3 {
    font-size: 1.4em;
  }
  
  .video-overlay p {
    font-size: 1em;
  }
}

/* Smooth scroll for video container */
.videos-container {
  scroll-behavior: smooth;
}

/* Custom scrollbar for video info */
.video-info::-webkit-scrollbar {
  width: 6px;
}

.video-info::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.video-info::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #4da8da, #2a7bb6);
  border-radius: 3px;
}