/* =========================
  🌟 General Resets & Base
  ========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #0d0d0d, #1a1a1a);
  color: white;
  text-align: center;
}

header {
  background: #111;
  padding: 1rem;
  border-bottom: 2px solid gold;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: gold;
}

section {
  margin: 2rem auto;
  max-width: 800px;
  padding: 1rem;
  background: #222;
  border-radius: 10px;
}

footer a {
  color: gold;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
  font-weight: bold;
  transform: scale(1.1);
  color: #ffec9e;
} 

  /*===========================
   🏆 Header & Logo Styles
   ========================= */

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  height: 50px;
  width: auto;
  border-radius: 8px;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.08);
}

/* Hero logo (for cinematic intro) */
.hero-logo {
  width: 180px;
  max-width: 80%;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
  margin-bottom: 25px;
  animation: fadeInDown 2s ease-out;
}

/* =========================
   🎬 Intro / Hero Section
   ========================= */
#intro {
  position: relative;
  min-height: 400px;
  display: flex;
  margin-top: 100px; 
  padding: 160px 20px 40px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, #1a1a1a 0%, #000 90%);
  z-index: 1;
}

/* Soft moving light effect*/
#intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 215, 0, 0.15),
    transparent 60%
  );
  animation: lightMove 8s infinite linear;
}
@keyframes lightMove {
  0% { --x: 20%; --y: 30%; }
  25% { --x: 80%; --y: 40%; }
  50% { --x: 60%; --y: 70%; }
  75% { --x: 40%; --y: 80%; }
  100% { --x: 20%; --y: 30%; }
}

/* Overlay shimmer lines */
.intro-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 215, 0, 0.05), transparent 80%);
  pointer-events: none;
  z-index: 1;
  animation: shimmer 10s linear infinite;
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}

/* Content styling */
.intro-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  max-width: 700px;
}

.intro-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  margin-bottom: 15px;
  animation: fadeInDown 1.5s ease-out forwards;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro-tagline {
  font-size: 1.3rem;
  color: #ccc;
  line-height: 1.8;
  animation: fadeIn 2s ease-out forwards;
}
.highlight {
  color: #FFD700;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.gold-text {
  color: #ffec9e;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.intro-announcement {
  margin-top: 25px;
  font-size: 1.1rem;
  color: #fff;
  background: rgba(255, 215, 0, 0.08);
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
  display: inline-block;
  animation: fadeInUp 2.5s ease-out forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

#intro:hover::before {
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(255, 215, 0, 0.25),
    transparent 70%
  );
}

button {
  margin-top: 10px;
  padding: 10px 20px;
  border: none;
  background: gold;
  color: black;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

ul {
  list-style-type: none;
  padding: 0;
}

.comment-item {
  background-color: rgba(255, 255, 255, 0.01); /* Slightly lighter for contrast */
  margin-bottom: 10px;
  border-left: 4px solid #7a3cff;
  padding: 8px 10px;
  border-radius: 6px;
  animation: fadeIn 0.5s ease-in;
}

/* Leaderboard Styling */
.leaderboard-item {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  line-height: 1.5;
  color: #ddd;
}

.winner-name {
  color: #FFD700; /* Gold color */
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* 👑 Top winner highlight */
.top-winner .winner-name {
  color: #ffdf6c;
  font-size: 1.1rem;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { text-shadow: 0 0 5px rgba(255, 215, 0, 0.4); }
  50% { text-shadow: 0 0 12px rgba(255, 215, 0, 0.8); }
  100% { text-shadow: 0 0 5px rgba(255, 215, 0, 0.4); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
 
/* =========================
   👤 Winners & Bios Section
   ========================= */
#profiles-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
}

/* Profile Card Layout */
.profile-card {
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.8), rgba(45, 45, 45, 0.9));
  border-radius: 12px;
  padding: 18px 22px;
  width: 90%;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Left-align the name, gold color */
.profile-card .profile-name {
  text-align: left;
  color: #FFD700; /* Wayalty gold */
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

/* Subtle gold aura hover effect */
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.6);
}

/* Optional glowing border animation for special winners */
@keyframes auraGlow {
  0% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
  }
}

/* Apply the glowing animation to the top 3 winners (optional class) */
.profile-card.top3 {
  animation: auraGlow 6s infinite ease-in-out;
  border: 1px solid rgba(255, 215, 0, 0.6);
}

/* Handles and bios */
.profile-card p {
  margin: 4px 0;
  color: #ddd;
  font-size: 0.95rem;
}

/* =========================
   ✨ Section Dividers
   ========================= */ 
.section-divider {
  text-align: center;
  color: #FFD700;
  margin: 40px 0;
}
.divider-text {
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* =========================
   🏛️ Hall of Fame Section
   ========================= */
#hall-of-fame {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(180deg, #0a0a0a, #1a1a1a);
  color: #fff;
}

#hall-of-fame h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #FFD700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  letter-spacing: 1px;
}

.hof-intro {
  color: #bbb;
  font-size: 1.1rem;
  margin-bottom: 30px;
  font-style: italic;
}

#hof-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

/* Individual Cards */
.hof-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px 25px;
  width: 260px;
  text-align: center;
  color: #ddd;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hof-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.3);
}

/* ============================================
   🪩 Sparkling Perimeter Effect (Fixed Border)
   ============================================ */
.hof-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px 25px;
  width: 40%;
  max-width: 320px;   /* optional — keeps it elegant on big screens */
  min-width: 220px;   /* optional — prevents cards from collapsing on mobile */
  text-align: center;
  color: #ddd;
  border: 2px solid #FFD700; /* Fixed gold border */
  overflow: hidden;
}

/* ✨ Moving sparkle particle */
.hof-card::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8d0, #FFD700 60%, transparent 90%);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
  animation: sparkleAround 12s ease-in-out infinite;
  pointer-events: none;

}

.hof-card::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff9d9, #ffc400 60%, transparent 90%);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
  animation: sparkleAround 10s linear infinite;
  animation-delay: 4s; /* offset second sparkle */
}

/* 🌀 Path animation: follows the rectangle's edge */
@keyframes sparkleAround {
  0%   { top: 0; left: 0; transform: translate(0, 0); }
  25%  { top: 0; left: calc(100% - 10px); transform: translate(0, 0); }
  50%  { top: calc(100% - 10px); left: calc(100% - 10px); transform: translate(0, 0); }
  75%  { top: calc(100% - 10px); left: 0; transform: translate(0, 0); }
  100% { top: 0; left: 0; transform: translate(0, 0); }
}


/* Inner Content */
.hof-name {
  color: #FFD700;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.hof-month {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.hof-points {
  color: #fff;
  font-weight: bold;
  margin-bottom: 6px;
}

.hof-quote {
  font-style: italic;
  color: #bbb;
  font-size: 0.9rem;
  line-height: 1.3;
}

.hof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-top: 20px;
}
.hof-item {
  text-align: center;
  background: #1a1a22;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hof-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}
.hof-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid gold;
  margin-bottom: 10px;
}
.hof-item h3 {
  color: #ffd36e;
  margin: 5px 0 0;
}
.hof-item p {
  font-size: 0.9rem;
  color: #aaa;
}

/* 🏆 Hall of Fame Image Styling */
.hof-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.hof-img {
  width: 90px;                /* Reduced size */
  height: 90px;
  object-fit: cover;          /* Keeps face centered */
  border-radius: 50%;         /* Circular */
  border: 2px solid gold;     /* Elegant edge */
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hof-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* =========================
   🧭 Mobile Hero Fix
   ========================= */
@media (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }

  /* Make sure body content starts below header */
  body {
    padding-top: 20; /* adjust to match header height */
  }

  /* Adjust hero height so it still fills viewport nicely */
  #intro {
    height: calc(100vh - 100px);
    padding-top: 40px;
  }

  .intro-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .intro-announcement {
    font-size: 0.95rem;
    padding: 8px 15px;
  }

  nav a {
    display: inline-block;
    margin: 5px;
  }
}

/* =========================
   💫 Sponsor Marquee
   ========================= */
#sponsor-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  background: linear-gradient(90deg, #FFD700, #b88a00);
  color: #111;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  z-index: 2000;
}

#sponsor-track {
  display: inline-flex;
  gap: 40px;
  will-change: transform;
  transform: translateX(100%);
  animation: marqueeScroll 20s linear infinite;
}

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

/* Pause animation when hovering */
#sponsor-bar:hover #sponsor-track {
  animation-play-state: paused;
}

/* Adjust body and header for tight layout */
body { padding-top: 36px; }
header { margin-top: 0; }

/* =========================
   ­ Responsive Design
   ========================= */

/* Tablet and smaller screens */
@media (max-width: 768px) {
  /* Adjust hero height to prevent overflow */
  #intro {
    height: auto;
    min-height: 70vh;
    padding: 60px 20px 40px;
  }

  .hero-logo {
    width: 140px;
    margin-bottom: 20px;
  }

  .intro-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .intro-tagline {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .intro-announcement {
    font-size: 0.95rem;
    padding: 8px 15px;
    margin-top: 20px;
  }

  /* Navigation adjustments */
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  nav a {
    display: inline-block;
    margin: 5px;
    font-size: 0.9rem;
  }

  /* Section spacing */
  section {
    margin: 1.5rem auto;
    padding: 1rem;
    max-width: 95%;
  }

  /* Profile cards */
  .profile-card {
    width: 95%;
    padding: 15px 18px;
  }

  .profile-card .profile-name {
    font-size: 1.1rem;
  }

  /* Hall of Fame */
  #hall-of-fame {
    padding: 40px 15px;
  }

  #hall-of-fame h2 {
    font-size: 1.6rem;
  }

  .hof-card {
    width: 100%;
    max-width: 300px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  #intro {
    min-height: 60vh;
    padding: 50px 15px 30px;
  }

  .hero-logo {
    width: 120px;
  }

  .intro-title {
    font-size: 1.5rem;
  }

  .intro-tagline {
    font-size: 1rem;
  }

  .intro-announcement {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  section {
    margin: 1rem auto;
    padding: 0.8rem;
  }

  button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  #hall-of-fame h2 {
    font-size: 1.4rem;
  }

  .hof-intro {
    font-size: 1rem;
  }
}

/* =========================
   🌍 World Clock Section
   ========================= */
#world-clock {
  background: linear-gradient(180deg, #101010, #181818);
  color: #fff;
  padding: 50px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

#world-clock h2 {
  color: #FFD700;
  margin-bottom: 25px;
  font-size: 1.8rem;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.clock-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.clock-box {
  background: #1e1e1e;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  width: 150px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.clock-box h3 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: #FFD700;
}

.clock-box p {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

#converter-btn {
  background: gold;
  color: black;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

#converter-btn:hover {
  background: #ffe066;
  transform: scale(1.05);
}
