/* Root Variables */
:root {
  --primary-color: #0074cc;
  --secondary-color: #f4f4f4;
  --text-color: #333;
  --accent-color: #0057b7;
  --success-color: #28a745;
  --light-bg: #f8fafc;
  --border-color: #e1e5eb;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 116, 204, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --green-accent: #10b981;
}

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

body {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--text-color);
  background: linear-gradient(to bottom, #f4f4f4, #e9eef3);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
header {
  background: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  height: 40px;
  width: auto;
}

header h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.logo-link {
  text-decoration: none;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link:hover {
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav a {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
}

nav a:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

nav a.nav-login {
  background-color: var(--primary-color);
  color: white;
  margin-left: 0.5rem;
}

nav a.nav-login:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(0, 116, 204, 0.9), rgba(0, 87, 183, 0.95)),
              url('images/popup.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.hero h2 {
  font-size: 2.5rem;
  font-family: 'Manrope', sans-serif;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--success-color);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.hero-cta:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

/* Sections */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.section h2,
.section h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-family: 'Manrope', sans-serif;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card img {
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.card h4 {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-family: 'Manrope', sans-serif;
  color: var(--primary-color);
}

.card p {
  margin-top: 0.5rem;
  color: #666;
}

/* How to Connect Section */
.how-to-connect {
  background: white;
  padding: 4rem 2rem;
  margin: 2rem 0;
}

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

.connect-step {
  text-align: center;
  padding: 2rem;
  background: var(--light-bg);
  border-radius: 12px;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.connect-step h4 {
  color: var(--primary-color);
  font-family: 'Manrope', sans-serif;
  margin-bottom: 0.5rem;
}

.connect-step p {
  color: #666;
  font-size: 0.95rem;
}

/* Safety Tips Box */
.safety-tips {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.safety-tips h4 {
  color: #c2410c;
  font-family: 'Manrope', sans-serif;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.safety-tips ul {
  list-style: none;
  padding: 0;
}

.safety-tips li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #9a3412;
}

.safety-tips li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #c2410c;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

.newsletter-section h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.newsletter-section p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
}

.newsletter-form button {
  background: var(--success-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #218838;
  transform: scale(1.05);
}

/* Social Proof Section */
.social-proof {
  padding: 4rem 2rem;
  background: white;
}

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

.testimonial {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.testimonial p {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-color);
}

/* Stats Section */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 3rem 2rem;
  background: var(--light-bg);
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Manrope', sans-serif;
}

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

/* Footer */
footer {
  background: #1a1a2e;
  color: white;
  padding: 3rem 2rem 1.5rem;
}

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

.footer-section h4 {
  font-family: 'Manrope', sans-serif;
  margin-bottom: 1rem;
  color: white;
}

.footer-section a {
  color: #a0aec0;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-section p {
  color: #a0aec0;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

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

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: #a0aec0;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: #a0aec0;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-legal a:hover {
  color: white;
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.about-content p {
  margin-bottom: 1.5rem;
}

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

.about-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.about-card h4 {
  color: var(--primary-color);
  font-family: 'Manrope', sans-serif;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.founder-section {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.founder-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
}

.founder-info {
  flex: 1;
  min-width: 250px;
}

.founder-info h4 {
  color: var(--primary-color);
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.founder-info .title {
  color: #666;
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-section {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: auto;
}

.contact-section h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-align: center;
}

.contact-section p {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto;
  font-family: 'Nunito Sans', sans-serif;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 116, 204, 0.1);
}

.contact-form button {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--accent-color);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

/* Login Page Styles */
.login-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header img {
  width: 80px;
  margin-bottom: 1rem;
}

.login-header h2 {
  color: var(--primary-color);
  font-family: 'Manrope', sans-serif;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #666;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-color);
}

.form-group input {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 116, 204, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.forgot-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-link:hover {
  text-decoration: underline;
}

.login-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.login-btn:hover {
  background: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.login-divider {
  text-align: center;
  position: relative;
  margin: 1.5rem 0;
}

.login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.login-divider span {
  background: white;
  padding: 0 1rem;
  position: relative;
  color: #666;
  font-size: 0.9rem;
}

.register-link {
  text-align: center;
  color: #666;
}

.register-link a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

/* Get Involved Page */
.involve-section {
  padding: 4rem 2rem;
}

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

.involve-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.involve-card h3 {
  color: var(--primary-color);
  font-family: 'Manrope', sans-serif;
  margin-bottom: 1rem;
  text-align: left;
}

.involve-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.involve-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.involve-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
}

.involve-card li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* Map Section */
.map-section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
}

.map-section h2 {
  text-align: center;
  color: var(--primary-color);
  font-family: 'Manrope', sans-serif;
  margin-bottom: 0.5rem;
}

#map {
  height: 500px;
  width: 100%;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}

.upcoming-events {
  margin-top: 3rem;
}

.upcoming-events h3 {
  color: var(--primary-color);
  font-family: 'Manrope', sans-serif;
  margin-bottom: 1.5rem;
}

.event-list {
  display: grid;
  gap: 1rem;
}

.event-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.event-date {
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  min-width: 70px;
}

.event-date .day {
  font-size: 1.5rem;
  font-weight: 700;
}

.event-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.event-info h4 {
  color: var(--text-color);
  font-family: 'Manrope', sans-serif;
  margin-bottom: 0.25rem;
}

.event-info p {
  color: #666;
  font-size: 0.95rem;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-content h1 {
  color: var(--primary-color);
  font-family: 'Manrope', sans-serif;
  margin-bottom: 0.5rem;
}

.legal-content .last-updated {
  color: #666;
  margin-bottom: 2rem;
}

.legal-content h2 {
  color: var(--primary-color);
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-color);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-success:hover {
  background: #218838;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .section h2,
  .section h3 {
    font-size: 1.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .connect-steps {
    grid-template-columns: 1fr;
  }

  .stats-section {
    gap: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

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

  .footer-legal {
    justify-content: center;
  }

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

  .login-card {
    padding: 2rem;
  }

  .involve-grid {
    grid-template-columns: 1fr;
  }

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

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form input[type="email"] {
    min-width: auto;
  }
}

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

  .hero-cta {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }
}
