:root {
  --blue: #106EBE;
  --mint: #0FFCBE;
  --white: #FFFFFF;
  --gold: #FFC107;
}

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

body {
  font-family: 'Amiri', serif;
  line-height: 1.6;
  color: #333;
  background: var(--blue);
  overflow-x: hidden;
}

header {
  background: var(--blue);
  color: var(--white);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  height: 70px;
}

header.small {
  padding: 0.5rem;
  height: 60px;
}

.logo {
  height: 50px;
  width: auto;
  transition: height 0.3s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  margin-right: 10px;
}

.brand-name {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  color: var(--gold);
  margin: 0 1rem;
  text-align: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  transition: all 0.3s ease;
}

.nav-menu li {
  margin-left: 1.5rem;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.nav-menu a:hover,
.nav-menu a:focus {
  background-color: rgba(15, 252, 190, 0.2);
  color: var(--mint);
}

.nav-menu a.active {
  color: var(--mint);
  font-weight: 700;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--mint);
  padding: 0.5rem;
  touch-action: manipulation; /* Improves touch response on iOS */
}

.banner {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('background.jpg') center/cover;
  padding: 4rem 1rem;
  text-align: center;
  color: var(--white);
  position: relative;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.calligraphy {
  font-family: 'Dancing Script', cursive;
  font-size: 4rem;
  color: var(--gold);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

.banner p {
  font-size: 1.5rem;
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.countdown {
  text-align: center;
  font-size: 1.2rem;
  color: var(--white);
  margin: 1rem 0;
  font-weight: bold;
  padding: 1rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.countdown-dates {
  font-size: 1rem;
  color: #1A2A44;
}

.countdown-numbers {
  margin-top: 0.5rem;
}

.countdown-numbers div {
  display: inline-block;
  margin: 0 5px;
  text-align: center;
}

.countdown-numbers div div:first-child {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--mint);
}

.countdown-numbers div div:last-child {
  font-size: 0.8rem;
  color: #1A2A44;
}

.purpose-section {
  background-color: var(--white);
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  color: var(--gold);
}

#purpose-title.section-title {
  color: var(--white);
  background-color: var(--blue);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  width: fit-content;
}

#categories-title.section-title,
#about-title.section-title,
#faq-title.section-title,
#sponsors-title.section-title {
  color: var(--gold);
}

.voting-section .section-title {
  color: var(--white);
  background-color: var(--blue);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: var(--mint);
  margin: 0.5rem auto 0;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.purpose-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(16, 110, 190, 0.2);
}

.purpose-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(16, 110, 190, 0.1);
}

.purpose-card i {
  font-size: 2.5rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

.purpose-card h3 {
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-bar {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--blue);
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.3);
}

.search-bar:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(15, 252, 190, 0.2);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.category-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(16, 110, 190, 0.2);
  text-align: center;
  padding: 1rem;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-card .category-icon {
  font-size: 2rem;
  color: var(--mint);
  margin-bottom: 0.5rem;
}

.category-card h3 {
  color: var(--blue);
  margin: 0.5rem 0;
}

.category-card .vote-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.category-card .vote-btn:hover {
  background-color: var(--mint);
  color: var(--blue);
}

.voting-section {
  background-color: var(--white);
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.progress-container {
  width: 100%;
  margin-bottom: 2rem;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 1rem;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #e0e0e0;
  z-index: 1;
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-weight: bold;
  position: relative;
  z-index: 2;
}

.progress-step.active {
  background-color: var(--blue);
}

.progress-step.completed {
  background-color: var(--mint);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.progress-label {
  font-size: 0.9rem;
  color: #666;
}

.progress-bar-container {
  width: 100%;
  background: #e0e0e0;
  border-radius: 5px;
  height: 10px;
  margin-top: 1rem;
}

.progress-bar-fill {
  height: 100%;
  background: var(--mint);
  border-radius: 5px;
  transition: width 0.3s;
}

.vote-step {
  margin-bottom: 2rem;
  display: none;
}

.vote-step.active {
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1A2A44;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(16, 110, 190, 0.2);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--mint);
  color: var(--blue);
}

.btn-secondary {
  background-color: #666;
}

.btn-secondary:hover {
  background-color: #444;
}

.nominee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.nominee-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nominee-card:hover {
  transform: translateY(-5px);
}

.nominee-image {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.nominee-details {
  padding: 1rem;
  text-align: center;
}

.nominee-details h4 {
  color: var(--blue);
}

.nominee-details p {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0;
}

.nominee-card .vote-status {
  font-size: 0.8rem;
  color: #1A2A44;
  margin: 0.5rem 0;
}

.nominee-card .vote-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.nominee-card .vote-btn:hover {
  background-color: var(--mint);
  color: var(--blue);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
}

.modal h3 {
  color: #1A2A44;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.about-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.about-card h3 {
  color: var(--blue);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 1rem;
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--mint);
}

.faq-question {
  width: 100%;
  padding: 1rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #1A2A44;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--mint);
}

.faq-answer {
  padding: 1rem;
  color: #333;
  display: none;
  background: rgba(15, 252, 190, 0.1);
  border-left: 4px solid var(--blue);
}

.sponsor-container {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
}

.sponsor-marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.sponsor-marquee .sponsor-marquee-inner {
  display: flex;
  animation: scroll 20s linear infinite ;
  will-change: transform;
}

.sponsor-marquee .sponsor-marquee-inner:hover {
  animation-play-state: paused;
}

.sponsor-marquee a {
  text-decoration: none;
  color: var(--blue);
  margin: 0 1rem;
}

.sponsor-marquee .sponsor-img {
  height: 50px;
  width: auto;
  vertical-align: middle;
}

.sponsor-marquee a:hover .sponsor-img {
  filter: brightness(1.2);
  transition: filter 0.3s;
}

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

.footer-content {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--blue);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.social-icons a {
  color: var(--white);
  font-size: 1.5rem;
}

.copyright {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--white);
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
}

#loading {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 1rem;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .calligraphy { font-size: 2.5rem; }
  .banner p { font-size: 1.2rem; }
  .nav-menu { display: none; }
  .nav-toggle-label {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--mint);
    padding: 0.5rem;
    touch-action: manipulation; /* Improves touch response on iOS */
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--blue);
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu a {
    margin: 0.5rem 0;
    color: white;
  }
  #nav-toggle {
    display: none;
  }
  .category-cards { grid-template-columns: 1fr; }
  .banner { min-height: 200px; padding: 2rem 1rem; }
  .section-title { font-size: 2rem; }
  .purpose-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nominee-grid { grid-template-columns: 1fr; }
  .category-cards { grid-template-columns: 1fr; }
  .section-title { font-size: 1.8rem; }
  .banner { min-height: 150px; padding: 1rem; }
  .calligraphy { font-size: 1.8rem; }
  .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
  .sponsor-marquee .sponsor-marquee-inner { animation-duration: 10s; }
}