/* ============================================================
   NIMBUS — Cloud & DevOps Engineer Portfolio Template
   Glassmorphism system: frosted glass panels floating over a
   living aurora gradient (cyan → violet on deep midnight), with
   a live systems-status widget, region/uptime pills, and
   "deployment" cards. Stack: HTML5 + CSS3 + vanilla JS.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Dark (default) — midnight aurora */
  --bg:       #090D18;
  --ink:      #EAF0FF;
  --ink-soft: #9AA6C6;
  --ink-faint:#636E8E;
  --cyan:     #35E0D4;
  --violet:   #9A8CFF;
  --sky:      #4CC2FF;
  --grad:     linear-gradient(120deg, #35E0D4, #6FA8FF 55%, #9A8CFF);

  /* glass */
  --glass-bg:   rgba(255, 255, 255, .055);
  --glass-brd:  rgba(255, 255, 255, .13);
  --glass-hi:   rgba(255, 255, 255, .28);
  --glass-sh:   0 24px 60px -30px rgba(0, 0, 0, .8);
  --blur: 18px;

  --f-body: "Sora", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1200px;
  --gutter: clamp(18px, 5vw, 56px);
  --sp: clamp(72px, 10vw, 140px);
  --r: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.22,.7,.28,1);
  --nav-h: 74px;
}

html[data-theme="light"] {
  --bg:       #EAEFFA;
  --ink:      #0F1530;
  --ink-soft: #46517A;
  --ink-faint:#8A93B4;
  --cyan:     #0C9E93;
  --violet:   #5B4BD6;
  --sky:      #1B84D6;
  --grad:     linear-gradient(120deg, #12B3A6, #3E86EE 55%, #6B5BE6);

  --glass-bg:  rgba(255, 255, 255, .55);
  --glass-brd: rgba(255, 255, 255, .8);
  --glass-hi:  rgba(255, 255, 255, .95);
  --glass-sh:  0 24px 55px -32px rgba(40, 60, 130, .5);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease), color .5s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cyan); color: #06121A; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
main { position: relative; z-index: 2; }

/* ---------- 3. AURORA BACKDROP ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora__blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; mix-blend-mode: screen; }
html[data-theme="light"] .aurora__blob { opacity: .5; mix-blend-mode: multiply; filter: blur(100px); }
.aurora__blob--1 { width: 46vw; height: 46vw; background: radial-gradient(circle, var(--cyan), transparent 70%); top: -10vw; left: -6vw; animation: drift1 22s var(--ease) infinite alternate; }
.aurora__blob--2 { width: 42vw; height: 42vw; background: radial-gradient(circle, var(--violet), transparent 70%); top: 20vh; right: -10vw; animation: drift2 26s var(--ease) infinite alternate; }
.aurora__blob--3 { width: 40vw; height: 40vw; background: radial-gradient(circle, var(--sky), transparent 70%); bottom: -12vw; left: 26vw; animation: drift3 30s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(8vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-6vw, -8vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(4vw, -10vh) scale(1.2); } }
.aurora__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(circle at 50% 0%, #000, transparent 80%); -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 80%); }
html[data-theme="light"] .aurora__grid { background-image: linear-gradient(rgba(20,40,90,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(20,40,90,.04) 1px, transparent 1px); }

/* ---------- 4. GLASS PRIMITIVE ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  border-radius: var(--r);
  box-shadow: var(--glass-sh), inset 0 1px 0 var(--glass-hi);
}

/* ---------- 5. TYPE HELPERS ---------- */
.eyebrow, .s-head__eyebrow { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); display: inline-flex; align-items: center; gap: .6em; }
.s-head { margin-bottom: clamp(32px, 5vw, 56px); }
.s-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.s-head__eyebrow { margin-bottom: 14px; }
.s-head__eyebrow span[data-idx] { color: var(--ink-faint); }
.s-head__title { font-family: var(--f-body); font-weight: 800; font-size: clamp(2.1rem, 6vw, 4rem); line-height: 1; letter-spacing: -.03em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 6. BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; font-family: var(--f-body); font-weight: 600; font-size: .86rem; padding: 13px 22px; border-radius: 40px; border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.btn--grad { background: var(--grad); color: #06121A; box-shadow: 0 12px 30px -12px var(--cyan); }
.btn--grad:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px var(--cyan); }
.btn--glass { background: var(--glass-bg); border-color: var(--glass-brd); color: var(--ink); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); }
.btn--glass:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--cyan); }
.btn--lg { padding: 16px 28px; font-size: .92rem; }

/* ---------- 7. NAV ---------- */
.nav { position: sticky; top: 0; z-index: 100; padding-top: 14px; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 22px; padding-inline: 22px; border-radius: 50px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 38px; height: 38px; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 600; font-size: .95rem; color: #06121A; background: var(--grad); border-radius: 12px; }
.brand__name { font-weight: 700; letter-spacing: -.01em; font-size: 1.05rem; }

.nav__links { display: flex; gap: 24px; }
.nav__links a { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .02em; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color .3s var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; background: var(--grad); border-radius: 2px; transition: width .35s var(--ease); }
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a.active::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle { width: 42px; height: 30px; border: 1px solid var(--glass-brd); border-radius: 30px; position: relative; display: grid; place-items: center; background: var(--glass-bg); }
.theme-toggle span { position: absolute; font-size: .9rem; line-height: 1; transition: opacity .3s var(--ease), transform .3s var(--ease); }
[data-ic-sun] { opacity: 1; color: var(--cyan); }
[data-ic-moon] { opacity: 0; transform: scale(.6); }
html[data-theme="light"] [data-ic-sun] { opacity: 0; transform: scale(.6); }
html[data-theme="light"] [data-ic-moon] { opacity: 1; color: var(--violet); }
.nav__cta { padding: 9px 18px; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 2px; }
.nav__progress::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: var(--p, 0%); background: var(--grad); border-radius: 2px; }

/* ---------- 8. HERO ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 90px); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.eyebrow { margin-bottom: 22px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 var(--cyan); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cyan) 70%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero__name { font-family: var(--f-body); font-weight: 800; font-size: clamp(2.9rem, 8.5vw, 6rem); line-height: .96; letter-spacing: -.04em; margin-bottom: 12px; }
.hero__role { font-family: var(--f-mono); font-size: clamp(.86rem, 1.6vw, 1.05rem); color: var(--violet); margin-bottom: 26px; }
html[data-theme="light"] .hero__role { color: var(--violet); }
.hero__typed { font-family: var(--f-mono); font-size: clamp(.9rem, 1.9vw, 1.15rem); min-height: 1.5em; margin-bottom: 22px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; color: var(--ink); }
.hero__prompt { color: var(--cyan); }
.caret { display: inline-block; width: 9px; height: 1.05em; background: var(--cyan); transform: translateY(2px); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__intro { max-width: 46ch; color: var(--ink-soft); margin-bottom: 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__side { display: grid; grid-template-columns: 1fr; gap: 20px; }
.hero__figure { padding: 10px; overflow: hidden; }
.hero__figure img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }

.status { padding: 20px 22px; }
.status__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--glass-brd); }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s var(--ease) infinite; }
.status__title { font-family: var(--f-mono); font-size: .82rem; font-weight: 500; }
.status__rows { display: grid; gap: 12px; }
.status__row { display: flex; align-items: center; justify-content: space-between; font-family: var(--f-mono); font-size: .78rem; }
.status__row .lbl { color: var(--ink-soft); }
.status__row .val { color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.status__row .val .up { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* ---------- 9. ABOUT ---------- */
.about { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items: stretch; }
.about__body { padding: clamp(24px, 4vw, 40px); }
.about__lead { font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; margin-bottom: 22px; }
.about__lead b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__text p { color: var(--ink-soft); margin-bottom: 14px; }
.about__side { padding: clamp(22px, 3vw, 34px); }
.about__facts li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--glass-brd); }
.about__facts li:last-child { border-bottom: none; }
.about__facts .k { font-family: var(--f-mono); font-size: .74rem; color: var(--ink-faint); }
.about__facts .v { font-weight: 600; }

/* ---------- 10. SKILLS ---------- */
.skills { padding: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(22px, 4vw, 40px) clamp(36px, 6vw, 70px); }
.skill__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.skill__name { font-weight: 600; }
.skill__pct { font-family: var(--f-mono); font-size: .8rem; color: var(--cyan); }
.skill__bar { height: 8px; background: rgba(128,140,180,.18); border-radius: 20px; overflow: hidden; }
.skill__fill { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 20px; transition: width 1.3s var(--ease); box-shadow: 0 0 14px -2px var(--cyan); }

/* ---------- 11. EXPERIENCE ---------- */
.timeline { position: relative; padding-left: clamp(22px, 4vw, 38px); }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--cyan), var(--violet)); border-radius: 2px; opacity: .5; }
.tl-item { position: relative; padding: 0 0 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item__card { padding: 22px 24px; }
.tl-item::before { content: ""; position: absolute; left: calc(-1 * clamp(22px, 4vw, 38px)); top: 24px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); transform: translateX(-5px); box-shadow: 0 0 12px var(--cyan); }
.tl-item__date { font-family: var(--f-mono); font-size: .74rem; color: var(--cyan); margin-bottom: 8px; }
.tl-item__role { font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.4rem); letter-spacing: -.01em; }
.tl-item__org { font-family: var(--f-mono); font-size: .82rem; color: var(--violet); margin: 3px 0 10px; }
html[data-theme="light"] .tl-item__org { color: var(--violet); }
.tl-item__desc { color: var(--ink-soft); max-width: 62ch; }

/* ---------- 12. EDUCATION ---------- */
.edu { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.edu-card { padding: 28px; transition: transform .4s var(--ease); }
.edu-card:hover { transform: translateY(-5px); }
.edu-card__year { font-family: var(--f-mono); font-size: .74rem; color: var(--cyan); }
.edu-card__deg { font-weight: 700; font-size: 1.25rem; margin: 12px 0 5px; letter-spacing: -.01em; }
.edu-card__school { color: var(--violet); font-size: .92rem; }
html[data-theme="light"] .edu-card__school { color: var(--violet); }
.edu-card__note { color: var(--ink-soft); font-size: .9rem; margin-top: 12px; }

/* ---------- 13. WORK (projects) ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { font-family: var(--f-mono); font-size: .74rem; padding: 8px 15px; border: 1px solid var(--glass-brd); border-radius: 30px; color: var(--ink-soft); background: var(--glass-bg); transition: all .3s var(--ease); }
.filter-btn:hover { color: var(--ink); border-color: var(--cyan); }
.filter-btn.active { background: var(--grad); color: #06121A; border-color: transparent; }

.work { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.card { overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--glass-sh), 0 0 0 1px var(--cyan); }
.card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(9,13,24,.6)); }
html[data-theme="light"] .card__media::after { background: linear-gradient(180deg, transparent 55%, rgba(10,20,45,.28)); }
.card__region { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .04em; padding: 5px 10px; border-radius: 20px; background: rgba(0,0,0,.4); color: #EAF0FF; border: 1px solid var(--glass-brd); backdrop-filter: blur(6px); }
.card__status { position: absolute; top: 12px; right: 12px; z-index: 2; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 20px; background: color-mix(in srgb, var(--cyan) 26%, transparent); color: var(--cyan); border: 1px solid color-mix(in srgb, var(--cyan) 50%, transparent); }
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.card__name { font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.card__meta { font-family: var(--f-mono); font-size: .72rem; color: var(--cyan); margin-top: -5px; }
.card__desc { color: var(--ink-soft); font-size: .92rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.card__tags span { font-family: var(--f-mono); font-size: .66rem; padding: 4px 10px; border: 1px solid var(--glass-brd); border-radius: 20px; color: var(--ink-soft); }
.card__links { display: flex; gap: 10px; padding: 0 22px 22px; }
.card__links a { flex: 1; justify-content: center; padding: 11px; font-size: .78rem; }
.card__links svg { width: 15px; height: 15px; }

/* ---------- 14. STATS ---------- */
.stats { padding: clamp(30px, 4vw, 46px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 12%; height: 76%; width: 1px; background: var(--glass-brd); }
.stat__num { font-family: var(--f-body); font-weight: 800; font-size: clamp(2.3rem, 5.5vw, 3.6rem); line-height: 1; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }

/* ---------- 15. SERVICES ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.service { padding: 32px 28px; transition: transform .4s var(--ease); position: relative; overflow: hidden; }
.service:hover { transform: translateY(-5px); }
.service__ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--cyan) 16%, transparent); color: var(--cyan); margin-bottom: 18px; }
.service__ic svg { width: 22px; height: 22px; }
.service__title { font-weight: 700; font-size: 1.25rem; margin-bottom: 10px; letter-spacing: -.01em; }
.service__desc { color: var(--ink-soft); font-size: .92rem; }

/* ---------- 16. STACK ---------- */
.stackpills { display: flex; flex-wrap: wrap; gap: 12px; }
.stackpills li { display: flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: .82rem; padding: 11px 18px; border-radius: 40px; background: var(--glass-bg); border: 1px solid var(--glass-brd); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); transition: transform .35s var(--ease), border-color .35s var(--ease); }
.stackpills li:hover { transform: translateY(-3px); border-color: var(--cyan); }
.stackpills li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ---------- 17. AWARDS + CERTS ---------- */
.cred { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; }
.cred__col { padding: clamp(24px, 3.5vw, 38px); }
.cred__label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); margin-bottom: 20px; }
.awards li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--glass-brd); align-items: baseline; }
.awards li:first-child { border-top: 1px solid var(--glass-brd); }
.awards__year { font-family: var(--f-mono); font-size: .8rem; color: var(--violet); }
html[data-theme="light"] .awards__year { color: var(--violet); }
.awards__title { font-weight: 600; font-size: 1.05rem; }
.awards__by { color: var(--ink-soft); font-size: .86rem; }
.certs li { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--glass-brd); }
.certs li:last-child { border-bottom: none; }
.certs li::before { content: "✓"; color: var(--cyan); font-weight: 700; }
.certs__name { font-weight: 600; }
.certs__meta { display: block; font-family: var(--f-mono); font-size: .72rem; color: var(--ink-faint); margin-top: 2px; }

/* ---------- 18. TESTIMONIALS ---------- */
.quotes { position: relative; min-height: 210px; padding: clamp(28px, 4vw, 48px); }
.quote { position: absolute; inset: 0; padding: inherit; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease); display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.quote.active { opacity: 1; visibility: visible; position: relative; }
.quote__text { font-size: clamp(1.2rem, 2.7vw, 1.8rem); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.quote__text::before { content: "“"; color: var(--cyan); }
.quote__by { display: flex; align-items: center; gap: 14px; }
.quote__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--glass-brd); }
.quote__name { font-weight: 700; }
.quote__role { font-family: var(--f-mono); font-size: .74rem; color: var(--ink-soft); }
.quotes__dots { display: flex; gap: 10px; margin-top: 26px; justify-content: center; }
.quotes__dots button { width: 28px; height: 4px; border-radius: 4px; background: var(--glass-brd); transition: background .3s var(--ease); }
.quotes__dots button.active { background: var(--grad); }

/* ---------- 19. RESUME BANNER ---------- */
.resume { padding: clamp(30px, 5vw, 52px); display: flex; justify-content: space-between; align-items: center; gap: 36px; flex-wrap: wrap; position: relative; overflow: hidden; }
.resume::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: .1; }
.resume > * { position: relative; }
.resume__title { font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 12px 0 10px; letter-spacing: -.02em; }
.resume__text { color: var(--ink-soft); max-width: 46ch; }

/* ---------- 20. FAQ ---------- */
.faq { max-width: 860px; display: grid; gap: 14px; }
.faq-item { padding: 4px 24px; transition: border-color .3s var(--ease); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 600; font-size: clamp(1.02rem, 2.1vw, 1.25rem); }
.faq-q__icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-q__icon::before, .faq-q__icon::after { content: ""; position: absolute; background: var(--cyan); transition: transform .35s var(--ease); }
.faq-q__icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-q__icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item.open .faq-q__icon::after { transform: scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq-a p { color: var(--ink-soft); padding: 0 0 22px; max-width: 68ch; }

/* ---------- 21. CONTACT ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; align-items: start; }
.contact__aside { padding: clamp(26px, 4vw, 40px); }
.contact__blurb { font-size: 1.35rem; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; margin-bottom: 28px; }
.contact__list { margin-bottom: 28px; }
.contact__list li { padding: 14px 0; border-bottom: 1px solid var(--glass-brd); }
.contact__list .lbl { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 3px; }
.contact__list .val { font-size: 1.02rem; transition: color .3s var(--ease); }
.contact__list a:hover .val { color: var(--cyan); }

.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--glass-brd); border-radius: 12px; background: var(--glass-bg); transition: all .3s var(--ease); }
.socials a:hover { transform: translateY(-3px); border-color: var(--cyan); color: var(--cyan); }
.socials svg { width: 18px; height: 18px; }

.cform { padding: clamp(26px, 4vw, 42px); }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field textarea { font-family: var(--f-body); font-size: .98rem; color: var(--ink); background: rgba(128,140,180,.1); border: 1px solid var(--glass-brd); border-radius: var(--r-sm); padding: 13px 15px; transition: border-color .3s var(--ease); resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); }
.field__err { font-family: var(--f-mono); font-size: .7rem; color: #FF6B8A; margin-top: 6px; min-height: 1em; }
.cform__submit { width: 100%; justify-content: center; margin-top: 4px; }
.cform__note { font-family: var(--f-mono); font-size: .8rem; margin-top: 16px; text-align: center; min-height: 1.2em; }
.cform__note.ok { color: var(--cyan); }
.cform__note.bad { color: #FF6B8A; }

/* ---------- 22. FOOTER ---------- */
.footer { padding: 30px 0 40px; margin-top: var(--sp); }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: start; padding: clamp(30px, 4vw, 46px); }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__name { font-weight: 700; font-size: 1.15rem; }
.footer__title { font-family: var(--f-mono); font-size: .74rem; color: var(--ink-soft); margin-top: 2px; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; }
.footer__nav a { font-family: var(--f-mono); font-size: .76rem; color: var(--ink-soft); transition: color .3s var(--ease); }
.footer__nav a:hover { color: var(--cyan); }
.socials--footer { justify-content: flex-end; }
.footer__legal { grid-column: 1 / -1; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--glass-brd); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--f-mono); font-size: .72rem; color: var(--ink-faint); }
.footer__made strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 23. BACK TO TOP ---------- */
.to-top { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 48px; height: 48px; display: grid; place-items: center; background: var(--grad); color: #06121A; border-radius: 14px; box-shadow: 0 12px 30px -10px var(--cyan); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .4s var(--ease), visibility .4s, transform .4s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }

/* ---------- 24. PRELOADER ---------- */
.preloader { position: fixed; inset: 0; z-index: 999; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; transition: opacity .5s var(--ease), visibility .5s; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__ring { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--glass-brd); border-top-color: var(--cyan); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.preloader__label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .24em; color: var(--ink-soft); }

/* ---------- 25. SCROLL REVEAL ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- 26. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about, .contact, .cred { grid-template-columns: 1fr; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__side { max-width: 520px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .stat:nth-child(2)::after { display: none; }
}
@media (max-width: 860px) {
  .nav__links { position: fixed; inset: calc(var(--nav-h) + 20px) 12px auto 12px; flex-direction: column; gap: 0; padding: 8px 20px 20px; border-radius: 20px; transform: translateY(-140%); transition: transform .45s var(--ease); background: var(--glass-bg); border: 1px solid var(--glass-brd); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 15px 0; border-bottom: 1px solid var(--glass-brd); font-size: .86rem; }
  .nav__links a:last-child { border-bottom: none; }
  .hamburger { display: flex; }
  .nav__cta { display: none; }
  .skills { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .socials--footer { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat::after { display: none !important; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .cform__row { grid-template-columns: 1fr; }
  .resume { flex-direction: column; align-items: flex-start; }
}

/* ---------- 27. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .aurora__blob { animation: none !important; }
  .caret, .pulse, .status__dot { animation: none !important; }
}
