/* =========================================================
   Anjali Devi — v3  "AI Lab"
   Deep dark · iridescent gradient · 3D core · glassmorphism
   ========================================================= */

:root {
  --bg:     #07070e;
  --bg-2:   #0c0c18;
  --fg:     #ECECF6;
  --muted:  #8c8ca6;
  --muted-d:#62627a;
  --violet: #7b61ff;
  --cyan:   #2fe6e0;
  --pink:   #ff5da2;
  --line:   rgba(236,236,246,0.10);
  --glass:  rgba(255,255,255,0.035);
  --grad:   linear-gradient(110deg, var(--violet), var(--pink) 55%, var(--cyan));

  --f-disp: "Sora", sans-serif;
  --f-body: "Inter", sans-serif;
  --f-mono: "Space Mono", monospace;

  --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; text-rendering: optimizeLegibility; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-weight: 300;
  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; }
::selection { background: var(--violet); color: #fff; }

.mono { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.02em; text-transform: uppercase; }
.line { display: block; overflow: hidden; padding-bottom: 0.05em; }
.line__in { display: block; }
em { font-style: normal; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* =========================================================
   Background atmosphere
   ========================================================= */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.orb--v { width: 46vw; height: 46vw; background: #4b2bd1; top: -10vw; left: -8vw; }
.orb--c { width: 38vw; height: 38vw; background: #0e7a78; bottom: -6vw; right: -6vw; opacity: 0.4; }
.orb--p { width: 30vw; height: 30vw; background: #b0246b; top: 40%; left: 55%; opacity: 0.28; }
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}
main { position: relative; z-index: 2; }

/* =========================================================
   Loader
   ========================================================= */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; align-items: center; justify-content: center; }
.loader__center { text-align: center; width: min(420px, 70vw); }
.loader__tag { color: var(--muted); display: block; margin-bottom: 1.4rem; }
.loader__pct { font-family: var(--f-disp); font-weight: 700; font-size: clamp(3.5rem,10vw,7rem); line-height: 1; letter-spacing: -0.03em; }
.loader__pct i { font-style: normal; font-size: 0.35em; vertical-align: super;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.loader__bar { height: 2px; background: var(--line); margin-top: 1.6rem; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--grad); }

/* =========================================================
   Cursor
   ========================================================= */
.cursor { position: fixed; top:0; left:0; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: var(--cyan); z-index: 300; pointer-events: none; }
.cursor-ring { position: fixed; top:0; left:0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; border: 1px solid rgba(236,236,246,0.4); z-index: 300; pointer-events: none;
  transition: width .35s var(--ease), height .35s var(--ease), border-color .3s, background .3s; }
.cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--violet); background: rgba(123,97,255,0.12); }
@media (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* =========================================================
   Nav
   ========================================================= */
.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 90;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.3rem var(--pad); transition: transform .5s var(--ease); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { font-family: var(--f-disp); font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: 0.55rem; }
.nav__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px var(--violet); }
.nav__status { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--muted); }
.nav__menu { display: flex; align-items: center; gap: 1.3rem; font-family: var(--f-mono); font-size: 0.78rem; }
.nav__menu a:not(.nav__cta) { color: var(--muted); transition: color .3s; }
.nav__menu a:not(.nav__cta):hover { color: var(--fg); }
.nav__cta { border: 1px solid var(--line); border-radius: 100px; padding: 0.45rem 1rem; transition: border-color .3s, background .3s; }
.nav__cta:hover { border-color: var(--violet); background: rgba(123,97,255,0.15); }
@media (max-width: 820px) { .nav__status { display: none; } }
@media (max-width: 520px) { .nav__menu a:not(.nav__cta) { display: none; } }

/* =========================================================
   Buttons
   ========================================================= */
.btn { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--f-disp);
  font-weight: 600; font-size: 0.98rem; padding: 0.9rem 1.6rem; border-radius: 100px;
  transition: transform .35s var(--ease), box-shadow .35s; }
.btn i { font-style: normal; transition: transform .35s var(--ease); }
.btn--grad { background: var(--grad); color: #0a0a12; background-size: 180% 180%; }
.btn--grad:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -10px rgba(123,97,255,0.6); }
.btn--grad:hover i { transform: translate(3px,-3px); }
.btn--line { border: 1px solid var(--line); color: var(--fg); }
.btn--line:hover { transform: translateY(-3px); border-color: var(--fg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { min-height: 100svh; position: relative; padding: 0 var(--pad);
  display: flex; flex-direction: column; justify-content: center; }
#lab { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__content { position: relative; z-index: 2; max-width: min(760px, 100%); }
.hero__eyebrow { color: var(--muted); display: block; margin-bottom: 1.6rem; }
.hero__title { font-family: var(--f-disp); font-weight: 800; font-size: clamp(2.8rem, 8vw, 7rem);
  line-height: 0.92; letter-spacing: -0.04em; }
.hero__title em { background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-style: italic; }
.hero__lead { margin: 1.8rem 0 2.2rem; max-width: 42ch; color: var(--muted); font-size: clamp(1rem,1.4vw,1.15rem); }
.hero__lead strong { color: var(--fg); font-weight: 500; }
.hero__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.hero__readout { position: absolute; right: var(--pad); bottom: clamp(2rem,7vh,4rem); z-index: 2;
  display: flex; flex-direction: column; gap: 0.5rem; text-align: right; color: var(--muted); }
.hero__readout i { color: var(--muted-d); font-style: normal; margin-right: 0.5rem; }
.hero__scroll { position: absolute; left: var(--pad); bottom: clamp(2rem,7vh,4rem); z-index: 2; color: var(--muted); }
@media (max-width: 760px) { .hero__readout { display: none; } .hero__content { max-width: none; } }

/* =========================================================
   Strip
   ========================================================= */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.2rem 0; overflow: hidden; background: rgba(255,255,255,0.015); }
.strip__track { display: flex; align-items: center; gap: 2rem; width: max-content; white-space: nowrap;
  font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.3rem,3.5vw,2.6rem);
  letter-spacing: -0.02em; will-change: transform; }
.strip__track i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }

/* =========================================================
   Sections shared
   ========================================================= */
section { padding: clamp(5rem,11vh,9rem) var(--pad); position: relative; }
.head__idx { color: var(--muted); display: inline-block; margin-bottom: 1.4rem; }
.head { margin-bottom: clamp(2.5rem,6vw,4.5rem); }
.head__title { font-family: var(--f-disp); font-weight: 700; font-size: clamp(2rem,5.5vw,4.5rem);
  line-height: 1.02; letter-spacing: -0.03em; }

.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* =========================================================
   About
   ========================================================= */
.about__big { font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.6rem,4.6vw,3.8rem);
  line-height: 1.14; letter-spacing: -0.02em; max-width: 21ch; margin-bottom: clamp(3rem,7vw,5.5rem); }
.about__big em { font-style: italic; color: var(--muted); }
.about__big .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.reveal-text .word { display: inline-block; opacity: 0.16; transition: opacity .15s linear; }

.about__grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: start; }
.about__img { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); }
.about__img img { transition: transform 1.1s var(--ease); filter: saturate(1.05) contrast(1.02); }
.about__img:hover img { transform: scale(1.05); }
.about__img-tag { position: absolute; left: 0.9rem; bottom: 0.8rem; color: var(--fg); text-shadow: 0 1px 8px rgba(0,0,0,0.7); }
.about__cols { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1rem; }
.about__cols article { padding: clamp(1.4rem,2.5vw,2rem); }
.about__no { display: inline-block; color: var(--violet); margin-bottom: 1.2rem; }
.about__cols h4 { font-family: var(--f-disp); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.6rem; }
.about__cols p { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 760px) { .about__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Stats
   ========================================================= */
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 1.5rem; }
.stat { padding: clamp(1.2rem,3vw,2rem) 1.2rem clamp(1.2rem,3vw,2rem) 0; border-top: 1px solid var(--line); }
.stat__num { display: block; font-family: var(--f-disp); font-weight: 700; font-size: clamp(2.8rem,8vw,7rem);
  line-height: 0.86; letter-spacing: -0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { display: block; margin-top: 0.9rem; font-size: 0.86rem; color: var(--muted); max-width: 16ch; }
@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: 1rem; }
.card { padding: clamp(1.6rem,2.5vw,2.2rem); display: flex; flex-direction: column; min-height: 270px;
  position: relative; overflow: hidden; transition: transform .45s var(--ease), border-color .45s, background .45s; }
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .45s;
  background: radial-gradient(circle at 30% 0%, rgba(123,97,255,0.22), transparent 60%); }
.card:hover { transform: translateY(-6px); border-color: rgba(123,97,255,0.5); }
.card:hover::before { opacity: 1; }
.card__no { color: var(--violet); }
.card h3 { font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.25rem,2vw,1.65rem);
  letter-spacing: -0.02em; margin: auto 0 0.8rem; padding-top: 1.4rem; position: relative; }
.card p { color: var(--muted); font-size: 0.92rem; position: relative; }
.card__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; position: relative; }
.card__tags li { font-size: 0.66rem; border: 1px solid var(--line); border-radius: 100px; padding: 0.25rem 0.6rem; color: var(--muted); }
.card--hot { background: linear-gradient(150deg, rgba(123,97,255,0.18), rgba(255,93,162,0.10)); border-color: rgba(123,97,255,0.4); }
.card--hot .card__no { color: var(--cyan); }
.card--tools { justify-content: flex-start; }
.card--tools h3 { margin: 0 0 1.2rem; padding-top: 1rem; }
.card__cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card__cloud span { font-size: 0.66rem; border: 1px solid var(--line); border-radius: 100px; padding: 0.28rem 0.65rem; color: var(--muted); }
@media (max-width: 920px) { .cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* =========================================================
   Experience
   ========================================================= */
.jobs { list-style: none; }
.job { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem,5vw,5rem);
  padding: clamp(1.8rem,4vw,3rem) 0; border-top: 1px solid var(--line); transition: padding-left .5s var(--ease); }
.jobs .job:last-child { border-bottom: 1px solid var(--line); }
.job:hover { padding-left: clamp(0.6rem,2vw,1.4rem); }
.job__period { color: var(--muted-d); }
.job__meta h3 { font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.4rem,3.2vw,2.6rem);
  line-height: 1.04; letter-spacing: -0.025em; margin: 0.6rem 0 0.4rem; transition: color .35s; }
.job:hover .job__meta h3 { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.job__co { color: var(--muted); font-size: 0.95rem; }
.job__points { list-style: none; display: grid; gap: 0.7rem; align-content: start; }
.job__points li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: 0.95rem; }
.job__points li::before { content: "▸"; position: absolute; left: 0; color: var(--violet); }
.job__points b { color: var(--fg); font-weight: 600; }
@media (max-width: 760px) { .job { grid-template-columns: 1fr; gap: 1rem; } }

/* =========================================================
   Credentials
   ========================================================= */
.certs__row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.certs__row span { font-family: var(--f-disp); font-weight: 500; font-size: clamp(0.92rem,1.5vw,1.2rem);
  border: 1px solid var(--line); border-radius: 100px; padding: 0.55rem 1.1rem; color: var(--fg);
  transition: border-color .3s, background .3s, transform .3s; }
.certs__row span:hover { border-color: rgba(123,97,255,0.6); background: rgba(123,97,255,0.12); transform: translateY(-3px); }

/* =========================================================
   Contact
   ========================================================= */
.contact { background:
  radial-gradient(60% 80% at 50% 0%, rgba(123,97,255,0.20), transparent 70%),
  radial-gradient(50% 60% at 80% 100%, rgba(47,230,224,0.12), transparent 70%); }
.head__idx--c { color: var(--muted); }
.contact__big { font-family: var(--f-disp); font-weight: 800; font-size: clamp(2.6rem,11vw,9.5rem);
  line-height: 0.94; letter-spacing: -0.04em; margin: 0.6rem 0 clamp(2.5rem,6vw,4rem); }
.contact__big em { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-style: italic; }
.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,3rem); letter-spacing: -0.02em; will-change: transform;
  margin-bottom: clamp(3rem,7vw,4.5rem); border-bottom: 2px solid transparent; transition: border-color .35s; }
.contact__mail i { font-style: normal; transition: transform .35s var(--ease); display: inline-block; }
.contact__mail:hover { border-color: var(--violet); }
.contact__mail:hover i { transform: translate(6px,-6px); }
.contact__links { display: flex; flex-wrap: wrap; gap: clamp(1.2rem,4vw,3rem); border-top: 1px solid var(--line);
  padding-top: 1.8rem; font-size: 0.78rem; }
.contact__links a { position: relative; color: var(--muted); transition: color .3s; }
.contact__links a:hover { color: var(--fg); }

/* =========================================================
   Footer
   ========================================================= */
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding: 1.8rem var(--pad); font-size: 0.68rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer__mid { color: var(--muted-d); }
.footer button { background: none; border: none; font: inherit; color: var(--muted); cursor: none; transition: color .3s; }
.footer button:hover { color: var(--fg); }
@media (pointer: coarse) { .footer button { cursor: pointer; } }

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