/* ══════════════════════════════════════════════════════
   Ammar Alaa Portfolio — Main Stylesheet
   ══════════════════════════════════════════════════════ */

:root {
  --bg:           #040d18;
  --bg-2:         #060f1e;
  --bg-card:      #071526;
  --bg-card-2:    #091a35;
  --blue:         #1a6fff;
  --blue-neon:    #00c2ff;
  --blue-dark:    #0033cc;
  --blue-glow:    rgba(26, 111, 255, 0.22);
  --blue-glow-2:  rgba(0, 194, 255, 0.12);
  --white:        #ffffff;
  --text:         #b8cce0;
  --text-muted:   #526a88;
  --border:       rgba(255,255,255,0.07);
  --border-blue:  rgba(26, 111, 255, 0.3);
  --radius:       16px;
  --radius-sm:    10px;
  --nav-h:        76px;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; background: var(--bg); }
body {
  font-family: var(--font-sans);
  background: transparent;   /* fixed site-bg is the page background */
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }
button { cursor: none; border: none; background: none; font: inherit; }

/* ─── Custom Cursor ───────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--blue-neon);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s;
  mix-blend-mode: screen;
}
.cursor-follower {
  position: fixed;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(0, 194, 255, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all .1s ease;
}

/* ─── Container ───────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  cursor: auto;
}
.navbar *, .navbar a, .navbar button { cursor: auto; }
.navbar.scrolled {
  background: rgba(4, 13, 24, 0.92);
  backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

/* Logo — just the image, bigger */
.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 194, 255, 0.4);
  box-shadow: 0 0 18px rgba(0, 194, 255, 0.25);
  transition: box-shadow var(--transition);
}
.nav-logo-img:hover { box-shadow: 0 0 28px rgba(0, 194, 255, 0.5); }

/* Center nav links */
.nav-links {
  display: flex;
  gap: 2.25rem;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .02em;
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--blue-neon);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-ig, .nav-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-ig svg, .nav-wa svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-ig:hover { color: var(--white); border-color: #e1306c; background: rgba(225,48,108,.08); }
.nav-wa:hover { color: #25d366; border-color: #25d366; background: rgba(37,211,102,.08); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .55rem 1.25rem;
  border: 1.5px solid var(--border-blue);
  border-radius: 100px;
  color: var(--white);
  transition: all var(--transition);
}
.btn-nav svg { width: 14px; height: 14px; }
.btn-nav:hover {
  background: var(--blue-glow);
  border-color: var(--blue-neon);
  color: var(--blue-neon);
}

/* Mobile social row — hidden on desktop, shown in mobile menu */
.nav-mob-social { display: none; }

/* Hamburger — middle line shorter, smooth cubic-bezier */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 6px 4px;
  z-index: 102;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .4s cubic-bezier(0.4,0,0.2,1),
              opacity  .3s ease,
              width    .3s ease;
}
.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 13px; } /* shorter middle */
.hamburger span:nth-child(3) { width: 22px; }
/* Open → X */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 22px; }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }

/* ══════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.875rem;
  background: var(--blue);
  color: var(--white);
  font-size: .9375rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(26, 111, 255, 0.35);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(26, 111, 255, 0.5); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary svg { width: 17px; height: 17px; position: relative; z-index: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.875rem;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: .9375rem;
  font-weight: 500;
  border-radius: 100px;
  transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--border-blue); color: var(--white); background: var(--blue-glow-2); }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); }

/* ══════════════════════════════════════════════════════
   SITE-WIDE ETHEREAL SHADOW BACKGROUND
   100% GPU — CSS gradients + keyframes, zero SVG filters
   ══════════════════════════════════════════════════════ */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}


/* Blurred gradient blob, slowly drifting via transform (always GPU) */
.site-bg-warp {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 55% 45% at 30% 40%, rgba(10, 50, 160, 1)    0%, transparent 60%),
    radial-gradient(ellipse 45% 55% at 68% 58%, rgba(6,  28, 110, 0.85) 0%, transparent 58%),
    radial-gradient(ellipse 35% 35% at 52% 48%, rgba(18, 65, 200, 0.6)  0%, transparent 52%);
  filter: blur(90px);
  animation: siteBgDrift 20s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes siteBgDrift {
  0%   { transform: scale(1.00) rotate(0deg)    translate(0%,  0%); }
  25%  { transform: scale(1.06) rotate(2deg)    translate(4%,  3%); }
  50%  { transform: scale(1.03) rotate(-1.5deg) translate(-3%, 5%); }
  75%  { transform: scale(1.07) rotate(3deg)    translate(3%, -4%); }
  100% { transform: scale(1.04) rotate(-2deg)   translate(-4%, 2%); }
}

/* Grain overlay — static texture, one GPU upload */
.site-bg-noise {
  position: absolute;
  inset: 0;
  background-image: url('https://framerusercontent.com/images/g0QcWrxr87K0ufOxIUFBakwYA8.png');
  background-size: 240px;
  background-repeat: repeat;
  opacity: 0.4;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   HERO — Two-column split (bg is handled by site-bg)
   ══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: var(--nav-h) 5rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ─── Left column ─────────────────────────────────────── */
.hero-left {
  flex: 1;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--blue-neon);
  background: rgba(0, 194, 255, 0.08);
  border: 1px solid rgba(0, 194, 255, 0.2);
  padding: .375rem .875rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-neon);
  box-shadow: 0 0 7px var(--blue-neon);
  animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
  0%,100% { opacity:1; box-shadow: 0 0 7px var(--blue-neon); }
  50%      { opacity:.5; box-shadow: 0 0 3px var(--blue-neon); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 460px;
}
.hero-sub strong { color: var(--white); font-weight: 600; }

.hero-cta { display: flex; gap: .875rem; flex-wrap: wrap; }

/* ─── Right column — Photo ────────────────────────────── */
.hero-right {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.hero-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-photo-card {
  position: relative;
  width: 320px;
  aspect-ratio: 3/4;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 194, 255, 0.25);
  box-shadow: 0 0 80px rgba(0, 194, 255, 0.15), 0 30px 80px rgba(0,0,0,.6);
}

.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-photo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(4,13,24,.7) 100%);
  pointer-events: none;
}
.hero-photo-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  background: rgba(4, 13, 24, 0.85);
  border: 1px solid rgba(0, 194, 255, 0.3);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--white);
  backdrop-filter: blur(12px);
}
.pulse-green {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 6px #00e676;
  animation: dotPulse 2s infinite;
}

/* ══════════════════════════════════════════════════════
   SECTIONS SHARED
   ══════════════════════════════════════════════════════ */
.section { padding: 6.5rem 0; position: relative; z-index: 1; }
.section-alt { background: rgba(6, 15, 30, 0.88); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-neon);
  margin-bottom: .625rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-desc {
  margin-top: .875rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin-left: auto; margin-right: auto;
}
.glow-text {
  font-style: normal;
  color: var(--blue-neon);
  /* Kept very subtle — much less than before */
  text-shadow: 0 0 16px rgba(0, 194, 255, 0.25);
}

/* Helper */
.logo-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--white); letter-spacing: 0.1em; text-transform: uppercase; }
.logo-dot  { color: var(--blue-neon); }

/* ══════════════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrap { position: relative; display: flex; justify-content: center; }
.about-img-placeholder {
  width: 300px; height: 400px;
  background: linear-gradient(145deg, #071428, #0d2040);
  border-radius: 20px;
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.about-real-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  border-radius: 20px;
}
.about-initials {
  font-family: var(--font-display); font-size: 4.5rem; font-weight: 900;
  color: rgba(26, 111, 255, 0.2); letter-spacing: -.05em; position: relative; z-index: 1;
}
.about-badge-wrap { position: absolute; bottom: -14px; right: -14px; }
.about-badge {
  display: flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem;
  background: rgba(4, 13, 24, 0.95);
  border: 1px solid var(--border-blue);
  border-radius: 100px;
  font-size: .8rem; font-weight: 600; color: var(--white);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #00e676; box-shadow: 0 0 6px #00e676;
  animation: dotPulse 2s infinite;
}

.about-content { display: flex; flex-direction: column; gap: 1.375rem; }
.about-text { font-size: .9375rem; line-height: 1.8; color: var(--text); }
.about-text strong { color: var(--white); }
.about-tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.tool-tag {
  font-size: .8rem; font-weight: 500;
  padding: .35rem .8rem;
  background: rgba(26, 111, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 100px; color: var(--text);
  transition: all var(--transition);
}
.tool-tag:hover { border-color: var(--border-blue); color: var(--blue-neon); }
.about-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .875rem; font-weight: 500; color: var(--blue-neon);
  transition: opacity var(--transition);
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { opacity: .7; }

/* ══════════════════════════════════════════════════════
   SKILLS — Interactive Accordion
   ══════════════════════════════════════════════════════ */
.expertise-accordion { border-top: 1px solid var(--border); }

.ea-item {
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.ea-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue-neon);
  transform: scaleY(0);
  transition: transform .4s cubic-bezier(0.4,0,0.2,1);
  border-radius: 0 2px 2px 0;
}
.ea-item.open::before { transform: scaleY(1); }

.ea-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0 2rem .75rem;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: padding-left var(--transition);
}
.ea-trigger:hover { padding-left: 1.25rem; }
.ea-item.open .ea-trigger { padding-left: 1.25rem; }

.ea-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,255,255,.05);
  min-width: 68px;
  text-align: right;
  line-height: 1;
  letter-spacing: -.05em;
  transition: color var(--transition);
  user-select: none;
  flex-shrink: 0;
}
.ea-item.open .ea-num,
.ea-trigger:hover .ea-num { color: rgba(0,194,255,.3); }

.ea-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  flex: 1;
  letter-spacing: -.02em;
  transition: color var(--transition);
}
.ea-item.open .ea-title,
.ea-trigger:hover .ea-title { color: var(--blue-neon); }

.ea-chevron {
  width: 22px; height: 22px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform .4s cubic-bezier(0.4,0,0.2,1), color var(--transition);
}
.ea-item.open .ea-chevron { transform: rotate(180deg); color: var(--blue-neon); }

/* Body — accordion expand */
.ea-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(0.4,0,0.2,1);
  padding-left: calc(68px + 2rem + .75rem);
}
.ea-item.open .ea-body { max-height: 320px; }

.ea-body-inner { padding-bottom: 2.25rem; }

.ea-desc {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.125rem;
}
.ea-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.ea-tag {
  font-size: .75rem;
  font-weight: 500;
  padding: .3rem .75rem;
  background: rgba(26,111,255,.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.ea-item.open .ea-tag { border-color: rgba(0,194,255,.3); color: var(--text); background: rgba(0,194,255,.07); }

/* Responsive */
@media (max-width: 700px) {
  .ea-trigger { gap: 1.25rem; padding-left: .5rem; }
  .ea-num { font-size: 2.25rem; min-width: 50px; }
  .ea-title { font-size: 1.25rem; }
  .ea-body { padding-left: calc(50px + 1.25rem + .5rem); }
}
@media (max-width: 480px) {
  .ea-num { min-width: 40px; font-size: 1.875rem; }
  .ea-title { font-size: 1.125rem; }
  .ea-body { padding-left: 0; }
}

/* ══════════════════════════════════════════════════════
   PROJECTS
   ══════════════════════════════════════════════════════ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: all var(--transition);
}
.project-card:hover { border-color: var(--border-blue); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 30px var(--blue-glow); }
.project-thumb { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #071428, #0a1e3a); overflow: hidden; }
.project-thumb video, .project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-thumb video,
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-overlay { position: absolute; inset: 0; background: rgba(4,13,24,.45); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition); }
.project-card:hover .project-overlay { opacity: 1; }
.play-btn { width: 52px; height: 52px; background: rgba(26,111,255,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; color: var(--white); transition: transform var(--transition); }
.play-btn:hover { transform: scale(1.1); }
.project-info { padding: 1.125rem 1.375rem; }
.project-cat { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-neon); display: block; margin-bottom: .3rem; }
.project-name { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; color: var(--white); margin-bottom: .4rem; }
.project-info .project-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

.coming-soon-card {
  grid-column: 1/-1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .875rem;
  padding: 5rem 2rem;
  background: var(--bg-card);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius); text-align: center;
}
.cs-icon { font-size: 2rem; color: var(--blue-neon); opacity: .4; }
.coming-soon-card h3 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; color: var(--white); }
.coming-soon-card p { color: var(--text-muted); font-size: .9375rem; }

/* ══════════════════════════════════════════════════════
   STATS SECTION — 3 bordered cards
   ══════════════════════════════════════════════════════ */
.stats-section {
  padding: 0 0 5rem;
  position: relative;
  z-index: 1;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--border); /* gap color */
}
.stat-card {
  background: var(--bg-card);
  padding: 2.75rem 2rem;
  text-align: center;
  transition: background var(--transition);
}
.stat-card:hover { background: var(--bg-card-2); }
.stat-card-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.03em;
}
.stat-card-plus {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--blue-neon);
}
.stat-card-label {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: .625rem;
  letter-spacing: .02em;
}

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

/* ══════════════════════════════════════════════════════
   CTA BANNER (replaces contact form)
   ══════════════════════════════════════════════════════ */
.cta-section { padding: 5rem 0 6rem; position: relative; z-index: 1; }
.cta-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d2860 0%, #0a1a45 40%, #061230 100%);
  border: 1px solid rgba(26,111,255,.35);
  padding: 5rem 3rem;
  text-align: center;
  box-shadow: 0 0 80px rgba(26,111,255,.15), 0 30px 60px rgba(0,0,0,.4);
}

/* Subtle grid texture overlay — like the reference */
.cta-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
/* Glow orbs */
.cta-card::before {
  content: '';
  position: absolute; top: -60px; left: 20%; right: 20%; bottom: -60px;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,194,255,.08), transparent 70%);
  pointer-events: none;
}

.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.cta-sub {
  font-size: 1rem; color: rgba(255,255,255,.6);
  max-width: 480px; margin: 0 auto 2.25rem;
  line-height: 1.7;
}

/* CTA button — pill with icon circle (like the reference) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .625rem 1.875rem .625rem .625rem;
  background: rgba(255,255,255,.95);
  border-radius: 100px;
  font-size: .9375rem;
  font-weight: 700;
  color: #0a1830;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.btn-cta:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.btn-cta-icon {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.btn-cta:hover .btn-cta-icon { background: var(--blue-neon); }
.btn-cta-icon svg { width: 16px; height: 16px; color: #fff; }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: .875rem; }
.footer-logo-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(0,194,255,.3); }
.footer-logo p { font-size: .8125rem; color: var(--text-muted); margin-top: .2rem; }
.footer-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-nav a { font-size: .875rem; color: var(--text-muted); transition: color var(--transition); }
.footer-nav a:hover { color: var(--white); }
.footer-social { display: flex; gap: .875rem; }
.footer-social a {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 50%;
  color: var(--text-muted); transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--border-blue); color: var(--blue-neon); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.04); font-size: .8rem; color: var(--text-muted); flex-wrap: wrap; gap: .5rem; }

/* ══════════════════════════════════════════════════════
   HERO ENTRANCE & FLOAT ANIMATIONS
   ══════════════════════════════════════════════════════ */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeRight {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes heroScan {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* Hero left children staggered entrance */
.hero-left > * {
  opacity: 0;
  animation: heroFadeUp .65s var(--ease) forwards;
}
.hero-left > :nth-child(1) { animation-delay: .1s; }
.hero-left > :nth-child(2) { animation-delay: .22s; }
.hero-left > :nth-child(3) { animation-delay: .34s; }
.hero-left > :nth-child(4) { animation-delay: .46s; }

/* Hero right entrance */
.hero-right {
  opacity: 0;
  animation: heroFadeRight .9s var(--ease) .3s forwards;
}

/* Floating photo card */
.hero-photo-card {
  animation: heroFloat 5s ease-in-out infinite;
}

/* Scan-line shimmer across photo */
.hero-photo-card::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(0,194,255,0.07), transparent);
  animation: heroScan 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

/* ══════════════════════════════════════════════════════
   REVEAL ANIMATIONS (scroll-triggered sections)
   ══════════════════════════════════════════════════════ */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0; transition: opacity .3s ease, transform .3s ease;
}
.reveal-up    { transform: translateY(16px); }
.reveal-left  { transform: translateX(-20px); }
.reveal-right { transform: translateX(20px); }
.reveal-up.in-view, .reveal-left.in-view, .reveal-right.in-view { opacity: 1; transform: translate(0); }

/* ══════════════════════════════════════════════════════
   FORMS (used on contact.html)
   ══════════════════════════════════════════════════════ */
.contact-form { display: flex; flex-direction: column; gap: 1.125rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; color: var(--text-muted); text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .8rem 1.0625rem; font-family: var(--font-sans); font-size: .9375rem; color: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition); outline: none; resize: vertical;
  -webkit-appearance: none; appearance: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group select option { background: #071428; color: var(--white); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue-neon); box-shadow: 0 0 0 3px rgba(0,194,255,.1); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-wrap { justify-content: center; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding: calc(var(--nav-h) + 3rem) 1.5rem 3rem; min-height: 100vh; gap: 2.5rem; }
  .hero-left { max-width: 100%; }
  .hero-tag  { margin: 0 auto 1.25rem; }
  .hero-sub  { margin-left: auto; margin-right: auto; }
  .hero-cta  { justify-content: center; }
  .hero-right { width: 100%; display: flex; justify-content: center; }
  .hero-photo-card { width: 260px; }

  /* ── Mobile Navbar: logo left (space-between), hamburger right, hide nav-right ── */
  .nav-right { display: none; }
  .hamburger { display: flex; }

  .nav-links {
    /* Always in DOM — controlled by opacity/transform */
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(4, 13, 24, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 2.5rem 2rem 3rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
    /* Hidden state */
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .35s cubic-bezier(0.4,0,0.2,1),
                transform .35s cubic-bezier(0.4,0,0.2,1);
    z-index: 99;
  }
  .nav-links li {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  .nav-link { font-size: 1.0625rem; }

  /* Mobile social + hire me row inside the menu */
  .nav-mob-social {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0 0;
    border-bottom: none !important;
  }
  .nav-mob-icons {
    display: flex;
    gap: 1rem;
  }
  .nav-mob-ig, .nav-mob-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--transition);
  }
  .nav-mob-ig svg, .nav-mob-wa svg { width: 18px; height: 18px; }
  .nav-mob-ig:hover  { color: var(--white); border-color: #e1306c; background: rgba(225,48,108,.1); }
  .nav-mob-wa:hover  { color: #25d366; border-color: #25d366; background: rgba(37,211,102,.1); }
  .nav-mob-hire {
    font-size: .875rem;
    font-weight: 600;
    padding: .7rem 2rem;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .skills-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 3.5rem 1.5rem; }
  .footer-top { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 4.5rem 0; }
  /* Footer: hide "Ammar." text, center logo image only */
  .footer-logo { justify-content: center; }
  .footer-logo-text { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.125rem; }
  .hero-stats { gap: 1.25rem; }
  .stat-num { font-size: 1.625rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-img-placeholder { width: 260px; height: 350px; }
  .hero-photo-card { width: 220px; }
}
