html, body {
    max-width: 100%;
    overflow-x: hidden;
}
h5 {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  margin-top: 0rem;
}

/* two-column vertical timelines */
.resume-column {
  position: relative;
  padding: 0rem 0 1.5rem 2rem; /* left padding for line */
  opacity:0;
  transform: translateY(20px);
  transition: opacity .8s, transform 1.2s;

}
.resume-column.visible {
  opacity:1;
  transform: translateY(0);
}
.resume-column::before {
  content: '';
  position: absolute;
  left: 1.95rem; /* align with dot centers */
  /* push the line down so it begins at the first dot rather than above
     (headings sit above the first resume-item, so we need extra offset) */
  top: 5rem;
  bottom: 0.5rem; /* stop just past last dot */
  width: 2px;
  background: #ddd;
  z-index: 0;
}

.resume-column .resume-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  z-index: 1;

}

.resume-column .resume-item::before {
  content: '';
  position: absolute;
  left: -0.375rem; /* pull dot half its width leftwards so center matches line */
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: #4b5c6b;
  border-radius: 50%;
  z-index: 2;
}

.resume-column .resume-title {
  text-align: center;
  width: 100%;
}

/* responsive: columns stack vertically on small screens */
@media (max-width: 768px) {
  .resume-column {
    padding-left: 1rem;
  }
}

/* simple grid replacement (no Bootstrap) */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}
.col-lg-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
/* minimal grid template */
body {
  font-family: system-ui, sans-serif;
  margin: 0;
  color: #333;
  line-height: 1.5;
}
.hero {
  background: linear-gradient(135deg,#2d3a4a,#4b5c6b);
  color: #fff;
  text-align: center;
  padding: 6rem 1rem;
}
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  position: relative; /* keep above svg */
  z-index: 1;
}
.me{
  width: 200px;
  height: 250px;
  margin: 0 2rem 1rem 0;
}
@media all and (max-width: 765px) {
    .me {margin: 0 0 0 0;}
}
.link-bubbles{
  width: 200px;
  height: 50px;

}
.link-bubbles a {
  display: inline-block;
  background: #2d3a4a;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin: 2px 5px 0 5px;
  border-radius: 50%;
  text-align: center;
  width: 45px;
  height: 30px;
  transition: 0.3s;
}
.link-bubbles a:hover{
  background: #4b5c6b;
}
.link-bubbles svg {
  margin-top: 2px;
}
.profile-pic {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  margin: 0 2rem 0rem 0;
  flex-shrink: 0;
}
.intro {
  max-width: 500px;
}
.bio {
  margin-top: 0.5rem;
}
.tagline {
  font-family: Menlo,monospace;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
  /* removed yellow color to keep default text color */
  color: inherit;
}

/* hero deep‑learning canvas background */
.hero {
  position: relative;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
}

/* skills bars */
.skills {
  padding: 2rem 10vw; /* horizontal margins adapt with viewport width */
  background: #ffff;
}

/* education timeline */
.keys {
  padding: 2rem 10vw;
  background: #f5f5f5;; /* differentiate from skills */
}
.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  padding: 1rem 0; /* minimal spacing above/below rows */
}
/* absolute lines drawn per row so gaps don't break the connection */
.timeline .timeline-line {
  position: absolute;
  /* width and left are set dynamically in JS */
  height: 2px;
  background: #ddd;
  z-index: 0;
}

.timeline .entry {
  position: relative;
  flex: 1 1 150px;
  max-width: 300px;
  margin: 10px; /* spacing above entries */
  padding: 1rem 1rem 0; /* add top padding so there&rsquo;s room above the year for the dot/line */
  text-align: center;
  z-index: 1;
  opacity: 0;
  background: #fafafa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  transition: opacity .8s, transform 1.2s;
  transform: translateX(-20px);
  position: relative;
}
.timeline .entry.visible:hover {
  transform: translateY(-5px);
}
.timeline .entry h4{
  margin: 0 0 0 0;
}
.timeline .entry p{
  margin-top: 0;
}

.timeline .entry.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline .entry .year {
  font-weight: bold;
  margin-bottom: 0.3rem;
  display: block;
}

.year {
  font-weight: bold;
  margin-bottom: 0.3rem;
  display: inline-block;
  background: #3a485838 ;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

/* resume section styling */
.resume {
  padding: 2rem 10vw;
  background: #fff;
}
.resume .section-title h2 {
  margin-bottom: 1.5rem;
}
.resume .resume-title {
  font-weight: bold;
}

.resume-item {
  margin-bottom: 1.5rem;
}

.resume-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.resume-item p {
  margin: 0.3rem 0;
}
.resume-item ul {
  margin: 0.5rem 0 0 0rem;
  padding-left: 17px;
}

.resume-item ul .link::marker {
  content: "\21FE  ";
}

.resume-item ul .tools::marker {
  content: "\2605  ";
}

.resume-item ul .tools{
  padding-bottom: .7em;
}
.resume-item ul li{
  padding-bottom: .4em;
}

.projects {
  padding: 2rem 10vw;
  background: #f5f5f5; /* inverted from education */
}
@media(max-width:800px){
  .skills,
  .keys,
  .projects { padding:2rem 5vw; }
}
/* two columns of skills across full width */
.skill-bars {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ensure projects section padding consistent as before */

.skill-bars li {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 1.2rem;
  /* ensure each item spans full column width */
  break-inside: avoid;
}
.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.skill-name {
  font-weight: bold;
}
.skill-percent {
  font-weight: normal;
}
.bar {
  flex: none;
  width: 100%;
  height: 0.6rem;
  background: #bbc8d4;
  position: relative;
}
.bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--level, 0%);
  background: #3a4858;
  transition: width 1s ease;
}
.close {
  color: #aaa;
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: #000;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 1.5rem;
  align-items: start; /* prevent row items from stretching when one is taller */
  grid-auto-rows: min-content;
}
.card {
  background:#fafafa;
  padding:1rem;
  border-radius:8px;
  box-shadow:0 2px 4px rgba(0,0,0,.1);
  transition:opacity .8s, transform 1.2s;
  opacity:0;
  transform: translateY(20px);
  cursor: pointer;
  position: relative;
}
.card .titlog {
  width: 100%;
}
.card h2 {
  margin: 0 0 0 0;
  max-width: 80%;
}
.card svg {
  position:fixed;
  right:0%;
  top:0%;
  width: 33px;
  height: 33px;
  padding: 1em 1em 1em 1em;
}

.card::after {
  content: '\2192'; /* right arrow */
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  font-size: 1.2rem;
  color: #888;
}
.card:hover::after { opacity: 1; transform: rotate(0deg); }

.card .more {
  max-height: 0;
  overflow: hidden;
  margin-top: 0.8rem;
  color: #555;
  transition: max-height 0.4s ease;
}

.card.visible {
  opacity:1;
  transform: translateY(0);
}
.card:hover {
  transform: rotateY(10deg) scale(1.03);
}

footer {
  text-align:center;
  padding:1rem;
  font-size:.9rem;
  height: 50px;
  overflow-y: hidden;
}
