/* ===== GLOBAL MOBILE-FIRST STYLES ===== */
:root {
  --primary-color: #0bc5e6;
  --secondary-color: #13a5be;
  --text-dark: #333;
  --text-light: #f4f4f4;
  --shadow: 0 2px 5px rgba(0,0,0,0.1);
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  line-height: 1.6;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

/* ===== NAVBAR ===== */
#navbar {
  background-color: var(--primary-color);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo .logo {
  height: 40px;
  width: auto;
}

.site-name {
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

#navbar nav {
  display: none;
}

#navbar nav.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--secondary-color);
  z-index: 100;
}

#navbar nav a {
  color: white;
  padding: 1rem;
  text-decoration: none;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: block;
  margin: 0%;
  padding: 8px;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--secondary-color);
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.project-card {
  background: rgb(255, 255, 255);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.progress-container {
  background: #eeeeee;
  border-radius: 5px;
  margin: 1rem 0;
  overflow: hidden;
}

.progress-bar {
  background-color: orange;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
}
.project-card button {
  background-color:  #0bc5e6;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  background-color: #0bc5e6;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
  color: var(--text-dark);
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== BANNERS ===== */
.donation-banner, .crypto-banner {
  background-color: #fff3e0;
  border-left: 5px solid orange;
  color: #333;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
#footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 2rem;
}

#footer a {
  color: white;
}

/* ===== MEDIA QUERIES ===== */
@media (min-width: 768px) {
  html { font-size: 16px; }

  /* Navbar */
  .mobile-menu-btn { display: none; }
  #navbar nav {
    display: flex;
    position: static;
    background: transparent;
    width: auto;
    gap: 1.5rem;
  flex-direction: row;
  }
  #navbar nav a {
    border: none;
    padding: 0;
  }

  /* Hero */
  .hero { min-height: 500px; }
  .hero h1 { font-size: 3rem; }

  /* Projects */
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Works section */
.works {
  text-align: center;
  margin-top: 50px;
}

.works h2 {
  font-size: 28px;
  color: #34495e;
}

.works .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.works .grid img {
  width: 100%;
  border-radius: 8px;
  height: 200px;
  object-fit: cover;
}