/* === Global Styles === */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #edf2f7, #e0f7fa);
  color: #2a2a2a;
  line-height: 1.6;
  animation: fadeIn 0.6s ease-in;
}
a {
  color: #00a795;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: #007f6b;
}

/* === Header === */
header {
  background-color: #1e1e2f;
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  animation: fadeInDown 1s ease-out;
}
header img {
  max-width: 90px;
  display: block;
  margin: 0 auto 10px;
  border-radius: 10px;
}

/* === Navigation === */
nav {
  background-color: #2a2a40;
  padding: 12px;
  text-align: center;
}
nav a {
  color: #ffffff;
  margin: 0 18px;
  font-weight: 500;
}
nav a:hover {
  color: #00c9a7;
  text-decoration: underline;
}

/* === Sections === */
section {
  max-width: 1000px;
  margin: 20px auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  animation: fadeInUp 0.8s ease-out;
}
h1, h2 {
  font-family: 'Roboto', sans-serif;
  text-align: center;
}
h1 {
  color: #ffffff;
}
h2 {
  color: #00c9a7;
  margin-bottom: 16px;
}
p {
  font-size: 1rem;
  color: #444;
}
ul.core-values {
  list-style-type: disc;
  padding-left: 20px;
}

/* === Card Layouts === */
.card-list,
.project-grid,
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.card,
.project-card,
.service-card {
  flex: 1 1 45%;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #00c9a7;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  color: inherit;
  text-decoration: none;
}
.card:hover,
.project-card:hover,
.service-card:hover {
  transform: translateY(-5px);
  background-color: #f0fffc;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.project-card h3,
.service-card h3 {
  margin-top: 0;
  color: #1e1e2f;
}

/* === Team Page Styles === */
.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 40px 20px;
}
.member-card {
  background-color: #f7fafc;
  border-left: 5px solid #00c9a7;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  width: 280px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.member-card:hover {
  transform: translateY(-6px);
  background-color: #e6f7f2;
}
.member-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #00c9a7;
}
.member-card h3 {
  margin-bottom: 5px;
}
.member-card p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.social-links a {
  color: #0077b5;
  text-decoration: none;
  margin: 0 6px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}
.social-links a:hover {
  color: #004471;
}

/* === Buttons === */
.back-button {
  display: inline-block;
  margin-top: 30px;
  background-color: #00c9a7;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s;
}
.back-button:hover {
  background-color: #009f8a;
}

/* === Footer === */
footer {
  background-color: #1e1e1e;
  color: #ffffff;
  text-align: center;
  padding: 20px;
}
footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* === Animations === */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === Responsive === */
@media (max-width: 768px) {
  nav a {
    display: block;
    margin: 10px 0;
  }
  section {
    margin: 10px;
    padding: 20px;
  }
  .card,
  .project-card,
  .service-card,
  .member-card {
    flex: 1 1 100%;
    width: 100%;
  }
}
/* Popup Modal */
.profile-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  z-index: 1001;
  width: 90%;
  max-width: 400px;
  display: none;
}
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  display: none;
}
.profile-popup.active,
.popup-overlay.active {
  display: block;
}
.close-popup {
  background: none;
  border: none;
  font-size: 1.5rem;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  color: #555;
}

/* View Button */
.view-profile-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #00c9a7;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}
.view-profile-btn:hover {
  background-color: #009f8a;
}
/* Fade In/Out Animation */
.profile-popup,
.popup-overlay {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.profile-popup.active,
.popup-overlay.active {
  opacity: 1;
}
.profile-popup {
  transform: translate(-50%, -60%);
}
.profile-popup.active {
  transform: translate(-50%, -50%);
}

/* Modal Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
}
.popup-overlay.active {
  display: block;
}
.profile-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  display: none;
  text-align: center;
}
.profile-popup.active {
  display: block;
}
.profile-popup img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00c9a7;
  margin-bottom: 15px;
}
.close-popup {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 1.4rem;
  color: #444;
  cursor: pointer;
}

/* Dark Mode */
body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}
body.dark-mode header,
body.dark-mode footer {
  background-color: #1a1a1a;
}
body.dark-mode .member-card {
  background-color: #1e1e1e;
  color: #f0f0f0;
}
body.dark-mode .profile-popup {
  background: #2a2a2a;
  color: #fff;
}
body.dark-mode .close-popup {
  color: #ddd;
}
body.dark-mode .popup-overlay {
  background: rgba(0, 0, 0, 0.6);
}

/* Dark Mode Toggle Button */
#darkModeToggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #00c9a7;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  z-index: 1100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#darkModeToggle:hover {
  background: #009f8a;
}
