/* =============================================================
   RAMZI ALASHI — PORTFOLIO  |  style.css
   Fonts: Syne (headings) + DM Sans (body)
   Theme: Dark luxury editorial  |  Accent: electric cyan #00d4ff
============================================================= */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --bg:        #080810;
  --bg1:       #0e0e1a;
  --bg2:       #13131f;
  --surface:   rgba(255,255,255,.045);
  --surface2:  rgba(255,255,255,.075);
  --border:    rgba(255,255,255,.09);
  --border2:   rgba(255,255,255,.16);

  --ink:       #f0f0ee;
  --ink2:      rgba(240,240,238,.65);
  --ink3:      rgba(240,240,238,.40);

  --accent:    #00d4ff;
  --accent2:   #b8ff3d;
  --purple:    #7c6af5;

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --r-xl:  24px;
  --r-lg:  16px;
  --r-md:  10px;
  --r-sm:   6px;

  --ease-out:  cubic-bezier(.22,.68,0,1.2);
  --ease-smooth: cubic-bezier(.4,0,.2,1);

  --max: 1160px;
  --nav-h: 72px;
}

[data-theme="light"] {
  --bg:       #f5f4f0;
  --bg1:      #eeede9;
  --bg2:      #e8e7e3;
  --surface:  rgba(0,0,0,.04);
  --surface2: rgba(0,0,0,.07);
  --border:   rgba(0,0,0,.09);
  --border2:  rgba(0,0,0,.16);
  --ink:      #111112;
  --ink2:     rgba(17,17,18,.65);
  --ink3:     rgba(17,17,18,.40);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  transition: background .35s, color .35s;
}
::selection { background: rgba(0,212,255,.18); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .025;
  pointer-events: none;
  z-index: 9999;
}

/* ── SCROLL PROGRESS ─────────────────────────────────────────── */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 10000;
  transition: width .08s linear;
}

/* ── SKIP LINK ───────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -50px; left: 16px;
  background: var(--accent);
  color: #000;
  padding: 8px 16px;
  border-radius: 999px;
  z-index: 10001;
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: var(--max);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  background: rgba(8,8,16,.82);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: 999px;
  z-index: 1000;
  transition: background .3s, border-color .3s;
}
[data-theme="light"] .nav { background: rgba(245,244,240,.88); }
.nav.scrolled { box-shadow: 0 8px 40px rgba(0,0,0,.4); }

.nav-logo {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo-bracket { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-link:hover,
.nav-link.active { color: var(--ink); background: var(--surface2); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  color: var(--ink2);
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: color .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { color: var(--ink); background: var(--surface2); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  padding: 0 10px;
  transition: background .2s;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s, width .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease-out);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav-links { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mobile-nav-link {
  font-family: var(--font-head);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 700;
  color: var(--ink2);
  padding: 4px 0;
  transition: color .2s;
}
.mobile-nav-link:hover { color: var(--accent); }
.mobile-nav-social {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--ink3);
}
.mobile-nav-social a { transition: color .2s; }
.mobile-nav-social a:hover { color: var(--ink); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s, opacity .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97) !important; }
.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(0,212,255,.18), 0 8px 24px rgba(0,212,255,.28); }
.btn-ghost {
  background: transparent;
  color: var(--ink2);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { background: var(--surface2); color: var(--ink); border-color: var(--border2); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border2);
  padding: 10px 20px;
}
.btn-outline:hover { background: var(--surface2); border-color: rgba(0,212,255,.4); }
.btn.full { width: 100%; justify-content: center; }

/* Magnetic wrapper */
.magnetic { position: relative; }

/* ── LAYOUT HELPERS ──────────────────────────────────────────── */
.section {
  padding: 100px 0;
  position: relative;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 32px;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink2);
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 100%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.glow-1 {
  width: 600px; height: 600px;
  right: -100px; top: -100px;
  background: radial-gradient(circle, rgba(0,212,255,.12) 0%, transparent 70%);
  animation: heroGlowFloat 8s ease-in-out infinite;
}
.glow-2 {
  width: 400px; height: 400px;
  left: 10%; bottom: 0;
  background: radial-gradient(circle, rgba(124,106,245,.1) 0%, transparent 70%);
  animation: heroGlowFloat 10s ease-in-out infinite reverse;
}
@keyframes heroGlowFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink2);
  border: 1px solid var(--border2);
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 4px rgba(184,255,61,.2);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(184,255,61,.2); }
  50% { box-shadow: 0 0 0 8px rgba(184,255,61,.06); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}
.title-line {
  font-family: var(--font-head);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.04em;
  display: block;
  overflow: hidden;
}
.title-outline {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
  transition: color .3s, -webkit-text-stroke .3s;
}
.hero:hover .title-outline {
  color: transparent;
  -webkit-text-stroke-color: var(--accent);
}
.title-small {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--ink2);
  margin-top: 12px;
  font-style: italic;
}

.hero-desc {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink2);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.htag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--ink2);
  transition: border-color .2s, color .2s;
}
.htag:hover { border-color: var(--accent); color: var(--accent); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Code card (hero right) */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.code-card {
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  padding: 0;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px var(--border);
  animation: cardFloat 5s ease-in-out infinite;
}
@keyframes cardFloat {
  0%,100% { transform: translateY(0) rotate3d(0,1,0,0deg); }
  50% { transform: translateY(-12px) rotate3d(0,1,0,2deg); }
}
.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #27c93f; }
.code-file {
  margin-left: 8px;
  font-size: 12px;
  color: var(--ink3);
  font-family: 'DM Mono', 'Fira Code', monospace;
}
.code-body {
  padding: 20px;
  font-family: 'DM Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}
.code-body code { display: block; }
.c-k  { color: #c792ea; }   /* keyword */
.c-v  { color: #82aaff; }   /* variable */
.c-s  { color: #c3e88d; }   /* string */
.c-p  { color: #f07178; }   /* property */
.code-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--accent2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  animation: dotPulse 1.5s ease-in-out infinite;
}

/* Floating chips */
.floating-chip {
  position: absolute;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 6px 14px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  color: var(--ink2);
}
.chip-a { top: -16px; right: 10px;  animation: chipFloat 4s 0s ease-in-out infinite; }
.chip-b { bottom: 60px; left: -20px; animation: chipFloat 5s .8s ease-in-out infinite; }
.chip-c { bottom: -16px; right: 40px; animation: chipFloat 3.5s 1.4s ease-in-out infinite; }
@keyframes chipFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── STATS ───────────────────────────────────────────────────── */
.stats-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
  position: relative;
}
.stats-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.stat-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 16px 24px;
}
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-plus { font-size: 24px; font-weight: 700; color: var(--accent); vertical-align: super; }
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--ink3);
  margin-top: 4px;
  letter-spacing: .04em;
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── ABOUT ───────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}
.about-text {
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-values { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ink2);
}
.v-icon { color: var(--accent); font-size: 14px; flex-shrink: 0; }

.about-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg1) 100%);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.about-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(0,212,255,.12) 0%, transparent 60%);
}
.img-initials {
  font-family: var(--font-head);
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--border2);
}
.about-info { padding: 20px; display: flex; flex-direction: column; gap: 0; }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-key { color: var(--ink3); }
.info-val { color: var(--ink); font-weight: 500; }
.info-val.available {
  color: var(--accent2);
  background: rgba(184,255,61,.1);
  border: 1px solid rgba(184,255,61,.2);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
}

/* ── PROJECTS ────────────────────────────────────────────────── */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.projects-header .section-title { margin-bottom: 0; }
.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  color: var(--ink2);
  background: transparent;
  transition: all .2s;
}
.filter-btn:hover { color: var(--ink); background: var(--surface2); }
.filter-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  will-change: transform;
  transform-style: preserve-3d;
}
.project-card:hover {
  border-color: rgba(0,212,255,.3);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(0,212,255,.1);
}
.project-card.hidden { display: none; }

.project-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg2);
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .5s var(--ease-smooth), opacity .3s;
}
.project-card:hover .project-img img { transform: scale(1.04); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity .3s;
  backdrop-filter: blur(4px);
}
.project-card:hover .project-overlay { opacity: 1; }
.overlay-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  background: rgba(255,255,255,.1);
  transition: background .2s, border-color .2s;
}
.overlay-btn:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); }
.overlay-btn.primary { background: var(--accent); border-color: var(--accent); color: #000; }

.project-body { padding: 20px; }
.project-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.project-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.project-desc {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--ink2);
}

/* ── SKILLS ──────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.skill-group {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: border-color .3s;
}
.skill-group:hover { border-color: rgba(0,212,255,.2); }
.skill-group-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 24px;
}
.skill-bars { display: flex; flex-direction: column; gap: 18px; }
.skill-bar { position: relative; }
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink2);
  margin-bottom: 8px;
}
.skill-bar-label span:last-child { color: var(--accent); font-weight: 600; }
.skill-bar-track {
  height: 4px;
  background: var(--surface2);
  border-radius: 999px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

.tech-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tech-pill {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  color: var(--ink2);
  background: var(--surface);
  transition: all .2s;
  cursor: default;
}
.tech-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,212,255,.06);
  transform: translateY(-2px);
}

/* ── EXPERIENCE ──────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
}
.tl-date {
  font-size: 13px;
  color: var(--ink3);
  font-weight: 500;
  padding-top: 2px;
}
.tl-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.tl-company { font-size: 13px; color: var(--accent); margin-bottom: 12px; font-weight: 500; }
.tl-desc { font-size: 14px; color: var(--ink2); line-height: 1.7; margin-bottom: 14px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tags span {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--ink2);
}

/* ── TESTIMONIALS ────────────────────────────────────────────── */
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  transition: border-color .3s, transform .3s;
}
.testimonial-card:hover { border-color: rgba(0,212,255,.25); transform: translateY(-4px); }
.quote-mark {
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
  opacity: .3;
  margin-bottom: 8px;
}
.testi-text {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 600; }
.testi-role { font-size: 12px; color: var(--ink3); }
.testi-stars {
  margin-left: auto;
  color: #fbbf24;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-desc { font-size: 16px; color: var(--ink2); line-height: 1.7; margin-bottom: 36px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink2);
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .2s;
}
.contact-link:hover { border-color: rgba(0,212,255,.35); background: rgba(0,212,255,.05); color: var(--ink); }
.cl-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.cl-arrow { margin-left: auto; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.contact-link:hover .cl-arrow { opacity: 1; transform: translateX(0); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--ink2); }
.form-input, .form-textarea {
  background: var(--bg1);
  border: 1px solid var(--border2);
  border-radius: var(--r-md);
  padding: 12px 16px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  resize: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink3); }
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,212,255,.1);
}
.form-input.error, .form-textarea.error { border-color: #ff5f56; box-shadow: 0 0 0 4px rgba(255,95,86,.1); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.footer-copy { font-size: 13px; color: var(--ink3); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink2);
  transition: all .2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,212,255,.06); }

/* ── BACK TO TOP ─────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--ink2);
  font-size: 18px;
  display: grid;
  place-items: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s, background .2s, border-color .2s;
}
.back-to-top:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ── REVEAL ANIMATIONS ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease-smooth), transform .7s var(--ease-smooth);
}
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease-smooth), transform .8s var(--ease-smooth);
}
.reveal-float {
  opacity: 0;
  transition: opacity .6s var(--ease-smooth);
}
.reveal.in, .reveal-up.in, .reveal-float.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .nav-links { display: none; }
  .btn-outline { display: none; }
  .hamburger { display: flex; }
  .projects-header { flex-direction: column; align-items: flex-start; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .stat-divider { display: none; }
  .stats-grid { gap: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-visual { max-width: 340px; }
}

@media (max-width: 480px) {
  :root { --max: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .back-to-top { bottom: 20px; right: 20px; }
  .hero-visual { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
