/* Reset some default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff; /* white background */
}

/* Navigation */
header {
  background: #e91e63; /* pink */
  padding: 1rem 0;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  color: #ff80ab; /* light pink on hover */
}

/* Hero */
/* Hero */
.hero {
  margin-top: 2rem; /* space above hero */
  padding: 6rem 2rem; /* existing padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem; /* more vertical spacing */
  background: linear-gradient(135deg, #ffe4ec, #ff80ab); /* soft pink gradient */
  color: #fff;
  border-radius: 20px; /* subtle rounded edges */
  box-shadow: 0 8px 20px rgba(233,30,99,0.2); /* soft pink shadow */
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #fff; /* darker pink for contrast */
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero ul {
  list-style: none; /* remove bullets */
  padding-left: 0;
  margin-top: 1rem;
  color: #fff;
}

.hero ul li {
  margin-bottom: 0.5rem;
}


/* Sections */
section {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: auto;
}

section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #e91e63; /* pink section titles */
}

/* Expertise */
.expertise-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.expertise-list li {
  background: #ffe4ec; /* light pink background */
  padding: 10px 20px;
  border-radius: 8px;
  text-align: center;
  flex: 1;              /* make them grow equally */
  max-width: 200px;     /* optional: control max size */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* make them look like buttons */
  font-weight: 500;
  transition: transform 0.2s ease, background 0.3s ease;
}

.expertise-list li:hover {
  background: #ffb6c1; /* darker pink on hover */
  transform: translateY(-3px);
  cursor: pointer;
}


/* Publications / Project Cards */
.project-card,
.publication-card {
  background: #fff0f6; /* very light pink */
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(233,30,99,0.2); /* pink shadow */
  text-align: center;
}

.project-card h3,
.publication-card h3 {
  margin-bottom: 10px;
}

.project-card a,
.publication-card a {
  display: inline-block;
  margin-top: 10px;
  color: #e91e63;
  text-decoration: none;
}

.project-card a:hover,
.publication-card a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #e91e63; /* pink */
  color: white;
  margin-top: 2rem;
}

/* Button style */
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 20px;
  background: #e91e63;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #ff80ab;
}

.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 5px solid #fff;
  box-shadow: 0 6px 15px rgba(233,30,99,0.3); /* bigger, softer shadow */
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05); /* subtle zoom on hover */
}


#teaching p {
  margin-bottom: 1rem; /* space between paragraph and the list */
}

#teaching ul {
  list-style: none; /* remove bullets */
  padding-left: 0;  /* remove default padding */
}

#teaching li {
  margin-bottom: 0.5rem;
  margin-left: 1rem; /* space between list items */
}

/* Optional: style the year separately */
#teaching p span.year {
  margin-left: 0.5rem;   /* move year slightly to the right */
  font-weight: bold;
  color: #e91e63;        /* pink, to match your theme */
}
#contact i {
  margin-right: 8px;       /* space between icon and text */
  color: #e91e63;          /* pink to match your theme */
  font-size: 1.2rem;       /* slightly bigger icons */
  vertical-align: middle;  /* align with text */
}

#contact a {
  color: #333;
  text-decoration: none;
}

#contact a:hover {
  color: #e91e63;
  text-decoration: underline;
}

#about p {
  text-align: justify;
  text-justify: inter-word; /* optional, better spacing between words */
}

/* Recognition */
#recognition {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: auto;
}

.award-card {
  background: #fff0f6; /* very light pink */
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(233,30,99,0.2);
  margin-bottom: 1.5rem;
  text-align: center;
}

.award-card p {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.award-card a {
  color: #e91e63;
  text-decoration: none;
  font-weight: bold;
}

.award-card a:hover {
  text-decoration: underline;
}

html {
  scroll-behavior: smooth;
}

section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.expertise-list li,
.award-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-list li:hover,
.award-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(233,30,99,0.3);
}

.typing {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid white;
  width: 0;
  animation: typing 3s steps(30, end) forwards, blink 0.8s infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #e91e63;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#backToTop:hover {
  background: #ff80ab;
}

.hero {
  opacity: 0;
  transform: translateY(-30px);
  animation: heroFadeIn 1s ease forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Make images responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Hero section responsive layout */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #e91e63, #ff80ab);
  color: white;
}

/* Ensure text scales well */
.hero h1 {
  font-size: 2.5rem;
}
.hero p {
  font-size: 1.2rem;
}

/* Expertise */
.expertise-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns on large screens */
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1000px;
}

.expertise-list li {
  background: #ffe4ec;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-weight: 500;
  transition: transform 0.2s ease, background 0.3s ease;
}

.expertise-list li:hover {
  background: #ffb6c1;
  transform: translateY(-3px);
  cursor: pointer;
}

/* Tablet: 2 per row */
@media (max-width: 900px) {
  .expertise-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 per row, centered */
@media (max-width: 480px) {
  .expertise-list {
    grid-template-columns: 1fr;   /* one per row */
    justify-items: center;        /* centers the item horizontally */
  }

  .expertise-list li {
    width: 80%; /* optional: not too wide */
    max-width: 250px;
  }
}



/* Teaching section responsive */
#teaching ul {
  padding: 0;
}

/* Contact section responsive */
#contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Media Queries for smaller screens */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
}






