/* ──────────────────────────────────────────
   Reset and Base Styles
────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0a192f;
  color: #ccd6f6;
   scroll-behavior: smooth;
}


body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Open Sans',
    'Helvetica Neue',
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #0a192f;
  color: #ccd6f6;
}

/* ──────────────────────────────────────────
   Layout: Sidebar + Content
────────────────────────────────────────── */
.container {
  display: flex;
  height: 100vh;
  align-items: flex-start;     /* top-align both panels */
  background-color: #0a192f;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 5rem 3rem;
  background-color: #0a192f;
  flex: 1;
  max-width: 40%;
  height: 100vh;
}

.content {
  flex: 1;
  padding: 5rem 3rem;          /* match sidebar */
  background-color: #0a192f;
  overflow-y: scroll;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: 5rem;  /* ensure all snaps happen 5rem below the viewport top */
  height: 100vh;
  /* allow natural momentum */
  -webkit-overflow-scrolling: touch;
  /* gentler snap that only kicks in when you near each section */
  scroll-snap-type: y proximity;
  /* keep your 5rem offset */
  scroll-padding-top: 5rem;
}


/* ──────────────────────────────────────────
   Intro (Name, Title, Tagline)
────────────────────────────────────────── */
.intro .logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(-20px);
  animation: logoFade 1s ease-out forwards;
}

.intro .title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #8892b0;
  margin-bottom: 1rem;
}

.intro .tagline {
  font-size: 1rem;
  font-weight: 400;
  color: #8892b0;
  max-width: 20rem;
  line-height: 1.6;
}

/* ──────────────────────────────────────────
   Navigation Links
────────────────────────────────────────── */
.nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.nav a {
  position: relative;
  color: #8892b0;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 1px;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.nav a::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  width: 1.25rem;
  height: 2px;
  background-color: #64ffda;
  transition: transform 0.3s ease-in-out;
}

.nav a.active::before,
.nav a:hover::before {
  transform: translateY(-50%) scaleX(1);
}

.nav a::after {
  display: none;
}

.nav a:hover {
  color: #64ffda !important;
}

.nav a.active {
  color: #64ffda !important;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(100, 255, 218, 0.4) !important;
}

/* ──────────────────────────────────────────
   Social Icons
────────────────────────────────────────── */
.social-icons {
  display: flex;
  gap: 1.2rem;
  margin-top: auto;            /* push icons to bottom */
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: #1d293f;
  color: #8892b0;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  color: #64ffda !important;
  background-color: #112240;
  transform: translateY(-4px);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.4) !important;
}

/* ──────────────────────────────────────────
   Sections & Typography
────────────────────────────────────────── */

/* ───── Remove extra gap between sections ───── */
section {
  margin-bottom: 6rem;    /* kill the 6rem gap */
  /* if you’d rather have each section wrap its content, uncomment: */
  /* height: auto; */
}

/* (you can leave height:100vh if you still want full-screen sections) */


section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #ffffff !important;
  margin-bottom: 1rem;
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #233554;
  margin-top: 0.5rem;
}

section p {
  font-size: 1rem;
  font-weight: 400;
  color: #ccd6f6;
  max-width: 700px;
}

/* ──────────────────────────────────────────
   Reveal Animation
────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ──────────────────────────────────────────
   Cursor Spotlight
────────────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    600px circle at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
    rgba(100, 255, 218, 0.04),
    transparent 80%
  );
  pointer-events: none;
  z-index: 0;
}

/* ──────────────────────────────────────────
   Focus Glow
────────────────────────────────────────── */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(100, 255, 218, 0.5) !important;
  border-radius: 4px;
}

/* ──────────────────────────────────────────
   Logo Fade Keyframes
────────────────────────────────────────── */
@keyframes logoFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ───────────── Experience Grid & Highlight ───────────── */
.experiences {
  display: flex;
  flex-direction: column;
  gap: 2rem;               /* space between entries */
}

.experience {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  transition: 
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* left-column styling (year) */
.experience .year {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff !important;
  text-transform: uppercase;
  white-space: nowrap;
}

/* right-column styling (details) */
.experience .details h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #ccd6f6;
}
.experience .details ul {
  list-style: disc inside;
  color: #8892b0;
}

/* the “active” state when in view */
.experience.active {
  background-color: rgba(100,255,218,0.1);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ───── Align experience details in a strict two-column grid ───── */
.experiences {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience {
  display: grid;
  grid-template-columns: 150px 1fr;   /* left = year, right = details */
  column-gap: 2rem;                   /* space between year & details */
  align-items: start;
}

.experience .year {
  grid-column: 1;
  text-align: left;                  /* if you like the years flush right */
  padding-right: 1rem;
}

.experience .details {
  grid-column: 2;
  margin: 0;                          /* remove any inherited indents */
}

.sidebar { flex: 4;  /* 4 parts    */ }
.content { flex: 6;  /* 6 parts → total 10 */ }

/* ───────────── Projects List & Hover Highlight ───────────── */
.projects {
  display: flex;
  flex-direction: column;
  gap: 2rem;               /* space between projects */
}

.project {
  padding: 1.5rem;
  border-radius: 8px;
  transition:
    background-color 0.3s ease,
    transform        0.3s ease,
    box-shadow       0.3s ease;
  /* optional: if you want a subtle border by default */
  /* border: 1px solid rgba(255,255,255,0.1); */
}

.project h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ccd6f6;
}

.project p {
  margin-bottom: 1rem;
  color: #8892b0;
}

.project .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project .tags span {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #112240;
  border-radius: 999px;
  color: #ffffff !important;
}

/* highlight on hover */
.project:hover {
  background-color: rgba(100,255,218,0.1);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ───── Projects section: push footer to bottom ───── */
#projects {
  display: flex;
  flex-direction: column;
}

#projects .projects {
  /* keep your existing styling; no change needed */
}

#projects .projects-footer {
  margin-top: auto;         /* pushes it down to the bottom of the section */
  font-size: 0.875rem;
  color: #8892b0;
  line-height: 1.4;
}

#projects .projects-footer a {
  color: #ffffff !important;
  text-decoration: none;
}

#projects .projects-footer a:hover {
  text-decoration: underline;
}

/* ───── Sticky footer‐line at bottom of the content pane ───── */
.content {
  /* ensure sticky children work */
  position: relative;
}

.footer-line {
  /* stick to bottom of the scrolling viewport */  
  bottom: 0;
  margin-top: 2rem;           /* space above it */
  padding-top: 1rem;          /* optional extra breathing room */
  background-color: inherit;  /* blend with your bg */
  font-size: 0.875rem;
  color: #8892b0;
  line-height: 1.4;
  z-index: 1;                 /* float above content */
}

.footer-line a {
  color: #ffffff !important;
  text-decoration: none;
}

.footer-line a:hover {
  text-decoration: underline;
}


/* ───── Sidebar logo & nav in white ───── */
.sidebar .logo {
  color: #ffffff !important;
}

.sidebar .nav a {
  color: #ffffff !important;
}

/* teal for hover/active states */
.sidebar .nav a:hover,
.sidebar .nav a.active {
  color: #64ffda !important;
}

/* ───── Section headings in white ───── */
.content section h2 {
  color: #ffffff !important;
}

.content section h2::after {
  background-color: #64ffda !important;
}


/* ───── Match Brittany Chiang’s Typography ───── */

/* 1. Global: use only Inter */
html, body {
  font-family: 'Inter', sans-serif !important;
}

/* 2. Sidebar “logo” (your name) */
.intro .logo {
  font-size: 3rem;            /* Brittany uses ~48px, you were at 2.5rem (~40px) */
  font-weight: 800;           /* extra‐bold */
  line-height: 1.1;
  letter-spacing: -0.02em;    /* slight tighten */
  color: #ffffff;
}

/* 3. Sidebar subtitle (“Frontend Engineer”) */
.intro .title {
  font-size: 1.125rem;        /* ~18px */
  font-weight: 500;
  letter-spacing: 0.025em;
  color: #ccd6f6;
  margin-bottom: 1rem;
}

/* 4. Sidebar tagline */
.intro .tagline {
  font-size: 1rem;            /* ~16px */
  font-weight: 400;
  line-height: 1.5;           /* a bit more breathing room */
  color: #8892b0;
  max-width: 24rem;           /* match Brittany’s line-length */
}

/* 5. Section headings on the right */
.content section h2 {
  font-size: 2.5rem;          /* ~40px */
  font-weight: 700;           /* bold */
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #ffffff !important;
}

.content section h2::after {
  background-color: #64ffda !important;
}

/* 6. Nav links: uppercase + slightly tighter tracking */
.nav a {
  letter-spacing: 0.08em;     /* Emily’s looks around 2px on ~14px text */
  font-weight: 500;
}

@media (max-width: 768px) {
  /* ─── Layout ─── */
  .container {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  /* ─── Sidebar ─── */
  .sidebar {
    width: 100%;
    max-width: none;
    padding: 1.5rem 1rem;
    background-color: #0a192f;
    border-bottom: 1px solid #233554;
  }

  .nav {
    display: none;
  }

  .intro .logo {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    opacity: 1;
    transform: none;
    animation: none;
  }

  .intro .title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .intro .tagline {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    max-width: 100%;
  }

  .social-icons {
    margin: 0 0 1.5rem 0 !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
  }

  /* ─── Content ─── */
  .content {
    width: 100%;
    padding: 1rem;
    height: auto;
    overflow-y: visible;
    scroll-snap-type: none;
  }

  section {
    margin-bottom: 2rem;
    height: auto;
  }

  section h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  section p {
    font-size: 1rem;
  }

  /* ─── Experience ─── */
  .experiences {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .experience {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
  }

  .experience .year {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
  }

  .experience .details h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #ccd6f6;
  }

  .experience .details ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style-position: inside;
    color: #8892b0;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  /* ─── Projects ─── */
  .projects {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .project {
    padding: 1rem;
  }

  .project h3 {
    font-size: 1rem;
  }

  /* ─── Footer ─── */
  .footer-line {
    position: static;
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
  }

  /* ─── Sticky section headings ─── */
  .content section h2 {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: #0a192f;
    margin: 0;
    padding: 0.75rem 1rem 0.5rem;
    z-index: 5;
  }

  /* ─── Hide CodePen on mobile ─── */
  .social-icons a[href*="codepen.io"] {
    display: none !important;
  }
}

em {
      font-style: italic;
    }

    strong {
      font-weight: bold;
    }

    ol {
      margin-left: 1.2rem;
      margin-bottom: 1rem;
    }

    ul {
      margin-left: 1.2rem;
      margin-bottom: 1rem;
    }

    blockquote {
      border-left: 4px solid #888;
      padding-left: 1rem;
      margin: 1rem 0;
      color: #ccc;
      font-style: italic;
    }

    .highlight {
      color: #ffcc99;
      font-style: italic;
    }

    .jalebi-emoji {
      font-size: 1.2rem;
    }
    
a.yellow-link {
  color: yellow;
  text-decoration: none;
}
a.yellow-link:hover {
  text-decoration: underline;
}

a.green-link {
  color: green;
  text-decoration: none;
}

/* ───── AI Project card links ───── */
.project-links {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-sub-links {
  list-style: none;
  margin: 0.4rem 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-link {
  color: #64ffda;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.card-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.sub-detail {
  font-size: 0.9em;
  color: #666;
  margin: 4px 0 8px 0;
  line-height: 1.4;
}

