html{
  box-sizing: border-box;
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
}
a:focus {
  outline: none;
  text-decoration: none;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #1a1f35 0%, #2d3561 50%, #1a1f35 100%);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;

  overflow-x: hidden !important;
  -ms-overflow-style: none !important;  /* IE and Edge */
  scrollbar-width: none !important;  /* Firefox */
}

.navbar {
  background: rgba(26, 31, 53, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  left: 0;
}
.navbar .container-fluid {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 32px;
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

.logo-link {
  font-size: 2rem;
  text-decoration: none;
  transition: transform 0.3s;
}

.logo-link:hover {
  transform: scale(1.1);
}

.navbar-nav {
  display: flex;
  flex-direction: row !important;
  gap: 32px;
  flex-grow: 1;
}

.nav-link {
  color: #98b2d9 !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
  scroll-behavior: smooth;
}

.nav-link.active,
.nav-link:hover {
  color: #667eea !important;
  transform: translateY(-2px);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.user-name {
  color: #8892b0;
  font-size: 0.9rem;
}

.btn-login {
  background: linear-gradient(135deg, #0088cc 0%, #0066cc 100%);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  color: white;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 136, 204, 0.3);
  text-decoration: none !important;
}

/* Main voting section */
.voting-container {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 94.5vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* Footer styles */
.footer {
  background: rgba(26, 31, 53, 0.95);
  color: #fff;
  padding: 2rem 0 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.footer-logo {
  font-size: 2rem;
}
.footer-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #64ffda;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: #98b2d9;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #667eea !important;
}
.footer-right {
  font-size: 0.95rem;
  color: #8892b0;
}
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 1rem;
  }
  .footer-links {
    gap: 1rem;
  }
}

.voting-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.candidates-section {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.candidate {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 280px;
  position: relative;
  overflow: hidden;
}

.candidate::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.candidate:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
}

.candidate:hover::before {
  opacity: 1;
}

.candidate-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 3px solid rgba(102, 126, 234, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
}

.candidate:hover .candidate-photo {
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(102, 126, 234, 0.8);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.candidate-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.votes-count {
  color: #8892b0;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.vote-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 25px;
  padding: 0.8rem 2rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.vote-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.vote-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.vote-btn:hover::before {
  left: 100%;
}

.vote-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* Statistics section */
.stats-section {
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem 2rem;
  text-align: center;
}

.stats-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #64ffda;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  min-width: 150px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #8892b0;
  font-size: 1rem;
}

/* About section */
.about-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #ff6b6b;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
}

.about-item:hover {
  transform: translateY(-5px);
}

.about-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.about-item p {
  color: #8892b0;
  line-height: 1.6;
}

.join-btn {
  background: linear-gradient(135deg, #0088cc 0%, #0066cc 100%);
  border: none;
  border-radius: 25px;
  padding: 1rem 2rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;

  margin-right: auto;
  margin-left: auto;
}

.join-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.join-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 136, 204, 0.4);
}

.join-btn:hover::before {
  left: 100%;
}

/* FAQ section */
.faq-section {
  background: rgba(255, 255, 255, 0.03);
  padding: 4rem 2rem;
  text-align: center;
}

.faq-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #ffd700;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
  font-size: 1.5rem;
  color: #fff;
}

.faq-answer {
  display: none;
  padding: 1.5rem;
  color: #8892b0;
  line-height: 1.6;
}

.additional-info {
  margin-top: 2rem;
  color: #8892b0;
  font-size: 0.9rem;
}

.additional-info p {
  margin-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .navbar .container-fluid {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar-nav {
    gap: 1rem;
  }
  
  .voting-title {
    font-size: 2rem;
  }
  
  .candidates-section {
    gap: 2rem;
    flex-direction: column;
    align-items: center;
  }
  
  .stats-grid {
    gap: 2rem;
    flex-direction: column;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .voting-container {
    padding: 2rem 1rem;
  }
  
  .candidate {
    min-width: 250px;
    padding: 1.5rem;
  }
  
  .candidate-photo {
    width: 120px;
    height: 120px;
  }
  
  .about-section,
  .stats-section,
  .faq-section {
    padding: 2rem 1rem;
  }
}
