/* ============================================================
   Hamza Furkan Bakiler — Portfolio
   Premium · Sora (headings) + Inter (body) · one accent
   ------------------------------------------------------------
   PALETTE
     Ink      #0E1726   primary text / dark canvas
     Slate    #55647A   secondary text
     Mist     #F4F7FB   soft surfaces
     Line     #E6EBF2   hairline borders
     Accent   #1F51C4   single brand blue (medical / trust)
   ============================================================ */

:root {
  --accent: #1F51C4;
  --accent-ink: #17408F;
  --grad: linear-gradient(90deg, var(--accent), var(--accent));         /* solid accent, no rainbow */
  --grad-soft: color-mix(in srgb, var(--accent) 9%, transparent);
  --i1: var(--accent);
  --i2: var(--accent);
  --i3: var(--accent);

  --container: 1120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', var(--font);   /* characterful headline font */
  --mono: var(--font);
  --script: var(--font);
}

/* ---------- Themes ---------- */
:root[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #F4F7FB;
  --surface: #FFFFFF;
  --surface-2: #F4F7FB;
  --border: #E6EBF2;
  --border-strong: #D3DBE7;
  --text: #0E1726;
  --text-soft: #55647A;
  --text-mut: #93A0B2;
  --shadow: 0 18px 44px -26px rgba(14,23,38,.22);
  --glow: 0 12px 30px -18px rgba(31,81,196,.4);
  --accent-soft: #EAF0FC;
  --spot: rgba(31,81,196,.08);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --accent: #6C93EE;
  --accent-ink: #A9C2F5;
  --bg: #0B1220;
  --bg-2: #0F1826;
  --surface: rgba(255,255,255,.03);
  --surface-2: rgba(255,255,255,.055);
  --border: rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.18);
  --text: #EAEEF5;
  --text-soft: #9AA7BC;
  --text-mut: #66748C;
  --shadow: 0 26px 60px -30px rgba(0,0,0,.75);
  --glow: 0 12px 30px -18px rgba(108,147,238,.45);
  --accent-soft: rgba(108,147,238,.14);
  --spot: rgba(108,147,238,.12);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-font-smoothing: antialiased; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.65; font-size: 17px; overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 26px; position: relative; }

/* ---------- Interactive mouse-tracking background ---------- */
@property --mx { syntax: '<length>'; inherits: true; initial-value: 700px; }
@property --my { syntax: '<length>'; inherits: true; initial-value: 260px; }
:root { --mx: 700px; --my: 260px; transition: --mx .28s var(--ease), --my .28s var(--ease); }
.fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
/* soft base wash so the page is never flat */
.fx::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 700px at 12% -10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
    radial-gradient(900px 700px at 100% 108%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 58%);
  transition: background .5s var(--ease);
}
/* dot matrix that is revealed around the cursor */
.fx-grid {
  position: absolute; inset: -2px;
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 42%, transparent) 1.6px, transparent 1.9px);
  background-size: 27px 27px;
  -webkit-mask-image: radial-gradient(340px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.5) 46%, transparent 74%);
          mask-image: radial-gradient(340px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.5) 46%, transparent 74%);
}
/* accent glow following the cursor */
.fx-glow {
  position: absolute; inset: 0;
  background: radial-gradient(540px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 24%, transparent), transparent 68%);
}
@media (hover: none), (pointer: coarse) { .fx-grid, .fx-glow { opacity: .55; } }

/* ---------- Custom cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, [data-cursor], .contact-card, input, textarea, select { cursor: none; }
}
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; border-radius: 50%; opacity: 0; }
.cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); transition: opacity .3s, width .2s var(--ease), height .2s var(--ease); }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform .16s var(--ease), width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s, border-color .25s, opacity .3s;
}
.cursor.ready, .cursor-ring.ready { opacity: 1; }
.cursor-ring.hover { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: var(--accent); }
.cursor.hover { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
.cursor-ring.down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ---------- Vector icons ---------- */
.ico { width: 24px; height: 24px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--accent); }
.ico--solid { fill: currentColor; stroke: none; }
.card__icon .ico { width: 26px; height: 26px; }
.skill__ico .ico { width: 20px; height: 20px; }
.contact-card__ico .ico { width: 22px; height: 22px; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: var(--grad); z-index: 200; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, color .3s;
  border: 1px solid transparent; white-space: nowrap; will-change: transform;
}
.btn span { position: relative; z-index: 1; }
.btn--primary { color: #fff; background: var(--grad); background-size: 160% 160%; box-shadow: 0 12px 30px -12px rgba(99,102,241,.65); }
.btn--primary:hover { box-shadow: 0 18px 40px -12px rgba(99,102,241,.75); }
.btn--ghost { color: var(--text); background: var(--surface); border-color: var(--border-strong); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--i1); color: #fff; }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .3s; z-index: 0;
}
.btn--ghost:hover::before { opacity: 1; }
.btn--lg { padding: 17px 38px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 150; border-bottom: 1px solid transparent; transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease); }
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; transition: height .35s var(--ease); }
.nav.scrolled .nav__inner { height: 62px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--text-soft);
  padding: 6px 0; letter-spacing: -.005em; transition: color .22s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--accent); transition: right .28s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { right: 40%; }
.nav__links a.active { color: var(--text); }
.nav__links a.active::after { right: 0; }

.nav__controls { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 12.5px; }
.lang-switch button { background: none; border: 0; color: var(--text-mut); font: inherit; font-weight: 500; padding: 6px 8px; border-radius: 8px; transition: color .2s, background .2s; }
.lang-switch button.is-active { color: var(--accent); }
.lang-switch button:hover { color: var(--text); }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--text-soft);
  background: transparent; border: 1px solid transparent; transition: color .25s var(--ease), background .25s var(--ease), border-color .25s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; background: transparent; border: 0; }
.nav__toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 90px; min-height: 100vh; display: flex; align-items: center; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; width: 100%; }
.hero__eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 26px;
}
.hero__title { font-size: clamp(2.9rem, 6.6vw, 5rem); font-weight: 600; margin-bottom: 28px; letter-spacing: -.035em; line-height: 1.02; }
.hero__title-line { display: block; }
.hero__title-grad { color: var(--accent); }
.hero__lead { font-size: clamp(1.1rem, 1.7vw, 1.32rem); font-weight: 450; color: var(--text-soft); margin-bottom: 34px; max-width: 46ch; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--text-mut); }

.hero__side { display: flex; justify-content: center; }
.photo-frame { position: relative; width: 100%; max-width: 380px; aspect-ratio: 4/5; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--bg-2); text-align: center;
}
.photo-placeholder p { font-size: 13px; color: var(--text-mut); }
.photo-placeholder code { color: var(--accent); font-size: 12px; }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); }
.hero__scroll span { display: block; width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 12px; position: relative; }
.hero__scroll span::after { content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; background: var(--i2); border-radius: 3px; transform: translateX(-50%); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0%{opacity:0; transform:translate(-50%,0);} 40%{opacity:1;} 80%{opacity:0; transform:translate(-50%,11px);} 100%{opacity:0;} }

/* ---------- Text roll animation ---------- */
.rl-word { display: inline-block; white-space: nowrap; }
.rl { position: relative; display: inline-block; perspective: 600px; vertical-align: top; }
.rl-enter, .rl-exit { position: absolute; left: 0; top: 0; display: inline-block; backface-visibility: hidden; will-change: transform; }
.rl-enter { transform-origin: 50% 25%; transform: rotateX(0deg); }
.rl-exit  { transform-origin: 50% 100%; transform: rotateX(90deg); }
.rl-space { visibility: hidden; }
.rl-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.roll.play .rl-enter { animation: rlEnter var(--rd, .5s) ease-in forwards; animation-delay: var(--de, 0s); }
.roll.play .rl-exit  { animation: rlExit  var(--rd, .5s) ease-in forwards; animation-delay: var(--dx, .2s); }
@keyframes rlEnter { to { transform: rotateX(90deg); } }
@keyframes rlExit  { to { transform: rotateX(0deg);  } }

/* ---------- Sections ---------- */
.section { padding: 92px 0; position: relative; }
.section__head { max-width: 660px; margin-bottom: 54px; }
.section__kicker {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 16px;
}
.section__kicker i { color: var(--i2); font-style: normal; background: var(--surface); border: 1px solid var(--border); padding: 3px 9px; border-radius: 7px; font-size: 11px; }
.section__title { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; }
.section__sub { margin-top: 14px; color: var(--text-soft); font-size: 1.08rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; }
.about__text p { color: var(--text-soft); margin-bottom: 22px; font-size: 1.05rem; }
.about__text p.lead { font-size: 1.2rem; color: var(--text); }
.glass-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 30px;
  backdrop-filter: blur(10px); position: sticky; top: 100px; transition: transform .2s var(--ease); will-change: transform;
}
.glass-card h3 { font-size: 1.05rem; margin-bottom: 20px; font-family: var(--display); }
.fact { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.fact__label { color: var(--text-mut); font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.fact__value { font-weight: 600; font-size: 14.5px; text-align: right; }
.fact-block { padding-top: 18px; }
.fact-block .fact__label { display: block; margin-bottom: 12px; }
.pill-list li { font-size: 14px; color: var(--text-soft); padding: 3px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-soft); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 6px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--grad); opacity: .35; }
.timeline__item { position: relative; padding: 0 0 26px 44px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__year { display: inline-block; font-family: var(--mono); font-weight: 600; color: var(--accent); font-size: 13px; letter-spacing: .02em; margin-bottom: 10px; }
.timeline__item::before { content: ""; position: absolute; left: 1px; top: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); z-index: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent); }
.timeline__item--now::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); animation: nowpulse 2s infinite; }
@keyframes nowpulse { 0%,100%{ box-shadow: 0 0 0 5px color-mix(in srgb, var(--i2) 18%, transparent);} 50%{ box-shadow: 0 0 0 10px color-mix(in srgb, var(--i2) 4%, transparent);} }
.timeline__card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 22px; backdrop-filter: blur(6px); transition: transform .2s var(--ease), border-color .3s; will-change: transform; }
.timeline__card:hover { border-color: var(--border-strong); }
.timeline__card h3 { font-size: 1.02rem; font-weight: 500; font-family: var(--font); }
.timeline__item--now .timeline__card { border-color: color-mix(in srgb, var(--i2) 40%, transparent); background: color-mix(in srgb, var(--i2) 7%, transparent); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
.cards--2 { grid-template-columns: repeat(2,1fr); }
.cards--3 { grid-template-columns: repeat(3,1fr); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px;
  backdrop-filter: blur(10px); overflow: hidden; transition: transform .2s var(--ease), border-color .3s; will-change: transform;
}
.card::before { content: ""; position: absolute; inset: -1px; border-radius: 24px; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; }
.card:hover::before { opacity: .6; }
.card__badges { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.badge { font-family: var(--mono); font-size: 11.5px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); display: inline-flex; align-items: center; gap: 7px; }
.badge--live { color: var(--i2); }
.ping { width: 6px; height: 6px; border-radius: 50%; background: var(--i2); box-shadow: 0 0 0 0 var(--i2); animation: ping 1.6s infinite; }
@keyframes ping { 0%{ box-shadow: 0 0 0 0 color-mix(in srgb, var(--i2) 60%, transparent);} 70%,100%{ box-shadow: 0 0 0 7px transparent;} }
.card__title { font-size: 1.32rem; margin-bottom: 12px; }
.card__body { color: var(--text-soft); font-size: 1rem; }
.card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--grad-soft); border: 1px solid var(--border); margin-bottom: 20px; }
.card--open { border-style: dashed; }
.card--span { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; }
.card__link { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 14px; color: var(--i2); }

/* case-study breakdown */
.case { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.case > div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: baseline; }
.case dt { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.case dd { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-soft); }
@media (max-width: 520px) { .case > div { grid-template-columns: 1fr; gap: 3px; } }

.future { margin-top: 48px; padding-top: 42px; border-top: 1px solid var(--border); }
.future__title { font-size: 1.15rem; margin-bottom: 20px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-cloud li { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; color: var(--text-soft); transition: transform .25s var(--ease), color .25s, border-color .25s; }
.tag-cloud li:hover { transform: translateY(-3px); color: var(--text); border-color: var(--i1); }

/* mini cards */
.mini-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; backdrop-filter: blur(8px); transition: transform .2s var(--ease), border-color .3s; will-change: transform; }
.mini-card:hover { border-color: var(--border-strong); }
.mini-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.mini-card p { color: var(--text-soft); font-size: .95rem; }
.mini-card--feature { grid-column: span 2; background: var(--grad-soft); border-color: color-mix(in srgb, var(--i1) 30%, transparent); }
@media (max-width: 860px){ .mini-card--feature { grid-column: auto; } }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.skill { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 15px; backdrop-filter: blur(8px); transition: transform .2s var(--ease), border-color .3s; will-change: transform; }
.skill:hover { border-color: var(--i1); }
.skill__ico { font-size: 20px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); }

/* ---------- Collaboration ---------- */
.collab { position: relative; overflow: hidden; border-radius: 30px; padding: 72px 56px; text-align: center; background: var(--bg-2); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .2s var(--ease); will-change: transform; }
.collab::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 15% 0%, rgba(99,102,241,.28), transparent 60%), radial-gradient(500px 320px at 90% 100%, rgba(34,211,238,.22), transparent 60%); }
.collab > * { position: relative; z-index: 1; }
.collab__title { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; margin-bottom: 18px; max-width: 20ch; margin-inline: auto; }
.collab__lead { color: var(--text-soft); font-size: 1.1rem; margin-bottom: 24px; }
.collab__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 640px; margin: 0 auto 28px; }
.collab__list li { padding: 9px 18px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; }
.collab__foot { color: var(--text-soft); margin-bottom: 34px; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; backdrop-filter: blur(8px); transition: transform .2s var(--ease), border-color .3s; will-change: transform; }
.contact-card:not(.contact-card--soon):hover { border-color: var(--i1); }
.contact-card__ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; font-weight: 700; background: var(--grad-soft); border: 1px solid var(--border); color: var(--i2); margin-bottom: 8px; font-family: var(--display); }
.contact-card__label { font-weight: 700; font-size: 15px; font-family: var(--display); }
.contact-card__value { color: var(--text-soft); font-size: 14px; }
.contact-card--soon { opacity: .6; }

/* ---------- Footer (contact CTA) ---------- */
.footer { border-top: 1px solid var(--border); padding: 100px 0 40px; margin-top: 40px; position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 340px at 50% 0%, color-mix(in srgb, var(--i1) 16%, transparent), transparent 62%);
}
.footer__cta { max-width: 900px; margin: 0 auto 80px; text-align: center; }
.footer__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px;
  letter-spacing: .04em; color: var(--text-soft); background: var(--surface); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.footer__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--i2); box-shadow: 0 0 12px var(--i2); animation: pulse 2s infinite; }
.footer__headline { font-size: clamp(2rem, 5.4vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; margin: 0 auto 30px; max-width: 16ch; }
.footer__email {
  display: inline-block; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.4rem, 4vw, 2.6rem); letter-spacing: -.01em; position: relative; padding-bottom: 6px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.footer__email::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--grad); transition: right .4s var(--ease); }
.footer__email:hover::after { right: 0; }
.footer__avail { color: var(--text-soft); margin-top: 20px; font-size: 1.02rem; }
.footer__socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; margin-top: 34px; font-family: var(--mono); font-size: 14px; }
.footer__socials a { color: var(--text-soft); position: relative; transition: color .2s; }
.footer__socials a::after { content: "↗"; font-size: 11px; margin-left: 4px; opacity: .6; }
.footer__socials a:hover { color: var(--i2); }
.footer__socials .is-soon { color: var(--text-mut); opacity: .65; }
.footer__socials .is-soon i { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--border); padding: 2px 6px; border-radius: 6px; margin-left: 4px; }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.footer__brand { display: flex; flex-direction: column; gap: 3px; }
.footer__sig { font-family: var(--script); font-weight: 700; font-size: 24px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__tag { color: var(--i2); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.footer__copy { color: var(--text-mut); font-family: var(--mono); font-size: 12.5px; }

.designed-by { display: inline-flex; align-items: center; gap: 10px; color: var(--text-mut); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; transition: color .3s var(--ease); }
.designed-by:hover { color: var(--text); }
.eec-logo { height: 22px; width: auto; color: var(--text-soft); transition: color .3s var(--ease), filter .3s var(--ease), opacity .3s; }
.designed-by:hover .eec-logo--svg { color: var(--i2); filter: drop-shadow(0 0 8px rgba(34,211,238,.5)); }
.eec-logo--img { opacity: .82; }
.designed-by:hover .eec-logo--img { opacity: 1; filter: drop-shadow(0 0 8px rgba(34,211,238,.55)); }
:root[data-theme="light"] .eec-logo--img { filter: invert(1) brightness(.35); opacity: .7; }
:root[data-theme="light"] .designed-by:hover .eec-logo--img { filter: invert(1) brightness(.35) drop-shadow(0 0 8px rgba(34,211,238,.55)); opacity: .9; }
@media (max-width: 620px) {
  .footer { padding-top: 72px; }
  .footer__cta { margin-bottom: 56px; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero { padding-top: 130px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__side { order: -1; }
  .about { grid-template-columns: 1fr; }
  .glass-card { position: static; }
  .cards--3 { grid-template-columns: repeat(2,1fr); }
  .skills-grid { grid-template-columns: repeat(3,1fr); }
  .contact-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links {
    position: fixed; top: 64px; right: 16px; transform: translateY(-10px); transform-origin: top right;
    width: min(240px, calc(100vw - 32px)); flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border-radius: 16px; background: var(--bg);
    border: 1px solid var(--border); box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transition: .3s var(--ease);
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; font-size: 15.5px; border-radius: 10px; }
  .nav__links a::after { display: none; }
  .nav__links a:hover, .nav__links a.active { background: var(--surface-2); color: var(--text); }
  .nav__toggle { display: flex; }
  .section { padding: 68px 0; }
  .collab { padding: 46px 24px; }
  .cards--2, .cards--3 { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline__item { padding-left: 40px; }
}
@media (max-width: 440px) { .skills-grid { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .ping, .timeline__item--now::before, .hero__scroll span::after { animation: none !important; }
  .roll .rl-enter, .roll .rl-exit { animation: none !important; }
  .roll .rl-exit { display: none; }
  * { transition-duration: .01ms !important; }
}
