/* ============================================================
   THIKASH J — PREMIUM INTERACTIVE SCRAPBOOK PORTFOLIO
   A handcrafted, paper-collage aesthetic for an AI/ML Engineer
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Architects+Daughter&family=Special+Elite&family=Kalam:wght@300;400;700&family=Inter:wght@400;500;600;700&family=Boogaloo&family=Lilita+One&family=Oswald:wght@700&family=Abril+Fatface&family=Righteous&family=Permanent+Marker&family=Fredoka+One&family=Black+Han+Sans&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --paper-ivory:   #FAF7F0;
  --paper-white:   #FEFEFE;
  --paper-beige:   #F0EAD6;
  --paper-cream:   #FDF8ED;
  --paper-kraft:   #E6D7BC;
  --charcoal:      #2C2C2A;
  --navy:          #1A2742;
  --blue:          #2860C8;
  --blue-light:    #4A80E4;
  --orange:        #E8621A;
  --orange-light:  #FF8040;
  --sticky-yellow: #FFF5A0;
  --sticky-pink:   #FFD6E8;
  --sticky-blue:   #D0E8FF;
  --sticky-green:  #D6F5D6;

  --shadow-sm:  2px 3px 8px rgba(0,0,0,0.12);
  --shadow-md:  4px 8px 20px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.08);
  --shadow-lg:  6px 14px 35px rgba(0,0,0,0.18), 0 3px 8px rgba(0,0,0,0.10);
  --shadow-pol: 3px 3px 12px rgba(0,0,0,0.20), 6px 8px 25px rgba(0,0,0,0.14);

  --hand:       'Caveat', cursive;
  --sketch:     'Architects Daughter', cursive;
  --type:       'Special Elite', monospace;
  --kalam:      'Kalam', cursive;
  --body:       'Inter', sans-serif;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { display: none; }

body {
  font-family: var(--body);
  color: var(--charcoal);
  overflow-x: hidden;
  min-height: 100vh;
  /* ── MULTI-LAYERED SCRAPBOOK BACKGROUND ── */
  background-color: #F5F2EB;
  background-image:
    /* Layer 1: Fine blue grid lines */
    linear-gradient(rgba(60, 120, 210, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 120, 210, 0.08) 1px, transparent 1px),
    /* Layer 2: Major grid lines every 100px */
    linear-gradient(rgba(60, 120, 210, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 120, 210, 0.15) 1px, transparent 1px),
    /* Layer 3: Warm paper vintage radial glows */
    radial-gradient(ellipse at 15% 15%, rgba(255, 245, 210, 0.7) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 85%, rgba(210, 230, 255, 0.5) 0%, transparent 60%),
    /* Layer 4: Linear warm gradient */
    linear-gradient(160deg, #FAF8F0 0%, #F0EDE0 50%, #EBE5D5 100%);
  background-size:
    20px 20px,
    20px 20px,
    100px 100px,
    100px 100px,
    100% 100%,
    100% 100%,
    100% 100%;
}

canvas { display: none; }

/* ── Loading Screen ────────────────────────────────────────── */
#loading {
  position: fixed;
  inset: 0;
  background: #F5F2EB;
  background-image:
    linear-gradient(rgba(60, 120, 210, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 120, 210, 0.10) 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  font-family: var(--hand);
  font-size: 1.8rem;
  color: var(--navy);
  transition: opacity 0.7s ease;
}
#loading .loading-bar {
  width: 240px;
  height: 6px;
  background: rgba(26,39,66,0.12);
  border-radius: 3px;
  overflow: hidden;
}
#loading .loading-bar-fill {
  height: 100%;
  background: var(--orange);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 3px;
}

/* ── TORN PAPER TAB NAVIGATION ─────────────────────────────── */
#scrapbook-nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.scrapbook-nav {
  display: flex;
  gap: 8px;
  background: rgba(254, 254, 254, 0.92);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  border: 1px dashed rgba(0,0,0,0.12);
  pointer-events: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--sketch);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  background: var(--paper-ivory);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 2px 2px 5px rgba(0,0,0,0.08);
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  clip-path: polygon(0% 0%, 100% 0%, 98% 88%, 85% 100%, 15% 100%, 2% 88%);
}

.nav-tab svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-tab:hover {
  transform: translateY(-4px) rotate(-1.5deg);
  background: #FFF5A0;
  box-shadow: 3px 6px 12px rgba(0,0,0,0.15);
  color: var(--orange);
}

.nav-tab:nth-child(even):hover {
  transform: translateY(-4px) rotate(1.5deg);
  background: #D0E8FF;
}

/* ── Content Overlay ───────────────────────────────────────── */
#content-overlay {
  position: relative;
  width: 100%;
  z-index: 2;
  padding: 0 4%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

section {
  width: 100%;
  max-width: 1450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 0;
  position: relative;
}

/* ── Paper Base ────────────────────────────────────────────── */
.paper {
  background: var(--paper-ivory);
  position: relative;
  border-radius: 2px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    linear-gradient(to bottom right, var(--paper-ivory), var(--paper-cream));
}

/* ── Torn Paper Edge ───────────────────────────────────────── */
.torn-top::before,
.torn-bottom::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px;
  height: 18px;
  background: inherit;
  clip-path: polygon(
    0% 40%, 1.2% 0%, 2.4% 55%, 3.6% 10%, 4.8% 70%, 6% 20%,
    7.2% 80%, 8.4% 30%, 9.6% 65%, 10.8% 5%,  12% 75%, 13.2% 25%,
    14.4% 85%, 15.6% 15%, 16.8% 60%, 18% 0%,  19.2% 70%, 20.4% 30%,
    21.6% 90%, 22.8% 10%, 24% 55%, 25.2% 20%, 26.4% 80%, 27.6% 35%,
    28.8% 65%, 30% 5%,  31.2% 75%, 32.4% 40%, 33.6% 95%, 34.8% 15%,
    36% 60%, 37.2% 25%, 38.4% 85%, 39.6% 0%,  40.8% 50%, 42% 20%,
    43.2% 70%, 44.4% 30%, 45.6% 90%, 46.8% 10%, 48% 65%, 49.2% 5%,
    50.4% 75%, 51.6% 35%, 52.8% 80%, 54% 15%, 55.2% 55%, 56.4% 25%,
    57.6% 85%, 58.8% 0%,  60% 60%, 61.2% 20%, 62.4% 75%, 63.6% 40%,
    64.8% 95%, 66% 10%, 67.2% 65%, 68.4% 30%, 69.6% 80%, 70.8% 5%,
    72% 50%, 73.2% 25%, 74.4% 85%, 75.6% 15%, 76.8% 70%, 78% 35%,
    79.2% 90%, 80.4% 0%, 81.6% 55%, 82.8% 20%, 84% 75%, 85.2% 40%,
    86.4% 65%, 87.6% 10%, 88.8% 80%, 90% 30%, 91.2% 85%, 92.4% 5%,
    93.6% 60%, 94.8% 25%, 96% 70%, 97.2% 15%, 98.4% 50%, 100% 40%,
    100% 100%, 0% 100%
  );
  z-index: 1;
}
.torn-top::before  { top: -16px; }
.torn-bottom::after { bottom: -16px; transform: scaleY(-1); }

/* ── Notebook Paper Lines ──────────────────────────────────── */
.notebook-paper {
  background-color: var(--paper-white);
  background-image:
    linear-gradient(rgba(200, 220, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 100, 80, 0.3) 1px, transparent 1px);
  background-size: 100% 30px, 100% 100%;
  background-position: 0 8px, 68px 0;
  background-repeat: repeat, no-repeat;
  border-left: 3px solid rgba(230, 100, 80, 0.25);
  padding: 36px 40px 36px 75px;
  line-height: 30px;
}

/* ── Grid Paper ────────────────────────────────────────────── */
.grid-paper {
  background-color: var(--paper-beige);
  background-image:
    linear-gradient(rgba(42, 96, 200, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 96, 200, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ── Washi Tape ────────────────────────────────────────────── */
.tape {
  position: absolute;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--hand);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 18px;
  z-index: 20;
  pointer-events: none;
}
.tape svg { width: 14px; height: 14px; fill: currentColor; }
.tape-orange {
  background: rgba(232, 98, 26, 0.75);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.tape-blue {
  background: rgba(40, 96, 200, 0.75);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.tape-cream {
  background: rgba(253, 248, 237, 0.90);
  color: var(--navy);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

/* ── Push Pin ──────────────────────────────────────────────── */
.pin {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 25;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.25));
}

/* ── Paper Clip ────────────────────────────────────────────── */
.clip {
  position: absolute;
  width: 22px;
  height: 50px;
  z-index: 25;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.20));
}

/* ── Sticky Note ───────────────────────────────────────────── */
.sticky {
  padding: 24px 22px 20px;
  box-shadow: var(--shadow-md), inset 0 -1px 0 rgba(0,0,0,0.05);
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
}
.sticky::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 20px 20px;
  border-color: transparent transparent rgba(0,0,0,0.09) transparent;
}
.sticky:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  box-shadow: var(--shadow-lg);
  z-index: 30;
}
.sticky h3 {
  font-family: var(--hand);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1.5px dashed rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sticky h3 svg { width: 20px; height: 20px; stroke: var(--orange); stroke-width: 2; fill: none; }
.sticky-y  { background: var(--sticky-yellow); }
.sticky-p  { background: var(--sticky-pink); }
.sticky-b  { background: var(--sticky-blue); }
.sticky-g  { background: var(--sticky-green); }
.sticky-v  { background: #E6D5FF; }

/* ── Skill Tags inside Stickies ───────────────────────────── */
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 3px;
  font-family: var(--type);
  font-size: 0.8rem;
  color: var(--navy);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.10);
  margin: 4px 4px 0 0;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.06);
}

/* ── Polaroid Frame ────────────────────────────────────────── */
.polaroid {
  background: #FEFEFE;
  padding: 12px 12px 40px;
  box-shadow: var(--shadow-pol);
  border: 1px solid rgba(0,0,0,0.05);
  display: inline-flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34,1.36,0.64,1), box-shadow 0.4s ease;
}
.polaroid:hover {
  box-shadow: 8px 16px 40px rgba(0,0,0,0.22);
  z-index: 30;
}
.polaroid img {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.06);
}
.polaroid-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hand);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

/* ── Section Title ─────────────────────────────────────────── */
.section-title {
  font-family: var(--sketch);
  font-size: 2.2rem;
  color: var(--navy);
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 65%;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  transform: rotate(-0.8deg);
}

/* ── HERO 3-COLUMN LAYOUT ──────────────────────────────────── */
.hero { margin-top: 20px; }

.hero-3col {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 30px;
  align-items: center;
}

@media (max-width: 1150px) {
  .hero-3col {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Hero Left: Polaroid */
.hero-left-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-polaroid-photo {
  width: 250px;
  transform: rotate(-2.5deg);
}
.hero-quote {
  font-family: var(--hand);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin-top: 14px;
  background: var(--paper-cream);
  padding: 8px 14px;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  transform: rotate(1deg);
  border: 1px dashed rgba(0,0,0,0.1);
}

/* Hero Center: Main Card */
.hero-card {
  padding: 32px 36px;
  box-shadow: var(--shadow-lg);
  transform: rotate(0.4deg);
  position: relative;
}
.hero-card h1 {
  font-family: var(--sketch);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-card h2 {
  font-family: var(--type);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--orange);
  font-weight: 400;
  margin: 10px 0 16px;
}
.hero-card p {
  font-family: var(--body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--charcoal);
}

/* Hero Right: Notebook Contact Card */
.hero-contact-notebook {
  background: var(--paper-cream);
  background-image:
    linear-gradient(rgba(42, 96, 200, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 96, 200, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 32px 24px 32px 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: rotate(-1.2deg);
  border-left: 12px solid #E0D5C0;
  border-radius: 2px;
}
/* Notebook Holes along left margin */
.hero-contact-notebook::before {
  content: '';
  position: absolute;
  left: -9px; top: 15px; bottom: 15px;
  width: 6px;
  background-image: radial-gradient(circle, #555 40%, transparent 45%);
  background-size: 6px 30px;
}

.notebook-contact-title {
  font-family: var(--sketch);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 2px stroke var(--orange);
}

.contact-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--type);
  font-size: 0.85rem;
  color: var(--navy);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.contact-item-row:hover {
  transform: translateX(4px);
  color: var(--orange);
}
.contact-item-row svg {
  width: 18px;
  height: 18px;
  stroke: var(--orange);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--type);
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 3px 3px 0 var(--blue);
  border: 1.5px solid var(--navy);
}
.btn-primary:hover {
  transform: translate(-2px,-2px);
  box-shadow: 5px 5px 0 var(--blue);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.12);
}
.btn-outline:hover {
  background: var(--paper-beige);
  transform: translate(-2px,-2px);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.14);
}

/* ── About & Skills Side-by-Side ───────────────────────────── */
.about-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}
@media (max-width: 900px) { .about-skills-grid { grid-template-columns: 1fr; } }

.about-card {
  box-shadow: var(--shadow-lg);
  transform: rotate(-0.5deg);
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
  padding: 28px 32px;
}
.about-card:hover { transform: rotate(0deg); }
.about-text {
  font-family: var(--kalam);
  font-size: 1.25rem;
  line-height: 28px;
  color: #333;
  margin-top: 8px;
}

/* ── Categorized Skills Sheet ─────────────────────────────── */
.skills-sheet {
  background: var(--paper-ivory);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  transform: rotate(0.8deg);
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
}

.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-category-block {
  padding: 12px;
  border: 1px dashed rgba(40,96,200,0.25);
  background: rgba(255,255,255,0.5);
  border-radius: 3px;
}

.skill-category-block h3 {
  font-family: var(--sketch);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.skill-category-block h3 svg { width: 18px; height: 18px; stroke: var(--orange); stroke-width: 2; fill: none; }

/* ── Education Grid ────────────────────────────────────────── */
.edu-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 860px) { .edu-skills-grid { grid-template-columns: 1fr; } }

.skills-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.edu-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.edu-card {
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
}
.edu-card:hover { transform: rotate(0deg); transition: 0.3s ease; }

/* ── Achievements Card & Slider ───────────────────────────── */
.achieve-card {
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
  transform: rotate(0.8deg);
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
}
.achieve-card:hover { transform: rotate(0deg); transition: 0.3s ease; }

.btn-achieve-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  background: var(--paper-beige);
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.08);
}
.btn-achieve-nav:hover {
  background: var(--navy);
  color: #fff;
  transform: scale(1.1);
}

.achieve-slider-wrapper {
  position: relative;
  min-height: 145px;
  margin-top: 10px;
}

.achieve-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(16px) rotate(1.5deg);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.36, 0.64, 1);
  background: #FFFFFF;
  border: 1px dashed rgba(0,0,0,0.12);
  padding: 16px 18px;
  border-radius: 4px;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.05);
}

.achieve-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0) rotate(-0.5deg);
  pointer-events: auto;
}

.achieve-badge {
  display: inline-block;
  font-family: var(--type);
  font-size: 0.76rem;
  font-weight: bold;
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.achieve-slide h3 {
  font-family: var(--sketch);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.achieve-slide p {
  font-family: var(--type);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #444;
}

.achieve-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.achieve-dot.active {
  width: 20px;
  border-radius: 10px;
  background: var(--orange);
}

.edu-entry h3 {
  font-family: var(--sketch);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.edu-entry h4 {
  font-family: var(--type);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--orange);
  margin-bottom: 4px;
}
.edu-entry .edu-meta {
  font-family: var(--hand);
  font-size: 1.1rem;
  color: #555;
}
.edu-divider {
  border: none;
  border-top: 1px dashed rgba(0,0,0,0.15);
  margin: 18px 0;
}

/* ── Ink-Drawn Experience Timeline ────────────────────────── */
.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  padding-left: 24px;
}

.exp-timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 12px; bottom: 12px;
  width: 2px;
  background: rgba(0, 0, 0, 0.25);
}

.exp-card-wrap {
  position: relative;
}

.exp-node {
  position: absolute;
  left: -24px;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(232, 98, 26, 0.25);
  z-index: 10;
}

.exp-card {
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
}
.exp-card:nth-child(1) { transform: rotate(0.4deg); }
.exp-card:nth-child(2) { transform: rotate(-0.4deg); }
.exp-card:hover { transform: rotate(0deg) !important; box-shadow: var(--shadow-lg); z-index: 10; transition: 0.3s; }

.exp-card-inner {
  display: flex;
  gap: 24px;
  align-items: center;
}

@media (max-width: 650px) {
  .exp-card-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .exp-logo-box {
    border-right: none;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
    padding-right: 0;
    padding-bottom: 12px;
    width: 100%;
    align-items: flex-start;
  }
}

.exp-logo-box {
  width: 130px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-right: 20px;
  border-right: 1px dashed rgba(0, 0, 0, 0.15);
}

.exp-content {
  flex: 1;
}

.exp-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}

.exp-header-row h3 {
  font-family: var(--sketch);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0;
}

.exp-date {
  font-family: var(--type);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.5px;
}

.exp-card h4 {
  font-family: var(--type);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--blue);
  margin-bottom: 12px;
}
.exp-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #444;
}

.timeline-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
  position: relative;
  z-index: 5;
}

/* ── Projects Responsive Grid ──────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}
@media (max-width: 1200px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .projects-grid { grid-template-columns: 1fr; } }

.proj-card {
  background: var(--paper-white);
  padding: 16px 16px 20px;
  box-shadow: var(--shadow-pol);
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.35s cubic-bezier(0.34,1.36,0.64,1), box-shadow 0.35s ease;
}
.proj-card:nth-child(1) { transform: rotate(-1.5deg); }
.proj-card:nth-child(2) { transform: rotate(1.8deg); }
.proj-card:nth-child(3) { transform: rotate(-1.0deg); }
.proj-card:nth-child(4) { transform: rotate(0.8deg); }
.proj-card:hover {
  transform: rotate(0deg) translateY(-8px) !important;
  box-shadow: 8px 18px 40px rgba(0,0,0,0.22);
  z-index: 20;
}

.proj-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 12px;
}

.proj-sticky-title {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--hand);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.07);
  transform: rotate(-1deg);
  margin-bottom: 10px;
}

.proj-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #4a4a48;
  margin-bottom: 12px;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.tech-chip {
  font-family: var(--type);
  font-size: 0.72rem;
  padding: 2px 8px;
  background: var(--paper-beige);
  color: var(--navy);
  border: 1px solid rgba(0,0,0,0.08);
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--type);
  font-size: 0.78rem;
  color: var(--navy);
  text-decoration: none;
  border: 1.5px solid var(--navy);
  background: transparent;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.12);
  transition: all 0.2s ease;
}
.btn-github svg { width: 14px; height: 14px; fill: currentColor; }
.btn-github:hover {
  background: var(--navy);
  color: #fff;
  transform: translate(-1px,-1px);
  box-shadow: 3px 3px 0 var(--blue);
}

/* ── Certs & Journal ───────────────────────────────────────── */
.cert-journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 860px) { .cert-journal-grid { grid-template-columns: 1fr; } }

.cert-stack {
  position: relative;
  height: 520px;
}
.cert-pol {
  position: absolute;
  width: 440px;
  max-width: 100%;
  background: #FEFEFE;
  padding: 12px 12px 48px;
  box-shadow: var(--shadow-pol);
  border: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34,1.36,0.64,1), box-shadow 0.4s ease;
}
.cert-pol:hover { box-shadow: 8px 20px 48px rgba(0,0,0,0.28); z-index: 30 !important; transform: rotate(0deg) scale(1.04) !important; }

.cert-pol-face {
  height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}
.cert-pol-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cert-pol-face svg {
  width: 28px;
  height: 28px;
  stroke: var(--orange);
  stroke-width: 1.8;
  fill: none;
}
.cert-pol-face p {
  font-family: var(--type);
  font-size: 0.82rem;
  color: var(--navy);
  line-height: 1.35;
}
.cert-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hand);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
}

.cert-pol:nth-child(1) { left: 0px;   top: 30px;  transform: rotate(-5deg);  z-index: 3; }
.cert-pol:nth-child(2) { left: 70px;  top: 10px;  transform: rotate(3deg);   z-index: 2; }
.cert-pol:nth-child(3) { left: 140px; top: 45px;  transform: rotate(-2deg);  z-index: 1; }
.cert-pol:hover { z-index: 10 !important; transform: rotate(0deg) scale(1.05) !important; }

/* Journal card */
.journal-card {
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s ease;
}
.journal-card:hover { transform: rotate(0deg); }
.journal-title {
  font-family: var(--sketch);
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.journal-title svg { width: 22px; height: 22px; stroke: var(--orange); stroke-width: 2; fill: none; }

.journal-paper-title {
  font-family: var(--type);
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 10px;
}
.journal-meta {
  font-family: var(--hand);
  font-size: 1.2rem;
  color: var(--orange);
}

/* ── Contact Board / Footer ────────────────────────────────── */
.contact-board {
  background: var(--paper-beige);
  background-image:
    linear-gradient(rgba(42,96,200,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,96,200,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
  margin-top: 24px;
}
@media (max-width: 860px) { .contact-links { flex-wrap: wrap; } }

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--paper-white);
  border: 1px solid rgba(0,0,0,0.09);
  box-shadow: var(--shadow-sm);
  font-family: var(--type);
  font-size: 0.85rem;
  color: var(--navy);
  text-decoration: none;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-chip svg { width: 16px; height: 16px; stroke: var(--orange); stroke-width: 2; fill: none; }
.contact-chip:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 4px 8px 18px rgba(0,0,0,0.13);
  border-color: var(--orange);
}

/* ── Scroll-Reveal Animations ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px) rotate(var(--reveal-rot, 0deg));
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.34,1.2,0.64,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) rotate(var(--reveal-rot-final, 0deg));
}

.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.15s; }
.reveal-d3 { transition-delay: 0.25s; }
.reveal-d4 { transition-delay: 0.35s; }

/* ── Ransom Note Letters ───────────────────────────────────── */
.rl {
  display: inline-block;
  line-height: 1;
  position: relative;
  filter: drop-shadow(1px 2px 3px rgba(0,0,0,0.18));
  transition: transform 0.2s ease;
}
.rl:hover {
  transform: scale(1.15) rotate(0deg) !important;
  z-index: 5;
}
.rl-space { display: inline-block; width: 0.35em; }

.rl-0 { font-family: 'Abril Fatface', serif; font-size: 1.05em; color: #1A2742; transform: rotate(-3deg); background: #fff; padding: 2px 4px 0; border: 1.5px solid rgba(0,0,0,0.12); }
.rl-1 { font-family: 'Boogaloo', cursive; font-size: 1.12em; color: #E8621A; transform: rotate(2deg); background: #FFF5A0; padding: 2px 3px 0; border: 1.5px solid rgba(0,0,0,0.08); }
.rl-2 { font-family: 'Oswald', sans-serif; font-size: 0.92em; font-weight: 700; color: #fff; background: #1A2742; transform: rotate(-1deg); padding: 3px 4px 1px; }
.rl-3 { font-family: 'Lilita One', cursive; font-size: 1.08em; color: #2860C8; transform: rotate(3deg); background: #D0E8FF; padding: 2px 4px 0; border: 1.5px solid rgba(40,96,200,0.2); }
.rl-4 { font-family: 'Righteous', cursive; font-size: 0.95em; color: #1A2742; transform: rotate(-2deg); background: #F0EAD6; padding: 2px 4px 0; border: 1.5px solid rgba(0,0,0,0.10); }
.rl-5 { font-family: 'Permanent Marker', cursive; font-size: 1.0em; color: #111; transform: rotate(1.5deg); background: #FFD6E8; padding: 2px 3px 0; border: 1.5px solid rgba(0,0,0,0.08); }
.rl-6 { font-family: 'Fredoka One', cursive; font-size: 1.10em; color: #E8621A; transform: rotate(-4deg); background: #fff; padding: 2px 4px 0; border: 1.5px solid rgba(232,98,26,0.2); }
.rl-7 { font-family: 'Black Han Sans', sans-serif; font-size: 0.88em; color: #fff; background: #2860C8; transform: rotate(2.5deg); padding: 3px 5px 1px; }
.rl-8 { font-family: 'Special Elite', monospace; font-size: 0.98em; color: #333; transform: rotate(-1.5deg); background: #D6F5D6; padding: 2px 4px 0; border: 1.5px solid rgba(0,0,0,0.08); }
.rl-9 { font-family: 'Caveat', cursive; font-weight: 700; font-size: 1.18em; color: #1A2742; transform: rotate(3.5deg); background: #FAF7F0; padding: 2px 3px 0; border: 1.5px solid rgba(0,0,0,0.10); }

.hero-card h1 .rl { margin: 0 1px; vertical-align: middle; }
.section-title .rl { margin: 0 1px; vertical-align: middle; font-size: 0.88em; }
