:root {
  --hx-navy: #0a1530;
  --hx-navy-2: #0f1f44;
  --hx-crimson: #e11d48;
  --hx-crimson-2: #be123c;
  --hx-gold: #f5c542;
  --hx-ink: #0a0f1f;
  --hx-text: #334155;
  --hx-text-2: #64748b;
  --hx-line: #e2e8f0;
  --hx-surface: #ffffff;
  --hx-bg: #f8fafc;
  --hx-grad: linear-gradient(135deg, #e11d48 0%, #f5c542 100%);
  --hx-grad-3: linear-gradient(135deg, #0a1530 0%, #e11d48 100%);
  --hx-shadow-sm: 0 1px 3px rgba(10,21,48,.06), 0 4px 12px rgba(10,21,48,.04);
  --hx-shadow-md: 0 4px 16px rgba(10,21,48,.08), 0 12px 40px rgba(10,21,48,.06);
  --hx-shadow-lg: 0 12px 36px rgba(10,21,48,.12), 0 24px 80px rgba(10,21,48,.08);
  --hx-radius: 16px;
  --hx-radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html[dir="rtl"] body, body {
  font-family: 'Tajawal', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  background: var(--hx-surface);
  color: var(--hx-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Tajawal', sans-serif; letter-spacing: -0.5px; }
img { max-width: 100%; display: block; }

/* ===== NAVIGATION ===== */
.hx-nav {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(10,21,48,0.06);
  transition: all 0.3s ease;
}
.hx-nav.is-scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 4px 24px rgba(10,21,48,0.06);
}
.hx-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.hx-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 900;
  color: var(--hx-ink);
}
.hx-logo-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--hx-grad-3);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900;
  font-family: 'Tajawal', sans-serif;
  box-shadow: 0 6px 16px rgba(225,29,72,0.3);
}
.hx-logo-text {
  font-size: 18px;
  background: var(--hx-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hx-menu {
  display: flex;
  gap: 28px;
  margin-inline-start: auto;
}
.hx-menu a {
  font-size: 15px;
  font-weight: 600;
  color: var(--hx-ink);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.hx-menu a::after {
  content: '';
  position: absolute;
  inset-inline-start: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--hx-grad);
  transform: scaleX(0);
  transform-origin: inset-inline-start;
  transition: transform 0.25s ease;
}
.hx-menu a:hover { color: var(--hx-crimson); }
.hx-menu a:hover::after,
.hx-menu a.is-active::after { transform: scaleX(1); }
.hx-menu a.is-active { color: var(--hx-crimson); }
.hx-nav-cta {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--hx-ink);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
}
.hx-nav-cta:hover {
  background: var(--hx-crimson);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(225,29,72,0.3);
}
.hx-burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.hx-burger span {
  width: 22px; height: 2px;
  background: var(--hx-ink);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.hx-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hx-burger.is-open span:nth-child(2) { opacity: 0; }
.hx-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== CONTAINERS ===== */
.hx-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hx-narrow { max-width: 900px; }
.hx-center { text-align: center; margin-top: 56px; }

/* ===== HERO ===== */
.hx-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 24px 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #050a1c 0%, #0a1530 40%, #1a0a2e 100%);
  color: #fff;
}
.hx-page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 24px 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #050a1c 0%, #0a1530 50%, #1a0a2e 100%);
  color: #fff;
}

.hx-hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hx-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: hx-float 20s ease-in-out infinite; }
.hx-blob-1 { width: 500px; height: 500px; background: #e11d48; top: -100px; left: -100px; }
.hx-blob-2 { width: 600px; height: 600px; background: #6366f1; top: 30%; right: -150px; animation-delay: -5s; animation-duration: 25s; }
.hx-blob-3 { width: 400px; height: 400px; background: #f5c542; bottom: -100px; left: 40%; animation-delay: -10s; opacity: 0.3; }
.hx-blob-cta-1 { width: 500px; height: 500px; background: #e11d48; top: -100px; right: -100px; opacity: 0.4; }
.hx-blob-cta-2 { width: 400px; height: 400px; background: #6366f1; bottom: -100px; left: -50px; opacity: 0.35; }
@keyframes hx-float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}
.hx-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.hx-hero-inner { position: relative; z-index: 2; max-width: 960px; text-align: center; }
.hx-page-hero-inner { max-width: 820px; }

.hx-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
  margin-bottom: 32px;
}
.hx-chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.2);
  animation: hx-pulse 2s ease-in-out infinite;
}
@keyframes hx-pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(34,197,94,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.hx-hero-name {
  font-size: clamp(40px, 8vw, 92px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hx-grad-text {
  background: linear-gradient(135deg, #fff 0%, #fff 40%, #f5c542 70%, #e11d48 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hx-hero-role {
  font-size: clamp(18px, 2.2vw, 22px);
  color: #f5c542;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 28px;
  min-height: 32px;
}
.hx-cursor { animation: hx-blink 0.8s ease-in-out infinite; }
@keyframes hx-blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
.hx-hero-desc {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  max-width: 720px;
  margin: 0 auto 48px;
}
.hx-hero-desc strong { color: #f5c542; font-weight: 700; }
.hx-hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 72px; }

.hx-hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 32px;
  border-radius: var(--hx-radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.hx-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hx-stat-num { display: flex; align-items: baseline; }
.hx-counter {
  font-size: 36px;
  font-weight: 900;
  background: var(--hx-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.hx-plus {
  font-size: 28px;
  font-weight: 900;
  color: #f5c542;
  margin-inline-start: 2px;
}
.hx-stat em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
}
.hx-divider {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.15), transparent);
}

.hx-scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  z-index: 3;
}
.hx-scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: hx-scroll 1.8s ease-in-out infinite;
}
@keyframes hx-scroll {
  0% { opacity: 0; transform: translate(-50%, 0); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* ===== BUTTONS ===== */
.hx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(.2,.9,.3,1);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
}
.hx-btn-big { padding: 18px 40px; font-size: 16px; }
.hx-btn-primary {
  background: var(--hx-grad);
  color: #0a0f1f !important;
  box-shadow: 0 8px 24px rgba(225,29,72,0.35);
}
.hx-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(225,29,72,0.45);
}
.hx-btn-ghost {
  background: rgba(255,255,255,0.06);
  color: #fff !important;
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hx-btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}
.hx-btn-dark {
  background: var(--hx-ink);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(10,15,31,0.25);
}
.hx-btn-dark:hover {
  background: var(--hx-crimson);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(225,29,72,0.35);
}
.hx-btn-outline {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.4);
}
.hx-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.hx-about, .hx-skills, .hx-projects, .hx-contact-sec,
.hx-cta, .hx-about-page, .hx-projects-page {
  padding: 120px 24px;
  position: relative;
}
.hx-about { background: var(--hx-surface); }
.hx-skills {
  background: linear-gradient(180deg, #050a1c 0%, #0a1530 100%);
  color: #fff;
  overflow: hidden;
}
.hx-skills::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(225,29,72,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(99,102,241,0.12), transparent 40%);
  pointer-events: none;
}
.hx-projects { background: var(--hx-bg); }

.hx-section-head { text-align: center; max-width: 720px; margin: 0 auto 72px; position: relative; z-index: 2; }
.hx-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--hx-crimson);
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(225,29,72,0.08);
}
.hx-eyebrow-light { color: #f5c542; background: rgba(245,197,66,0.12); }
.hx-h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--hx-ink);
}
.hx-h2-light { color: #fff; }
.hx-center-h2 { text-align: center; margin-bottom: 48px; }
.hx-subtitle { margin-top: 18px; font-size: 17px; line-height: 1.8; color: rgba(255,255,255,0.7); }
.hx-subtitle-dark { color: var(--hx-text-2); }

/* ===== ABOUT TWO-COL ===== */
.hx-two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.hx-about-text .hx-eyebrow { margin-bottom: 20px; }
.hx-about-text .hx-h2 { margin-bottom: 28px; }
.hx-lead { font-size: 17px; line-height: 1.9; color: var(--hx-text); margin-bottom: 18px; }
.hx-lead-big { font-size: 19px; }
.hx-lead strong { color: var(--hx-ink); font-weight: 700; }
.hx-signature-row { display: flex; align-items: center; gap: 24px; margin-top: 36px; flex-wrap: wrap; }

.hx-tilt {
  background: #fff;
  border-radius: var(--hx-radius-lg);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--hx-shadow-md);
  border: 1px solid var(--hx-line);
  transition: transform 0.15s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}
.hx-tilt::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(225,29,72,0.03) 0%, transparent 50%, rgba(99,102,241,0.03) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hx-tilt:hover::before { opacity: 1; }
.hx-tilt:hover { box-shadow: var(--hx-shadow-lg); }

.hx-avatar-wrap { position: relative; width: 140px; height: 140px; margin: 0 auto 24px; }
.hx-avatar-glow {
  position: absolute; inset: -10px;
  background: var(--hx-grad);
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.5;
  animation: hx-pulse-glow 3s ease-in-out infinite;
}
@keyframes hx-pulse-glow {
  0%,100% { opacity: 0.3; transform: scale(0.95); }
  50% { opacity: 0.6; transform: scale(1.05); }
}
.hx-avatar {
  position: relative;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--hx-grad-3);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 8px 32px rgba(10,21,48,0.3);
  z-index: 2;
  border: 4px solid #fff;
}
.hx-initial {
  font-size: 64px;
  font-weight: 900;
  font-family: 'Tajawal', sans-serif;
  background: linear-gradient(135deg, #f5c542, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hx-avatar-ring {
  position: absolute; inset: -12px;
  border: 2px dashed rgba(225,29,72,0.4);
  border-radius: 50%;
  animation: hx-spin 20s linear infinite;
}
@keyframes hx-spin { to { transform: rotate(360deg); } }

.hx-card-name { font-size: 24px; font-weight: 800; color: var(--hx-ink); margin-bottom: 6px; }
.hx-card-role { font-size: 14px; color: var(--hx-text-2); margin-bottom: 20px; letter-spacing: 1px; }
.hx-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hx-badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--hx-bg);
  border: 1px solid var(--hx-line);
  font-size: 12px;
  font-weight: 700;
  color: var(--hx-ink);
  letter-spacing: 0.5px;
}

/* ===== SKILLS GRID ===== */
.hx-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
.hx-skill-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--hx-radius-lg);
  padding: 40px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: start;
}
.hx-skill-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(245,197,66,0.1) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.hx-skill-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(245,197,66,0.25);
}
.hx-skill-card:hover::before { opacity: 1; }
.hx-skill-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--hx-grad);
  display: flex; align-items: center; justify-content: center;
  color: #0a0f1f;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(225,29,72,0.3);
}
.hx-skill-card h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.hx-skill-card p { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,0.7); }

/* ===== PROJECTS ===== */
.hx-proj {
  background: #fff;
  border-radius: var(--hx-radius-lg);
  overflow: hidden;
  box-shadow: var(--hx-shadow-sm);
  color: inherit;
  display: block;
  transition: transform 0.3s cubic-bezier(.2,.9,.3,1), box-shadow 0.3s ease;
  border: 1px solid var(--hx-line);
}
.hx-proj:hover { transform: translateY(-8px); box-shadow: var(--hx-shadow-lg); }
.hx-proj-visual {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.hx-proj-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 50%);
}
.hx-proj-gradient-1 { background: linear-gradient(135deg, #e11d48 0%, #7c3aed 100%); }
.hx-proj-gradient-2 { background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%); }
.hx-proj-gradient-3 { background: linear-gradient(135deg, #f5c542 0%, #e11d48 100%); }
.hx-proj-gradient-4 { background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%); }
.hx-proj-gradient-5 { background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%); }
.hx-proj-gradient-6 { background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%); }
.hx-proj-body { padding: 32px 28px; position: relative; text-align: start; }
.hx-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--hx-crimson);
  margin-bottom: 12px;
}
.hx-proj h3 { font-size: 22px; font-weight: 800; color: var(--hx-ink); margin-bottom: 12px; }
.hx-proj p { font-size: 15px; line-height: 1.8; color: var(--hx-text); margin-bottom: 16px; }
.hx-proj-arrow {
  position: absolute;
  top: 32px;
  inset-inline-end: 28px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--hx-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--hx-ink);
  font-size: 20px;
  transition: all 0.3s ease;
}
html[dir="rtl"] .hx-proj-arrow { transform: scaleX(-1); }
.hx-proj:hover .hx-proj-arrow {
  background: var(--hx-grad);
  color: #fff;
}
.hx-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hx-stack span {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--hx-bg);
  border: 1px solid var(--hx-line);
  font-size: 11px; font-weight: 700;
  color: var(--hx-ink);
  letter-spacing: 0.3px;
}

/* ===== CTA ===== */
.hx-cta {
  background: linear-gradient(135deg, #050a1c 0%, #1a0a2e 100%);
  color: #fff;
  overflow: hidden;
}
.hx-cta-bg { position: absolute; inset: 0; overflow: hidden; }
.hx-cta-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; }
.hx-cta-desc { font-size: 18px; color: rgba(255,255,255,0.75); line-height: 1.8; margin: 20px 0 40px; }
.hx-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== ABOUT PAGE ===== */
.hx-about-page { background: var(--hx-surface); }
.hx-prose { margin-bottom: 80px; }
.hx-timeline { margin: 100px 0 80px; }
.hx-timeline-track {
  position: relative;
  padding-inline-start: 40px;
  max-width: 780px;
  margin: 0 auto;
}
.hx-timeline-track::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  inset-inline-start: 15px;
  width: 2px;
  background: linear-gradient(180deg, var(--hx-crimson), var(--hx-gold));
}
.hx-tl-item { position: relative; margin-bottom: 28px; }
.hx-tl-dot {
  position: absolute;
  inset-inline-start: -32px;
  top: 28px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--hx-grad);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(225,29,72,0.2);
}
.hx-tl-card { padding: 28px 32px; text-align: start; }
.hx-tl-date {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--hx-crimson);
  margin-bottom: 8px;
}
.hx-tl-card h3 { font-size: 22px; font-weight: 800; color: var(--hx-ink); margin-bottom: 6px; }
.hx-tl-org { font-size: 14px; color: var(--hx-text-2); margin-bottom: 12px; font-weight: 600; }
.hx-tl-card p:last-child { font-size: 15px; line-height: 1.8; color: var(--hx-text); }

.hx-edu { margin-top: 80px; }
.hx-edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hx-edu-card { padding: 36px 28px; text-align: center; }
.hx-edu-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--hx-grad);
  color: #0a0f1f;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.hx-edu-card h3 { font-size: 20px; font-weight: 800; color: var(--hx-ink); margin-bottom: 6px; }
.hx-edu-card p { font-size: 14px; color: var(--hx-text-2); }

/* ===== CONTACT PAGE ===== */
.hx-contact-sec { background: var(--hx-surface); }
.hx-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 80px;
}
.hx-contact-card { padding: 44px 32px; text-align: center; display: block; }
.hx-contact-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  color: #fff;
}
.hx-ci-mail { background: linear-gradient(135deg, #e11d48, #f5c542); }
.hx-ci-loc { background: linear-gradient(135deg, #6366f1, #e11d48); }
.hx-ci-avail { background: linear-gradient(135deg, #10b981, #06b6d4); }
.hx-c-label {
  display: block;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--hx-crimson); font-weight: 700;
  margin-bottom: 10px;
}
.hx-contact-card h3 { font-size: 22px; font-weight: 800; color: var(--hx-ink); margin-bottom: 12px; word-break: break-word; }
.hx-contact-card p { font-size: 15px; line-height: 1.7; color: var(--hx-text); }

/* ===== CONTACT FORM ===== */
.hx-form-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px;
  background: #fff;
  border-radius: var(--hx-radius-lg);
  box-shadow: var(--hx-shadow-md);
  border: 1px solid var(--hx-line);
}
.hx-form-head { text-align: center; margin-bottom: 40px; }
.hx-form-head .hx-h2 { font-size: 34px; margin-top: 12px; }
.hx-form-sub { margin-top: 14px; color: var(--hx-text-2); font-size: 15px; }
.hx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hx-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.hx-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--hx-ink);
  letter-spacing: 0.3px;
}
.hx-opt { color: var(--hx-text-2); font-weight: 500; font-size: 12px; }
.hx-field input, .hx-field textarea {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--hx-line);
  background: var(--hx-bg);
  font-family: inherit;
  font-size: 15px;
  color: var(--hx-ink);
  transition: all 0.2s ease;
  resize: vertical;
}
.hx-field input:focus, .hx-field textarea:focus {
  outline: none;
  border-color: var(--hx-crimson);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(225,29,72,0.08);
}
.hx-field small { color: var(--hx-crimson); font-size: 12px; font-weight: 600; }
.hx-form button { margin-top: 12px; width: auto; align-self: flex-start; }

.hx-toast {
  max-width: 780px;
  margin: 0 auto 40px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(16,185,129,0.25);
}

/* ===== FOOTER ===== */
.hx-footer {
  background: #050a1c;
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 60px 24px 32px;
}
.hx-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 32px;
}
.hx-footer-brand {
  display: flex; align-items: center; gap: 14px;
}
.hx-footer-brand strong { display: block; color: #fff; font-size: 16px; }
.hx-footer-brand span { font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 1px; }
.hx-footer-links { display: flex; gap: 24px; }
.hx-footer-links a { font-size: 14px; font-weight: 600; transition: color 0.2s; }
.hx-footer-links a:hover { color: #f5c542; }
.hx-footer-social { display: flex; gap: 10px; }
.hx-footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.25s ease;
}
.hx-footer-social a:hover {
  background: var(--hx-grad);
  color: #0a0f1f;
  border-color: transparent;
  transform: translateY(-3px);
}
.hx-footer-copy {
  grid-column: 1 / -1;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.hx-footer-copy strong { color: #f5c542; }

/* ===== UTILITIES ===== */
::selection { background: var(--hx-crimson); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--hx-bg); }
::-webkit-scrollbar-thumb { background: var(--hx-ink); }
::-webkit-scrollbar-thumb:hover { background: var(--hx-crimson); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hx-menu { display: none; position: absolute; top: 72px; right: 0; left: 0; flex-direction: column; background: #fff; padding: 24px; gap: 16px; box-shadow: 0 12px 40px rgba(10,21,48,0.1); border-bottom: 1px solid var(--hx-line); }
  .hx-menu.is-open { display: flex; }
  .hx-nav-cta { display: none; }
  .hx-burger { display: flex; margin-inline-start: auto; }
  .hx-two-col { grid-template-columns: 1fr; gap: 48px; }
  .hx-grid-3, .hx-edu-grid, .hx-contact-grid, .hx-form-row { grid-template-columns: 1fr; }
  .hx-hero-stats { flex-direction: column; gap: 24px; padding: 24px; }
  .hx-divider { width: 60px; height: 1px; }
  .hx-about, .hx-skills, .hx-projects, .hx-contact-sec,
  .hx-cta, .hx-about-page, .hx-projects-page { padding: 80px 24px; }
  .hx-hero { min-height: auto; }
  .hx-footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hx-form-wrap { padding: 32px 24px; }
}
