/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation Styles */
.desktop-nav {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.nav-brand h1 {
  color: #dc2626;
  font-weight: 700;
  font-size: 24px;
}

.nav-brand a {
  text-decoration: none;
  color: inherit;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #dc2626;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: #dc2626;
  border-radius: 1px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #4a5568;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 80px 0 20px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu .nav-link {
  display: block;
  padding: 15px 30px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 16px;
}

.mobile-menu .nav-link:hover {
  background: #f8fafc;
}

/* Main Content */
.main-content {
  margin-top: 70px;
  padding-bottom: 80px;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.btn-vote {
  background: #dc2626;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-vote:hover {
  background: #b91c1c;
}

/* Section Styles */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #2d3748;
}

/* Contest Grid */
.contests-section {
  padding: 60px 0;
  background: #f8fafc;
}

.contest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.contest-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contest-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.contest-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.contest-info {
  padding: 24px;
}

.contest-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2d3748;
}

.contest-info p {
  color: #718096;
  margin-bottom: 16px;
}

.contest-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
  color: #4a5568;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #718096;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  min-width: 60px;
}

.mobile-nav-item.active {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.mobile-nav-item:hover {
  color: #dc2626;
  transform: translateY(-2px);
}

.nav-icon {
  font-size: 22px;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

.mobile-nav-item.active .nav-icon {
  transform: scale(1.1);
}

.nav-text {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2d3748;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #dc2626;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #718096;
}

.close:hover {
  color: #2d3748;
}

/* OTP Inputs */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.otp-input {
  width: 50px !important;
  height: 50px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

/* Responsive Design */
/* Tablet styles */
@media (max-width: 1024px) {
  .nav-links {
    gap: 20px;
  }

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

/* Small tablet / large mobile */
@media (max-width: 768px) {
  .desktop-nav .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .main-content {
    margin-top: 0;
  }

  .contest-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .container {
    padding: 0 15px;
  }

  .section-title {
    font-size: 24px;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
    padding: 20px;
  }
}

/* Mobile styles */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 15px;
  }

  .nav-brand h1 {
    font-size: 20px;
  }

  .contest-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contest-info {
    padding: 20px;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .mobile-nav {
    padding: 6px 0 10px;
  }

  .mobile-nav-item {
    padding: 6px 8px;
    min-width: 50px;
  }

  .nav-icon {
    font-size: 20px;
  }

  .nav-text {
    font-size: 10px;
  }
}

/* Desktop styles */
@media (min-width: 769px) {
  .mobile-nav {
    display: none;
  }

  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none;
  }
}

/* Large desktop styles */
@media (min-width: 1200px) {
  .contest-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-title {
    font-size: 36px;
  }
}