:root {
  --primary: #2a2a72;
  --secondary: #009ffd;
  --accent: #4CAF50;
  --background: #1a1a2e;
  --text: #ffffff;
  --section-bg: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: 'Arial', sans-serif;
  min-height: 100vh;
}

header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nav-btn.active {
  background: var(--accent);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  margin: 2rem 0;
  background: var(--section-bg);
  border-radius: 10px;
}

.date-tag {
  background: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.gallery-section {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
  margin: auto;
  max-width: 80rem;
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }

  to {
      opacity: 1;
  }
}

.gallery-section.active {
  display: block;
}

.slider-container {
  position: relative;
  margin-bottom: 2rem;
  height: 400px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.slider {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.slider-item {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 2;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 0;
  border-radius: 0 5px 5px 0;
}

.next {
  right: 0;
  border-radius: 5px 0 0 5px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#gif-grid img,
#gif-slider img {
  image-rendering: optimizeSpeed;
  animation-play-state: paused !important;
  animation-duration: 8s !important;
  animation-timing-function: steps(30) !important;
  filter: brightness(0.95);
  transition: filter 0.3s ease;
}

#gif-grid img:hover,
#gif-slider img:hover {
  animation-play-state: running !important;
  filter: brightness(1);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.timeline-item {
  position: relative;
  padding: 2rem;
  margin-bottom: 2rem;
  background: var(--section-bg);
  border-radius: 10px;
  border-left: 4px solid var(--accent);
}

.timeline-date {
  position: absolute;
  top: -10px;
  left: -10px;
  background: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.timeline-content {
  margin-top: 1rem;
}

.timeline-content h3 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
  background: var(--background);
  padding: 20px;
  border-radius: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.close-modal-btn {
  position: absolute;
  right: 15px;
  top: 15px;
  border: none;
  z-index: 1001;
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  line-height: 1;
}

.close-modal-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.modal-info {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--section-bg);
  border-radius: 10px;
}

.download-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 1rem;
}

.credits-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--section-bg);
  border-radius: 15px;
  text-align: center;
}


footer {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 2rem;
  margin-top: 2rem;
}

.credits {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

.credits p {
  margin: 0.5rem 0;
}

@media (max-width: 768px) {
  .section-header {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
  }

  .timeline-item {
      margin-left: 0;
  }

  .slider-container {
      height: 250px;
  }

  .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
  }

  h1 {
      font-size: 2rem;
  }

  .gallery-item img {
      height: 300px;
  }
}

@media (max-width: 480px) {
  .slider-container {
      height: 250px;
  }

  .gallery-grid {
      grid-template-columns: repeat(1, 1fr);
      gap: 0.5rem;
  }

  .gallery-item img {
      height: 200px;
  }
}