/* ====== RESET & BASICS ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* ====== NAVBAR ====== */
.navbar {
  background-color: #2c3e50;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  background: #fff;
  color: #1abc9c;
  border: 2px solid #1abc9c;
  border-radius: 25px;
  padding: 8px 22px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: none;
  display: inline-block;
}

.nav-links li a:hover,
.nav-links li a:focus {
  background: #1abc9c;
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,188,156,0.15);
  outline: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

/* Navbar Auth Buttons */
.auth-btn,
.login-btn,
.signup-btn {
  display: inline-block;
  padding: 8px 22px;
  margin: 0 5px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.login-btn {
  background: #fff;
  color: #1abc9c;
  border: 2px solid #1abc9c;
  font-weight: 600;
  border-radius: 25px;
  padding: 8px 22px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: none;
}

.login-btn:hover,
.login-btn:focus {
  background: #1abc9c;
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,188,156,0.15);
  outline: none;
}

.signup-btn {
  background: #007bff;
  color: #fff;
  border: 2px solid #007bff;
}

.signup-btn:hover,
.signup-btn:focus {
  background: #0056b3;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,86,179,0.15);
  outline: none;
}

/* Hero Section Buttons */
.hero-buttons .login-btn,
.hero-buttons .signup-btn {
  margin: 0 10px 0 0;
}

/* ====== HERO SECTION ====== */
.hero {
  background: linear-gradient(to right, #1abc9c, #16a085);
  color: #fff;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-content {
  max-width: 1200px;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons button {
  padding: 0.8rem 1.5rem;
  margin-right: 1rem;
  background-color: #fff;
  color: #16a085;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.hero-buttons button:hover {
  background-color: #f1f1f1;
}

.hero-img {
  max-width: 400px;
  width: 100%;
}

/* ====== ABOUT SECTION ====== */
.about {
  padding: 3rem 2rem;
  background-color: #ecf0f1;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ====== VOTE SECTION ====== */
.vote {
  padding: 3rem 2rem;
  text-align: center;
}

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

.vote-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vote-card h3 {
  margin-bottom: 1rem;
}

.vote-card button {
  background-color: #1abc9c;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.vote-card button:hover {
  background-color: #16a085;
}

.vote-card p {
  margin-top: 0.8rem;
}

/* ====== CANDIDATES SECTION ====== */
.candidates {
  background-color: #f4f4f4;
  padding: 3rem 2rem;
}

.candidates h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.candidate-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.candidate-card {
  background-color: #fff;
  padding: 1.5rem;
  border-left: 5px solid #1abc9c;
  border-radius: 6px;
}

/* ====== CONTACT SECTION ====== */
.contact {
  padding: 3rem 2rem;
  background-color: #fff;
}

.contact h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.contact form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact button {
  padding: 0.8rem;
  background-color: #1abc9c;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.contact button:hover {
  background-color: #16a085;
}

/* ====== MODALS ====== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  position: relative;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-content input {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-content button {
  padding: 0.8rem;
  background-color: #1abc9c;
  border: none;
  color: #fff;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ====== LOGIN/SIGNUP FORM PAGE ====== */
.form-page {
  max-width: 400px;
  margin: 4rem auto;
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(44,62,80,0.08);
  text-align: center;
}

.form-page h2 {
  margin-bottom: 1.5rem;
  color: #007bff;
}

.form-page form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-page input {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-page button {
  padding: 0.8rem;
  background-color: #1abc9c;
  border: none;
  color: #fff;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.form-page button:hover {
  background-color: #16a085;
}

.form-page p {
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* ====== RESPONSIVE MENU ====== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #2c3e50;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 1rem 2rem;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}