/* General Reset */
body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
  color: #ffffff;
  background-color: #1b263b;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #32ff7e;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh; /* Fullscreen height */
  width: 100%;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the video scales without distortion */
  z-index: 3; /* Push the video behind content */
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)); /* Gradient overlay */
  z-index: 1; /* Ensures it's above the video */
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 4;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #cccccc;
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: #32ff7e;
  color: #1b263b;
  font-weight: bold;
  border-radius: 30px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #28d76c;
}

a:focus {
  outline: 2px solid #32ff7e;
}

/* Video Gallery */
.video-gallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 100px 20px 20px;
  background: #1b263b;
  color: #ffffff;
}

.video-gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #32ff7e;
}

/* Gallery Container */
.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Video Titles */
.gallery-item-title {
  text-align: center;
  margin-bottom: 10px;
}

.gallery-item-title h3 {
  font-size: 1.2rem;
  color: #32ff7e;
  font-family: 'Orbitron', sans-serif; /* Futuristic font */
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  margin: 0; /* Remove default margins */
}

/* Gallery Item */
.gallery-item {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Green Line After Videos */
.gallery-item::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #32ff7e;
  margin-top: 10px; /* Spacing between video and line */
}

/* Gallery Video Glow on Click */
.gallery-item.selected {
  box-shadow: 0 0 15px 5px #32ff7e; /* Neon green glow */
  border-radius: 10px;
  transition: box-shadow 0.3s ease; /* Smooth glow effect */
}

/* Modal Styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9); /* Dark background for focus */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal video {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 15px #32ff7e; /* Glow around the video in the modal */
}

.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
}


.separator {
  width: 100%;
  height: 2px; /* Thickness of the line */
  background: #32ff7e; /* Neon green */
  margin: 10px 0; /* Space above and below the line */
}

/* Thumbnail Video */
.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .video-gallery {
    padding: 80px 10px 20px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}
