/* Import and base setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

main {
  flex: 1;
}

main.resume{
  scroll-behavior: smooth;
}

html.home-page, body.home-page {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

html, body {
  height: 100%;
  margin: 0;
  overflow-y: scroll;
}



body {
  font-family: "Cormorant Garamond"; 
  background-color: #f5f2ed;
  color: #000000;
  line-height: 1.6;
  text-align: center;
  /* Removed padding that could cause shifting */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2 {
  font-family: sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

h2 {
  font-size: 0.95rem;
}

.index-h2{
  font-family: sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}
/* Header styles */

.header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
  position: sticky;
  padding-bottom: 3rem;
  background-color: #f5f2ed;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: -35px;
  margin-left: -32px;
  position: sticky;
  background-color: #f5f2ed;
  z-index: 1000;
}

.name-badge {
  background-color: #f76b5e;
  border-radius: 10px;
  padding: 1rem 1rem 1rem 6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: fixed;
  margin-left: 32px;
  margin-top: 30PX;
  overflow: visible;
  height: 40px;
  width: 250px;
}

.badge-photo {
  position: fixed;
  top: 360;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px #f5f2ed;
  margin-top: 23px;
  margin-left: 10px;

}

.name {
  position: fixed;
  font-family: sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #f5f2ed;
  margin: 0;
}

/* Tagline */
.tagline {
  font-weight: 360;
  font-size: 5rem;
  color: #2d2d2d;
  text-align: center;
  letter-spacing: 0px;
  line-height: 1.6;
  font-family: "Cormorant Garamond";
  padding-left: 20px;
  padding-right: 20px;
}

/* Navigation */
.nav {
  margin: 30px 0 10px;
  position: fixed;
}

.nav a:hover {
  color: #F76C5E;
}

/* Contact Button */
.contact-button {
  background-color: #F76C5E;
  color: #f5f2ed;
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 30px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #d14f42;
}


.resume {
  background-color:  #f5f2ed;
  color: #000000;
  font-size: 0.96rem;
}

/* Accent line */
.divider-accent {
  width: 50px;
  height: 3px;
  background-color: #F76C5E;
  margin: auto;
  margin-top: 0px;
  border-radius: 5px;
}

/* Highlight Box */
.highlight-box {
  background-color: #41a57d;
  color: #000000;
  max-width: 600px;
  margin: 0 auto;
  padding: 8px 18px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 3px 3px 0 #F76C5E;
  font-size: 0.95rem;
}

.yellow-emphasis {
  background-color: #F76C5E;
  color:  #f5f2ed;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Footer */
.footer {
  background-color: #2d2d2d;
  color:  #f5f2ed;
  padding: 0px 0px;
  font-size: 0.675rem;
  margin-bottom: -10px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

.qualities-line {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 800;
  font-family: sans-serif;
  color: #f76c5e;
  gap: 0.5rem;
  margin-top: 30px;
  margin-left: 290px;
  position: fixed;
}

.typed-cursor {
  font-size: 1rem;
  line-height: 0.8;
  transform: scaleY(1.3);
  margin-left: -11px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .header-left {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    background-color: #f5f2ed;
  }
}

@media (max-width: 768px) {
  .name {
    font-size: 1.5rem;
  }
  .typed-cursor {
    font-size: 1.5rem;
  }
  .badge-photo {
    width: 80px;
    height: 80px;
  }
  .nav a {
    margin: 0 10px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .highlight-box, .tagline {
    padding: 10px 15px;
    font-size: 1rem;
  }
  .section {
    padding: 40px 10px;
  }
  .badge-photo{
    left: -2px;
  }
}


.main-nav {
  /* background-color: #41a57d; */
  background-color: #f5f2ed;
  padding: 0rem 0;
  border-radius: 0;
  width: 96.8%;
  box-shadow: none;
  margin-top: 100px;
  margin-left: -1px;
  position: fixed;
  z-index: 999;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px; /* Adjust spacing between links */
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 0;
}

.nav-links li {
  display: inline-block; /* Ensure each link is in its own block */
}

.nav-links li a {
  font-family: "Cormorant Garamond";
  color:  #2d2d2d;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #F76C5E; /* Warm Coral */
}

.nav-link.active {
  border-bottom: 4px solid #F76C5E;
}

.header {
  display: flex;
  flex-direction: column; /* make it vertical */
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  background-color:  #f5f2ed;
  padding-bottom: 10px;
}

.header-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.1rem;
  position: sticky;
  margin-top: 20px;
  background-color: #f5f2ed;
  padding-bottom: 60px;
}

.header-right-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 1.5rem;
  background-color: #f5f2ed;
  position: fixed;
  top: 35px;   /* Adjust as needed */
  right: 20px; /* Adjust as needed */
}

.header-right-icons a {
  color: #000000b1; /* or any color you like */
  transition: color 0.3s ease;
}

.header-right-icons a:hover {
  color: #F76C5E; /* coral on hover */
}



.update-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #f5f2ed;
  border-radius: 4px;
  /* height: 500px; */
  height: 450px; /* for uniform card height, adjust as needed */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  /* position: relative; */ /* Remove any absolute/relative positioning for flex */
  flex: 0 0 calc(25% - 1rem);
  scroll-snap-align: start;
}

.update-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  width: 100%;
}


.update-card:hover {
  transform: translateY(-5px);
}

.update-card .date {
  font-size: 0.7rem;  /* Adjust as needed */
  color: #2d2d2d76;         /* Optional: softer color */
  margin-top: 0px;
  font-weight: 500;
    font-family: sans-serif;

}

.update-card .description {
  font-size: 0.8rem;     /* Adjust as needed */
  padding-left: 0.7rem;
  padding-right: 0.7rem;
  margin-top: 2px;
  font-weight: 550;
  font-family: sans-serif;
  color: rgba(45, 45, 45, 0.654)     /* Your main text color */
}

.update-card .update-image {
  padding-top: 25px;
  width: 100%;
  height: 300px;
  object-fit: contain;
  background-color: #f5f2ed;
}
.card-category {
  position: absolute;
  top: 3px;
  left: 3px;
  background-color: #F76C5E;
  color: #f5f2ed;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 2;
}

/* Added update-carousel for horizontal scrolling */
.update-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 1rem;
  scroll-snap-type: x mandatory;
}

/* Resume Page Styles */
.resume {
  background-color:  #f5f2ed;
  color: #000000;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: sans-serif;
  line-height: 1.8;
  text-align: left;
}

.resume section {
  margin-bottom: 40px;
}

.resume h3 {
  font-family: sans-serif;
  font-size: 1rem;
  color: #F76C5E;
  margin-bottom: 5px;
  border-bottom: 2px solid #5AA0A0;
  padding-bottom: 0px;
}

.resume p {
  font-size: 0.9rem;
  margin: 5px 0;
}

.resume ul {
  list-style-type: disc;
  margin-left: 20px;
}

.resume ul li {
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.resume strong {
  font-weight: 600;
}

/* Print-friendly support */
@media print {
  .header, nav, .footer {
    display: none;
  }
  .resume {
    max-width: 100%;
    padding: 0;
    margin: 0;
    color: black;
    background: white;
  }
}

.left-panel {
  position: fixed;
  top: 100px; /* Changed from 13% to a fixed pixel value */
  right: 2.19%;
  z-index: 1100; /* Ensures it stays above other content if needed */
}

.left-panel a.download-btn {
  color:  #f5f2ed;
  font-size: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.left-panel a.download-btn i {
  font-size: 1rem;
}

.edu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap; /* optional, for smaller screens */
  margin-bottom: 0.1rem;
  font-size: 0.9rem;
}

.edu-date {
  white-space: nowrap;
  font-size: 0.9rem;
  margin: 5px 0;
}

.gallery-grid {
  column-count: 4;
  column-gap: 16px;
  padding: 16px;
}

.gallery-img {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 8px;
  display: block;
  break-inside: avoid;
}

@media (max-width: 768px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    column-count: 1;
  }
}


.gallery-item {
  position: relative;
  width: 100%;
  z-index: 0;
}

.gallery-item .caption {
  position: absolute;
  left: 0;
  bottom: 0px;
  background: rgba(0,0,0,0.6);
  color: white;
  width: 100%;
  font-size: 0.8rem;
  text-align: center;
  border-radius: 0 0 8px 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .caption {
  opacity: 1;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
}


/* === Table of Contents === */
.toc {
  position: fixed;
  top: 120px; /* Adjust based on your header height */
  left: 2rem;
  width: 250px;
  height: auto;
  z-index: 1000;
  background-color: #f5f2ed;
}

.toc h3 {
  font-family: sans-serif;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: #555;
   text-align: left;
}

.toc ul {
  list-style: none;
  padding: 0;
}

.toc li {
  margin-bottom: 0.5rem;
   text-align: left;
}

.toc a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  font-family: sans-serif;
  font-size: 0.8rem;
 
}

.toc a:hover {
  color: #f76c5e;
}

/* === Blog Content === */

.blog-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
}

.blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-left: 270px; /* to account for the fixed toc width + gap */
}



.entry-meta {
  text-align: left;
  font-size: 0.9rem;
  color: #666;
}

.about-page {
  overflow: hidden;
  height: 100vh;
}


.about-page .about-container {
  display: flex;
}

.about-page .timeline-track {
  top: 100px;
  position: fixed;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 20px;
}

.about-page .timeline-dots {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  height: 80%;
  width: 4px;
  background-color: #ccc;
}

.about-page .timeline-dots li {
  position: absolute;
  left: 50%;
  transform: translateX(-27%);
}

.about-page .dot {
  display: block;
  width: 12px;
  height: 12px;
  background-color: #aaa;
  border-radius: 50%;
  position: relative;
  margin-left: -4px;
  transition: background 0.3s ease;
}

.about-page .dot.active {
  background-color: #007b7f;
  transform: scale(1.2);
}

.about-page .dot::after {
  content: attr(data-label);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #444;
  white-space: nowrap;
}

.about-page .timeline-sections section {
  height: 100vh;
  scroll-snap-align: start;
  padding: 2rem;
  box-sizing: border-box;
  z-index: -1;
  margin-left: 6rem;

}


  .carousel-wrapper {
    position: relative;
    width: 80%;
    margin-top: 8%;
    width: 95%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    /* Center the card-wrapper horizontally */
  }

  .carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease;
  justify-content: center;
}
  .carousel-btn {
    color: #F76C5E;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px 5px;
    border-radius: 5px;
  }

  .carousel-btn:hover {
    background-color: #d0cdc9;
  }

  .carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
 #card-carousel {
  background-color: #f5f2ed;
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  scroll-behavior: auto;
  padding: 1rem 1rem;
  transition: transform 0.5s ease-in-out;
  position: relative;
  width: 100%;

}

  @media (max-width: 768px) {
    .update-card {
      flex: 0 0 calc((100% - 20px) / 2);
    }
  }

  @media (max-width: 500px) {
    .update-card {
      flex: 0 0 100%;
    }
  }
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 3rem;

}

.filter-button {
  background-color: transparent;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: #333;
  transition: all 0.2s ease-in-out;
}

.filter-button:hover {
  background-color: #f5f2ed;
  border-color: #999;
}

.filter-button.active {
  background-color: #333;
  color: #f5f2ed;
  border-color: #333;
  font-weight: 500;
}

    .scroll-down {
      text-align: center;
      font-size: 1.25rem;
      cursor: pointer;
      color: #f76c5e;
      animation: bounce 2.5s infinite;
      position: absolute;
      bottom: 2rem; /* adjust as needed */
      /* left: 50%; */
      /* transform: translateX(-50%); */
    }

    @keyframes bounce {
      0%, 20%, 50%, 80%, 100% {
        transform: translateY(0); 
      }
      40% {
        transform: translateY(10px); 
      }
      60% {
        transform: translateY(5px); 
      }
    }

.scroll-container {
  height: 100vh;
  /* Remove overflow-y: scroll; to prevent nested scroll interfering with main scroll */
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.full-screen-section {
  scroll-snap-align: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}
  .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .carousel-nav .prev {
    left: -2rem;
  }

  .carousel-nav .next {
    right: -2rem;
  }

.focus {
  margin-top: 1rem;
}

.tagline-divider {
  width: 60px;
  border: 1px solid #b1b1b1;
  margin: 1rem auto;
}

.focus-areas {
  font-size: 1.05rem;
  color: #2d2d2d;
  margin-top: 1rem;
  letter-spacing: 0.05rem; /* optional: adds spacing between letters slightly */
}

/* Card Summary Styling */
.card-summary {
  font-family: sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #2d2d2daf;
  margin: 0.5rem 0 0.75rem 0;
  padding: 0 0.5rem;
  text-align:center;
}

/* Card Tags Styling */
.card-tags {
  margin-top: 6%;
  font-family: sans-serif;
  font-size: 0.75rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  /* Remove any position: absolute/relative if present */
}

.card-tags .tag {
  background-color: #c5c1bc43;
  color: #2d2d2d8e;
  font-family: sans-serif;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}

.card-carousel::-webkit-scrollbar {
  display: none;
}

.card-carousel {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.carousel-dots .dot {
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: #2d2d2d;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
  background-color: #F76C5E;
}


.about-simple {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f2ed;
  padding: 2rem;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  margin-top: -121px;
}

.about-photo {
  height:auto;
  width: 35%;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-text {
  margin-top: 1px;
  font-family: sans-serif;
  font-size: 0.86rem;
  color: #2f2f2f;
  line-height: 1.6;
  max-width: 500px;
}


.blog-entry {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  scroll-margin-top: 140px;
}

/* Summary styling */
.entry-meta {
  font-family: sans-serif;
  font-weight: 600;
  font-size: 1rem;
  background-color: #f5f2ed;
  color: #555;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  position: relative;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
}

.entry-body {
  display: flex;
  flex-direction: row; /* Ensures horizontal alignment */
  gap: 1rem;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.entry-image {
  flex-shrink: 0;
  width: 20%;
  display: flex;
  justify-content: center;
}
.entry-image img {
  height: auto;
  width: 100%;
  object-fit: cover;
  display: block;
}

.entry-text {
  flex: 1;
  font-family: 'Cormorant Garamond';
  font-size: 1rem;
  /* font-style: italic; */
  line-height: 1.8;
  color: #2d2d2d;
  padding: 1.5rem;
  text-align: left;
}

.blog-content:target {
  scroll-margin-top: 2rem; /* adjust based on header height */
}

.project-list {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.project-title {
  padding-top: 1.3rem;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  font-family: sans-serif;
  color: #333;
}

.project-summary {
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: 'Cormorant Garamond', serif;
  color: #333;
  margin-bottom: 1rem;
}

.learn-more {
  font-weight: bold;
  text-decoration: none;
  color: #F76C5E;
  font-family: 'Cormorant Garamond', serif;
}

.learn-more:hover {
  text-decoration: underline;
}

.project-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.project-tags {
  margin-top: auto;
}

.tag {
  display: inline-block;
  background-color: #6b728017;
  color: #333;
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  margin-right: 0.4rem;
  border-radius: 12px;
  font-family: sans-serif;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  flex: 1 1 calc(45% - 1rem); /* Two per row with spacing */
  box-sizing: border-box;
}

.project-status {
  margin-top: 0.5rem;
}

.status {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: bold;
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1;
}

.status.ongoing {
  background-color: #fff3cd;
  color: #856404;
}

.status.complete {
  background-color: #d4edda;
  color: #155724;
}


.under-construction {
  height: 70vh; /* Full viewport height */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  font-weight: bold;
  color: #F76C5E;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
}