:root {
  --bg-cream: #F1ECE2;
  --cream: #F1ECE2;
  --cream-alt: #E6E0D2;
  --ink-black: #11110F;
  --black: #11110F;
  --ink: #11110F;
  --accent: #EE5A2A;
  --orange: #EE5A2A;
  --orange-deep: #D0451B;
  --white: #FFFFFF;
  --grid-line: rgba(17, 17, 15, 0.07);
  --line-soft: rgba(17, 17, 15, 0.07);
  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --body: 'Inter', -apple-system, sans-serif;
  --maxw: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-cream);
  color: var(--ink-black);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero load-in sequence ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroPopIn {
  0% { opacity: 0; transform: scale(0.3) rotate(-25deg); }
  70% { opacity: 1; transform: scale(1.08) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes spinInfinite {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes lineDraw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes gridFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bgGraphicDrift {
  0%, 100% { transform: translateY(0px); opacity: 0.14; }
  50% { transform: translateY(-14px); opacity: 0.14; }
}

@keyframes bgGraphicFadeIn {
  from { opacity: 0; }
  to { opacity: 0.14; }
}

.hero-anim {
  opacity: 0;
  animation: heroFadeUp .85s cubic-bezier(.16, .84, .44, 1) forwards;
}

.hero-anim.d1 { animation-delay: .05s; }
.hero-anim.d2 { animation-delay: .20s; }
.hero-anim.d3 { animation-delay: .36s; }
.hero-anim.d5 { animation-delay: .72s; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-black);
  display: inline-block;
}

.eyebrow.accent {
  color: var(--accent);
}

.eyebrow-dash::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink-black);
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}

.btn-solid {
  background: var(--ink-black);
  color: var(--bg-cream);
  box-shadow: 4px 4px 0px rgba(0,0,0,0.15);
}

.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink-black);
}

.btn-outline {
  background: var(--white);
  color: var(--ink-black);
  box-shadow: 4px 4px 0px var(--ink-black);
}

.btn-outline:hover {
  background: var(--ink-black);
  color: var(--bg-cream);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--accent);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 11.5px;
}

.btn-block {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  width: 100%;
  justify-content: center;
  box-shadow: 4px 4px 0 var(--ink-black);
}

.btn-block:hover {
  background: var(--ink-black);
  border-color: var(--ink-black);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--accent);
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-cream);
  border-bottom: 3px solid var(--ink-black);
  height: 85px;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  color: var(--accent);
  flex-shrink: 0;
  width: 34px;
  height: 34px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink-black);
  text-transform: uppercase;
}

.logo-sub {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  border: 2px solid var(--ink-black);
  box-shadow: 4px 4px 0 var(--accent);
  background: var(--white);
  padding: 0;
}

.main-nav a {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-right: 2px solid var(--ink-black);
  transition: background .15s ease, color .15s ease;
  color: var(--ink-black);
  text-transform: uppercase;
}

.main-nav a:last-child {
  border-right: none;
}

.main-nav a:hover {
  background: var(--ink-black);
  color: var(--bg-cream);
}

.nav-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.status-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  border: 2px solid var(--ink-black);
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  background: var(--white);
  color: var(--ink-black);
  box-shadow: 3px 3px 0 var(--ink-black);
}

.status-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: inline-block;
  border: 1px solid var(--ink-black);
  flex-shrink: 0;
}

.status-badge:hover {
  background: var(--ink-black);
  color: var(--bg-cream);
  box-shadow: 3px 3px 0 var(--accent);
}

.nav-toggle {
  display: none;
  border: 2px solid var(--ink-black);
  background: transparent;
  padding: 9px 11px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-black);
  margin: 4px 0;
}

@media (max-width: 920px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-top: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    border-right: none;
    border-bottom: 2px solid var(--ink-black);
    padding: 14px 20px;
  }
  .status-badge {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .header-inner {
    position: relative;
  }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--ink-black);
  min-height: calc(100vh - 85px);
  height: calc(100vh - 85px);
  padding: 48px 0 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-cream);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  z-index: 0;
  overflow: hidden;
}

#heroGridCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-decor-wrap {
  position: absolute;
  top: 100px;
  right: 70px;
  width: 56px;
  height: 56px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  animation: heroPopIn .7s cubic-bezier(.2,.9,.35,1.1) .3s forwards;
}

.hero-decor-square {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border: 3px solid var(--ink-black);
  box-shadow: 4px 4px 0 var(--ink-black);
  animation: spinInfinite 14s linear infinite;
}

.hero-code-bg {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  animation: bgGraphicFadeIn .5s ease .3s forwards, bgGraphicDrift 7s ease-in-out 0.8s infinite;
}

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  flex: 1;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}

.availability {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
}

.availability .dot {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border: 2px solid var(--ink-black);
  display: inline-block;
  flex-shrink: 0;
}

.hero-name {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.03em;
}

.hero-name .line-1 {
  display: block;
  color: var(--ink-black);
  font-size: clamp(3rem, 11vw, 8.2rem);
}

.hero-name .line-2 {
  display: block;
  color: var(--accent);
  font-size: clamp(2.5rem, 9.2vw, 6.8rem);
  margin-top: 0;
}

.hero-divider {
  height: 2px;
  background: var(--ink-black);
  margin: 52px 0 34px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  animation: lineDraw .9s cubic-bezier(.16,.84,.44,1) .56s forwards;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 26px;
}

.hero-tagline {
  font-family: var(--mono);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 600;
  letter-spacing: .02em;
  max-width: 540px;
  text-transform: uppercase;
  color: var(--ink-black);
}

.hero-tagline .accent {
  color: var(--accent);
}

.cursor {
  display: inline-block;
  animation: blink 1.1s steps(1) infinite;
  color: var(--accent);
  font-weight: 700;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
    padding: 12px 0;
  }
  .hero-decor-wrap {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  .hero-decor-square {
    width: 40px;
    height: 40px;
  }
  .hero-top-row {
    margin-bottom: 36px;
  }
  .hero-divider {
    margin: 36px 0 24px;
  }
  .hero-code-bg svg {
    width: 260px;
    height: 180px;
  }
}

/* ================= SECTION SHARED ================= */
.section {
  padding: 96px 0;
  border-bottom: 2.5px solid var(--black);
}

.section.dark {
  background: var(--black);
  color: var(--cream);
}

.section-title {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: .9;
  font-size: clamp(2.75rem, 6.4vw, 7.5rem);
  margin: 14px 0 0;
  letter-spacing: -.02em;
  color: var(--ink-black);
}

.section-sub {
  font-family: var(--body);
  font-size: 16px;
  max-width: 560px;
  opacity: .78;
  line-height: 1.65;
}

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

/* ================= ABOUT SECTION ================= */
.about-section {
  background: #FFFDF8;
  padding: 104px 0;
  border-bottom: 3px solid var(--ink-black);
}

.about-section .eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
}

/* 2-Tone Accent Rule Under Heading */
.section-accent-rule {
  display: flex;
  align-items: flex-end;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 44px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.16, 0.84, 0.44, 1) 250ms;
}

.section-accent-rule.in-view {
  transform: scaleX(1);
}

.section-accent-rule .rule-orange {
  width: 34%;
  height: 3.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-accent-rule .rule-black {
  width: 66%;
  height: 2px;
  background: var(--ink-black);
  flex-shrink: 0;
}

.about-content {
  max-width: 820px;
}

.about-lead {
  font-family: var(--body);
  font-weight: 800;
  font-size: clamp(1.75rem, 2.3vw, 2.75rem);
  color: var(--ink-black);
  line-height: 1.28;
  letter-spacing: -0.015em;
  max-width: 720px;
  margin-bottom: 24px;
}

.about-sub {
  font-family: var(--body);
  font-weight: 400;
  font-size: 14.5px;
  color: rgba(17, 17, 15, 0.65);
  line-height: 1.6;
  max-width: 600px;
}

/* Stats Strip */
.stats-strip {
  display: inline-flex;
  flex-wrap: wrap;
  border: 2px.5px solid var(--ink-black);
  border: 2px solid var(--ink-black);
  background: var(--ink-black);
  margin-top: 48px;
  gap: 0;
  width: auto;
  max-width: 100%;
}

.stat-cell {
  flex: 1;
  min-width: 180px;
  background: #F0ECE2;
  padding: 26px 32px;
  border-right: 2px solid var(--ink-black);
}

.stat-cell:last-child {
  border-right: none;
}

.stat-cell .stat-num {
  font-family: var(--display);
  font-size: 44px;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.stat-cell .stat-label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-black);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 10px;
  display: block;
  max-width: none;
}

/* Scroll reveal stagger delays */
.reveal.d0 { transition-delay: 0ms; }
.reveal.d1 { transition-delay: 100ms; }
.reveal.d2 { transition-delay: 300ms; }
.reveal.d3 { transition-delay: 400ms; }

@media (max-width: 640px) {
  .about-section {
    padding: 64px 0;
  }
  .stats-strip {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .stat-cell {
    border-right: none;
    border-bottom: 2px solid var(--ink-black);
  }
  .stat-cell:last-child {
    border-bottom: none;
  }
}

/* ================= TECH STRIP ================= */
.tech-banner {
  background: var(--black);
  border-top: 2.5px solid var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 0;
  text-align: center;
  overflow: hidden;
}

.tech-banner span {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--orange);
}

.tech-marquee-wrap {
  background: var(--black);
  border-bottom: 2.5px solid var(--black);
  overflow: hidden;
  padding: 0;
}

.tech-marquee {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 35s linear infinite;
}

.tech-marquee-wrap:hover .tech-marquee {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tech-tile {
  width: 76px;
  height: 70px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  transition: background .2s ease, transform .2s ease;
}

.tech-tile:hover {
  background: rgba(238, 90, 42, 0.25);
}

.tech-tile img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.5));
}

.tech-tile img.icon-white {
  filter: brightness(0) invert(1) drop-shadow(0px 1px 3px rgba(255, 255, 255, 0.7)) !important;
}

/* ================= STATEMENT (BUILT UNDER PRESSURE) ================= */
.statement-section {
  background: #F3EEE6;
  padding: 104px 0 94px;
  border-bottom: 2.5px solid var(--black);
  position: relative;
  overflow: hidden;
}

.statement-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 340px;
}

.statement-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.statement-title {
  font-family: var(--body);
  font-weight: 800;
  font-size: clamp(2rem, 4.3vw, 3.35rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 18px 0 28px;
  color: var(--black);
}

.statement-sub {
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  max-width: 580px;
  color: #D24F2B;
}

.tea-graphic {
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-45%);
  width: 380px;
  height: 380px;
  pointer-events: none;
  z-index: 1;
}

.tea-graphic svg {
  width: 100%;
  height: 100%;
  max-width: none;
}

@media (max-width: 960px) {
  .statement-inner {
    min-height: auto;
  }
  .tea-graphic {
    width: 260px;
    height: 260px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.45;
  }
}

@media (max-width: 640px) {
  .statement-section {
    padding: 68px 0;
  }
  .tea-graphic {
    width: 200px;
    height: 200px;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.25;
  }
}

/* ================= WORK EXPERIENCE SECTION ================= */
.work-exp-section {
  background: #F3EEE6;
  padding: 104px 0;
  border-bottom: 2.5px solid var(--black);
}

.work-exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 56px;
}

.work-exp-header-left {
  flex: 1;
  min-width: 320px;
}

.work-exp-header-sub {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(17, 17, 15, 0.75);
  max-width: 380px;
  padding-top: 28px;
}

.work-exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.work-exp-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 840px) {
  .work-exp-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.work-exp-date-col {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 4px;
}

.work-dot {
  color: var(--orange);
  font-size: 18px;
  line-height: 1;
}

.work-dot.muted {
  color: var(--black);
  opacity: 0.4;
}

.work-date-text {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: rgba(17, 17, 15, 0.85);
  line-height: 1.35;
}

.work-exp-card {
  background: #FFFDF8;
  border: 2px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  padding: 28px 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-exp-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--orange);
}

.work-card-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.work-company {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(17, 17, 15, 0.55);
  letter-spacing: 0.04em;
  display: block;
}

.work-role {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  color: var(--black);
  line-height: 1.15;
  text-transform: uppercase;
}

.work-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-bullets li {
  font-family: var(--body);
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(17, 17, 15, 0.85);
  position: relative;
  padding-left: 18px;
}

.work-bullets li::before {
  content: "▪";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-size: 12px;
}

.work-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-chips span {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--black);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* ================= RESUME / PROFILE (AHMED AYYAN STYLE) ================= */
.resume-header-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 24px;
}

.resume-header-left {
  flex: 1;
}

.resume-header-right {
  max-width: 420px;
  padding-bottom: 4px;
}

.resume-sub-text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  color: #555555;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resume-card {
  margin-top: 36px;
  border: 2.5px solid var(--black);
  background: var(--white);
  display: grid;
  grid-template-columns: 310px 1fr;
  box-shadow: 10px 10px 0 var(--orange);
  position: relative;
}

@media (max-width: 860px) {
  .resume-card {
    grid-template-columns: 1fr;
    box-shadow: 6px 6px 0 var(--orange);
  }
  .resume-header-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .resume-header-right {
    max-width: 100%;
  }
}

.resume-photo-col {
  background: var(--black);
  color: var(--cream);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 2.5px solid var(--black);
}

@media (max-width: 860px) {
  .resume-photo-col {
    border-right: none;
    border-bottom: 2.5px solid var(--black);
  }
}

.resume-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--orange);
  border: 2px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.resume-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.resume-id h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}

.resume-id .role {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .08em;
  margin-top: 6px;
  text-transform: uppercase;
}

.resume-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 4px 0;
}

.resume-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resume-contacts a, .resume-contacts span {
  font-family: var(--mono);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dddddd;
  word-break: break-all;
  transition: color .15s ease;
}

.resume-contacts a:hover {
  color: var(--orange);
}

.resume-contacts svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--orange);
}

/* Skills blocks in sidebar */
.skills-block {
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
}

.skills-block h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.skill-gauge {
  margin-bottom: 12px;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  margin-bottom: 5px;
  color: #cccccc;
}

.skill-bar {
  height: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
}

.skill-fill {
  height: 100%;
  background: var(--orange);
}

.chip.font-sm {
  font-size: 9.5px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #eeeeee;
  background: rgba(255, 255, 255, 0.05);
}

/* Main Resume Body */
.resume-main {
  padding: 40px 38px;
  background: #ffffff;
}

@media (max-width: 600px) {
  .resume-main {
    padding: 24px 20px;
  }
}

.resume-block {
  margin-bottom: 32px;
}

.resume-block:last-of-type {
  margin-bottom: 28px;
}

.resume-block h4 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resume-block p {
  font-size: 15px;
  line-height: 1.65;
  color: #333333;
}

.resume-sub-box {
  border: 2px solid var(--black);
  background: var(--bg-cream);
  padding: 22px 24px;
  box-shadow: 4px 4px 0 var(--black);
}

.job-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.job-title {
  font-family: var(--display, sans-serif);
  font-weight: 800;
  font-size: 16px;
  color: var(--black);
}

.job-date {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--orange);
  font-weight: 700;
}

.job-sub {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #666666;
  font-weight: 700;
  margin-bottom: 12px;
}

.job-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.job-bullet-list li {
  font-size: 14px;
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
  color: #222222;
}

.job-bullet-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
}

.edu-desc {
  font-size: 13.5px;
  color: #555555;
  line-height: 1.55;
}

.proj-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .proj-highlight-grid {
    grid-template-columns: 1fr;
  }
}

.proj-mini-card {
  border: 2px solid var(--black);
  background: var(--bg-cream);
  padding: 16px;
  box-shadow: 3px 3px 0 var(--black);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proj-mini-card .p-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  color: var(--black);
}

.proj-mini-card .p-desc {
  font-size: 12.5px;
  color: #555555;
  line-height: 1.45;
  flex: 1;
}

.proj-mini-card .p-tags {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip.font-dark {
  background: var(--black);
  color: var(--white);
  border: 1.5px solid var(--black);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  box-shadow: 2px 2px 0 var(--orange);
}

.resume-cta-btn {
  background: var(--orange);
  color: var(--black);
  border: 2.5px solid var(--black);
  box-shadow: 6px 6px 0 var(--black);
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 800;
  padding: 18px 32px;
  text-align: center;
  display: block;
  width: 100%;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  margin-top: 36px;
}

.resume-cta-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--black);
  background: #ff5522;
  color: var(--black);
}

.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1.5px solid var(--black);
  padding: 7px 11px;
  text-transform: uppercase;
}

/* ================= ROLE TICKER BAR ================= */
.role-ticker-bar {
  background: var(--orange);
  border-top: 2.5px solid var(--black);
  border-bottom: 2.5px solid var(--black);
  overflow: hidden;
  padding: 12px 0;
}

.role-ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.role-ticker-track span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--black);
  white-space: nowrap;
  padding-right: 28px;
}

/* ================= INTELLIGENCE, APPLIED (AHMED AYYAN DESIGN) ================= */
.intelligence-section {
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding: 104px 0;
}

.relative {
  position: relative;
}

.intel-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 52px;
  position: relative;
  z-index: 2;
}

.intel-header-left {
  max-width: 620px;
}

.intel-orange-line {
  height: 2.5px;
  background: var(--orange);
  width: 100%;
  margin-top: 18px;
  transform-origin: left;
}

.intel-header-sub {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream);
  max-width: 400px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.intel-watermark {
  position: absolute;
  right: -10px;
  top: 10px;
  width: 320px;
  height: 320px;
  color: rgba(90, 45, 20, 0.45);
  pointer-events: none;
  z-index: 1;
}

.intel-watermark svg {
  width: 100%;
  height: 100%;
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}

@media (max-width: 860px) {
  .intel-grid {
    grid-template-columns: 1fr;
  }
}

.intel-card {
  border: 2px solid var(--black);
  background: #FAF6EE;
  box-shadow: 6px 6px 0 var(--orange);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: var(--black);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.intel-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--black);
}

.intel-card-body {
  padding: 26px 28px 22px;
  flex: 1;
}

.intel-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.intel-num {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.08em;
}

.intel-sys {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.orange-dot {
  color: var(--orange);
  font-size: 10px;
}

.intel-divider-line {
  height: 1px;
  background: rgba(17, 17, 15, 0.15);
  margin: 12px 0 16px;
}

.intel-category {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.intel-title {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 24px);
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.intel-desc {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(17, 17, 15, 0.82);
  margin-bottom: 18px;
}

.intel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.intel-chips span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--black);
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

.intel-bullets {
  list-style: none;
  padding: 0;
  margin: 14px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intel-bullets li {
  font-family: var(--body);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(17, 17, 15, 0.88);
  position: relative;
  padding-left: 16px;
}

.intel-bullets li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--orange);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.intel-repo-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--orange);
  color: #FFFFFF;
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  text-decoration: none;
  border-top: 2px solid var(--black);
  transition: background 0.18s ease, color 0.18s ease;
}

.intel-repo-btn:hover {
  background: var(--black);
  color: var(--cream);
}

.github-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ================= PROJECTS ================= */
.project-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

@media (max-width: 820px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  border: 2.5px solid var(--black);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 5px 5px 0 var(--black);
}

.project-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--black);
}

.project-top {
  background: var(--black);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(236, 231, 218, .35);
}

.project-number {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange);
  font-weight: 700;
}

.project-visual {
  height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2.5px solid var(--black);
  background: var(--black);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-body h3 {
  font-family: var(--display);
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: -.005em;
}

.project-tagline {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.project-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.project-tags span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  border: 1.5px solid var(--black);
  padding: 5px 9px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.project-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* View all projects button */
.view-all-container {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  width: 100%;
}

.view-all-btn {
  background: var(--orange);
  color: var(--white);
  border-color: var(--black);
  font-size: 14px;
  padding: 20px 42px;
  box-shadow: 6px 6px 0 var(--black);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.view-all-btn:hover {
  background: var(--black);
  color: var(--white);
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--orange);
}

/* ================= CONTACT ================= */
.contact-header-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 24px;
}

.contact-header-left {
  flex: 1;
}

.contact-header-right {
  max-width: 400px;
  padding-bottom: 4px;
}

.contact-sub-text {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
  font-weight: 400;
}

.contact-divider-line {
  width: 100%;
  height: 2.5px;
  background: var(--black);
  position: relative;
  margin-bottom: 44px;
}

.contact-divider-accent {
  position: absolute;
  left: 0;
  top: 0;
  height: 2.5px;
  width: 120px;
  background: var(--orange);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2.5px solid var(--black);
  background: var(--black);
  gap: 2.5px;
}

.contact-card {
  background: var(--bg-cream);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}

.contact-icon-wrapper {
  width: 44px;
  height: 44px;
  background: var(--orange);
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.25s ease;
}

.contact-icon-wrapper svg {
  width: 22px;
  height: 22px;
  color: var(--black);
}

.contact-card h4 {
  font-family: var(--display, var(--mono));
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 6px;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.25s ease;
}

.contact-card-sub {
  font-size: 13.5px;
  color: #666666;
  margin-bottom: 24px;
  font-weight: 400;
  transition: color 0.25s ease;
}

.contact-card-val {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  word-break: break-all;
  margin-top: auto;
  transition: color 0.25s ease;
}

/* === HOVER EFFECT EXACT MATCH TO AHMED AYYAN === */
.contact-card:hover {
  background: var(--black);
}

.contact-card:hover h4 {
  color: var(--white);
}

.contact-card:hover .contact-card-sub {
  color: #cccccc;
}

.contact-card:hover .contact-card-val {
  color: var(--orange);
}

.contact-card:hover .contact-icon-wrapper {
  transform: scale(1.05);
}

/* === SOCIAL MEDIA ROW === */
.social-row {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.social-row-title {
  font-family: var(--display, sans-serif);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 44px;
  height: 44px;
  background: var(--black);
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 var(--orange);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  color: var(--white);
}

.social-icons a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-icons a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--orange);
}

@media (max-width: 820px) {
  .contact-header-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .contact-header-right {
    max-width: 100%;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .social-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================= FOOTER ================= */
.site-footer {
  background: #0b0b0a;
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 100px 0 34px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.footer-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 24px;
}

.footer-cta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-title {
  font-family: var(--display);
  font-size: clamp(3.8rem, 10vw, 8.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-title .accent {
  color: var(--orange);
  display: block;
}

.footer-cta-btn {
  background: var(--orange);
  color: var(--black);
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 700;
  padding: 18px 32px;
  border-radius: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 4px 4px 0 var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  margin-bottom: 12px;
}

.footer-cta-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--white);
  background: #ff5522;
  color: var(--black);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 54px 0 44px;
}

.footer-middle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 70px;
  flex-wrap: wrap;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 460px;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--white);
}

.footer-brand-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.footer-status-tag {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-social-col {
  display: flex;
  gap: 12px;
}

.footer-social-col a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  background: transparent;
}

.footer-social-col a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-social-col a:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--black);
  transform: translateY(-2px);
}

.footer-bg-watermark {
  position: absolute;
  bottom: -20px;
  left: -20px;
  font-family: var(--display);
  font-size: clamp(5rem, 15vw, 14rem);
  font-weight: 900;
  color: rgba(238, 90, 42, 0.04);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  line-height: 0.9;
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--orange);
}

@media (max-width: 768px) {
  .footer-cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .footer-cta-btn {
    width: 100%;
    justify-content: center;
  }
  .footer-middle {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

a:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--orange);
  outline-offset: 2px;
}

/* ==========================================================================
   CUTE ROBOT AI CHATBOT ASSISTANT
   ========================================================================== */
.ai-chatbot-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  font-family: var(--sans, 'Inter', sans-serif);
}

/* --- Floating Cute Robot Trigger Button --- */
.chatbot-trigger {
  position: relative;
  width: 64px;
  height: 64px;
  background: var(--bg-cream);
  border: 3px solid var(--black);
  border-radius: 20px;
  box-shadow: 4px 4px 0px var(--black);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
  animation: floatRobot 3.5s ease-in-out infinite;
}

.chatbot-trigger:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 7px 7px 0px var(--black);
  background: #FFFFFF;
}

.chatbot-trigger:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 2px 2px 0px var(--black);
}

.robot-avatar-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
}

.robot-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Robot Animations */
@keyframes floatRobot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.antenna-bulb {
  animation: antennaPulse 1.8s infinite alternate ease-in-out;
}

@keyframes antennaPulse {
  0% { fill: var(--orange); filter: drop-shadow(0 0 2px var(--orange)); }
  100% { fill: #FF8F6B; filter: drop-shadow(0 0 8px var(--orange)); }
}

.robot-eye {
  animation: robotBlink 4.5s infinite;
  transform-origin: center;
}

@keyframes robotBlink {
  0%, 94%, 98%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}

.online-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #10B981;
  border: 2px solid var(--black);
  border-radius: 50%;
  animation: onlinePulse 2s infinite;
}

@keyframes onlinePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Floating Tooltip */
.chatbot-tooltip {
  position: absolute;
  right: 76px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--black);
  color: var(--bg-cream);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border: 2px solid var(--black);
  box-shadow: 3px 3px 0px var(--orange);
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.chatbot-tooltip::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 8px;
  border-style: solid;
  border-color: transparent transparent transparent var(--black);
}

.chatbot-trigger:hover .chatbot-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

/* Hide trigger when window open */
.ai-chatbot-widget.open .chatbot-trigger {
  transform: scale(0.9);
  opacity: 0;
  pointer-events: none;
}

/* --- Chatbot Window Panel --- */
.chatbot-window {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 390px;
  height: 570px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 40px);
  background: var(--bg-cream);
  border: 3px solid var(--black);
  border-radius: 16px;
  box-shadow: 8px 8px 0px var(--black);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.ai-chatbot-widget.open .chatbot-window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chatbot Header */
.chatbot-header {
  background: var(--black);
  color: var(--bg-cream);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--black);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-robot-head {
  width: 36px;
  height: 36px;
  border: 2px solid var(--bg-cream);
  border-radius: 10px;
  overflow: hidden;
  background: var(--black);
}

.mini-robot-head svg {
  width: 100%;
  height: 100%;
}

.chatbot-title {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #FFFFFF;
}

.chatbot-status {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 1.5s infinite alternate;
}

@keyframes pulseDot {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.chatbot-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-icon-btn {
  background: transparent;
  border: 1.5px solid rgba(244, 239, 230, 0.3);
  color: var(--bg-cream);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.header-icon-btn svg {
  width: 16px;
  height: 16px;
}

.header-icon-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}

.header-icon-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #FFFFFF;
}

.header-icon-btn.close-btn:hover {
  background: #EF4444;
  border-color: #EF4444;
}

/* Chatbot Messages Container */
.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: radial-gradient(circle at top right, rgba(238, 90, 42, 0.04), transparent 60%);
  scroll-behavior: smooth;
}

/* Custom Scrollbar for Chat */
.chatbot-messages::-webkit-scrollbar {
  width: 5px;
}
.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(17, 17, 15, 0.2);
  border-radius: 4px;
}

/* Message Rows */
.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
  animation: fadeInMsg 0.25s ease forwards;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-msg.bot .chat-msg-avatar {
  background: var(--black);
  color: var(--orange);
}

.chat-msg.user .chat-msg-avatar {
  background: var(--orange);
  color: #FFFFFF;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 11px;
}

.chat-msg-bubble {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  border: 2px solid var(--black);
  box-shadow: 3px 3px 0px var(--black);
  word-break: break-word;
}

.chat-msg.bot .chat-msg-bubble {
  background: #FFFFFF;
  color: #11110F;
  border-top-left-radius: 2px;
}

.chat-msg.user .chat-msg-bubble {
  background: var(--orange);
  color: #FFFFFF;
  border-top-right-radius: 2px;
  font-weight: 500;
}

.chat-msg.user .chat-msg-bubble a {
  color: #FFFFFF;
  text-decoration: underline;
}

.chat-msg.bot .chat-msg-bubble p {
  margin-bottom: 8px;
}

.chat-msg.bot .chat-msg-bubble p:last-child {
  margin-bottom: 0;
}

.chat-msg.bot .chat-msg-bubble ul {
  margin: 6px 0 8px 18px;
  padding: 0;
}

.chat-msg.bot .chat-msg-bubble li {
  margin-bottom: 4px;
}

.chat-msg.bot .chat-msg-bubble strong {
  color: var(--black);
  font-weight: 700;
}

.chat-msg.bot .chat-msg-bubble a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
}

.chat-msg.bot .chat-msg-bubble code {
  font-family: var(--mono);
  background: rgba(17, 17, 15, 0.07);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--black);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; background: var(--orange); }
}

/* Quick Action Prompt Chips */
.chatbot-quick-prompts {
  padding: 8px 14px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-top: 1.5px solid rgba(17, 17, 15, 0.1);
  background: #F0EAE1;
  scroll-behavior: smooth;
}

.chatbot-quick-prompts::-webkit-scrollbar {
  height: 0px;
}

.prompt-chip {
  background: #FFFFFF;
  color: var(--black);
  border: 1.5px solid var(--black);
  border-radius: 20px;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0px var(--black);
}

.prompt-chip:hover {
  background: var(--orange);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 3px 3px 0px var(--black);
}

/* Input Form Footer */
.chatbot-input-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-cream);
  border-top: 2.5px solid var(--black);
}

.chat-input {
  flex: 1;
  background: #FFFFFF;
  border: 2px solid var(--black);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--black);
  outline: none;
  box-shadow: 2px 2px 0px var(--black);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input:focus {
  border-color: var(--orange);
  box-shadow: 3px 3px 0px var(--black);
}

.mic-btn, .send-btn {
  width: 38px;
  height: 38px;
  background: var(--black);
  color: var(--bg-cream);
  border: 2px solid var(--black);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 2px 2px 0px var(--black);
  transition: all 0.2s ease;
}

.mic-btn svg, .send-btn svg {
  width: 18px;
  height: 18px;
}

.send-btn {
  background: var(--orange);
  color: #FFFFFF;
}

.mic-btn:hover, .send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px var(--black);
}

.mic-btn.listening {
  background: #EF4444;
  color: #FFFFFF;
  animation: pulseMic 1.2s infinite alternate;
}

@keyframes pulseMic {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  100% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* Mobile Responsive Adjustments */
@media (max-width: 480px) {
  .ai-chatbot-widget {
    bottom: 16px;
    right: 16px;
  }
  .chatbot-window {
    width: calc(100vw - 32px);
    height: calc(100vh - 90px);
    bottom: 0;
    right: 0;
  }
  .chatbot-tooltip {
    display: none;
  }
}

