:root {
  /* Light Mode Colors */
  --bg-primary: #f4f7f6;
  --bg-secondary: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a68;
  --accent-primary: #007bff;
  --accent-color: var(--accent-primary); /* Backward compatibility */
  --accent-hover: #2980b9;

  /* Dark Mode Colors */
  --dark-bg-primary: #121212;
  --dark-bg-secondary: #1e1e1e;
  --dark-text-primary: #e0e0e0;
  --dark-text-secondary: #b0b0b0;
  --dark-accent-color: #4ecdc4;
  --dark-accent-hover: #45b7aa;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  color: #2c3e50;
  line-height: 1.6;
  font-family: "Inter", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Skip link styles now handled by header component */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body.dark-mode {
  background-color: var(--dark-bg-primary);
  color: var(--dark-text-primary);
}

/* Header styles now handled by header component */

/* Toggle Switch */
.theme-toggle {
  position: relative;
  width: 100px;
  height: 50px;
  --link: rgb(27, 129, 112);
  --link-hover: rgb(24, 94, 82);
}

.theme-switch-label {
  position: absolute;
  width: 100%;
  height: 50px;
  background-color: var(--dark-bg-primary);
  border-radius: 25px;
  cursor: pointer;
  border: 3px solid var(--dark-bg-primary);
}

.theme-switch {
  position: absolute;
  display: none;
}

.slider {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.theme-switch:checked ~ .slider {
  background-color: var(--bg-primary);
}

.slider::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  -webkit-box-shadow: inset 12px -4px 0px 0px var(--bg-primary);
  box-shadow: inset 12px -4px 0px 0px var(--bg-primary);
  background-color: var(--dark-bg-primary);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.theme-switch:checked ~ .slider::before {
  -webkit-transform: translateX(50px);
  -ms-transform: translateX(50px);
  transform: translateX(50px);
  background-color: var(--dark-bg-primary);
  -webkit-box-shadow: none;
  box-shadow: none;
}

/* Container and Section Styles */
#about-container {
  /* max-width: 1200px; */
  /* margin: 40px auto; */
  padding: 40px;
  background-color: var(--bg-secondary);
  /* border-radius: 20px; */
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
  /* animation: fadeIn 0.8s ease-in-out; */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 2rem;
  color: #3498db;
  margin: 35px 0 20px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  font-weight: 600;
}

/* Team Container Styles */
.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.team-member {
  width: 280px;
  text-align: center;
  margin-bottom: 30px;
  padding: 25px 20px;
  border-radius: 15px;
  background-color: #ffffff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.team-member::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-member:hover::before {
  transform: scaleX(1);
}

.member-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  background-color: #f0f3f7;
  border: 5px solid #e0e6ed;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  color: #a0aec0;
}

.member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member:hover .member-img {
  transform: scale(1.05);
  border-color: #3498db;
}

.member-img::after {
  font-size: 4rem;
  color: #a0aec0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.member-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2c3e50;
}

.member-role {
  font-size: 1.05rem;
  color: #3498db;
  margin-bottom: 15px;
  font-weight: 500;
  padding-bottom: 15px;
  border-bottom: 1px dashed #e0e6ed;
}

.member-contribution {
  text-align: left;
  font-size: 0.95rem;
  color: #5d6d7e;
}

.member-contribution ul {
  padding-left: 20px;
  margin-top: 10px;
  list-style-type: none;
}

.member-contribution li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.member-contribution li::before {
  content: "✓";
  color: #3498db;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Footer */
.dark-mode .footer {
  background-color: var(--dark-bg-secondary);
}

.footer-button {
  text-decoration: none;
  color: white;
  padding: 0.5rem 1rem;
  border: 1px solid white;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.footer-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.footer {
  background-color: var(--text-primary);
  color: white;
  padding: 3rem 5% 1rem;
}

.dark-mode .footer {
  background-color: var(--dark-bg-secondary);
}

.two-column-list {
  display: flex;
  gap: 2rem;
}

.two-column-list ul {
  padding-left: 0;
  margin-top: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-direction: row;
}

.footer-logo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-img {
  /* width: 100px; */
  height: 100px;
  border-radius: 10px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.footer-logo p {
  font-size: 1.1rem;
  font-weight: 500;
}

.footer-links {
  flex: 2;
  display: flex;
  justify-content: space-between;
  gap: 2 rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  position: relative;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 2px;
  width: 40px;
  background-color: var(--accent-color);
}

.dark-mode .footer-col h4::after {
  background-color: var(--dark-accent-color);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--dark-text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.university-affiliation {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--dark-text-secondary);
}

@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }

  .footer-logo {
    margin-bottom: 2rem;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Toggle Switch */
.theme-toggle {
  position: relative;
  width: 100px;
  height: 50px;
  --link: rgb(27, 129, 112);
  --link-hover: rgb(24, 94, 82);
}

.theme-switch-label {
  position: absolute;
  width: 100%;
  height: 50px;
  background-color: var(--dark-bg-primary);
  border-radius: 25px;
  cursor: pointer;
  border: 3px solid var(--dark-bg-primary);
}

.theme-switch {
  position: absolute;
  display: none;
}

.slider {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.theme-switch:checked ~ .slider {
  background-color: var(--bg-primary);
}

.slider::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  -webkit-box-shadow: inset 12px -4px 0px 0px var(--bg-primary);
  box-shadow: inset 12px -4px 0px 0px var(--bg-primary);
  background-color: var(--dark-bg-primary);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.theme-switch:checked ~ .slider::before {
  -webkit-transform: translateX(50px);
  -ms-transform: translateX(50px);
  transform: translateX(50px);
  background-color: var(--dark-bg-primary);
  -webkit-box-shadow: none;
  box-shadow: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .header,
  .hero-section,
  .about-content,
  .project-slider {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
  }
}

/* Back Button */
.btn-container {
  text-align: center;
  margin-top: 40px;
}

.back-btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.back-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.5);
}

.back-btn:active {
  transform: translateY(1px);
}

/* Responsive Design */
@media (max-width: 992px) {
  #about-container {
    padding: 30px;
    margin: 30px 20px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section-subtitle {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  #header {
    padding: 15px 20px;
    flex-direction: column;
  }

  #nav-buttons {
    margin-top: 15px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 1.6rem;
  }

  .team-container {
    justify-content: center;
  }
}

/* Existing root variables remain the same */

/* Dark Mode Specific Styles for Team Members Page */
.dark-mode #about-container {
  background-color: var(--dark-bg-secondary);
  color: var(--dark-text-primary);
}

.dark-mode .section-title {
  color: var(--dark-text-primary);
}

.dark-mode .section-title::after {
  background: linear-gradient(
    90deg,
    var(--dark-accent-color),
    var(--dark-accent-hover)
  );
}

.dark-mode .section-subtitle {
  color: var(--dark-accent-color);
  border-bottom-color: var(--dark-accent-color);
}

.dark-mode .team-container {
  background-color: var(--dark-bg-secondary);
}

.dark-mode .team-member {
  background-color: var(--dark-bg-primary);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.08);
}

.dark-mode .team-member::before {
  background: linear-gradient(
    90deg,
    var(--dark-accent-color),
    var(--dark-accent-hover)
  );
}

.dark-mode .member-img {
  background-color: var(--dark-bg-primary);
  border-color: var(--dark-text-secondary);
}

.dark-mode .member-img::after {
  color: var(--dark-text-secondary);
}

.dark-mode .member-name {
  color: var(--dark-text-primary);
}

.dark-mode .member-role {
  color: var(--dark-accent-color);
  border-bottom-color: var(--dark-text-secondary);
}

.dark-mode .member-contribution {
  color: var(--dark-text-secondary);
}

.dark-mode .member-contribution li::before {
  color: var(--dark-accent-color);
}

.dark-mode .back-btn {
  background: linear-gradient(
    135deg,
    var(--dark-accent-color),
    var(--dark-accent-hover)
  );
}
