/* Google Fonts */
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F8F9FA;
  color: #212529;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  z-index: 100;
}
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.nav-logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: #007BFF;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: #212529;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #007BFF;
}

/* Hero Section */
.hero {
  background: linear-gradient(90deg, #F8F9FA 60%, #e3f0ff 100%);
  padding: 100px 0 60px 0;
  text-align: center;
}
.hero-headshot {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(0,123,255,0.12);
  margin-bottom: 1.5rem;
  border: 4px solid #fff;
  background: #e3f0ff;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.tagline {
  font-size: 1.3rem;
  color: #007BFF;
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, color 0.2s;
}
.btn-primary {
  background: #007BFF;
  color: #fff;
}
.btn-primary:hover {
  background: #0056b3;
}
.btn-secondary {
  background: #fff;
  color: #007BFF;
  border: 2px solid #007BFF;
}
.btn-secondary:hover {
  background: #e3f0ff;
}
.btn-accent {
  background: #007BFF;
  color: #fff;
  border: none;
}
.btn-accent:hover {
  background: #0056b3;
}

/* About Section */
.about h2 {
  font-size: 2rem;
  color: #007BFF;
  margin-bottom: 1.5rem;
}
.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Projects Section */
.projects h2 {
  font-size: 2rem;
  color: #007BFF;
  margin-bottom: 1.5rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.project-card:hover {
  box-shadow: 0 4px 24px rgba(0,123,255,0.12);
}
.project-card h3 {
  margin-top: 0;
  color: #212529;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.project-card p {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.project-tags span {
  background: #e3f0ff;
  color: #007BFF;
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.project-link {
  color: #007BFF;
  text-decoration: none;
  font-weight: 500;
  margin-top: auto;
}
.project-link:hover {
  text-decoration: underline;
}

/* Publications Section */
.publications h2 {
  font-size: 2rem;
  color: #007BFF;
  margin-bottom: 1.5rem;
}
.publication-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}
.publication-card p {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

/* Contact Section */
.contact {
  scroll-margin-top: 80px;
}
.contact h2 {
  font-size: 2rem;
  color: #007BFF;
  margin-bottom: 1.5rem;
}
/* Contact Section */
.contact-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.3rem;
  background: #fff;
  color: #007BFF;
  border: 2px solid #e3f0ff;
  border-radius: 30px;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,123,255,0.06);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.contact-btn i {
  font-size: 2rem;
}
.contact-btn span {
  font-size: 1.1rem;
}
.contact-btn:hover {
  background: #e3f0ff;
  color: #0056b3;
  box-shadow: 0 4px 16px rgba(0,123,255,0.12);
}

/* Footer */
.footer {
  background: #fff;
  text-align: center;
  padding: 1.5rem 0;
  color: #212529;
  font-size: 1rem;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

/* Responsive Design */
@media (max-width: 900px) {
  .container {
    width: 98%;
    padding: 30px 0;
  }
  .nav-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-links {
    gap: 1rem;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 60px 0 30px 0;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .about-content p,
  .project-card p,
  .publication-card p {
    font-size: 1rem;
  }
  .contact-links {
    gap: 1rem;
  }
}

/* --- Contributions Section & Swiper Carousel --- */
.contributions {
  margin-top: 3rem;
}
.featured-row {
  margin-bottom: 2.5rem;
  background: #f8faff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  padding: 2rem 1rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.featured-row .project-card {
  flex: 1 1 0;
  min-width: 260px;
  max-width: 400px;
}
@media (max-width: 900px) {
  .featured-row {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0.5rem;
  }
}
.contrib-subheading {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #007BFF;
  letter-spacing: 0.02em;
}
.swiper {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  margin-bottom: 2rem;
  padding: 2rem 0.5rem 3rem 0.5rem;
}
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
}
.swiper-slide .project-card {
  width: 100%;
  min-width: 260px;
  max-width: 400px;
}
.swiper-button-next,
.swiper-button-prev {
  color: #007BFF;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  width: 40px;
  height: 40px;
  top: 55%;
  transform: translateY(-50%);
  transition: background 0.2s, color 0.2s;
  border: 1px solid #e0e7ef;
  z-index: 2;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #007BFF;
  color: #fff;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1.5rem;
}
.swiper-pagination {
  bottom: 18px !important;
}
.swiper-pagination-bullet {
  background: #007BFF;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.swiper-pagination-bullet-active {
  opacity: 1;
  background: #007BFF;
}
.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.5rem 1rem;
  margin: 0 auto;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
