@charset "utf-8";

/* ===== GLOBAL STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333333;
  background-color: #f4f6f9;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== HEADER ===== */
header {
  background-color: #1a252f;
  color: #ffffff;
  text-align: center;
  padding: 40px 20px;
  border-bottom: 5px solid #d4af37; /* Gold accent */
}

header h1 {
  font-size: 2.5em;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

header p {
  font-size: 1.1em;
  color: #bdc3c7;
}

/* ===== NAVIGATION ===== */
nav {
  background-color: #2c3e50;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  padding: 15px 25px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
  background-color: #d4af37;
  color: #1a252f;
}

/* ===== MAIN CONTENT ===== */
main {
  flex: 1;
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

h2 {
  color: #1a252f;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 10px;
  margin-bottom: 20px;
  margin-top: 30px;
}

h2:first-child {
  margin-top: 0;
}

p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

/* ===== PROFILE SECTION (Index) ===== */
.profile-container {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #2c3e50;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

/* ===== PROJECTS GRID ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-card h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

/* ===== CAUSE PAGE ===== */
.cause-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.action-list {
  background-color: #eef2f5;
  padding: 20px 20px 20px 40px;
  border-left: 5px solid #d4af37;
  border-radius: 4px;
  margin-top: 15px;
}

.action-list li {
  margin-bottom: 10px;
  font-weight: bold;
  color: #1a252f;
}

/* ===== FOOTER ===== */
footer {
  background-color: #1a252f;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  margin-top: auto;
  border-top: 5px solid #d4af37;
}

footer a {
  color: #d4af37;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE MOBILE ===== */
@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
    text-align: center;
  }
  
  nav li {
    border-bottom: 1px solid #1a252f;
  }
  
  nav a {
    padding: 15px;
  }
  
  .profile-container {
    flex-direction: column;
    text-align: center;
  }
  
  main {
    padding: 20px;
    width: 95%;
  }
}