/* Default Light Mode */
body {
  --bg-color: #ffffff;
  --text-color: #222222;
  --header-bg: #f4f4f4;
  --card-bg: #ffffff;
  --link-color: #0066cc;

  font-family: 'JetBrains Mono', Consolas, Arial, sans-serif;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-color);
}

/* Dark Mode */
body.dark-theme {
  --bg-color: #121212;
  --text-color: #f1f1f1;
  --header-bg: #1f1f1f;
  --card-bg: #1c1c1c;
  --link-color: #4da6ff;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--header-bg);
  padding: 1rem;
  position: sticky;
  top: 0;
}

.logo {
  margin: 0;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.navbar button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-color);
}

.navbar button.active {
  font-weight: bold;
  border-bottom: 2px solid var(--link-color);
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

main {
  padding: 2rem;
  max-width: 900px;   /* keeps content readable */
  margin: auto;       /* centers it horizontally */
}

/* Consistent spacing below all section headings */
main section h2 {
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 50px;
  border-bottom: 2px solid var(--link-color);
  display: inline-block;
  padding-bottom: 5px;
}



.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}



/* Profile picture */
.profile-ring {
  background: linear-gradient(135deg, #007bff, #00c6ff); /* blue gradient ring */
  border-radius: 50%;
  padding: 4px; /* ring thickness */
  display: inline-flex; /* ensures perfect centering */
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.profile-inner {
  background: var(--bg-color, #fff); /* match page background */
  border-radius: 50%;
  padding: 6px; /* gap between ring and image */
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: block;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px rgba(0, 150, 255, 0.5); }
  50% { box-shadow: 0 0 20px rgba(0, 150, 255, 0.9); }
  100% { box-shadow: 0 0 10px rgba(0, 150, 255, 0.5); }
}

.profile-ring,
.profile-inner,
.profile-pic {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.profile-ring:hover {
  animation: pulse-glow 1.5s infinite ease-in-out;
  transform: scale(1.1);
}



body.dark-theme .profile-ring {
  background: linear-gradient(135deg, #339cff, #66d1ff);
  box-shadow: 0 0 12px rgba(102, 209, 255, 0.4);
}



/* Hero container */
.hero-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Smaller profile pic inside hero */
.hero-container .profile-pic {
  width: 150px;
  height: 150px;
}

/* Hero text */
.hero-text {
  max-width: 600px;
  text-align: left;
}

.hero-text .intro-text {
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 20px;
}

.explore-section h4 {
  margin-bottom: 8px;
  font-size: 1.1em;
  color: var(--text-color);
}

.explore-list {
  list-style-type: disc;
  margin-left: 20px;
  line-height: 1.6;
  color: var(--text-color);
}

/* Hero buttons */
.hero-buttons {
  margin-top: 1rem;
}

.hero .btn, 
.hero-buttons .btn {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 5px;
  background: var(--link-color);
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero .btn:hover, 
.hero-buttons .btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}


/* ---------- Research Section Styles ---------- */
.publication-box {
  background-color: #F0F0F0;
  border-radius: 8px;
  margin: 1rem 0;
  padding: 1rem;
  transition: background-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.publication-box:hover {
  background-color: #DEDEDE;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pub-header .pub-title {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--link-color);
  text-decoration: none;
  text-align: justify;
}

.pub-header .pub-title:hover {
  text-decoration: underline;
}

.pub-authors {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #919191;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.pub-authors .authors {
  text-align: left;
}

.pub-authors .conference {
  text-align: right;
  font-style: italic;
  color: inherit;
  font-weight: 500;
}


.pub-abstract {
  font-family: Arial, sans-serif;
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: #333;
  background-color: #f0f0f0;
  padding: 0.8rem;
  border-radius: 5px;
  text-align: justify;
  display: none; /* hidden by default */
}

/* Dark mode adjustments */
body.dark-theme .publication-box {
  background-color: #2a2a2a;
  transition: background-color 0.3s, box-shadow 0.3s;
}

body.dark-theme .publication-box:hover {
  background-color: #3f3f3f;
  box-shadow: 0 0 10px rgba(100, 180, 255, 0.2);
}


body.dark-theme .pub-abstract {
  background-color: #333;
  color: #e0e0e0;
}



/* ===== Education Section ===== */
.education-item {
  margin-bottom: 25px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.education-item h3 {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 5px;
}

.edu-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95em;
  color: #666;
}

.edu-details .college {
  font-weight: 500;
}

.edu-details .location {
  text-align: right;
  font-style: italic;
}




/* ---------- Projects Section ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-card {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Dark theme */
body.dark-theme .project-card {
  background-color: #2a2a2a;
  box-shadow: 0 2px 6px rgba(255,255,255,0.1);
}
body.dark-theme .project-card:hover {
  box-shadow: 0 6px 15px rgba(255,255,255,0.15);
}

/* Title */
.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--link-color, #007bff);
  text-decoration: none;
}
.project-title:hover {
  text-decoration: underline;
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0.8rem 0;
}
.badges img {
  height: 24px;
  border-radius: 6px;
}

/* Description */
.project-description {
  font-size: 0.95rem;
  color: #333;
  text-align: justify;
  margin-bottom: 1rem;
}
body.dark-theme .project-description {
  color: #ddd;
}

/* Project image */
.project-image {
  width: 100%;
  border-radius: 10px;
  margin-top: 0.5rem;
  transition: transform 0.3s ease;
}
.project-image:hover {
  transform: scale(1.02);
}




/* ===== Skills Section ===== */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 3 per row on desktop */
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.2rem 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.skill-category h3 {
  color: var(--link-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-align: center;
  border-bottom: 2px solid var(--link-color);
  padding-bottom: 0.3rem;
}

.skill {
  margin-bottom: 0.8rem;
}

.skill span {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.progress-bar {
  background: #e0e0e0;
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.progress-bar div {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #00c6ff);
  border-radius: 10px;
  transition: width 0.8s ease;
}

/* Dark mode adjustments */
body.dark-theme .skill-category {
  background: #1e1e1e;
  box-shadow: 0 2px 6px rgba(255,255,255,0.1);
}

body.dark-theme .progress-bar {
  background: #333;
}



/* ===== Contact / Social Links ===== */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.social-links a {
  font-size: 1.8rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Brand-specific colors (default / light mode) */
.social-links a.linkedin i {
  color: #0077b5; /* LinkedIn blue */
}

.social-links a.github i {
  color: #24292e; /* GitHub dark gray */
}

.social-links a.scholar i {
  color: #4285f4; /* Google blue */
}

.social-links a.leetcode i {
  color: #f89f1b; /* LeetCode orange */
}

.social-links a.kaggle i {
  color: #20beff; /* Kaggle blue */
}

/* Hover color transition - follow your theme’s link color */
.social-links a:hover i {
  transform: scale(1.2);
  color: var(--link-color);
}

/* Dark mode adjustments */
body.dark-theme .social-links a.github i {
  color: #f5f5f5; /* Lighter GitHub icon */
}

body.dark-theme .social-links a.linkedin i {
  color: #4da6ff;
}

body.dark-theme .social-links a.scholar i {
  color: #5ea0ff;
}

body.dark-theme .social-links a.leetcode i {
  color: #f9b13c;
}

body.dark-theme .social-links a.kaggle i {
  color: #74d6ff;
}

/* Default link color (for light mode) */
#contact a {
  color: #0077cc;  /* your current blue, or any preferred color */
  text-decoration: none;
}

/* Hover effect — same for both modes */
#contact a:hover {
  color: var(--link-color-hover, #3399ff);
  text-decoration: underline;
}

/*  Dark mode adjustment */
@media (prefers-color-scheme: dark) {
  #contact a {
    color: #66b2ff;  /* lighter blue for dark backgrounds */
  }
}


/* Mobile adjustments */
@media (max-width: 768px) {
  body {
    font-family: 'JetBrains Mono', Consolas, Arial, sans-serif;
  }
  
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar ul {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }
  
  .hero-container {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-text {
    text-align: center;
  }
  /* Smaller profile pic inside hero */
  .hero-container .profile-pic {
    width: 120px;
    height: 120px;
  }

  /* Ensure About Me heading keeps underline and alignment */
  #about h2 {
    border-bottom: 2px solid var(--link-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 30px;
    text-align: center;
  }

  /* Ensure centering doesn’t stretch the underline */
  #about .hero-text {
    text-align: center;
  }
  
  .explore-list {
    text-align: left;
    display: inline-block;
  }
  
  .edu-details {
    flex-direction: column;
    align-items: flex-start;
  }

  .edu-details .location {
    text-align: left;
    margin-top: 3px;
  }
  
 .pub-abstract {
  font-family: Arial, sans-serif;
  }
  
  main {
    padding: 1rem;
  }
}
