html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background: #333;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

.header-tagline {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.06em;
    margin: 0.2rem 0 0.6rem;
}

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

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap; /* responsive wrap */
    margin-top: 1rem;
}

/* Navigation links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}


.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.social-icons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #00acee; /* You can customize this */
}

.about-me {
    background-color: #fff;
    color: #1a1a1a;
    padding: 3rem 2rem;
    font-family: 'Segoe UI', sans-serif;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0rem 2rem;
}

.left-panel {
    flex: 1;
    max-width: 300px;
    text-align: center;
    align-self: center;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    margin-bottom: 1rem;
}

.left-panel h2 {
    margin: 0.5rem 0;
    font-size: 3rem;
    font-weight: 500;
}

.left-panel .title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
}

.left-panel p {
    font-size: 1.2rem;
    color: brown;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.highlights {
    list-style: disc;
    margin-top: 1rem;
    text-align: left;
    padding-left: 4rem;
    color: #333;
}

.highlight {
  background-color: yellow;
  font-weight: bold;
}

.right-panel {
    flex: 2;
    max-width: 700px;
}

.right-panel h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.right-panel p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

section {
    margin: 2rem 0;
}

.research-graph {
    padding: 3rem 2rem;
    text-align: center;
    background: #fff;
}

.research-graph h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.experience h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.experience h4 {
    font-size: 1.25em;
    margin-top: 1em;
    color: #444;
}

.experience h5 {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.experience ul {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.experience li {
    margin-bottom: 0.5em;
}

.graph-container {
    position: relative;
    width: 100%;
    height: 540px;
    max-width: 1000px;
    margin: 0 auto;
    border: none;
}

.node {
    position: absolute;
    background-color: #e6f7ff;
    border: 2px solid #00bfff;
    border-radius: 30px;
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    max-width: 220px;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 191, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.node:hover {
    transform: scale(1.07);
    background-color: #cceeff;
    box-shadow: 0 4px 18px rgba(0, 191, 255, 0.35);
}

/* ── Research Node Modal ── */
.node-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.node-modal-overlay.active {
    display: flex;
}

.node-modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2rem 1.6rem;
    max-width: 430px;
    width: 92%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    position: relative;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.node-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.node-modal-close:hover { color: #333; background: #f0f0f0; }

#node-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 2rem 0.7rem 0;
    line-height: 1.3;
}

#node-modal-desc {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 1.4rem;
}

.node-modal-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.node-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.18s, transform 0.15s;
    white-space: nowrap;
}

.node-btn:hover { opacity: 0.82; transform: translateY(-2px); }

.node-btn--primary { background: #2e61ff; color: #fff; }

.line {
    position: absolute;
    height: 2px;
    background-color: #00cfff;
    transform-origin: left;
}

.card {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card h3 {
  margin-top: 0;
  font-size: 20px;
}

.card p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.projects {
  background-color: #bbdefb; /* Brighter Blue */
}

/* Featured Skill Bubbles */
.featured-bubbles {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.feat-bubble {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #2e61ff;
  box-shadow: 0 0 14px rgba(46, 97, 255, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: #2e61ff;
  text-align: center;
  padding: 0 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font-family: 'Segoe UI', sans-serif;
}

.feat-bubble i {
  font-size: 22px;
}

.feat-bubble:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 28px rgba(46, 97, 255, 0.28);
}

/* Per-bubble accent colours */
.feat-bubble--cpp    { border-color: #7b2ff7; color: #7b2ff7; box-shadow: 0 0 18px rgba(123,47,247,0.13); }
.feat-bubble--cpp:hover    { box-shadow: 0 10px 28px rgba(123,47,247,0.28); }
.feat-bubble--java   { border-color: #f89820; color: #f89820; box-shadow: 0 0 18px rgba(248,152,32,0.13); }
.feat-bubble--java:hover   { box-shadow: 0 10px 28px rgba(248,152,32,0.28); }
.feat-bubble--c      { border-color: #0057b7; color: #0057b7; box-shadow: 0 0 18px rgba(0,87,183,0.13); }
.feat-bubble--c:hover      { box-shadow: 0 10px 28px rgba(0,87,183,0.28); }
.feat-bubble--chapel { border-color: #00897b; color: #00897b; box-shadow: 0 0 18px rgba(0,137,123,0.13); }
.feat-bubble--chapel:hover { box-shadow: 0 10px 28px rgba(0,137,123,0.28); }
.feat-bubble--graph  { border-color: #e63946; color: #e63946; box-shadow: 0 0 18px rgba(230,57,70,0.13); }
.feat-bubble--graph:hover  { box-shadow: 0 10px 28px rgba(230,57,70,0.28); }
.feat-bubble--hpc    { border-color: #7b2ff7; color: #7b2ff7; box-shadow: 0 0 18px rgba(123,47,247,0.13); }
.feat-bubble--hpc:hover    { box-shadow: 0 10px 28px rgba(123,47,247,0.28); }
.feat-bubble--graph2 { border-color: #2e61ff; color: #2e61ff; box-shadow: 0 0 14px rgba(46,97,255,0.13); }
.feat-bubble--graph2:hover { box-shadow: 0 10px 28px rgba(46,97,255,0.28); }

.skills-tagline {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    margin: -0.4rem 0 2rem;
    white-space: nowrap;
}

.skills-tagline span {
    color: #666;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    padding: 0 1.1rem;
}

.skills-tagline span + span {
    border-left: 1px solid #ccc;
}

.footer-updated {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    margin: 4px 0 0;
}

/* Skills Section */
.skills-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.skills-section > h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-category {
  background: #fff;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border-top: 4px solid;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.skill-cat-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.15s ease;
  border: 1px solid;
}

.skill-tag:hover {
  transform: scale(1.05);
}

/* Languages & Core - blue */
.lang-cat { border-color: #2e61ff; }
.lang-cat .skill-cat-header { color: #2e61ff; }
.lang-cat .skill-tag { background: #f0f4ff; color: #2e61ff; border-color: #c5d3ff; }
.lang-cat .skill-tag.primary { background: #2e61ff; color: #fff; border-color: #2e61ff; }

/* Systems & HPC — purple */
.hpc-cat { border-color: #7b2ff7; }
.hpc-cat .skill-cat-header { color: #7b2ff7; }
.hpc-cat .skill-tag { background: #f5f0ff; color: #7b2ff7; border-color: #d4bbff; }
.hpc-cat .skill-tag.primary { background: #7b2ff7; color: #fff; border-color: #7b2ff7; }

/* ML & AI — coral */
.ml-cat { border-color: #e63946; }
.ml-cat .skill-cat-header { color: #e63946; }
.ml-cat .skill-tag { background: #fff0f1; color: #e63946; border-color: #ffc5c8; }
.ml-cat .skill-tag.primary { background: #e63946; color: #fff; border-color: #e63946; }

/* Infrastructure & Tools — teal */
.infra-cat { border-color: #00897b; }
.infra-cat .skill-cat-header { color: #00897b; }
.infra-cat .skill-tag { background: #f0faf9; color: #00897b; border-color: #a7dbd7; }
.infra-cat .skill-tag.primary { background: #00897b; color: #fff; border-color: #00897b; }

/* Project tech tag line */
.proj-tech {
  font-size: 12px;
  color: #888;
  margin: 2px 0 8px;
  font-family: monospace;
}

.experience {
  background-color: #ffe0b2; /* Brighter Orange */
}

.projects-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.projects-header-name {
  margin: 0;
  font-weight: bold;
}

.projects-header h3 {
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.projects-header .github-link {
  font-size: 18px;
  text-decoration: none;
  color: #333;
}


.projects-header .github-link:hover {
  color: #007bff;
}

.github-link {
  font-size: 16px;
  margin-left: 10px;
  color: #333;
  text-decoration: none;
}
.github-link:hover {
  color: #0366d6;
}

.subtext {
  font-size: 20px;
  margin-top: 10px;
  color: #333;
}

.project-wrapper {
  border-radius: 15px;
  padding: 30px;
  display: flex;
  flex-direction: column; /* STACK vertically */
  gap: 20px;
  align-items: center;
}

.project-card {
  background: #F3E9DC; /* Light, modern, clean */
  border-radius: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 20px 25px;
  width: 100%;
  max-width: 800px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.external-link-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 18px;
  height: 18px;
  opacity: 0.6;
  pointer-events: none; /* makes sure clicks pass through */
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.project-card h5 {
  margin-top: 0;
  font-size: 20px;
  color: #2b4e72;
  font-weight: 700;
}

.project-card ul {
  padding-left: 20px;
  margin-top: 10px;
}

.project-card li {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.project-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e8f0fe;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.18s, transform 0.15s;
}

.proj-link:hover { opacity: 0.75; transform: translateY(-1px); }

.proj-link--github { background: #1a1a1a; color: #fff; }
.proj-link--slides { background: #f0f4ff; color: #2e61ff; border: 1px solid #c5d3ff; }
.proj-link--pdf    { background: #fff0f0; color: #c0392b; border: 1px solid #f0c0c0; }


.awards {
  background-color: #f0faf0;
}

.awards--featured {
  background: linear-gradient(135deg, #eef4ff 0%, #f5f0ff 100%);
  border-left: 4px solid #2e61ff;
}

.awards--athletic {
  background: linear-gradient(135deg, #fff5f5 0%, #fff8f0 100%);
  border-left: 4px solid #e63946;
}

.award-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.award-info {
  flex: 1;
}

.award-info h3 {
  margin: 6px 0 8px;
  font-size: 1.05rem;
}

.award-info p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
}

.award-year-badge {
  flex-shrink: 0;
  background: #2e61ff;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  margin-top: 4px;
}

.award-year-badge--athletic {
  background: #e63946;
}

.award-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 4px;
}

.award-tag--research { background: #dce8ff; color: #1a45bb; }
.award-tag--academic { background: #d6f5d6; color: #2e7d32; }
.award-tag--intl     { background: #ede7f6; color: #5e35b1; }
.award-tag--athletic { background: #fde8e9; color: #b71c1c; }

.semester-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.semester-chips span {
  background: #e8f4e8;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

.awards-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 20px;
  color: #e63946;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.awards-divider::before,
.awards-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f5b8bb;
}

.awards-divider i { font-size: 0.85rem; }

.award-two-time {
  display: inline-block;
  background: #e63946;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0.03em;
}

.award-csc-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.award-csc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fde8e9;
  color: #b71c1c;
  border: 1px solid #f5b8bb;
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.award-athlete-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f5c6c8;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #555;
}

.courses-section {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
  gap: 20px;
  justify-items: center;
  align-items: start;
  padding: 10px;
  row-gap: 40px;
}

.course-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;

  width: 250px;
  min-height: 150px; /* enough for title + buttons */
  background: #e6ddff;
  border-radius: 14px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  padding: 16px;
  transition: all 0.3s ease-in-out;
}

.course-card h3 {
  font-size: 16.5px;
  font-weight: 600;
}

.course-card h3, .card.projects h3 {
  font-size: 17px;
  font-weight: 600;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  transition: 0.2s ease-in-out;
}

#projects h2, #courses h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}

.toggle-section {
  display: none;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.projects {
  background-color: #bbdefb; /* soft sky blue */
  padding: 10px 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-left: 3px solid #0277bd;
  border-radius: 8px;
  list-style-type: disc;
  padding-left: 25px;
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
  margin-top: 25px;
}

.card.projects {
  background-color: #cdeeff; /* soft sky blue */
  padding: 10px 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-left: 3px solid #0277bd;
  border-radius: 8px;
  list-style-type: disc;
  padding-left: 25px;
  font-size: 14px;
  color: #333;

  /* ADD THIS: */
  margin-bottom: 20px;
}


.toggle-btn {
  background: none;
  border: none;
  color: #0277bd;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  margin-top: 6px;
  margin-bottom: 10px;
  display: inline-block;
  text-decoration: none;
  min-height: 22px;
}

.toggle-btn:hover {
  text-decoration: underline;
  color: #01579b;
}

.toggle-section {
  display: none;
}


.description {
  display: none;
  font-size: 14px;
  color: #444;
  margin-top: -5px;
  margin-bottom: 10px;
  line-height: 1.5;
  padding-left: 4px;
}

.course-projects {
  display: none;
  background-color: #f0f9ff;
  padding: 18px 20px;
  border-radius: 12px;
  list-style-type: disc;
  padding-left: 30px;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  line-height: 1.75;
  margin-top: 14px;
  margin-bottom: 8px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.course-projects li {
  margin-bottom: 10px;
  line-height: 1.6;
  text-align: left;
}

.course-card .description,
.course-card .course-projects {
  display: none; /* keeps toggle local to card */
}

.course-projects,
.description {
  max-height: none;
  overflow: visible;
}


.exp-role-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 4px;
}

.exp-role-header h3 {
  margin: 0;
}

.exp-date {
  font-size: 14px;
  color: #888;
  white-space: nowrap;
  padding-top: 4px;
}

.exp-org {
  font-size: 15px;
  color: #666;
  margin: 2px 0 12px;
  font-style: italic;
}

.exp-bullets {
  margin-left: 1.5em;
  margin-bottom: 0.5em;
}

.exp-bullets li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
}