/* ===============================
   GLOBAL
   =============================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f0f0f;
  color: #fff;
  text-align: center;
}
/* ===============================
   MEMORIAL IMAGE FIX
   =============================== */
.memorial-photo {
  width: 220px;        /* controls size */
  height: 220px;       /* keeps it balanced */
  object-fit: cover;   /* keeps it centered/cropped nicely */
  border-radius: 12px; /* soft edges */
  border: 2px solid #8b5cf6;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
  display: block;
  margin: 20px auto;
}
/* LINKS */
a {
  color: #8b5cf6;
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: #ff3b3b;
}
.gallery-item img.tribute {
  height: auto;
  max-height: 250px;
  object-fit: contain; /* shows full image */
  background: #000;    /* fills empty space cleanly */
}
/* ===============================
   NAVBAR
   =============================== */
nav {
  background: #000;
  padding: 15px 0;
  border-bottom: 1px solid #222;
}

nav ul.navbar-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  font-size: 16px;
}
nav a:hover {
  color: #00ff88;
}

/* ===============================
   HEADER
   =============================== */
header {
  background: linear-gradient(135deg, #ff3b3b, #8b5cf6, #3b82f6);
  padding: 80px 20px;
}

header img {
  width: 100px;
  margin-bottom: 15px;
}

header h1 {
  font-size: 2.5rem;
}

/* ===============================
   CONTENT
   =============================== */
section, main {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

/* ===============================
   SOCIAL
   =============================== */
.social-banner {
  background: #111;
  padding: 20px;
  border-top: 2px solid #8b5cf6;
  border-bottom: 2px solid #8b5cf6;
}

.social-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.social-link {
  background: #222;
  padding: 10px 20px;
  border-radius: 8px;
  color: #fff;
  transition: 0.3s;
}

.social-link:hover {
  background: #00ff88;
  color: #000;
  transform: scale(1.05);
}

/* ===============================
   CONTACT
   =============================== */
.contact-box {
  background: #111;
  padding: 30px;
  border-radius: 12px;
  max-width: 1000px;
  margin: 40px auto;
  border: 2px solid #8b5cf6;
}

.contact-box h3 {
  color: #00ff88;
}

/* ===============================
   GALLERY SECTION
   =============================== */

.gallery-section {
  padding: 120px 20px;
  background: #0b0b0b;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

/* CONTAINER */
.gallery-container {
  max-width: 900px;
  margin: auto;
  position: relative;
  z-index: 2;
}

/* TITLE */
.gallery-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}

/* SUBTEXT */
.gallery-text {
  opacity: 0.7;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.3s;
}

/* GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.6s;
}

/* IMAGE BOX */
.gallery-item {
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #222;
  transition: 0.3s ease;
}

/* IMAGE */
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* HOVER EFFECT */
.gallery-item:hover {
  transform: scale(1.03);
  border-color: #00ff88;
  box-shadow: 0 0 15px rgba(0,255,136,0.2);
}

/* ===============================
   ANIMATION
   =============================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   SPONSORS
   =============================== */
.sponsor-banner {
  overflow: hidden;
  padding: 20px 0;
  border-top: 2px solid #8b5cf6;
  border-bottom: 2px solid #8b5cf6;
}

.sponsor-track {
  display: flex;
  gap: 30px;
  animation: scroll 20s linear infinite;
}

.sponsor-track img {
  max-width: 100px;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: 0.3s;
}

.sponsor-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 0 0 15px #00ff88;
}

@keyframes scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===============================
   GALLERY SECTION
   =============================== */

.gallery-section {
  padding: 120px 20px;
  background: #0b0b0b;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

/* CONTAINER */
.gallery-container {
  max-width: 900px;
  margin: auto;
  position: relative;
  z-index: 2;
}

/* TITLE */
.gallery-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}

/* SUBTEXT */
.gallery-text {
  opacity: 0.7;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.3s;
}

/* GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.6s;
}

/* IMAGE BOX */
.gallery-item {
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #222;
  transition: 0.3s ease;
}

/* IMAGE */
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* HOVER EFFECT */
.gallery-item:hover {
  transform: scale(1.03);
  border-color: #00ff88;
  box-shadow: 0 0 15px rgba(0,255,136,0.2);
}
/* VIDEO ITEMS */
.gallery-item.video {
  position: relative;
}

/* VIDEO STYLE */
.gallery-item video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* PLAY ICON */
.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 10px 14px;
  border-radius: 50%;
  pointer-events: none;
  transition: 0.3s;
}

/* HOVER EFFECT */
.gallery-item.video:hover .play-overlay {
  background: #00ff88;
  color: #000;
  transform: translate(-50%, -50%) scale(1.1);
}

/* AUTO PLAY ON HOVER (visual effect) */
.gallery-item.video video {
  opacity: 0.7;
  transition: 0.3s;
}

.gallery-item.video:hover video {
  opacity: 1;
}
/* ===============================
   ANIMATION
   =============================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===============================
   MODAL
   =============================== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
}

.modal img {
  max-width: 90%;
  max-height: 80%;
  margin-top: 5%;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  cursor: pointer;
}

/* ===============================
   PARTICLES
   =============================== */
#paintCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===============================
   ANIMATION
   =============================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   MOBILE
   =============================== */
@media (max-width: 768px) {
  nav ul.navbar-links {
    flex-direction: column;
    gap: 15px;
  }

  .coming-form {
    flex-direction: column;
  }
}
.play-overlay {
  opacity: 1;
  transition: 0.3s ease;
}

.gallery-item.video:hover .play-overlay {
  opacity: 0;
}
.gallery-item.video {
  position: relative;
  overflow: hidden;
  background: #000;
}

/* makes video smoother */
.gallery-item video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transform: translateZ(0); /* GPU acceleration = smoother */
  will-change: transform;
}

/* prevents flicker on hover */
.gallery-item.video:hover video {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}