:root {
  --primary-green: #2ecc71;
  --primary-blue: #3498db;
  --primary-yellow: #f1c40f;
  --text-dark: #2c3e50;
  --text-light: #ecf0f1;
  --text-primary: #1A1A1A;
  --text-secondary: #4A5568;
  --background: #FFFFFF;
  --background-alt: #F7FAFC;
  --border-color: #b4c9fc;
  --border333-color: #e2e4f0;
  --border22-color: #9db9ff;
}

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

body {
  font-family: 'Hind Siliguri', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* Navigation */
nav {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-blue);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 1.1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  transition: color 0.3s;
  padding: 0.5rem;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

.join-btn, .cta-btn {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.join-btn:hover, .cta-btn:hover {
  transform: translateY(-2px);
  background: #2980b9;
}

.fb-login-btn {
  background: #4267B2;
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 1rem;
}

.fb-login-btn:hover {
  transform: translateY(-2px);
  background: #365899;
}

.fb-login-btn i {
  font-size: 1.1rem;
}

.user-controls {
  position: relative;
}

.profile-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.profile-toggle:hover {
  background-color: var(--background-alt);
}

.profile-toggle .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.dropdown-arrow {
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.profile-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  display: none;
  flex-direction: column;
}

.profile-dropdown.active {
  display: flex;
}

.profile-dropdown a,
.sign-out-btn {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background-color 0.2s;
  border-radius: 4px;
  text-align: left;
  border: none;
  background: none;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
}

.profile-dropdown a:hover,
.sign-out-btn:hover {
  background-color: var(--background-alt);
  color: var(--primary-blue);
}

.sign-out-btn {
  color: #E53E3E;
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  margin-top: 80px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background: linear-gradient(120deg, #f5f7fa 0%, #e3eeff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: #546e7a;
  line-height: 1.6;
}

.hero-animation {
  width: 400px;
  height: 400px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="none" stroke="%233498db" stroke-width="2"><animate attributeName="r" from="45" to="50" dur="2s" repeatCount="indefinite"/></circle></svg>');
  animation: float 6s ease-in-out infinite;
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 6rem 2rem;
  background: linear-gradient(to bottom, #fff, #f8f9fa);
}

.feature {
  text-align: center;
  padding: 2.5rem;
  border-radius: 15px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

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

.feature h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Stats Section */
.stats {
  display: flex;
  justify-content: space-around;
  padding: 4rem 2rem;
  background: var(--primary-blue);
  color: white;
}

.stat-container {
  text-align: center;
}

.stat {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Latest Questions Section */
.latest-questions {
  padding: 4rem 2rem;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

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

.question-card {
  background: white;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.question-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.question-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.question-meta i {
  color: var(--primary-blue);
}
.question-card-link{
  text-decoration: none;
  color: var(--text-dark)

}
.question-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}
.question-body-prev{
  margin: 0.5rem;
  margin-bottom: 0.8rem;
}
.question-body-prev strong{
  color:var(--primary-blue);
}
.question-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  background: #e9ecef;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.9rem;
  color: #495057;
}

.question-stats {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
  color: #666;
  font-size: 0.9rem;
}

.view-more-container {
  text-align: center;
}

.view-more-btn {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-more-btn:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

/* Leaderboard Preview Section */
section.leaderboard-preview {
  padding: 4rem 2rem;
  background: white;
}

.leaderboard-cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.leaderboard-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.leaderboard-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.rank-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.contributor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contributor-avatar i {
  font-size: 2rem;
  color: white;
}

.leaderboard-card .contributor-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contribution-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
  color: #666;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-weight: bold;
  color: var(--primary-blue);
  font-size: 1.2rem;
}

.view-leaderboard-btn {
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.view-leaderboard-btn:hover {
  background: #27ae60;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--primary-blue);
  color: var(--text-light);
  padding: 4rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
}

.social-links a {
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Media Queries */
@media (max-width: 968px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

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

  .fb-login-btn {
    width: 100%;
    justify-content: center;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 768px) {
  
  .user-controls {
    margin-left: auto;
  }

  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: -0.3px;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-animation {
    width: 300px;
    height: 300px;
    margin-top: 2rem;
  }

  .stats {
    flex-direction: column;
    gap: 2rem;
  }

  .questions-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }

  .features {
    padding: 4rem 1.5rem;
    gap: 1.5rem;
  }

  .feature {
    padding: 1.8rem;
  }

  .question-card {
    padding: 1.5rem;
  }

  .leaderboard-card {
    padding: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .features {
    padding: 3rem 1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }
}