* {
  box-sizing: border-box;
  padding: 0px;
  margin: 0px;
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
}

body {
    background: rgb(255, 255, 255);
    font-size: clamp(16px, 1vw + 0.5rem, 18px);
    line-height: 1.65;
    color: rgb(33, 37, 41);
    -webkit-text-size-adjust: 100%;
}

p {
  margin-bottom: 1rem;
}

li {
  line-height: 1.6;
}

.nav {
  background: rgb(5, 68, 104);
}

.content {
  background: rgb(255, 255, 255);
}

.side-primary {
  background-color: rgb(5, 68, 104);
  /* flex-direction: column; */
}

.side-secondary {
  background-color: rgb(5, 68, 104);
}

.footer {
  background: rgb(15, 127, 191);
}

.container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.container > div {
  width: 100%;
}

@media screen and (min-width: 640px) {
  .nav {
    width: 100%;
  }
 
  .side-primary {
    display: block;
    flex: 1;
  }
 
  .content {
    flex: 3;
  }
 
  .side-secondary {
    display: none;
  }
 
  .footer {
    width: 100%;
  }
}

@media screen and (min-width: 1024px) {
  .nav {
    width: 100%;
  }
 
  .side-primary {
    display: block;
    flex: 1;
  }
 
  .content {
    flex: 3;
  }
 
  .side-secondary {
    display: block;
    flex: 1;
  }
 
  .footer {
    width: 100%;
  }
}


.contacts {
    color: rgb(255, 255, 255);
  font-size: 17px;
  line-height: 1.55;
}

.hbar {
    height:2px; 
    border-width:0; 
    margin-right:2px; 
    color:rgb(255,255,255); 
    background-color:rgb(255,255,255);
}

.wrapper .sidebar{
    background: rgb(5, 68, 104);
    top: 0;
    left: 0;
    min-width: 200px;
    height: 100%;
    padding: 20px 0;
    transition: all 0.5s ease;
}

.wrapper .sidebar .profile{
    margin-bottom: 30px;
    text-align: center;
}

.wrapper .sidebar .profile img{
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto;
}

.wrapper .sidebar .profile h3{
    color: rgb(255, 255, 255);
    margin: 10px 0 5px;
  font-size: 22px;
}

.wrapper .sidebar .profile p{
    color: rgb(255, 255, 255);
  font-size: 19px;
}

.wrapper .sidebar ul li a{
    display: block;
  padding: 15px 30px;
    border-bottom: 1px solid rgb(5, 68, 104);
    color: rgb(255, 255, 255);
  font-size: 17px;
    position: relative;
}

.wrapper .sidebar ul li a .icon{
    color: rgb(255, 255, 255);
    width: 30px;
    display: inline-block;
}

.wrapper .sidebar ul li a:hover,
.wrapper .sidebar ul li a.active{
    color: rgb(5, 68, 104);

    background:rgb(255, 255, 255);
    border-right: 2px solid rgb(5, 68, 104);
}

.wrapper .sidebar ul li a:hover .icon,
.wrapper .sidebar ul li a.active .icon{
    color: rgb(5, 68, 104);
}

.wrapper .sidebar ul li a:hover:before,
.wrapper .sidebar ul li a.active:before{
    display: block;
}

.summary {
    background: rgb(255, 255, 255);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid rgb(5, 68, 104);
    margin-bottom: 30px;
}

.experience-item, .education-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2a5298;
}

.content {
    float:left;
    padding: 14px 10px 28px;
    /* width:100%; */
    /* padding: -20px; */
    /* width:300px; */
}

.content section {
  margin-bottom: 26px;
}

.content h2 {
  font-size: 32px;
  font-weight: bold;
  margin: 0;
}

.section-header {
  background-color: rgb(228, 228, 228);
  border-radius: 10px;
  padding: 12px;
  margin: 8px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-header.collapsible {
    cursor: pointer;
    user-select: none;
}
.section-header.collapsible:hover {
    opacity: 0.8;
}
.dropdown-icon {
    font-size: 0.8em;
}
.section-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.section-content.collapsed {
    max-height: 0;
}

.projects-updated {
  margin: 6px 10px 18px;
  font-size: 15px;
  color: rgb(102, 102, 102);
}

.resume-request {
  margin: 12px 10px 22px;
  font-size: 15px;
  color: rgb(102, 102, 102);
  padding: 12px 16px;
  border: 1px solid rgba(5, 68, 104, 0.2);
  border-radius: 8px;
  background: rgb(248, 249, 250);
}

.resume-request a {
  color: rgb(0, 0, 250);
  font-weight: 600;
}

.resume-request a:hover {
  text-decoration: underline;
}

.content .work-container hr {
  margin-top: 14px;
  margin-bottom: 14px;
    border: 0;
    border-top: 1px solid #ddd;

}

/* Work Experience Styles */
.work-container {
  padding: 14px;
}

.work-container h3 {
  font-size: 24px;
    font-weight: bold;
  margin-bottom: 8px;
}

.work-container h4 {
  font-size: 19px;
  margin-bottom: 8px;
    font-style: italic;
}

.work-container h5 {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 12px;
    font-weight: normal;
    
}

.work-container ul {
    list-style-type: square;
  margin-left: 24px;
}

.work-container li {
    display: list-item;
  margin-bottom: 10px;
}

/* Home intro gallery */
.intro-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.intro-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.intro-figure {
  margin: 0;
}

.intro-figure img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: rgb(248, 249, 250);
  border-radius: 8px;
  border: 1px solid rgba(5, 68, 104, 0.2);
}

.intro-figure figcaption {
  margin-top: 8px;
  font-size: 15px;
  color: rgb(102, 102, 102);
}

.intro-download-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(5, 68, 104, 0.3);
  background: rgb(5, 68, 104);
  color: rgb(255, 255, 255);
  font-size: 15px;
  font-weight: 600;
}

.intro-download-button:hover {
  opacity: 0.9;
}

.intro-download-button[aria-disabled="true"] {
  background: rgb(248, 249, 250);
  color: rgb(102, 102, 102);
  border-color: rgba(5, 68, 104, 0.2);
  cursor: default;
  pointer-events: none;
}

@media screen and (min-width: 768px) {
  .intro-gallery {
    flex-direction: row;
    align-items: stretch;
  }

  .intro-column {
    flex: 1;
  }

  .intro-column-research {
    flex: 1;
    gap: 10px;
  }

  .intro-column-sorting {
    flex: 1;
  }

  .intro-column-sorting .intro-figure {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .intro-column-sorting .intro-figure img {
    flex: 1;
    height: auto;
    min-height: 0;
  }

  .intro-figure img {
    height: 380px;
  }
}

/* Research Publications */
.publication-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 10px 20px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 20px;
  border: 1px solid rgba(5, 68, 104, 0.3);
  background: rgb(248, 249, 250);
  color: rgb(5, 68, 104);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-button:hover {
  transform: translateY(-1px);
}

.filter-button.active {
  background: rgb(5, 68, 104);
  color: rgb(255, 255, 255);
}

.filter-button.filter-clear {
  background: rgb(255, 255, 255);
  border-style: dashed;
}

.filter-button.filter-clear i {
  font-size: 12px;
}

.filter-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.filter-all {
  background: rgb(120, 120, 120);
}

.filter-journal {
  background: rgb(0, 145, 110);
}

.filter-conference {
  background: rgb(232, 126, 4);
}

.filter-presentation {
  background: rgb(78, 84, 200);
}

.filter-report {
  background: rgb(178, 70, 119);
}

.publication-section {
  margin: 10px 10px 0;
  font-size: 20px;
  color: rgb(5, 68, 104);
}

.publication-request {
  margin-left: 8px;
  font-size: 15px;
  font-weight: 600;
  color: rgb(5, 68, 104);
}

.publication-request:hover {
  text-decoration: underline;
}

.publication-item.is-hidden,
.publication-section.is-hidden {
  display: none;
}

/* Skills for Resume */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 10px;
}

.skill-category {
    background-color: rgb(240, 240, 240);
    padding: 20px;
    border-radius: 8px;
    border-top: 3px solid #667eea;
}

.skill-category h4 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 1.1em;
}

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

.skill-tag {
    background:rgb(7, 105, 185);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
}

/* GitHub Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 20px;
}

.project-card {
    background: rgb(248, 249, 250);
    padding: 25px;
    border-radius: 8px;
    border-top: 3px solid rgb(102, 126, 234);
    transition: all 0.3s;
}

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

.project-card h3 {
    margin-bottom: 5px;
    color: rgb(5, 68, 104);
}

.project-card a {
    color: rgb(0, 0, 250);
    text-decoration: none;
    font-weight: 600;
}

.project-card a:hover {
    text-decoration: underline;
}

.project-stats {
    display: flex;
  align-items: center;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    color: rgb(102, 102, 102);
}

.project-language-logo {
  height: 22px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.project-stat i {
  font-size: 18px;
  vertical-align: middle;
}

/* GitHub Activity */
.github-activity {
  margin: 20px 0 30px;
}

.activity-updated {
  margin: 6px 10px 18px;
  font-size: 15px;
  color: rgb(102, 102, 102);
}

.activity-list {
  margin: 10px 20px 30px;
  padding-left: 22px;
  border-left: 2px solid rgba(5, 68, 104, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  position: relative;
  display: flex;
  gap: 12px;
  background: rgb(255, 255, 255);
  border: 1px solid rgb(229, 231, 235);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.activity-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(5, 68, 104);
  box-shadow: 0 0 0 4px rgba(5, 68, 104, 0.15);
}

.activity-icon {
  color: rgb(5, 68, 104);
  font-size: 16px;
  margin-top: 2px;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}

.activity-summary {
  font-weight: 600;
  color: rgb(5, 68, 104);
}

.activity-summary a {
  color: rgb(0, 0, 250);
  font-weight: 600;
}

.activity-time {
  font-size: 13px;
  color: rgb(120, 120, 120);
}

.activity-meta {
  margin-top: 4px;
  font-size: 14px;
  color: rgb(102, 102, 102);
}

.activity-empty {
  margin: 10px 20px 30px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px dashed rgba(5, 68, 104, 0.2);
  background: rgb(248, 249, 250);
  font-size: 15px;
  color: rgb(120, 120, 120);
}

.github-contributions {
  margin: 10px 0 30px;
}

.contributions-card {
  margin: 10px 20px 30px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgb(229, 231, 235);
  background: rgb(255, 255, 255);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
}

.contributions-chart {
  display: block;
  width: 100%;
  min-width: 720px;
  max-width: 100%;
  height: auto;
}

.contributions-caption {
  margin-top: 10px;
  font-size: 14px;
  color: rgb(120, 120, 120);
}

/* RL Notes */
.rl-notes-page .section-header {
  background: linear-gradient(135deg, rgb(232, 241, 249) 0%, rgb(245, 249, 252) 100%);
  border: 1px solid rgba(5, 68, 104, 0.16);
}

.rl-notes-intro {
  max-width: 920px;
}

.rl-notes-description {
  margin: 10px 8px 18px;
  color: rgb(73, 80, 87);
}

.rl-note-card {
  margin: 8px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(5, 68, 104, 0.14);
  border-left: 5px solid rgb(5, 68, 104);
  background: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgb(247, 250, 252) 100%);
  box-shadow: 0 4px 14px rgba(5, 68, 104, 0.08);
}

.rl-note-title {
  margin-bottom: 8px;
}

.rl-note-title a {
  color: rgb(5, 68, 104);
  text-decoration: none;
}

.rl-note-title a:hover {
  text-decoration: underline;
}

.rl-note-summary {
  margin-bottom: 14px;
  color: rgb(73, 80, 87);
}

.work-container ul.rl-note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.work-container ul.rl-note-tags li {
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(5, 68, 104, 0.24);
  background: rgb(235, 244, 250);
  color: rgb(5, 68, 104);
  font-size: 14px;
  font-weight: 600;
}

.rl-note-download-title {
  margin-bottom: 8px;
  color: rgb(33, 37, 41);
}

.work-container ul.rl-note-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.work-container ul.rl-note-downloads li {
  margin-bottom: 0;
}

.rl-note-downloads a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(5, 68, 104, 0.25);
  background: rgb(255, 255, 255);
  color: rgb(5, 68, 104);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rl-note-downloads a:hover {
  background: rgb(236, 244, 250);
  border-color: rgba(5, 68, 104, 0.45);
}

@media screen and (max-width: 767px) {
  .content {
    padding: 10px 8px 22px;
  }

  .content section {
    margin-bottom: 20px;
  }

  .content h2 {
    font-size: 28px;
  }

  .section-header {
    margin: 6px 4px;
    padding: 10px;
  }

  .work-container {
    padding: 10px;
  }

  .work-container h3 {
    font-size: 21px;
  }

  .work-container h4 {
    font-size: 17px;
  }

  .work-container h5 {
    font-size: 16px;
    line-height: 1.5;
  }

  .work-container ul {
    margin-left: 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 12px;
  }

  .project-card {
    padding: 18px;
  }

  .activity-list {
    margin: 10px 12px 24px;
    padding-left: 16px;
    gap: 12px;
  }

  .activity-item {
    padding: 12px;
  }

  .activity-item::before {
    left: -21px;
    top: 16px;
  }

  .contributions-card {
    margin: 10px 12px 24px;
    padding: 14px;
  }

  .contributions-chart {
    min-width: 560px;
  }

  .rl-note-card {
    margin: 6px 2px;
    padding: 14px;
  }

  .rl-note-downloads {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  body {
    line-height: 1.6;
  }

  .content h2 {
    font-size: 25px;
  }

  .wrapper .sidebar .profile h3 {
    font-size: 20px;
  }

  .wrapper .sidebar .profile p {
    font-size: 17px;
  }

  .wrapper .sidebar ul li a {
    font-size: 16px;
    padding: 13px 24px;
  }

  .contacts {
    font-size: 16px;
  }

  .filter-button {
    font-size: 14px;
    padding: 8px 12px;
  }
}

@media screen and (min-width: 640px) {
  .content {
    padding: 18px 14px 32px;
  }
}