* {
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #2b0000, #0b0000);
  color: #fff;
}

.vote-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  background: #ff3b3b;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}


.particle {
  position: absolute;
  bottom: 20px;
  width: 6px;
  height: 6px;
  background: #ff3b3b;
  border-radius: 50%;
  opacity: 0.8;
  animation: floatUp ease-out forwards;
}

@keyframes floatUp {
  to {
    transform: translateY(-40px);
    opacity: 0;
  }
}


/* ===== NAVBAR ===== */
.navbar {
  width: 100%;
  background: linear-gradient(90deg, #140000, #1f0000);
  border-bottom: 1px solid #ff3b3b44;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header {
  text-align: center;
  margin-bottom: 50px;
}

header h1 {
  font-size: 3rem;
  color: #ff3b3b;
}

.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.vote-card {
  position: relative;
  background: linear-gradient(145deg, #1a0000, #120000);
  border: 1px solid #ff3b3b33;
  border-radius: 14px;
  padding: 25px;
  text-align: center;
  overflow: hidden;
}

.vote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #ff3b3b55, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none; /* ← THIS FIXES IT */
}

.vote-card:hover::before {
  opacity: 1;
}


.vote-card:hover::before {
  opacity: 1;
}

.vote-card h3 {
  margin-bottom: 15px;
}

.vote-card a {
  display: inline-block;
  padding: 12px 18px;
  background: #ff3b3b;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
}


.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #ff3b3b;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ff3b3b;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #ff3b3b;
  border-radius: 2px;
}

/* ===== PAGE CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

/* ===== HEADER ===== */
header {
  text-align: center;
  margin-bottom: 50px;
}

header h1 {
  font-size: 3rem;
  color: #ff3b3b;
  margin-bottom: 10px;
}

header p {
  color: #ddd;
  font-size: 1.1rem;
}

/* ===== VOTE GRID ===== */
.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.vote-card {
  background: linear-gradient(145deg, #1a0000, #120000);
  border: 1px solid #ff3b3b33;
  border-radius: 14px;
  padding: 25px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vote-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px #ff3b3b55;
}

.vote-card h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.vote-card a {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 18px;
  background: #ff3b3b;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.vote-card a:hover {
  background: #ff5c5c;
}

/* ===== FOOTER ===== */
footer {
  margin-top: 60px;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}
