body {
  font-family: 'Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  margin: 0;
  background-color: #FAFAFA;
  /* Soft off-white to contrast the containers */
}

/* Typography Reset */
h2,
h3,
p {
  margin: 0;
}

a {
  text-decoration: none;
}

/* Sticky Header */
.header {
  height: 90px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 0 48px;
  display: flex;
  justify-content: flex-end;
  position: sticky;
  top: 0;
  z-index: 1000;
  align-items: center;
}

/* --- Header Button Fixes --- */

/* 1. Lock the icon sizes and prevent them from shrinking/growing */
.headerbtn1icon,
.headerbtn2icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* 2. Force the text to stay on one line */
.headerbtn1 p,
.headerbtn2 p {
  white-space: nowrap;
  margin: 0;
}

.headerbtncontainer {
  display: flex;
  gap: 12px;
}

.headerbtn1,
.headerbtn2 {
  height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.headerbtn1 {
  background-color: #F4F4FF;
}

.headerbtn1:hover {
  background-color: #E4E4E7;
}

.headerbtn1 p {
  color: #0D0C22;
  font-weight: 500;
}

.headerbtn2 {
  background-color: #0D0C22;
}

.headerbtn2:hover {
  opacity: 0.9;
}

.headerbtn2 p {
  color: #ffffff;
  font-weight: 500;
}

/* Main Container */
.main-content {
  padding: 20px 48px 60px 48px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Hero Intro */
.hero-intro {
  text-align: center;
  margin-bottom: 40px;
}

.hi {
  font-size: 28px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.afterherospan {
  background-color: #0D0C22;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 24px;
}

.afterherospan img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.discipline {
  color: #71717A;
  font-size: 16px;
}

/* Carousel Section */

.carousel-container {
  margin-bottom: 60px;
  text-align: center;
  width: 100%;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 20px;
  /* Adjusted gap to match your mockup */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 40px 22.5%;
  /* Centers the 55% card */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

.carousel-card {
  flex: 0 0 55%;
  height: 400px;
  border-radius: 16px;
  background-color: #F4F4FF;
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;

  /* NO OPACITY FADE. Just shrunk down to 85% by default */
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

/* The JavaScript applies this to the center container to make it bigger */
.carousel-card.active {
  transform: scale(1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-bg-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-bg-placeholder {
  display: grid;
  place-items: center;
  color: #A1A1AA;
}

.carousel-hint {
  color: #A1A1AA;
  font-size: 14px;
  margin-top: 16px;
}

/* Split Section (Categories & Bio) */
.split-section {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.col-left,
.col-right {
  flex: 1;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
}

.section-header p {
  font-size: 14px;
  color: #A1A1AA;
  margin-bottom: 20px;
}

/* Categories List */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-card {
  background-color: #F4F4FF;
  padding: 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.category-card:hover {
  background-color: #E6E6F4;
}

.category-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.category-card p {
  font-size: 13px;
  color: #555;
}

.quick-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.quick-links a {
  background-color: #F4F4FF;
  color: #0D0C22;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  transition: background 0.2s;
}

.quick-links a:hover {
  background-color: #E6E6F4;
}

/* Personal Bio Box */
.bio-box {
  background-color: #F4F4FF;
  padding: 32px;
  border-radius: 12px;
  height: 100%;
  box-sizing: border-box;
}

.bio-text {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

/* Tech Stack Inline Chips */
.tech-chip {
  display: inline-flex;
  align-items: center;
  background-color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #0D0C22;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin: 0 4px;
  vertical-align: middle;
}

.tech-chip.icon-space {
  width: 14px;
  height: 14px;
  background-color: #ddd;
  /* Temp placeholder color until SVGs are added */
  border-radius: 2px;
}

.bio-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #A1A1AA;
}

/* Bottom Artefact Banner */
.artefact-banner {
  background-color: #F4F4FF;
  border-radius: 12px;
  padding: 32px;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.banner-text {
  flex: 1;
  color: #71717A;
  font-size: 16px;
  line-height: 1.6;
}

.banner-text a {
  color: #71717A;
  text-decoration: underline;
}

.banner-cta {
  flex: 0 0 350px;
  background-color: #E6E6F4;
  /* Update this class to accept a GIF background later */
  height: 120px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
  color: #0D0C22;
  transition: transform 0.2s ease;
}

.banner-cta:hover {
  transform: translateY(-3px);
}

.banner-cta h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.banner-cta p {
  font-size: 13px;
  color: #555;
}

footer {
  text-align: center;
  padding: 24px 0;
  color: #A1A1AA;
  font-size: 14px;
}

/* Glass Modal */
.glass-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.glass-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  width: 90vw;
  height: 90vh;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  position: relative;
  padding: 40px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #0D0C22;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   MOBILE RESPONSIVE (Scroll-Snap Peeking)
   ========================================== */
.mobile-tabs {
  display: none;
}

@media (max-width: 768px) {
  .header {
    padding: 0 20px;
    height: 80px;
  }

  .main-content {
    padding: 20px 20px 60px 20px;
  }

  /* Scale down header buttons */
  .headerbtn1,
  .headerbtn2 {
    padding: 0 16px;
    height: 40px;
  }

  .headerbtn1 p,
  .headerbtn2 p {
    font-size: 14px;
  }

  /* Mobile Overrides */
  @media (max-width: 768px) {
    .carousel-track {
      gap: 12px;
      padding: 20px 10%;
    }

    .carousel-card {
      flex: 0 0 80%;
      height: 300px;
    }
  }

  /* Mobile Pill Tabs */
  .mobile-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
  }

  .pill-tab {
    padding: 8px 16px;
    background-color: transparent;
    color: #A1A1AA;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
  }

  .pill-tab.active {
    background-color: #F4F4FF;
    color: #0D0C22;
  }

  /* Peeking Mobile Layout Magic */
  .split-section {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    /* Allow scrolling past the element so the bio box isn't stuck edge-to-edge */
    padding-right: 40px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .split-section::-webkit-scrollbar {
    display: none;
  }

  .col-left,
  .col-right {
    /* 85% width ensures the next column is visible, "peeking" from the right */
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  .quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Adds comfortable spacing between the stacked buttons */
    width: 100%;
  }

  .quick-links a {
    display: block;
    width: 100%;
    text-align: left;
    /* Centers the text nicely inside the full-width block */
    box-sizing: border-box;
    /* Ensures padding doesn't push the width past 100% */
  }

  /* Stack Banner */
  .banner-content {
    flex-direction: column;
    gap: 20px;
  }

  .banner-cta {
    width: 100%;
    flex: auto;
    height: 100px;
  }
}