:root {
  --brand: #c0392b; 
  --accent: rgb(179, 141, 14);
  --muted: #cccccc;
  --bg: #bdbdbdcf;
  --card-bg: #111;
  --header-bg: #555; 
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0,0,0,0.5);
}

/* GENERAL */
* { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color:#fff;
  line-height:1.6;
  overflow-x:hidden;
}
a { text-decoration: none; color: inherit; }
a:hover, a:focus { color: var(--accent); }

.container {
  max-width: 1200px;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  justify-content: space-between;
  align-items: center;
}

/* ANNIVERSARY CANVAS - stays only in hero */
#anniversary-canvas {
  position: absolute;
  top: 25%; /* adjust this to move up/down */
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 120px;
  background: transparent;
  filter: drop-shadow(0 0 10px gold);
  pointer-events: none;
  z-index: 3;
}


/* HEADER */
header { background: var(--header-bg); padding:4px 0; box-shadow:0 2px 8px rgba(0,0,0,0.5); position: sticky; top:0; z-index:10; }
header nav { display:flex; }
header nav a { margin-left:16px; font-weight:600; transition:0.3s; color:#fff; text-decoration:none; }
header nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  padding: 5px 10px;
  transition: all 0.3s ease-in-out;
}

header nav a:hover {
  color: #f4b400;
  transform: scale(1.1);
  text-shadow: 0 0 10px #f4b400, 0 0 20px #f4b400;
}

  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px solid var(--accent);
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
header nav a:hover::after { opacity: 1; }
.menu-toggle { display:none; font-size:1.8rem; cursor:pointer; color:#fff; }

/* HEADER BRAND PULSE + MAGICAL GRADIENT */
header .brand {
  font-family:'Great Vibes', cursive;
  font-weight: 700;
  font-size:1.7rem;
  display:inline-block;
  background: linear-gradient(270deg,
      rgb(255, 255, 255)
  );
  background-size: 1200% 1200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes shimmerHeader {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 25%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 75%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseHeader {
  0%, 100% { 
    transform: scale(1); 
    text-shadow: 0 0 3px rgba(255,255,255,0.5); /* reduced glow */
  }
  50% { 
    transform: scale(1.05); 
    text-shadow: 0 0 8px rgba(255,255,255,0.5); /* reduced glow */
  }
}
/* HERO */
.hero { 
  position: relative; 
  min-height: 100vh; 
  display:flex; 
  flex-direction: column; 
  align-items:center; 
  justify-content:center; 
  text-align:center; 
  background: url('images/hero-image.png') center/cover no-repeat; 
  overflow:hidden;
   z-index: 1;
}
.hero::after { content:""; position:absolute; inset:0; background: rgba(0,0,0,0.6); }
.hero-content { position:relative; z-index:2; opacity:0; transform: translateY(40px); animation: fadeUp 1s forwards 0.3s; }
.hero-content h1 {
  font-family:'Lato', serif;
  font-size:3.4rem;
  margin-bottom:20px;
  color: var(--brand);
  position: relative;
  text-shadow: 0 0 10px var(--brand), 0 0 20px var(--brand);
  animation: glowLoop 3s infinite alternate, floatText 3s ease-in-out infinite;
}
@keyframes glowLoop {
  0%   { text-shadow: 0 0 5px var(--brand), 0 0 10px var(--brand); color: var(--brand); }
  25%  { text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent); color: var(--accent); }
  50%  { text-shadow: 0 0 15px var(--brand), 0 0 30px var(--brand); color: var(--brand); }
  75%  { text-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent); color: var(--accent); }
  100% { text-shadow: 0 0 10px var(--brand), 0 0 20px var(--brand); color: var(--brand); }
}
@keyframes floatText { 0%,100%{transform:translateY(0);}50%{transform:translateY(-10px);} }
.hero-content h1::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  top: 10%;
  left: 20%;
  box-shadow: 50px 30px var(--accent), 120px 80px var(--accent), 200px 50px var(--accent);
  animation: sparkle 2s infinite linear;
}
@keyframes sparkle { 0%,100%{opacity:0.5;transform:translateY(0) scale(1);}50%{opacity:1;transform:translateY(-5px) scale(1.2);} }
.hero-content p { font-size:1.3rem; margin-bottom:30px; }
.hero-content .btn { display:inline-block; margin:5px; padding:16px 32px; border-radius:8px; background: linear-gradient(135deg, var(--brand), var(--accent)); color:white; font-weight:700; transition: all 0.3s ease-in-out; }
.hero-content .btn:hover { background: linear-gradient(135deg, var(--accent), var(--brand)); color:#fff; }
@keyframes fadeUp { to { opacity:1; transform: translateY(0); } }

/* SECTIONS */
section { padding:100px 0; position: relative; }
section h2 { font-family:'Lato', serif; font-size:2.2rem; margin-bottom:20px; text-align:center; color: var(--brand); }
section p { text-align:center; max-width:800px; margin:0 auto; color: var(--muted); }
section::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(to right, transparent, var(--brand), transparent); opacity: 0.08; }

/* ABOUT CARDS */
.about-cards { display:flex; flex-wrap:wrap; gap:20px; justify-content:center; margin-top:40px; }
.about-card { 
  flex:1 1 300px; 
  background: var(--card-bg);
  color: #fff; 
  padding:24px; 
  border-radius: var(--radius); 
  box-shadow: var(--shadow); 
  cursor:pointer; 
  transition: all 0.3s ease-in-out; 
}
.about-card img { width:100%; border-radius: calc(var(--radius) - 4px); margin-bottom:12px; }
.about-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(192,57,43,0.45); }

/* PROGRAM CARDS */
.cards { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:20px; margin-top:40px; }
.card { 
  background: var(--card-bg);
  color: #fff;
  border-radius: var(--radius);
  padding:24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease-in-out;
  cursor:pointer; }
.card:hover { transform: translateY(-8px); box-shadow: 0 12px 28px rgba(192,57,43,0.45); }

/* IMPACT */
.stats { display:flex; justify-content:center; gap:2rem; flex-wrap:wrap; margin: 4rem 0; text-align:center; }
.stat { background: var(--card-bg); border:2px solid var(--accent); color:#fff; padding:2rem 2.5rem; border-radius:16px; box-shadow:0 0 20px rgba(255,215,0,0.12); transition: transform .3s, box-shadow .3s; }
.stat:hover { transform: translateY(-8px); box-shadow:0 0 30px rgba(255,215,0,0.25); }
.stat h3 { font-size:2rem; color:var(--accent); margin-bottom:.5rem; }
.stat p { font-size:1.1rem; color:#fff; opacity:.95; }

/* MEET THE TEAM SECTION */
#unit-heads {
  padding: 100px 20px;
  background:  #cdcdcd;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#unit-heads h2 {
  font-family: 'Lato', serif;
  font-size: 2.0rem;
  color: rgba(175, 13, 13, 0.82);
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 0px rgb(255, 0, 0);
}

.sponsorship-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  justify-content: center;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.sponsor {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 15px;
  padding: 12px;
  box-shadow: 0 0 10px rgba(255, 217, 0, 0.351);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(255, 213, 0, 0.781);
}

.sponsor img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  filter: brightness(0.95);
  transition: filter 0.3s ease;
}

.sponsor:hover img {
  filter: brightness(1.2);
}

.sponsor p {
  color: rgba(175, 13, 13, 0.82);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  margin-top: 8px;
}


/* GALLERY */
#gallery {
  position: relative;
  background: #838383; /* same as countdown background */
  overflow: hidden;
}

#gallery .gallery-sparkle {
  z-index: 0;
}

#gallery .gallery {
  position: relative;
  z-index: 2; /* images above the sparkles */
}

.deck-carousel {
  position: relative;
  max-width: 100%;
  overflow: visible; /* so cards can peek */
  margin: 0 auto;
  padding: 40px 0;
}

.deck-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  gap: 20px;
}

.deck-item {
  flex: 0 0 auto;
  width: 80%; /* full card width on mobile */
  max-width: 300px; /* limit size */
  transform-origin: center center;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  overflow: hidden;
  background: var(--card-bg);
  cursor: pointer;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.deck-item img {
  width: 100%;
  height: auto;
  display: block;
}

.deck-item.active {
  transform: scale(1.05);
  z-index: 2;
}

.deck-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #ffffff00;
  border: none;
  padding: 12px 16px;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 5;
}

.deck-btn.prev { left: 10px; }
.deck-btn.next { right: 10px; }

@media(max-width: 768px){
  .deck-item { width: 90%; max-width: 250px; }
}

.gallery { display:grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap:15px; margin-top:30px; }
.gallery img { width:100%; background: var(--card-bg); border-radius: var(--radius); cursor:pointer; transition: all 0.3s ease-in-out; }
.gallery img:hover { transform: scale(1.05); }

/* COUNTDOWN */
#countdown { text-align:center; padding:80px 20px; background: #282626ab; color:#fff; position:relative; overflow:hidden; }
#countdown::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at center, rgba(255,255,255,0.03), transparent 70%); pointer-events:none; animation: shimmerBG 10s linear infinite; z-index:1; }
@keyframes shimmerBG { 0%{transform:translateX(-100%);}100%{transform:translateX(100%);} }
.countdown-timer { display:flex; justify-content:center; flex-wrap:wrap; gap:30px; margin-top:40px; position:relative; z-index:2; }
.time-box { background: var(--brand); padding:20px 24px; border-radius: var(--radius); box-shadow:0 0 15px rgba(192,57,43,0.35); min-width:80px; text-align:center; color:#fff; font-weight:700; text-shadow:0 0 6px rgba(0,0,0,0.4); }

/* LIGHTBOX */
#lightbox { position:fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.9); display:none; align-items:center; justify-content:center; z-index:120; }
#lightbox img { max-width:90%; max-height:90%; border-radius: var(--radius); }

/* FLOAT DONATE BUTTON */
.float-donate { position:fixed; bottom:30px; right:30px; background: linear-gradient(135deg, var(--brand), var(--accent)); color:#fff; font-weight:700; padding:12px 20px; border-radius:50px; z-index:60; box-shadow: var(--shadow); transition: all 0.3s ease-in-out; }
.float-donate:hover { transform: translateY(-3px); }

/* MAGICAL ACCOUNT NUMBER */
.account-number { display:inline-block; padding:12px 20px; border-radius:10px; font-size:1.1rem; font-weight:700; text-align:center; color:#fff; background:linear-gradient(45deg,#ff4b1f,#ff9068,#434040,#3bb2b8); background-size:1200% 1200%; animation: shimmerRainbow 60s ease infinite, pulse 3s ease-in-out infinite; box-shadow:0 4px 12px rgba(0,0,0,0.5); text-shadow:0 0 6px rgba(255,255,255,0.5); }
@keyframes shimmerRainbow{0%{background-position:0% 50%;}25%{background-position:50% 25%;}50%{background-position:100% 50%;}75%{background-position:50% 75%;}100%{background-position:0% 50%;}}
@keyframes pulse{0%,100%{transform:scale(1);box-shadow:0 4px 12px rgba(0,0,0,0.5);}50%{transform:scale(1.03);box-shadow:0 8px 20px rgba(255,255,255,0.08);}}

/* HALL OF FAME SECTION */
.hall-of-fame {
  background: linear-gradient(180deg, var(--bg), #111);
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}

.hall-of-fame::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 60%);
  animation: rotateGlow 15s linear infinite;
  z-index: 0;
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.section-title {
  font-size: 2.5rem;
  color: rgb(255, 217, 0);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  z-index: 2;
  position: relative;
}

.section-subtitle {
  color: rgb(255, 217, 0);
  font-size: 1rem;
  margin-bottom: 40px;
  z-index: 2;
  position: relative;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  z-index: 2;
  position: relative;
}

.sponsor-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255, 242, 0, 0.3);
  border-radius: var(--radius);
  padding: 15px 10px;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255,215,0,0.1);
  backdrop-filter: blur(4px);
}

.sponsor-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 0 25px rgba(255,215,0,0.4);
  border-color: rgb(255, 242, 0);
}

/* FOOTER */
footer {
  background: #000000;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 5px;
  text-align: center;
  border-top: 2px solid var(--brand);
  box-shadow: 0 -4px 12px rgb(255, 25, 0);
  font-size: 0.8rem;       /* smaller text size */
  letter-spacing: 0.5px;   /* elegant spacing */
  line-height: 1.4;        /* keep readable */
}

footer a {
  color: var(--accent);
  margin: 0 10px;
  transition: 0.3s;
  font-size: 0.8rem;       /* match footer text size */
}

footer a:hover {
  color: var(--brand);
}

/* CONTACT CARD */
.contact-card {
  background: #000000b9;
  padding: 30px 25px;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(81, 79, 79, 0.6);
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}
.contact-card h3 { font-family: 'Great Vibes', cursive; font-size:1.6rem; margin-bottom:12px; color: var(--brand); }
.contact-card p { margin: 8px 0; font-size: 1rem; color: var(--muted); }
.contact-card a { color: rgb(242, 242, 242); font-weight: 600; transition: 0.2s; }
.contact-card a:hover { color: var(--brand); text-decoration: underline; }

/* small sparkle spans inside countdown */
.count-sparkle { transition: left 0.2s linear, top 0.2s linear; }

/* images */
img { max-width:100%; height:auto; display:block; }

/* responsive */
@media (max-width:992px){
  body{font-size:15px;}
  section{padding:70px 18px;}
  .hero-content h1{font-size:2.6rem;}
  .hero-content p{font-size:1.15rem;}
  .container { padding: 0 16px; }
}
@media (max-width:768px){
  body{font-size:14px;}
  section{padding:60px 14px;}
  .hero-content h1{font-size:2.2rem;}
  .hero-content p{font-size:1.05rem;}
  .hero-content .btn{padding:10px 18px;font-size:0.95rem;}
  header nav{display:none;}
  header nav.open { display:flex; flex-direction:column; position:absolute; top:56px; right:12px; background:#222; padding:14px; border-radius:var(--radius); box-shadow: var(--shadow); z-index:80; }
  header nav.open a { margin:8px 0; }
  .menu-toggle{display:block;}
  #anniversary-canvas { height: 88px; } /* keep a small canvas strip on mobile */
}
@media (max-width:480px){
  body{font-size:13px;}
  section{padding:40px 10px;}
  .hero-content h1{font-size:1.8rem;}
  .hero-content p{font-size:0.95rem;}
  .hero-content .btn{padding:8px 14px;font-size:0.85rem;}
}

/* accessibility preference */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
  .hero-content { opacity: 1 !important; transform:none !important; }
}
.account-number { color: #fff !important; }
/* Sleek Deck Carousel */
.deck-carousel {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  padding: 30px 0;
  margin: 0 auto;
}

.deck-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  gap: 20px;
  will-change: transform;
}

.deck-item {
  flex: 0 0 auto;
  width: 80%;
  max-width: 300px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(192, 57, 43, 0.3);
  border: 2px solid rgba(192, 57, 43, 0.15);
  background-color: #fff;
  transition: all 0.5s ease;
  transform-origin: center;
}

.deck-item img {
  width: 100%;
  height: 250px; /* consistent height across all images */
  object-fit: cover; /* fills the card without distortion */
  object-position: center; /* centers each image inside */
  display: block;
  border-radius: 14px;
}

.deck-item.active {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(192, 57, 43, 0.6),
              0 0 25px rgba(192, 57, 43, 0.4);
  z-index: 2;
}

/* Buttons */
.deck-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(192, 57, 43, 0.7);
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
  z-index: 5;
}

.deck-btn:hover {
  background: rgba(192, 57, 43, 0.9);
}

.deck-btn.prev { left: 10px; }
.deck-btn.next { right: 10px; }

/* Mobile adjustments */
@media (max-width: 768px) {
  .deck-item {
    width: 85%;
    max-width: 250px;
  }

/* Lightbox Popup */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(192, 57, 43, 0.6),
              0 0 40px rgba(192, 57, 43, 0.3);
  animation: popIn 0.4s ease;
}

.lightbox .close {
  position: absolute;
  top: 25px;
  right: 40px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10000;
}

.lightbox .close:hover {
  color: var(--brand);
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* --- Gallery layout --- */
.deck-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
}

.deck-item {
  width: 200px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(192, 57, 43, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deck-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(192, 57, 43, 0.6);
}

.deck-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* --- Lightbox (popup image) --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(192, 57, 43, 0.5);
  animation: fadeIn 0.4s ease;
}

.lightbox .close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox .close:hover {
  color: #c0392b;
}

/* Optional: fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
footer {
  text-align: center;
  color: white;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 15px 0;
}

footer a {
  color: gold;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
.float-donate {
  position: fixed;
  right: 20px;
  bottom: 80px; /* initial bottom offset */
  background: var(--brand);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  z-index: 999;
  transition: bottom 0.2s ease;
}
/* Make sponsor images fully visible on mobile */
@media (max-width: 768px) {
  .sponsor img {
    width: 100%;         /* Make image fit the container width */
    height: auto;        /* Keep aspect ratio */
    object-fit: contain; /* Show entire image without cropping */
  }

  .sponsorship-gallery {
    display: grid;       /* Stack items nicely */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;           /* Add some spacing */
  }

  .sponsor p {
    font-size: 0.9rem;   /* Adjust text under image for mobile */
  }
}