/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASIC STYLES */
body {
  font-family: 'Sora', sans-serif;
  color: #333;
  background-color: #fafafa;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}
a {
  color: #00509e;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
a:hover {
  opacity: 0.8;
}
h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  margin-bottom: 0.5em;
  color: #2c3e50;
  line-height: 1.2;
}

/* NAVBAR */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: all 0.3s ease;
}
nav .nav-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}
nav .nav-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #00509e;
}
nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
nav li {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
/* Nav scroll shrink effect */
.scrolled {
  padding: 0.4rem !important;
}

/* HERO SECTION */
.hero {
  width: 100%;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
	135deg,
	rgba(255, 255, 0, 0.9) 0%,
	rgba(255, 165, 0, 0.9) 100%
  );
  color: #2c3e50;
  text-align: center;
  padding: 3rem 1rem;
  margin-top: 60px; /* offset for fixed nav */
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.hero .social-links a {
  color: #2c3e50;
  font-size: 1.1rem;
  margin: 0 0.7rem;
  transition: color 0.3s ease;
  font-weight: 600;
}
.hero .social-links a:hover {
  color: #0000ff; /* lighter yellow on hover */
}
.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 2rem 0 1rem 0;
  object-fit: cover;
  border: 3px solid #dc143c;
  transition: transform 0.3s ease, border-color 0.3s;
}
.profile-image:hover {
  transform: scale(1.05);
}

/* MAIN CONTENT WRAPPER */
main {
  max-width: 1100px;
  width: 90%;
  margin: 2rem auto;
}

/* CARD STYLE SHARED */
section {
  background: #fff;
}
.card {
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-3px);
}
.card h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #2c3e50;
}
.card p {
  margin-bottom: 1rem;
  text-align: justify;
  line-height: 1.7;
  font-weight: 400;
}

/* INTERESTS SECTION */
.interests-card .interest-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.interests-card .badge {
  display: inline-block;
  background: #00509e;
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s ease;
}
.interests-card .badge:hover {
  background: #005bbf;
}

/* EXPERIENCE SECTION - SINGLE COLUMN */
.experience-card .exp-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.experience-card .exp-item {
  background-color: #fff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.experience-card .exp-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.experience-card .exp-item strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
  color: #2c3e50;
  font-weight: 700;
}
.experience-card .date {
  float: right;
  font-weight: 600;
  color: #555;
}

/* PUBLICATIONS SECTION - SINGLE COLUMN */
.pub-card-grid {
  display: flex;
  flex-direction: column; /* single column */
  gap: 1rem;
  margin-top: 1rem;
}
.pub-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.pub-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 700;
}
.pub-card .meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.pub-card .meta em {
  display: inline-block;
  margin-top: 0.5rem;
  font-style: italic;
  color: #555;
}

/* Button styling for Paper/Code/Project links */
.pub-links {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.pub-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff; /* text color on button */
  background: #00509e; /* button background color */
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  text-decoration: none;
  transition: background 0.3s ease;
}
.pub-links a:hover {
  background: #005bbf;
}
.pub-links a i {
  font-size: 1rem;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #666;
  background: #fff;
  font-weight: 400;
}
footer p {
  margin: 0.5rem 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav ul {
	display: none;
  }
  .hero h1 {
	font-size: 2.3rem;
  }
  .hero p {
	font-size: 1rem;
  }
  .card {
	padding: 1.5rem;
  }
  h2 {
	font-size: 1.4rem;
  }
  .profile-image {
	width: 150px;
	height: 150px;
  }
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 1rem;
}

.social-icons a {
  color: inherit;
  font-size: 1.6rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #7daaf7; /* matches your dark-mode accent */
}

.icon-img {
  width: 25px;   /* adjust size */
  height: 25px;
  transition: transform 0.3s;
}
.icon-link:hover .icon-img {
  transform: scale(1.2);
}

/* -----------------------------
   THEME (dark-mode overrides)
   ----------------------------- */

:root {
  --accent-blue: #00509e;
  --accent-blue-light: #7daaf7;
  --badge-blue: #007bff;
  --badge-blue-dark: #3399ff;
}

/* base dark mode */
body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

/* links */
body.dark-mode a { color: var(--accent-blue-light); }
body.dark-mode a:hover { opacity: 0.95; }

/* headers */
body.dark-mode h1 { color: var(--accent-blue-light); }
body.dark-mode h2 { color: var(--accent-blue-light); }
body.dark-mode h3 { color: var(--accent-blue-light); }
body.dark-mode h4 { color: var(--accent-blue-light); }

/* navbar */
body.dark-mode nav { background-color: #1e1e1e; box-shadow: 0 2px 6px rgba(0,0,0,0.6); }
body.dark-mode .nav-title { color: var(--accent-blue-light); }

/* hero */
body.dark-mode .hero {
  background: linear-gradient(135deg, rgba(0,70,140,0.9) 0%, rgba(0,30,70,0.9) 100%);
  color: #ffffff;
}
body.dark-mode .hero .social-links a { color: inherit; }
body.dark-mode .hero .social-links a:hover { color: #aad4ff; }

/* cards & publication cards */
body.dark-mode section,
body.dark-mode .card,
body.dark-mode .pub-card {
  background: #1e1e1e;
  color: #f0f0f0;
  box-shadow: 0 2px 5px rgba(255,255,255,0.02);
}
body.dark-mode .meta { color: #bbb; }
body.dark-mode .meta em { color: #bbb; }

body.dark-mode .pub-links a { background: #7daaf7; color: #000; }

/* badges (covering both selectors) */
.badge { /* keep original styling for light mode (if used outside .interests-card) */
  display: inline-block;
  background: #00509e;
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s ease;
}
body.dark-mode .badge { background: #7daaf7; color: #000; }
body.dark-mode .badge:hover { background: #7daaf7; }

/* footer */
body.dark-mode footer { background: #1e1e1e; color: #bbb; }

/* profile image border color change in dark mode (requested) */
body.dark-mode .profile-image { border-color: var(--accent-blue-light); }

/* TOGGLE SWITCH (top-right inside nav) */
.theme-switch {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-size: 0.9rem
}
#theme-icon {
font-size: 1.6rem;
display: inline-block;
transition: transform 0.4s ease, opacity 0.4s ease;
}
#theme-icon.spin {
transform: rotate(90deg);
opacity: 0.3;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ded5d5;
  border-radius: 24px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: black;
  border-radius: 50%;
  transition: transform 0.35s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
input:checked + .slider {
  background-color: var(--accent-blue-light); /* blue-ish when ON (dark mode) */
  box-shadow: 0 0 8px rgba(125,170,247,0.25);
}
input:checked + .slider:before {
  transform: translateX(26px);
  background-color: yellow;
}