/* =========================================================
   Anjali Devi — v4  "Anjali's Journey"
   Playful illustrated theme + scroll-driven cartoon character
   ========================================================= */

:root {
  --cream:  #fcf5e9;
  --cream-2:#f6ebd8;
  --ink:    #2a2320;
  --coral:  #ff6b5e;
  --teal:   #2f9c8f;
  --teal-d: #2f6f6a;
  --yellow: #ffd166;
  --peri:   #8b8bff;
  --muted:  #8a7f76;
  --line:   rgba(42,35,32,0.14);

  --f-disp: "Fraunces", serif;
  --f-body: "Plus Jakarta Sans", sans-serif;

  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --ease: cubic-bezier(0.62, 0.05, 0.23, 0.99);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400; line-height: 1.5; overflow-x: hidden; cursor: none;
}
@media (pointer: coarse) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
em { font-style: italic; }
::selection { background: var(--coral); color: #fff; }

.eyebrow { display: inline-block; font-family: var(--f-body); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); margin-bottom: 1.4rem; }
.eyebrow--light { color: var(--yellow); }

/* =========================================================
   Loader
   ========================================================= */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--coral); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; }
.loader__bounce { font-size: 4rem; animation: wave 1s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%,100%{ transform: rotate(0); } 25%{ transform: rotate(18deg);} 75%{ transform: rotate(-12deg);} }
.loader__txt { font-family: var(--f-disp); font-weight: 600; font-size: 1.2rem; }

/* =========================================================
   Cursor
   ========================================================= */
.cursor { position: fixed; top:0; left:0; width: 28px; height: 28px; margin:-14px 0 0 -14px; border-radius: 50%;
  border: 2px solid var(--ink); z-index: 250; pointer-events: none; transition: transform .15s ease-out, background .25s, width .25s, height .25s; }
.cursor.is-hover { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(255,107,94,0.25); border-color: var(--coral); }
@media (pointer: coarse) { .cursor { display: none; } }

/* =========================================================
   Cartoon character stage
   ========================================================= */
.stage { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.char-wrap { position: absolute; left: 0; bottom: 2.5vh; width: clamp(120px, 13vw, 188px); will-change: transform; }
.char { width: 100%; height: auto; overflow: visible; display: block; }
.char-shadow { fill: rgba(42,35,32,0.12); }
.prop { position: absolute; left: 0; bottom: 2.2vh; width: clamp(96px, 10vw, 150px); opacity: 0; will-change: transform, opacity; }
.prop svg { width: 100%; height: auto; }

.bubble { position: absolute; left: 50%; top: -54px; transform: translateX(-50%) scale(0);
  background: #fff; color: var(--ink); font-family: var(--f-disp); font-weight: 600; font-size: 0.92rem;
  white-space: nowrap; padding: 0.6rem 1rem; border-radius: 16px; border: 2px solid var(--ink);
  box-shadow: 3px 4px 0 var(--ink); transform-origin: bottom center; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px;
  background: #fff; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateX(-50%) rotate(45deg); }
@media (max-width: 720px) { .bubble { font-size: 0.76rem; padding: 0.45rem 0.7rem; } }

/* =========================================================
   Nav
   ========================================================= */
.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 90;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem var(--pad); transition: transform .5s var(--ease); }
.nav.is-hidden { transform: translateY(-130%); }
.nav__brand { font-family: var(--f-disp); font-weight: 700; font-size: 1.2rem; }
.nav__menu { display: flex; align-items: center; gap: clamp(1rem,2.4vw,2rem); font-weight: 500; font-size: 0.92rem; }
.nav__menu a:not(.nav__cta):hover { color: var(--coral); }
.nav__cta { background: var(--ink); color: var(--cream); border-radius: 100px; padding: 0.5rem 1.2rem;
  border: 2px solid var(--ink); transition: background .3s, color .3s; }
.nav__cta:hover { background: var(--coral); border-color: var(--coral); }
@media (max-width: 560px) { .nav__menu a:not(.nav__cta) { display: none; } }

/* =========================================================
   Buttons
   ========================================================= */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--f-disp); font-weight: 600;
  font-size: 1.02rem; padding: 0.85rem 1.5rem; border-radius: 100px; border: 2px solid var(--ink);
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s; }
.btn i { font-style: normal; transition: transform .3s var(--ease); }
.btn--solid { background: var(--ink); color: var(--cream); box-shadow: 4px 5px 0 rgba(42,35,32,0.2); }
.btn--solid:hover { background: var(--coral); border-color: var(--coral); transform: translate(-2px,-2px); box-shadow: 6px 7px 0 rgba(42,35,32,0.25); }
.btn--solid:hover i { transform: translate(3px,-3px); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); transform: translate(-2px,-2px); }

/* =========================================================
   HERO
   ========================================================= */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--pad) 4rem; position: relative; }
.hero__inner { max-width: 60%; }
.kicker { display: inline-block; font-family: var(--f-body); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.4rem;
  background: rgba(47,156,143,0.12); padding: 0.4rem 0.9rem; border-radius: 100px; }
.hero__title { font-family: var(--f-disp); font-weight: 600; font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 1.0; letter-spacing: -0.02em; }
.hero__title em { color: var(--coral); font-style: italic; }
.squiggle { position: relative; white-space: nowrap; }
.squiggle::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.14em;
  background: var(--yellow); z-index: -1; border-radius: 4px; }
.hero__lead { margin: 1.8rem 0 2.2rem; max-width: 46ch; font-size: clamp(1rem,1.4vw,1.18rem); color: var(--muted); }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero__scrollcue { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  font-family: var(--f-body); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 820px) { .hero__inner { max-width: 100%; } }

/* =========================================================
   Marquee
   ========================================================= */
.strip { background: var(--ink); color: var(--cream); padding: 1.1rem 0; overflow: hidden; }
.strip__track { display: flex; align-items: center; gap: 1.6rem; width: max-content; white-space: nowrap;
  font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.3rem,3.5vw,2.4rem); will-change: transform; }
.strip__track i { color: var(--yellow); font-style: normal; }

/* =========================================================
   Section base
   ========================================================= */
.about, .stats, .expertise, .work, .certs, .contact { padding: clamp(5rem,12vh,9rem) var(--pad); position: relative; }

/* About */
.about__big { font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.6rem,4.6vw,3.6rem);
  line-height: 1.16; letter-spacing: -0.01em; max-width: 24ch; margin-bottom: clamp(2.5rem,6vw,4.5rem); }
.about__big em { color: var(--teal); }
.about__big .hl { color: var(--coral); font-weight: 700; }
.reveal-text .word { display: inline-block; opacity: 0.2; transition: opacity .15s linear; }
.about__cols { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1.2rem; max-width: 70%; }
.bubble-card { background: var(--cream-2); border: 2px solid var(--ink); border-radius: 20px;
  padding: clamp(1.4rem,2.5vw,2rem); box-shadow: 4px 5px 0 rgba(42,35,32,0.1); }
.bubble-card h4 { font-family: var(--f-disp); font-weight: 600; font-size: 1.25rem; margin-bottom: 0.6rem; }
.bubble-card p { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 820px) { .about__cols { max-width: 100%; } }

/* Stats (dark) */
.stats { background: var(--ink); color: var(--cream); border-radius: 36px; margin: 0 clamp(0.5rem,2vw,1.5rem); }
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-top: 1.5rem; }
.stat__num { display: block; font-family: var(--f-disp); font-weight: 700; font-size: clamp(2.8rem,8vw,6.5rem);
  line-height: 0.9; color: var(--yellow); }
.stat__label { display: block; margin-top: 0.6rem; font-size: 0.86rem; color: rgba(252,245,233,0.7); max-width: 18ch; }
@media (max-width: 760px) { .stats__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 420px) { .stats__grid { grid-template-columns: 1fr; } }

/* Expertise cards */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.1rem; max-width: 78%; }
.card { background: var(--cream-2); border: 2px solid var(--ink); border-radius: 20px; padding: clamp(1.4rem,2.2vw,1.9rem);
  min-height: 200px; box-shadow: 4px 5px 0 rgba(42,35,32,0.1); transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translate(-3px,-3px); box-shadow: 7px 8px 0 rgba(42,35,32,0.16); }
.card__no { font-family: var(--f-disp); font-weight: 700; color: var(--coral); font-size: 1rem; }
.card h3 { font-family: var(--f-disp); font-weight: 600; font-size: 1.35rem; margin: 0.5rem 0 0.7rem; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card--hot { background: var(--coral); color: #fff; }
.card--hot .card__no { color: var(--yellow); }
.card--hot p { color: rgba(255,255,255,0.9); }
.card--tools .cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.card--tools .cloud span { font-size: 0.72rem; border: 1.5px solid var(--ink); border-radius: 100px; padding: 0.22rem 0.6rem; }
@media (max-width: 920px) { .cards { grid-template-columns: repeat(2,1fr); max-width: 100%; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* Experience */
.jobs { list-style: none; max-width: 88%; }
.job { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem,5vw,4rem); padding: clamp(1.6rem,4vw,2.6rem) 0;
  border-top: 2px solid var(--line); transition: padding-left .4s var(--ease); }
.jobs .job:last-child { border-bottom: 2px solid var(--line); }
.job:hover { padding-left: 1rem; }
.job__period { font-weight: 600; font-size: 0.82rem; color: var(--teal); }
.job__meta h3 { font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.4rem,3.2vw,2.4rem); line-height: 1.05; margin: 0.4rem 0; }
.job__co { color: var(--muted); font-size: 0.95rem; }
.job__points { list-style: none; display: grid; gap: 0.6rem; align-content: start; }
.job__points li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: 0.95rem; }
.job__points li::before { content: "✦"; position: absolute; left: 0; color: var(--coral); }
.job__points b { color: var(--ink); font-weight: 700; }
@media (max-width: 760px) { .jobs { max-width: 100%; } .job { grid-template-columns: 1fr; gap: 0.8rem; } }

/* Credentials */
.certs__row { display: flex; flex-wrap: wrap; gap: 0.7rem; max-width: 80%; }
.certs__row span { font-family: var(--f-disp); font-weight: 500; font-size: clamp(0.92rem,1.5vw,1.18rem);
  border: 2px solid var(--ink); border-radius: 100px; padding: 0.5rem 1.1rem; background: var(--cream-2);
  transition: background .25s, color .25s, transform .25s; }
.certs__row span:hover { background: var(--yellow); transform: translateY(-3px); }
@media (max-width: 760px) { .certs__row { max-width: 100%; } }

/* Contact */
.contact { background: var(--teal); color: #fff; border-radius: 36px 36px 0 0; text-align: center; }
.contact .eyebrow { color: rgba(255,255,255,0.7); }
.contact__big { font-family: var(--f-disp); font-weight: 600; font-size: clamp(2.4rem,9vw,7rem); line-height: 1.02; margin-bottom: 2rem; }
.contact__big em { color: var(--yellow); }
.contact__mail { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--f-disp); font-weight: 600;
  font-size: clamp(1.2rem,4vw,2.6rem); margin-bottom: 2.5rem; will-change: transform; border-bottom: 3px solid transparent; transition: border-color .3s; }
.contact__mail i { font-style: normal; transition: transform .3s var(--ease); display: inline-block; }
.contact__mail:hover { border-color: #fff; }
.contact__mail:hover i { transform: translate(6px,-6px); }
.contact__links { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(1.2rem,4vw,2.5rem); font-weight: 500; }
.contact__links a { position: relative; }
.contact__links a:hover { color: var(--yellow); }

/* Footer */
.footer { background: var(--teal); color: rgba(255,255,255,0.8); display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem; padding: 2rem var(--pad) 6rem; font-size: 0.82rem; }
.footer__mid { color: rgba(255,255,255,0.6); }
.footer__versions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; }
.footer__vlabel { color: rgba(255,255,255,0.55); }
.footer__versions a { position: relative; transition: color .25s; }
.footer__versions a:hover { color: var(--yellow); }
.footer__versions a.is-current { color: var(--yellow); font-weight: 700; }
.footer button { background: none; border: none; font: inherit; color: #fff; cursor: none; }
@media (pointer: coarse) { .footer button { cursor: pointer; } }

/* Desktop: reserve a side "lane" so cartoon Anjali never overlaps content */
@media (min-width: 1024px) {
  #about, #expertise, #certs { padding-left: clamp(13rem, 14vw, 18rem); }
  #stats, #work, #contact { padding-right: clamp(13rem, 14vw, 18rem); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .word { opacity: 1 !important; }
}
