/* === Base Reset === */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  overflow-x: hidden;
}

body {
  background: #f8f9fa;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}


/* === Table Defaults === */
table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 15px;
  background: white;
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 0 20px;
}

td {
  padding: 20px 25px;
  vertical-align: middle;
}

/* === Typography === */
p.name {
  font-size: 32px;
  font-weight: 700;
  color: #C71585;
  text-align: center;
  margin-bottom: 15px;
}

p, ul {
  font-size: 16px;
  color: #555;
}

ul {
  padding-left: 20px;
  margin: 10px 0 20px;
}

ul li {
  margin-bottom: 10px;
  line-height: 1.4;
}

strong {
  color: #222;
}

em {
  font-style: italic;
  color: #6b4c8b;
}

h2 {
  font-size: 26px;
  color: #C71585;
  font-weight: 700;
  margin-bottom: 25px;
  border-bottom: 2px solid #C71585;
  padding-bottom: 6px;
}

a {
  color: #1772d0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #f09228;
  text-decoration: underline;
}

p[style*="text-align:center"] a {
  margin: 0 8px;
}

/* === Images === */
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(199, 21, 133, 0.4);
}

/* Profile image container */
.profile-container {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(199, 21, 133, 0.2);
  transform: scale(1);
  transition: transform 0.3s ease;
}

.profile-container:hover {
  transform: scale(1.05);
}

/* === Publications Table === */
table.publications {
  max-width: 85vw;
  margin: auto;
}

.papertitle {
  font-weight: 700;
  font-size: 18px;
  color: #1772d0;
}

.papertitle:hover {
  color: #f09228;
}

.pub-image {
  width: 100%; /* Responsive */
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin: 0 auto;
}

.pub-image:hover {
  transform: scale(1.05);
}

/* === Projects Table === */
table.projects {
  max-width: 85vw;
  margin: 40px auto;
  border-spacing: 0 15px;
  background: white;
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

table.projects td {
  background-color: #e1f5fe;
  padding: 2.5%;
}

.project-image {
  width: 100%;
  max-width: 280px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.project-image:hover {
  transform: scale(1.05);
}

.project-title {
  font-weight: 700;
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

/* === Responsive Design === */
@media (max-width: 992px) {
  p.name {
    font-size: 24px;
  }

  h2 {
    font-size: 22px;
  }

  td {
    padding: 15px 10px;
  }

  .profile-container {
    width: 160px;
    height: 160px;
  }

  .pub-image,
  .project-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  table,
  table.publications,
  table.projects {
    width: 100%;
    max-width: 100vw;
    border-spacing: 0;
    padding: 0 10px;
  }

  tr {
    display: block;
    width: 100%;
  }

  td {
    display: block;
    width: 100% !important;
    padding: 15px 10px !important;
    text-align: center;
  }

  .profile-container {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
  }

  .pub-image,
  .project-image {
    max-width: 100%;
    margin-bottom: 10px;
  }

  p.name,
  h2 {
    text-align: center;
  }

  .project-title,
  .papertitle {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  p.name {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
  }

  .profile-container {
    width: 120px;
    height: 120px;
  }

  .pub-image,
  .project-image {
    max-width: 100%;
  }
}




/* ========= Navbar============ */
/* Sticky navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  z-index: 999;
}

.nav-container {
  max-width: 85vw;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.nav-logo {
  font-weight: bold;
  font-size: 18px;
  color: #C71585;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #C71585;
}

/* Toggle icon hidden on desktop */
.nav-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
    color: #333;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    display: none; /* Hidden by default */
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex;
  }
}

.profile-img-container {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.profile-img-container::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/Suji.jpeg");
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 50%;
  z-index: 1;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  z-index: 0;
  position: relative;
}

.profile-img-container:hover::before {
  opacity: 1;
  
}

