/*
! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */ /* 3 */
  tab-size: 4; /* 3 */
  font-family: Poppins, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden] {
  display: none;
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}.container {
  width: 100%;
}@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}@media (min-width: 1024px) {

  .container {
    max-width: 1024px;
  }
}@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }
}@media (min-width: 1536px) {

  .container {
    max-width: 1536px;
  }
}.static {
  position: static;
}.mt-28 {
  margin-top: 7rem;
}.block {
  display: block;
}.inline {
  display: inline;
}.hidden {
  display: none;
}.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}.bg-black-primary {
  --tw-bg-opacity: 1;
  background-color: rgb(34 34 34 / var(--tw-bg-opacity));
}.bg-blue-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(2 21 38 / var(--tw-bg-opacity));
}.bg-blue-primary {
  --tw-bg-opacity: 1;
  background-color: rgb(3 52 110 / var(--tw-bg-opacity));
}.bg-green-primary {
  --tw-bg-opacity: 1;
  background-color: rgb(226 226 182 / var(--tw-bg-opacity));
}.bg-light-blue {
  --tw-bg-opacity: 1;
  background-color: rgb(110 172 218 / var(--tw-bg-opacity));
}.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}.font-bold {
  font-weight: 700;
}.text-green-100 {
  --tw-text-opacity: 1;
  color: rgb(220 252 231 / var(--tw-text-opacity));
}.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}.hover\:bg-gray-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity));
}@media (min-width: 768px) {

  .md\:border-0 {
    border-width: 0px;
  }

  .md\:p-0 {
    padding: 0px;
  }

  .md\:hover\:bg-transparent:hover {
    background-color: transparent;
  }

  .md\:hover\:text-green-100:hover {
    --tw-text-opacity: 1;
    color: rgb(220 252 231 / var(--tw-text-opacity));
  }
}
/* ───────────────────────────────────────────────────────────
   Edgar Rodrigo Salazar — Portfolio
   Visual language: Boletomóvil DS (Anton display, TikTok Sans UI,
   glass surfaces, pill CTAs, generous rounding) recolored to the
   portfolio's violet/purple palette.
   ─────────────────────────────────────────────────────────── */

/* ── Fonts ─────────────────────────────────────────────────── */
@font-face {
  font-family: "TikTok Sans";
  src: url(assets/fonts/TikTokSans-VariableFont_opsz_slnt_wdth_wght.b388911a4a8654ba551e.ttf) format("truetype-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(assets/fonts/Inter-VariableFont_opsz_wght.e05c5f3d1fa6a3893d84.ttf) format("truetype-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* Canvas + surfaces (violet-tinted ink) */
  --bg-canvas:    #0b0810;
  --bg-canvas-2:  #0d0a14;
  --bg-deep:      #14101f;
  --surface:      #1c1530;
  --surface-2:    #16112a;

  /* Brand violet */
  --violet:       #a855f7;
  --violet-deep:  #7c3aed;
  --violet-light: #c084fc;
  --violet-ink:   #2a1a52;
  --grad-brand:   linear-gradient(120deg, #c084fc 0%, #a855f7 42%, #7c3aed 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(192,132,252,0.14) 0%, rgba(124,58,237,0.06) 100%);

  /* Foreground */
  --fg-1: #ffffff;
  --fg-2: #cbb8e0;   /* body */
  --fg-3: #9a87b6;   /* meta */
  --fg-4: #6f6190;   /* faint */

  /* Glass + borders */
  --glass:        rgba(28, 21, 48, 0.55);
  --glass-nav:    rgba(13, 10, 20, 0.62);
  --border-subtle: rgba(168, 85, 247, 0.12);
  --border-faint:  rgba(255, 255, 255, 0.07);
  --border-violet: rgba(168, 85, 247, 0.42);

  /* Radii */
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px; --r-2xl: 32px; --r-pill: 999px;

  /* Shadow + glow */
  --shadow-card: 0 18px 60px -20px rgba(0,0,0,0.7);
  --glow-violet: 0 0 0 1px rgba(168,85,247,0.4), 0 16px 50px -12px rgba(124,58,237,0.55);
  --glow-soft:   0 0 40px -6px rgba(168,85,247,0.45);

  --font-display: "Anton", Impact, system-ui, sans-serif;
  --font-ui:      "TikTok Sans", "Inter", system-ui, sans-serif;
  --font-body:    "Plus Jakarta Sans", "TikTok Sans", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

#root { box-sizing: border-box; }
#root *, #root *::before, #root *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--fg-2);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(168,85,247,0.32); color: #fff; }

/* Ambient radial washes fixed behind everything */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient::before, .ambient::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px);
}
.ambient::before {
  width: 60vw; height: 60vw; top: -18vw; right: -12vw;
  background: radial-gradient(circle, rgba(124,58,237,0.30) 0%, rgba(124,58,237,0) 70%);
}
.ambient::after {
  width: 55vw; height: 55vw; bottom: -20vw; left: -15vw;
  background: radial-gradient(circle, rgba(168,85,247,0.20) 0%, rgba(168,85,247,0) 70%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(13,10,20,0) 60%, rgba(11,8,16,0.9) 100%);
}

/* ── Layout helpers ────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; padding: clamp(40px, 6vw, 80px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--violet-light);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--violet), transparent); }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 620px; }
.section-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.015em; line-height: 0.96; margin: 16px 0 0;
  font-size: clamp(34px, 5.4vw, 60px); color: var(--fg-1);
}
.section-title .accent {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { margin: 18px 0 0; color: var(--fg-3); font-size: 17px; max-width: 540px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  font-family: var(--font-ui); font-weight: 600; font-size: 15.5px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: transform .14s ease, box-shadow .2s ease, filter .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 30px -10px rgba(124,58,237,0.7); }
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 14px 40px -8px rgba(124,58,237,0.85); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: var(--fg-1);
  border: 1px solid var(--border-violet);
}
.btn-ghost:hover { background: rgba(168,85,247,0.12); box-shadow: var(--glow-soft); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0) scale(0.98); }

/* ── Chips / tags ──────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em;
  background: rgba(168,85,247,0.10); color: var(--violet-light);
  border: 1px solid rgba(168,85,247,0.20);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.tag:hover { background: rgba(168,85,247,0.20); color: #fff; border-color: rgba(168,85,247,0.5); }
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; }

/* Highlighted (starred) tech pill — e.g. Firebase */
.tag--star {
  background: var(--grad-brand); color: #fff; border-color: transparent;
  box-shadow: 0 6px 18px -8px rgba(124,58,237,0.85);
}
.tag--star:hover { background: var(--grad-brand); color: #fff; border-color: transparent; filter: brightness(1.06); }
.tag--star svg.ti { color: #fff; }

/* Grouped tags (project stacks) */
.tag-groups { display: flex; flex-direction: column; gap: 14px; }
.tg { display: flex; gap: 12px; align-items: baseline; }
.tg-l {
  flex: 0 0 64px; text-align: right; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-4); padding-top: 7px;
}
.tg .tag-row { flex: 1; }
@media (max-width: 560px) {
  .tg { flex-direction: column; gap: 7px; }
  .tg-l { flex: none; text-align: left; padding-top: 0; }
}

/* ── Cards (generic) ───────────────────────────────────────── */
.card {
  background: var(--grad-brand-soft), var(--glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ── Reveal animation ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ───────────────────────────────────────────────────────────
   Section + component styles
   ─────────────────────────────────────────────────────────── */

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--glass-nav);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-faint);
  box-shadow: 0 8px 40px -20px rgba(0,0,0,0.8);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo {
  display: flex; align-items: center; gap: 11px; text-decoration: none;
  color: var(--fg-1); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
}
.logo .mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-family: var(--font-display);
  font-size: 18px; box-shadow: 0 6px 20px -6px rgba(124,58,237,0.8);
}
.logo .mark img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.logo .mono { font-family: var(--font-mono); font-weight: 500; }
.logo .mono .dev { color: var(--violet-light); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 15px; border-radius: var(--r-pill); text-decoration: none;
  color: var(--fg-3); font-size: 14.5px; font-weight: 500;
  transition: color .18s ease, background .18s ease; position: relative;
}
.nav-links a:hover { color: var(--fg-1); }
.nav-links a.active { color: #fff; background: rgba(168,85,247,0.14); }
.nav-cta { margin-left: 8px; padding: 11px 20px; font-size: 14.5px; }
.nav-toggle { display: none; }

/* Language toggle */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border-radius: var(--r-pill); background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-faint); flex-shrink: 0;
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--fg-3); padding: 6px 12px; border-radius: var(--r-pill);
  transition: color .18s ease, background .18s ease;
}
.lang-toggle button:hover { color: var(--fg-1); }
.lang-toggle button.active { background: var(--grad-brand); color: #fff; }

/* Tech icon inside a pill */
.ti { width: 14px; height: 14px; flex-shrink: 0; display: inline-block; object-fit: contain; }
svg.ti { color: currentColor; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { padding-top: 128px; padding-bottom: clamp(40px, 6vw, 72px); }
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 0.85fr; gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 12px; border-radius: var(--r-pill);
  background: rgba(168,85,247,0.10); border: 1px solid rgba(168,85,247,0.28);
  font-size: 13.5px; font-weight: 600; color: var(--violet-light);
  letter-spacing: 0.01em;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px var(--violet); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

.hero h1 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  margin: 26px 0 0; line-height: 0.92; letter-spacing: 0.01em; color: var(--fg-1);
  font-size: clamp(46px, 8vw, 96px);
}
.hero h1 .name { display: block; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc {
  margin: 26px 0 0; font-size: 18px; line-height: 1.65; color: var(--fg-2); max-width: 540px;
  font-family: var(--font-body);
}
.hero-desc strong { color: #fff; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-socials { display: flex; gap: 12px; margin-top: 34px; align-items: center; }
.hero-socials .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-4); margin-right: 4px; }
.social {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-faint);
  color: var(--fg-2); transition: all .2s ease;
}
.social:hover { color: #fff; border-color: var(--border-violet); background: rgba(168,85,247,0.14); transform: translateY(-3px); box-shadow: var(--glow-soft); }
.social svg { width: 20px; height: 20px; }

/* Portrait */
.portrait-wrap { display: flex; justify-content: center; position: relative; }
.portrait {
  position: relative; width: clamp(240px, 30vw, 360px); aspect-ratio: 1;
  border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(192,132,252,0.35), rgba(124,58,237,0.05) 60%),
    var(--surface);
  border: 1px solid var(--border-violet);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.portrait::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 90deg, #c084fc, #7c3aed, #a855f7, #c084fc);
  filter: blur(18px); opacity: 0.55; animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.portrait .ph {
  text-align: center; color: var(--fg-3); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; padding: 0 30px;
}
.portrait .ph svg { width: 54px; height: 54px; opacity: 0.55; margin-bottom: 10px; }
/* Real profile photo filling the portrait ring */
.portrait .photo {
  position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px);
  border-radius: 50%; object-fit: cover; object-position: center 22%;
  border: 1px solid var(--border-faint);
}
.portrait-badge {
  position: absolute; bottom: 6%; right: 2%; z-index: 2;
  display: flex; align-items: center; gap: 8px; padding: 9px 15px;
  border-radius: var(--r-pill); background: var(--glass-nav); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--border-violet); font-size: 13px; font-weight: 600; color: #fff;
  box-shadow: var(--shadow-card);
}
.portrait-badge .live { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }

/* ── Skills ────────────────────────────────────────────────── */
.specialty {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px;
  padding: 30px 34px; border-radius: var(--r-xl); margin-bottom: 30px;
  background: linear-gradient(120deg, rgba(124,58,237,0.22), rgba(168,85,247,0.08));
  border: 1px solid var(--border-violet); box-shadow: var(--glow-soft);
}
.specialty .lead { display: flex; flex-direction: column; gap: 5px; }
.specialty .lead .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-light); }
.specialty .lead .v { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 34px); text-transform: uppercase; color: #fff; line-height: 1; letter-spacing: 0.01em; }
.specialty .badges { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.specialty .pill {
  padding: 10px 18px; border-radius: var(--r-pill); font-weight: 700; font-size: 15px;
  background: var(--grad-brand); color: #fff; box-shadow: 0 8px 24px -10px rgba(124,58,237,0.8);
}

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-card { padding: 26px; display: flex; flex-direction: column; gap: 16px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.skill-card:hover { transform: translateY(-4px); border-color: var(--border-violet); box-shadow: var(--glow-violet); }
.skill-card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(168,85,247,0.14); border: 1px solid rgba(168,85,247,0.24); color: var(--violet-light);
}
.skill-card .ico svg { width: 24px; height: 24px; }
.skill-card h3 { margin: 0; font-size: 18px; font-weight: 700; color: #fff; font-family: var(--font-ui); }
.skill-card.featured { background: linear-gradient(135deg, rgba(168,85,247,0.16), rgba(124,58,237,0.05)), var(--glass); border-color: var(--border-violet); }

/* ── Projects ──────────────────────────────────────────────── */
.projects-stack { display: flex; flex-direction: column; gap: 28px; }
.project {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--glow-violet); }
.project.primary { grid-template-columns: 1.05fr 0.95fr; border-color: var(--border-violet); }
.project .media {
  position: relative; min-height: 340px; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(192,132,252,0.30), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(124,58,237,0.30), transparent 55%),
    var(--surface-2);
  border-right: 1px solid var(--border-subtle);
}
.project.reverse .media { order: 2; border-right: 0; border-left: 1px solid var(--border-subtle); }
.project .media .shot {
  width: 78%; aspect-ratio: 16/11; border-radius: 16px; background: rgba(11,8,16,0.6);
  border: 1px solid var(--border-faint); display: grid; place-items: center;
  color: var(--fg-4); font-family: var(--font-mono); font-size: 12px; text-align: center; gap: 8px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8); padding: 16px;
}
.project .media .shot svg { width: 42px; height: 42px; opacity: 0.5; }

/* Real screenshots inside the media frame */
.project .media .shot--img,
.project .media .shot--phone { padding: 0; overflow: hidden; }
.project .media .shot--img img,
.project .media .shot--phone img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Landscape capture (Chronomate) fills the default 16:11 card frame */
.project .media .shot--img img { object-position: center top; }

/* Portrait capture (Quidly — iPhone screenshot): tall, phone-shaped frame
   matching the screenshot's own aspect ratio so it never stretches. */
.project .media .shot--phone {
  width: auto; aspect-ratio: 1320 / 2868;
  height: clamp(360px, 46vh, 470px);
  border-radius: 26px;
}
@media (max-width: 900px) {
  .project .media .shot--phone { height: clamp(340px, 70vw, 440px); }
}
.project .body { padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; }
.project .flag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet-light); padding: 5px 12px; border-radius: var(--r-pill);
  background: rgba(168,85,247,0.12); border: 1px solid rgba(168,85,247,0.25); margin-bottom: 18px;
}
.project h3 { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-weight: 400; letter-spacing: 0.01em; color: #fff; font-size: clamp(30px, 4vw, 46px); line-height: 0.96; }
.project .lede { margin: 14px 0 0; color: var(--fg-2); font-size: 16px; line-height: 1.6; font-family: var(--font-body); }
.feat-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.feat-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--fg-2); line-height: 1.5; }
.feat-list li svg { width: 18px; height: 18px; color: var(--violet-light); flex-shrink: 0; margin-top: 1px; }
.feat-list li b { color: #fff; font-weight: 600; }
.project .foot { margin-top: auto; padding-top: 26px; display: flex; flex-direction: column; gap: 20px; }

/* ── Highlights ────────────────────────────────────────────── */
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.highlight { padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.highlight:hover { transform: translateY(-4px); border-color: var(--border-violet); box-shadow: var(--glow-violet); }
.highlight .ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; box-shadow: 0 10px 26px -10px rgba(124,58,237,0.8); }
.highlight .ico svg { width: 26px; height: 26px; }
.highlight h3 { margin: 0; font-size: 19px; color: #fff; font-weight: 700; font-family: var(--font-ui); }
.highlight p { margin: 0; color: var(--fg-3); font-size: 15px; line-height: 1.55; }

/* ── Certificates ──────────────────────────────────────────── */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cert { padding: 30px; display: flex; flex-direction: column; gap: 16px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.cert:hover { transform: translateY(-4px); border-color: var(--border-violet); box-shadow: var(--glow-violet); }
.cert .top { display: flex; align-items: center; gap: 16px; }
.cert .seal { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(168,85,247,0.14); border: 1px solid rgba(168,85,247,0.3); color: var(--violet-light); flex-shrink: 0; }
.cert .seal svg { width: 28px; height: 28px; }
.cert .org { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet-light); }
.cert h3 { margin: 4px 0 0; font-size: 21px; color: #fff; font-weight: 700; font-family: var(--font-ui); line-height: 1.2; }
.cert p { margin: 0; color: var(--fg-3); font-size: 15px; line-height: 1.55; }
.cert .foot { margin-top: auto; padding-top: 6px; }

/* ── Education ─────────────────────────────────────────────── */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.edu { padding: 34px; display: flex; gap: 22px; align-items: flex-start; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.edu:hover { transform: translateY(-4px); border-color: var(--border-violet); box-shadow: var(--glow-violet); }
.edu .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(168,85,247,0.12); border: 1px solid rgba(168,85,247,0.26); color: var(--violet-light); flex-shrink: 0; }
.edu .ico svg { width: 28px; height: 28px; }
.edu .stat { font-family: var(--font-display); font-size: 30px; color: var(--violet-light); line-height: 1; margin-bottom: 6px; }
.edu h3 { margin: 0 0 6px; font-size: 19px; color: #fff; font-weight: 700; font-family: var(--font-ui); }
.edu p { margin: 0; color: var(--fg-3); font-size: 15px; line-height: 1.55; }

/* ── Contact ───────────────────────────────────────────────── */
.contact { text-align: center; }
.contact-card {
  padding: clamp(48px, 8vw, 96px) clamp(28px, 6vw, 80px); border-radius: var(--r-2xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(124,58,237,0.30), transparent 60%),
    var(--glass);
  border: 1px solid var(--border-violet); box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.contact-card h2 {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 7vw, 84px); line-height: 0.94; margin: 18px 0 0; color: #fff; letter-spacing: 0.01em;
}
.contact-card h2 .accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-card p { margin: 22px auto 0; max-width: 540px; font-size: 18px; color: var(--fg-2); font-family: var(--font-body); }
.contact-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ── Contact form ──────────────────────────────────────────── */
.contact-form {
  max-width: 520px; margin: 32px auto 0; text-align: left;
  display: flex; flex-direction: column; gap: 16px;
}
.contact-form .field { display: flex; flex-direction: column; gap: 7px; }
.contact-form label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3);
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-faint);
  color: #fff; font-family: var(--font-ui); font-size: 15px; line-height: 1.5;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--fg-4); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--border-violet);
  box-shadow: var(--glow-soft); background: rgba(168,85,247,0.06);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn-primary { align-self: center; margin-top: 4px; }

.form-status { font-family: var(--font-ui); }
.form-status--ok {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; max-width: 520px; margin: 32px auto 0; color: var(--fg-2);
}
.form-status--ok svg { width: 48px; height: 48px; color: #34d399; }
.form-status--ok p { margin: 0; font-size: 17px; color: #fff; }
.form-status--err { margin: 0; color: #fca5a5; font-size: 14px; }

.footer { border-top: 1px solid var(--border-faint); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 30px 0; }
.footer-inner .copy { color: var(--fg-4); font-size: 13.5px; font-family: var(--font-mono); }
.footer-inner .socials { display: flex; gap: 10px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .lang-toggle { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-wrap { order: -1; }
  .skills-grid, .highlights-grid { grid-template-columns: 1fr 1fr; }
  .project, .project.primary { grid-template-columns: 1fr; }
  .project .media { border-right: 0; border-bottom: 1px solid var(--border-subtle); min-height: 280px; }
  .project.reverse .media { order: 0; border-left: 0; }
  .cert-grid, .edu-grid { grid-template-columns: 1fr; }
  .specialty .badges { margin-left: 0; }
}
@media (max-width: 580px) {
  .skills-grid, .highlights-grid { grid-template-columns: 1fr; }
  .nav-cta { display: none; }
}

