/* =====================================================================
   PROFILE — Premium Personal CV / Resume + Portfolio Template
   Plain HTML5 + CSS3. No frameworks. Offline-ready (no external images).
   ---------------------------------------------------------------------
   REBRAND TIP: Change the look by editing the CSS variables in :root
   below. Swap --accent for your primary color, adjust --accent2 to
   match, and update --font-head / --font-body plus the Google Fonts
   <link> in each HTML file. Everything else cascades.
   ===================================================================== */

:root {
  /* --- Brand palette (edit these to rebrand) --- */
  --bg:       #ffffff;   /* page background                          */
  --ink:      #1e293b;   /* near-black slate (headings / body)       */
  --accent:   #0ea5e9;   /* sky — primary accent                     */
  --accent-d: #0284c7;   /* darker sky for hovers                    */
  --accent2:  #0d9488;   /* teal — secondary accent                  */
  --accent2-d:#0f766e;   /* darker teal                              */
  --deep:     #0b3a52;   /* deep tone for dark sections / gradients  */
  --muted:    #64748b;   /* muted text                               */
  --surface:  #f8fafc;   /* soft alt background                      */
  --line:     #e2e8f0;   /* borders / dividers                       */
  --white:    #ffffff;

  /* --- Fonts --- */
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* --- Shape & motion --- */
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 10px 30px rgba(15, 42, 76, .07);
  --shadow-lg: 0 24px 60px rgba(15, 42, 76, .13);
  --ease:      .35s cubic-bezier(.4, 0, .2, 1);

  /* --- Layout --- */
  --maxw: 1180px;
  --gutter: 24px;
}

/* ---------------------------------------------------------------------
   RESET / BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.16;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-d); }

img, svg { max-width: 100%; display: block; }

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

/* ---------------------------------------------------------------------
   LAYOUT HELPERS
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 92px 0; }
.section--soft { background: var(--surface); }
.section--tight { padding: 64px 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head--left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(14, 165, 233, .09);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lead { font-size: 1.12rem; color: var(--ink); }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(14, 165, 233, .32);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 30px rgba(14, 165, 233, .42); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-light {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-light:hover { background: #fff; color: var(--accent-d); }

.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* ---------------------------------------------------------------------
   HEADER / NAV  (shared, identical IDs on every page)
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand .logo-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(14, 165, 233, .35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .96rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 10px;
  transition: background var(--ease), color var(--ease);
}
.nav-links a:hover { background: var(--surface); color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 600; }

.nav-cta { margin-left: 8px; }
.nav-cta a.active { background: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--surface);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   HERO (home)
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(13,148,136,.16), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(14,165,233,.12), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  padding: 92px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 16px; }
.hero h1 span { background: linear-gradient(120deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .role-line { font-family: var(--font-head); font-weight: 600; color: var(--accent2); font-size: 1.15rem; margin-bottom: 14px; letter-spacing: .01em; }
.hero .lead { max-width: 540px; margin-bottom: 30px; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-meta { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-meta div strong {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--ink);
  display: block;
  line-height: 1;
}
.hero-meta div span { font-size: .9rem; color: var(--muted); }

/* Hero visual — avatar / profile card (pure CSS) */
.hero-visual { position: relative; display: grid; place-items: center; }
.avatar-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.avatar-ring {
  width: 150px; height: 150px;
  margin: 4px auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3.4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 14px 34px rgba(14,165,233,.4);
  position: relative;
}
.avatar-ring::after {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(14,165,233,.35);
}
.avatar-card .av-name { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.avatar-card .av-role { color: var(--accent2); font-weight: 600; font-size: .96rem; margin-bottom: 16px; }
.avatar-card .av-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.avatar-card .av-tags span {
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  color: var(--accent); background: rgba(14,165,233,.1);
  padding: 5px 12px; border-radius: 999px;
}
.avatar-card .av-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-size: .85rem; font-weight: 600; color: var(--accent2);
  background: rgba(13,148,136,.1); padding: 7px 15px; border-radius: 999px;
}
.avatar-card .av-status i {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent2);
  box-shadow: 0 0 0 4px rgba(13,148,136,.18);
}
.float-badge {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-family: var(--font-head);
  text-align: left;
}
.float-badge strong { display: block; font-size: 1.2rem; color: var(--ink); line-height: 1; }
.float-badge span { font-size: .76rem; color: var(--muted); }
.float-badge.fb-1 { top: 6px; left: -18px; }
.float-badge.fb-2 { bottom: 14px; right: -18px; }

/* ---------------------------------------------------------------------
   TRUSTED / TOOLS STRIP
   --------------------------------------------------------------------- */
.trusted { padding: 40px 0; border-bottom: 1px solid var(--line); }
.trusted p { text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.logo-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 18px 46px;
}
.logo-strip span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--muted);
  opacity: .7;
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity var(--ease), color var(--ease);
}
.logo-strip span:hover { opacity: 1; color: var(--accent); }

/* ---------------------------------------------------------------------
   CARDS / GRIDS
   --------------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(14,165,233,.28); }

.card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(13,148,136,.16));
  display: grid; place-items: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }

.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
}
.card-link span { transition: transform var(--ease); }
.card-link:hover span { transform: translateX(4px); }

/* Feature list */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .tick {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(14,165,233,.3);
}
.feature h3 { font-size: 1.12rem; margin-bottom: 4px; }
.feature p { margin-bottom: 0; font-size: .98rem; color: var(--muted); }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media {
  border-radius: 22px;
  min-height: 380px;
  background: linear-gradient(150deg, var(--deep), var(--accent));
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  color: #fff;
  padding: 32px;
}
.split-media::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 300px at 80% 20%, rgba(13,148,136,.4), transparent 60%);
}

/* ---------------------------------------------------------------------
   STATS BAND
   --------------------------------------------------------------------- */
.stats-band {
  background: linear-gradient(135deg, var(--deep), var(--accent2));
  color: #fff;
}
.stats-band .section-head h2 { color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat strong {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  display: block; line-height: 1;
  background: linear-gradient(120deg, #fff, #a7f3e8);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { color: rgba(255,255,255,.82); font-size: .95rem; }

/* ---------------------------------------------------------------------
   TESTIMONIALS
   --------------------------------------------------------------------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: var(--shadow);
}
.quote-card .stars { color: #f59e0b; margin-bottom: 14px; letter-spacing: 2px; }
.quote-card blockquote {
  margin: 0 0 22px;
  font-size: 1.1rem;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.55;
}
.quote-author { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.quote-author b { display: block; font-family: var(--font-head); color: var(--ink); }
.quote-author span { font-size: .88rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   CTA BAND
   --------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(600px 400px at 90% 10%, rgba(13,148,136,.3), transparent 60%),
    linear-gradient(135deg, var(--deep), var(--accent));
  color: #fff;
  border-radius: 28px;
  padding: 60px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   PAGE BANNER (inner pages)
   --------------------------------------------------------------------- */
.page-banner {
  background:
    radial-gradient(700px 400px at 85% -20%, rgba(13,148,136,.16), transparent 60%),
    linear-gradient(180deg, var(--surface), #fff);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-banner h1 { margin-bottom: 10px; }
.page-banner p { max-width: 620px; color: var(--muted); margin-bottom: 0; }
.breadcrumb {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* ---------------------------------------------------------------------
   RESUME PAGE
   --------------------------------------------------------------------- */
.resume-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; align-items: start; }
.resume-block { margin-bottom: 48px; }
.resume-block:last-child { margin-bottom: 0; }
.block-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 26px;
}
.block-head .b-ic {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(13,148,136,.16));
  display: grid; place-items: center; font-size: 1.25rem;
  flex: 0 0 auto;
}
.block-head h2 { font-size: 1.5rem; margin: 0; }

.resume-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 48px;
}
.resume-summary p { margin-bottom: 0; color: var(--ink); }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent2));
}
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}
.tl-date {
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent2);
  margin-bottom: 4px;
}
.tl-item h3 { font-size: 1.18rem; margin-bottom: 2px; }
.tl-item .tl-org { font-family: var(--font-head); font-weight: 600; color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.tl-item p { color: var(--muted); font-size: .98rem; margin-bottom: 8px; }
.tl-item ul { display: grid; gap: 5px; }
.tl-item ul li {
  position: relative; padding-left: 18px; font-size: .95rem; color: var(--muted);
}
.tl-item ul li::before {
  content: "▸"; position: absolute; left: 0; color: var(--accent); font-size: .85rem;
}

/* Education cards */
.edu-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 22px; margin-bottom: 16px;
  background: #fff; transition: border-color var(--ease), box-shadow var(--ease);
}
.edu-card:last-child { margin-bottom: 0; }
.edu-card:hover { border-color: rgba(14,165,233,.3); box-shadow: var(--shadow); }
.edu-card .tl-date { color: var(--accent); }
.edu-card h3 { font-size: 1.08rem; margin-bottom: 2px; }
.edu-card span { font-size: .92rem; color: var(--muted); }

/* Skill bars */
.skill-group { margin-bottom: 26px; }
.skill-group:last-child { margin-bottom: 0; }
.skill-group h4 {
  font-family: var(--font-head); font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.skill { margin-bottom: 16px; }
.skill:last-child { margin-bottom: 0; }
.skill-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.skill-top b { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); }
.skill-top span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.skill-track {
  height: 9px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden;
}
.skill-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0; transition: width 1.1s cubic-bezier(.4,0,.2,1);
}
.is-visible .skill-fill { width: var(--lvl, 80%); }

/* Sidebar cards (skills, certs, langs) */
.side-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow); margin-bottom: 26px;
}
.side-card:last-child { margin-bottom: 0; }
.side-card > .block-head { margin-bottom: 22px; }
.side-card > .block-head h2 { font-size: 1.25rem; }

.cert-list li, .lang-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.cert-list li:last-child, .lang-list li:last-child { border-bottom: none; }
.cert-list .c-ic { font-size: 1.1rem; flex: 0 0 auto; }
.cert-list b { font-family: var(--font-head); font-size: .96rem; color: var(--ink); display: block; }
.cert-list span { font-size: .85rem; color: var(--muted); }

.lang-list li { display: block; padding: 13px 0; }
.lang-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.lang-top b { font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.lang-top span { font-size: .82rem; color: var(--muted); }
.lang-dots { display: flex; gap: 6px; }
.lang-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.lang-dots i.on { background: linear-gradient(135deg, var(--accent), var(--accent2)); }

.resume-download {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  margin-top: 8px;
}

/* ---------------------------------------------------------------------
   PORTFOLIO / WORK GRID
   --------------------------------------------------------------------- */
.work-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; justify-content: center; }
.filter-chip {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  color: var(--muted); background: #fff;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 20px; cursor: pointer;
  transition: all var(--ease);
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent; color: #fff;
}

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), opacity .4s ease;
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.work-card.hide { display: none; }
.work-thumb {
  height: 190px;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.work-emoji { font-size: 3rem; filter: drop-shadow(0 8px 16px rgba(0,0,0,.18)); transition: transform var(--ease); }
.work-card:hover .work-emoji { transform: scale(1.16) rotate(-4deg); }
.thumb-1 { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.thumb-2 { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.thumb-3 { background: linear-gradient(135deg, #0284c7, #0d9488); }
.thumb-4 { background: linear-gradient(135deg, #0b3a52, #0ea5e9); }
.thumb-5 { background: linear-gradient(135deg, #155e75, #14b8a6); }
.thumb-6 { background: linear-gradient(135deg, #0369a1, #5eead4); }
.work-info { padding: 22px 24px 24px; }
.work-info .work-cat {
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent2);
  margin: 0 0 6px;
}
.work-info h3 { font-size: 1.2rem; margin: 0 0 6px; }
.work-info p.work-desc { font-size: .94rem; color: var(--muted); margin: 0; }
.work-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.work-tags span {
  font-family: var(--font-head); font-size: .73rem; font-weight: 600;
  color: var(--accent); background: rgba(14,165,233,.1);
  padding: 4px 11px; border-radius: 999px;
}

/* ---------------------------------------------------------------------
   ABOUT — values, interests, timeline
   --------------------------------------------------------------------- */
.value-card .icon { background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(13,148,136,.18)); }

.interest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.interest {
  text-align: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 24px 16px;
  transition: transform var(--ease), border-color var(--ease);
}
.interest:hover { transform: translateY(-5px); border-color: rgba(14,165,233,.3); }
.interest .em { font-size: 2rem; display: block; margin-bottom: 10px; }
.interest b { font-family: var(--font-head); font-size: .96rem; color: var(--ink); }

/* ---------------------------------------------------------------------
   CONTACT
   --------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .error-msg { color: #dc2626; font-size: .82rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; }
.field.invalid .error-msg { display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
  font-weight: 500;
}
.form-status.show { display: block; }

.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 22px;
}
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.info-row:last-child { margin-bottom: 0; }
.info-row .info-ic {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 12px; background: #fff;
  display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: var(--shadow);
}
.info-row b { font-family: var(--font-head); color: var(--ink); display: block; }
.info-row span { font-size: .94rem; color: var(--muted); }

.social-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 30px;
}
.social-card h3 { font-size: 1.15rem; margin-bottom: 16px; }
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-links a {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.1rem;
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
  transition: all var(--ease);
}
.social-links a:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border-color: transparent; transform: translateY(-3px);
}

/* ---------------------------------------------------------------------
   FOOTER (shared)
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--deep);
  color: rgba(255,255,255,.75);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand:hover { color: #fff; }
.footer-about p { font-size: .95rem; color: rgba(255,255,255,.7); max-width: 320px; }
.footer-col h4 {
  color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a { display: block; color: rgba(255,255,255,.72); padding: 5px 0; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  display: grid; place-items: center;
  font-size: 1rem; color: #fff;
}
.social a:hover { background: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}
.footer-bottom a { color: rgba(255,255,255,.75); }

/* ---------------------------------------------------------------------
   SCROLL-REVEAL
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.no-io .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .resume-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .interest-grid { grid-template-columns: repeat(4, 1fr); }
  .float-badge.fb-1 { left: 0; }
  .float-badge.fb-2 { right: 0; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 14px var(--gutter) 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease), transform var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split-media { order: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .interest-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 44px 26px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 22px; }
  .float-badge { display: none; }
}
