:root {
  --bg: #1c1f26;
  --fg: #e6edf3;
  --accent: #4fa3ff;
  --muted: #8b949e;
  --card: #2a2f38;
}
body {
  margin: 0;
  font-family: Consolas, "Courier New", monospace;
  background: var(--bg);
  color: var(--fg);
  transition: background 0.3s, color 0.3s;
}

ul {
  padding-inline-start: 0px;
}

.left-margin-zero {
  padding-inline-start: 15px;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #161b22;
  padding: 1em 2em;
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo {
  font-weight: 700;
  font-size: 1.2em;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5em;
}
.nav-links a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--accent);
}
#theme-toggle {
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.1em;
  cursor: pointer;
}

.intro {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 4em auto;
  padding: 0 2em;
  gap: 2em;
}

.left {
  flex: 1 1 300px;
  text-align: center;
}
.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  object-fit: cover;
  margin-bottom: 1em;
}
h1 {
  margin: 0.2em 0;
}
.subtitle, .subtitle2 {
  color: var(--muted);
  margin: 0.2em 0;
}

.icons {
  margin: 1em;
}
.icons a {
  color: var(--accent);
  margin: 0.3em;
  font-size: 1.4em;
  text-decoration: none;
}
.icons a:hover {
  color: white;
}

.right {
  flex: 2 1 500px;
}
h2 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
}
.highlight {
  background: #343941;
  padding: 0.5em;
  border-left: 4px solid var(--accent);
  margin-bottom: 1em;
}
.resume-link {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.5em 1em;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 1em;
}
.resume-link:hover {
  opacity: 0.8;
}
.two-col {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 2em;
}
.col-35 {
  flex: 1 1 35%;
}

.col-45 {
  flex: 1 1 45%;
}

.col h3 {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.3em;
  margin-bottom: 0.5em;
}
.col ul {
  list-style: disc inside;
  line-height: 1.6;
}
.col p {
  line-height: 1.5;
  color: var(--muted);
  
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

footer {
  text-align: center;
  padding: 2em 0;
  color: var(--muted);
  background: #161b22;
  margin-top: 3em;
}

body.light {
  --bg: #f7f8fa;
  --fg: #222;
  --accent: #00539C;
  --muted: #666;
  --card: #fff;
}

section {
  max-width: 1100px;
  margin: 4em auto;
  padding: 0 2em;
  scroll-margin-top: 100px;
}

section h2 {
  font-size: 1.8em;
  color: var(--accent);
  margin-bottom: 0.8em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.2em;
}

.experience-item {
  background: var(--card);
  padding: 1.5em;
  border-radius: 10px;
  margin-bottom: 1.5em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.experience-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.experience-item h3 {
  margin-top: 0;
  color: var(--fg);
  font-weight: 600;
}
.duration {
  color: var(--muted);
  font-size: 0.9em;
  margin-bottom: 0.8em;
}
.experience-item ul {
  list-style: disc inside;
  color: var(--muted);
  line-height: 1.6;
}

#publications ul, #projects ul, #extracurricular ul, #certifications ul {
  list-style: disc inside;
  color: var(--muted);
  line-height: 1.7;
  margin-left: 0.5em;
}
#publications li b, #projects li b {
  color: var(--fg);
}
#publications li:not(:last-child),
#projects li:not(:last-child) {
  margin-bottom: 0.7em;
}

#skills .two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  margin-top: 1.5em;
}
#skills .col {
  background: var(--card);
  padding: 1.5em;
  border-radius: 10px;
  flex: 1 1 45%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#skills .col h3 {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.4em;
  margin-bottom: 0.5em;
  color: var(--fg);
}
#skills .col p {
  color: var(--muted);
  line-height: 1.6;
}

#extracurricular li, #certifications li {
  background: var(--card);
  margin-bottom: 0.6em;
  padding: 0.8em 1em;
  border-radius: 6px;
  transition: background 0.2s ease;
}
#extracurricular li:hover, #certifications li:hover {
  background: #343941;
}


body.light .experience-item,
body.light #skills .col,
body.light #extracurricular li,
body.light #certifications li {
  background: var(--card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
body.light section h2 {
  color: var(--accent);
}
body.light #publications li b,
body.light #projects li b {
  color: #000;
}

.contact-section {
  background-color: #1c1f28; /* similar to your site’s footer background */
  color: #f5f5f5;
  padding: 80px 0;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  color: #f5f5f5;
  margin-bottom: 40px;
  border-bottom: 2px solid #3b82f6; /* subtle blue line like your titles */
  display: inline-block;
  padding-bottom: 10px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  gap: 15px;
}

.contact-item i {
  font-size: 1.5rem;
  color: #f5f5f5;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  background-color: #0e1117;
}

.menu-icon {
  display: none;
  font-size: 1.9rem;
  cursor: pointer;
  color: var(--fg, #ffffff);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  margin-right: 1rem; 
  transition: all 0.3s ease;
}

.menu-icon:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: scale(1.1);
  color: var(--accent-color, #4da3ff);
}

@media (max-width: 768px) {
  section {
    padding: 0 1em;
  }
  #skills .two-col {
    flex-direction: column;
  }
  .experience-item {
    padding: 1em;
  }
  .contact-section {
    padding: 60px 20px;
  }
  .contact-item {
    font-size: 1rem;
  }

  .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  nav ul {
    margin-left: 1rem;
  }

  nav ul li {
    padding: 0.6rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #161b22;
    position: absolute;
    top: 60px;
    left: 0;
  }
  
  .nav-links.active {
    display: flex;
  }
}
