:root {
  --primary: #0077ff;
  --secondary: #00b894;
  --bg: #f9fafc;
  --text: #1e293b;
  --muted: #64748b;
  --radius: 10px;
  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 18px;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 100px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 20px auto;
}

.hero a.button {
  background: white;
  color: var(--primary);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.hero a.button:hover {
  background: var(--primary);
  color: white;
}

/* Sections */
section {
  max-width: var(--max-width);
  margin: 60px auto;
  padding: 0 20px;
}

section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
  color: var(--primary);
}

section h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--primary);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.card:hover { transform: translateY(-4px); }

.card h3 { margin-bottom: 10px; }

.card p { color: var(--muted); }

.login-box {
  max-width: 400px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: var(--radius);
}

.login-box button {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

footer {
  background: #1e293b;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

footer a {
  color: var(--secondary);
  text-decoration: none;
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  nav ul.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}



/* Floating Donate Button */
.donate-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  color: white;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 1rem;
}

/* Hover Animation */
.donate-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, #00b4d8, #0077b6);
}

/* Mobile View Adjustment */
@media (max-width: 600px) {
  .donate-toggle {
    bottom: 15px;
    right: 15px;
    padding: 10px 18px;
    font-size: 0.9rem;
  }
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.donate-toggle {
  animation: popIn 0.6s ease;
}


/* Floating Donate Button */
.donate-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  color: white;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}

.donate-toggle:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #00b4d8, #0077b6);
}

/* Donation Popup Styling */
.donation-popup {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.popup-content {
  background: white;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
  text-align: center;
  animation: popIn 0.4s ease;
}

.popup-content h2 {
  color: #0077b6;
  margin-bottom: 10px;
}

.popup-content p {
  color: #555;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.popup-content label {
  display: block;
  text-align: left;
  margin-top: 10px;
  color: #333;
  font-weight: 600;
}

.popup-content input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.donate-btn {
  margin-top: 20px;
  width: 100%;
  background: #0077b6;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.donate-btn:hover {
  background: #0096c7;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #0077b6;
}

/* Animations */
@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}