body {
  background-color: #1f1e1e;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Poppins', Arial, sans-serif;
}

@keyframes fadeInTop {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-header {
  margin-top: 140px;
  text-align: left;
  width: 100%;
  max-width: 1300px;
  opacity: 0;
  animation: fadeInTop 0.8s ease-out 0.2s forwards;
}

.intro-header h1 {
  font-size: 2.7rem;
  font-weight: 700;
  margin-bottom: 0;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.7em;
  letter-spacing: 0.5px;
}

.intro-header .subtitle {
  opacity: 0;
}

.top-nav {
  position: absolute;
  top: 30px;
  right: 475px;
  display: flex;
  gap: 2.0em;
  z-index: 10;
}

.top-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.top-nav a.active,
.top-nav a:hover {
  opacity: 1;
  border-bottom: 2px solid #004ba0;
}

.video-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 2.0em;
  margin: 60px 0 0 0;
  margin-left: -157px;
  opacity: 0;
  animation: fadeInTop 0.8s ease-out 0.7s forwards;
  max-width: 1200px;
}

.contact-page .video-gallery {
  justify-content: center;
  margin-left: 0;
  margin-top: 20px;
  width: 100%;
  max-width: 1300px;
}

.contact-page .intro-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.video-slot iframe {
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  width: 360px;
  height: 203px;
  background: #111;
}

.video-thumb {
  width: 360px;
  height: 202px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  background: transparent;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: block;
}

.video-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.video-caption {
  font-size: 0.85rem;
  font-weight: 400;
  color: #fff;
  opacity: 0.6;
  margin-top: 12px;
  text-align: center;
  letter-spacing: 0.3px;
}

@media (max-width: 1200px) {
  .video-gallery {
    flex-direction: column;
    align-items: flex-start;
    gap: 2em;
    padding-left: 0;
  }
  .video-slot iframe {
    width: 100%;
    max-width: 360px;
    height: 203px;
  }
}

/* Mobile Styles - Only affects mobile, desktop stays the same */
@media (max-width: 768px) {
  body {
    padding: 0 20px;
  }
  
  .top-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    justify-content: center;
    background: rgba(31, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 12px;
    gap: 1.5em;
  }
  
  .intro-header {
    margin-top: 100px;
    text-align: center;
    padding: 0 10px;
  }
  
  .intro-header h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .video-gallery {
    margin-left: 0;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 1.5em;
    width: 100%;
  }
  
  .video-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 340px;
  }
  
  .video-thumb {
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 16/9;
  }
  
  .video-slot iframe {
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 16/9;
  }
  
  .contact-page .video-gallery {
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .top-nav {
    gap: 1em;
  }
  
  .top-nav a {
    font-size: 1rem;
  }
  
  .intro-header {
    margin-top: 90px;
  }
  
  .intro-header h1 {
    font-size: 1.8rem;
  }
  
  .video-thumb {
    max-width: 100%;
  }
  
  .video-slot iframe {
    max-width: 100%;
  }
}
