:root {
  --bg: #050508;
  --bg2: #0d0d14;
  --surface: #111118;
  --border: #1e1e2e;
  --accent: #00d4ff;
  --accent2: #00c4f4;
  --accent3: #7b61ff;
  --text: #e8e8f0;
  --muted: #5a5a7a;
  --mono: 'Space Mono', monospace;
  --sans: 'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  max-width: 100vw;
}

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ff88, #00d4ff, #7b61ff);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00ff88, #00e5ff);
}
* { scrollbar-width: thin; scrollbar-color: #00d4ff var(--bg2); }

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
}

/* GRID BG — disabled */
.grid-bg { display: none; }

/* SCANLINE */
.scanline {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.08;
  animation: scan 8s linear infinite;
  pointer-events: none;
  z-index: 998;
}
@keyframes scan {
  from { top: -2px; }
  to { top: 100vh; }
}

/* CURSOR */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
  mix-blend-mode: screen;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 60px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(5,5,8,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-contact-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 20px;
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.45);
  background: transparent;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  display: inline-block;
}
.nav-contact-btn:hover {
  background: rgba(0,212,255,0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* HERO */
#heroCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 60px 120px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,212,255,0.07) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-glow2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(123,97,255,0.06) 0%, transparent 70%);
  top: 20%; right: 10%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(0,212,255,0.3);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-role {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.05s ease both;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
  padding: 0 8px;

  /* ألوان واضحة */
  background: linear-gradient(90deg, #00ff88 0%, #00e5ff 50%, #b59dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(0,229,255,0.35));
}
.hero-name {
  font-family: var(--sans);
  font-size: clamp(38px, 7vw, 110px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: clamp(-1px, -0.03em, -4px);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s 0.1s ease both;
  /* NO white-space: nowrap — never cut off on any screen */
}
@media (max-width: 768px) {
  .hero-name {
    font-size: clamp(32px, 8vw, 56px);
    letter-spacing: -0.5px;
    line-height: 1.08;
  }
}
@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(28px, 9vw, 42px);
    letter-spacing: -0.3px;
    line-height: 1.1;
  }
}
.hero-name span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 44px;
  animation: fadeInUp 0.6s 0.2s ease both;
}
.hero-tagline em { color: var(--text); font-style: normal; font-weight: 500; }
.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s 0.3s ease both;
  width: 100%;
  max-width: 100%;
}

/* ── COUNTER ── */
.hero-counter {
  display: flex; align-items: stretch; gap: 0; justify-content: center;
  animation: fadeInUp 0.6s 0.4s ease both;
  width: 100%;
  max-width: 480px;
}
.counter-item {
  text-align: center;
  padding: 0 24px;
  flex: 1;
  min-width: 0;
}
.counter-item:not(:last-child) { border-right: 1px solid var(--border); }
.counter-num {
  font-family: var(--mono);
  font-size: clamp(16px, 4vw, 26px);
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.counter-label {
  font-family: var(--mono);
  font-size: clamp(7px, 1.5vw, 10px);
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: heroScrollIn 0.6s 0.8s ease forwards;
  cursor: pointer;
}
@keyframes heroScrollIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.scroll-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1.5px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#0d0d14, #0d0d14) padding-box,
    linear-gradient(135deg, #00ff88, #00d4ff, #7b61ff) border-box;
  color: #00d4ff;
  animation: scrollBounce 1.6s ease-in-out infinite;
  cursor: pointer;
  transition: background 0.2s;
}
.scroll-arrow:hover {
  background:
    linear-gradient(rgba(0,212,255,0.08), rgba(0,212,255,0.08)) padding-box,
    linear-gradient(135deg, #00ff88, #00d4ff, #7b61ff) border-box;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* BUTTONS */
.btn-primary {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  background: var(--accent);
  color: #050508;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  display: inline-block;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }
.btn-ghost {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* SECTION COMMON */
section {
  position: relative;
  z-index: 1;
  padding: 100px 60px;
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.section-title {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 64px;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1);
}
.section-title.is-visible { clip-path: inset(0 0% 0 0); }

/* ABOUT */
#about {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 1;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text p { font-size: 17px; line-height: 1.8; color: var(--muted); margin-bottom: 20px; }
.about-text p em { color: var(--text); font-style: normal; }
.about-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.skill-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-3px); }
.skill-card:hover::before { transform: scaleX(1); }
.skill-icon { font-size: 22px; margin-bottom: 10px; }
.skill-name { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.skill-desc { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* PROJECTS */
#projects { background: var(--bg); position: relative; z-index: 1; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.project-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(123,97,255,0.05));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.project-card:hover { border-color: rgba(0,212,255,0.4); transform: translateY(-4px); }
.project-card:hover::after { opacity: 1; }

/* Project Image */
.project-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.85) saturate(0.9);
}
.project-card:hover .project-img img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}
.project-img::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-img::after { opacity: 1; }

/* Project Text */
.project-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid;
  display: inline-block;
  margin: 28px 0 16px 28px;
}
.project-tag.frontend  {
  color: #00e5ff;
  border-color: rgba(0,229,255,0.75);
  background: rgba(0,229,255,0.08);
  text-shadow: 0 0 8px rgba(0,229,255,0.5);
}
.project-tag.automation {
  color: #00ff88;
  border-color: rgba(0,255,136,0.75);
  background: rgba(0,255,136,0.08);
  text-shadow: 0 0 8px rgba(0,255,136,0.5);
}
.project-tag.fullstack {
  color: #b59dff;
  border-color: rgba(181,157,255,0.75);
  background: rgba(123,97,255,0.08);
  text-shadow: 0 0 8px rgba(123,97,255,0.5);
}
.project-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  background: rgba(5,5,8,0.7);
  padding: 2px 8px;
}
.project-title {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.5px; margin-bottom: 12px;
  line-height: 1.2;
  padding: 0 28px;
}
.project-desc {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); line-height: 1.7;
  margin-bottom: 28px;
  padding: 0 28px;
}
.project-stack {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
  padding: 0 28px;
}
.stack-tag {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); background: rgba(255,255,255,0.04);
  padding: 3px 10px; border-radius: 1px;
}
.project-links {
  display: flex; gap: 16px;
  padding: 0 28px 28px;
  position: relative; z-index: 2;
}
.project-link {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; text-decoration: none;
  color: var(--accent);
  display: flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.project-link.disabled {
  color: var(--muted); cursor: not-allowed; opacity: 0.4; position: relative;
}
.project-link.disabled:hover { gap: 6px; color: var(--muted); }
.project-link.disabled::after {
  content: attr(title);
  position: absolute; bottom: 130%; left: 50%;
  transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 10px; padding: 4px 8px;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.2s; letter-spacing: 1px;
}
.project-link.disabled:hover::after { opacity: 1; }

/* AUTOMATIONS */
#automations {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 1;
}
.auto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.auto-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0;
  position: relative; overflow: hidden;
  transition: all 0.3s;
}
.auto-card:hover { border-color: rgba(0,212,255,0.4); }

/* Auto Image */
.auto-img {
  width: 100%; height: 180px;
  overflow: hidden; flex-shrink: 0; position: relative;
}
.auto-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.85) saturate(0.9);
}
.auto-card:hover .auto-img img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}
.auto-img::after {
  content: '';
  display: block; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  opacity: 0; transition: opacity 0.3s;
}
.auto-card:hover .auto-img::after { opacity: 1; }
.auto-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  font-family: var(--mono); font-size: 9px;
  color: var(--accent); border: 1px solid rgba(0,212,255,0.3);
  padding: 3px 8px; letter-spacing: 1.5px; text-transform: uppercase;
}

/* Auto Text */
.auto-flow {
  display: flex; align-items: center; gap: 8px;
  margin: 24px 28px 20px; flex-wrap: wrap;
}
.flow-node {
  font-family: var(--mono); font-size: 10px;
  padding: 4px 10px; border: 1px solid var(--border);
  color: var(--muted); background: rgba(255,255,255,0.03); white-space: nowrap;
}
.flow-arrow { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.auto-title { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 10px; padding: 0 28px; }
.auto-desc  { font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.7; padding: 0 28px 28px; }

/* TOOLS */
#tools { background: var(--bg); position: relative; z-index: 1; }
.tools-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.tool-item {
  background: var(--surface); border: 1px solid var(--border);
  padding: 28px 24px; display: flex; align-items: center; gap: 14px;
  transition: all 0.3s;
}
.tool-item:hover { border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.03); }
.tool-icon { font-size: 24px; flex-shrink: 0; }
.tool-name  { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.tool-level { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

/* CONTACT */
#contact {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 120px 60px;
  position: relative; z-index: 1;
}
.contact-big {
  font-size: clamp(28px, 5vw, 80px);
  font-weight: 800; letter-spacing: -2px; line-height: 1; margin-bottom: 24px;
}
.contact-big span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.contact-sub {
  font-family: var(--mono); font-size: 14px; color: var(--muted);
  margin-bottom: 48px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.7;
}
.contact-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.contact-link {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; text-decoration: none; color: var(--muted);
  border: 1px solid var(--border); padding: 12px 24px;
  display: flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.contact-link:hover { color: var(--accent); border-color: rgba(0,212,255,0.4); }

/* FOOTER */
footer {
  position: relative; z-index: 1;
  padding: 40px 60px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.footer-social-wrap  { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-social-label { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.footer-socials      { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid var(--border);
  color: var(--muted); text-decoration: none; font-size: 15px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s, background 0.2s;
}
.social-link:hover { transform: translateY(-3px); }
.social-link[title="WhatsApp"]:hover   { color: #25D366; border-color: #25D366; }
.social-link[title="Facebook"]:hover   { color: #1877F2; border-color: #1877F2; }
.social-link[title="Instagram"]:hover  { color: #E1306C; border-color: #E1306C; }
.social-link[title="X / Twitter"]:hover{ color: #ffffff; border-color: #ffffff; }
.social-link[title="LinkedIn"]:hover   { color: #0A66C2; border-color: #0A66C2; }
.social-link[title="TikTok"]:hover     { color: #EE1D52; border-color: #EE1D52; }
.social-link[title="Telegram"]:hover   { color: #29A9EB; border-color: #29A9EB; }
.footer-copy { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }

/* ─── HAMBURGER ─────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; background: transparent;
  border: 1px solid var(--border); cursor: pointer; padding: 8px;
  transition: border-color 0.2s; z-index: 200;
}
.hamburger:hover { border-color: var(--accent); }
.hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text); transition: all 0.3s ease; transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px)  rotate(45deg);  background: var(--accent); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--accent); }

/* ─── MOBILE MENU OVERLAY ───────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(5,5,8,0.97); backdrop-filter: blur(16px);
  z-index: 150;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu ul li { overflow: hidden; }
.mobile-menu ul li a {
  font-family: var(--sans);
  font-size: clamp(36px, 10vw, 56px);
  font-weight: 800; letter-spacing: -2px;
  color: var(--muted); text-decoration: none;
  display: block; padding: 6px 0;
  transform: translateY(40px); opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease, color 0.2s;
}
.mobile-menu.open ul li a { transform: translateY(0); opacity: 1; }
.mobile-menu.open ul li:nth-child(1) a { transition-delay: 0.05s; }
.mobile-menu.open ul li:nth-child(2) a { transition-delay: 0.10s; }
.mobile-menu.open ul li:nth-child(3) a { transition-delay: 0.15s; }
.mobile-menu.open ul li:nth-child(4) a { transition-delay: 0.20s; }
.mobile-menu.open ul li:nth-child(5) a { transition-delay: 0.25s; }
.mobile-menu ul li a:hover { color: var(--accent); letter-spacing: -1px; }

/* ─── TABLET (max 1100px) ───────────────────────────────────── */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .tools-wrapper { grid-template-columns: repeat(3, 1fr); }
}

/* ─── MOBILE (max 900px) ────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 10px 24px; }
  .nav-links       { display: none; }
  .hamburger       { display: flex; }
  .nav-contact-btn { display: none; }

  section  { padding: 60px 20px; }
  #hero    { padding: 80px 20px 100px; min-height: 100svh; }
  #contact { padding: 70px 20px; }
  #about   { padding: 60px 20px; }

  /* Hero */
  .hero-content { max-width: 100%; width: 100%; }
  .hero-badge   { font-size: 10px; padding: 5px 12px; margin-bottom: 16px; max-width: 100%; }
  .hero-role    { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 14px; padding: 0 4px; }
  .hero-tagline { font-size: 14px; max-width: 100%; margin-bottom: 28px; }
  .hero-cta     { flex-direction: row; gap: 10px; justify-content: center; margin-bottom: 28px; }
  .btn-primary,
  .btn-ghost    { padding: 12px 16px; font-size: 11px; }

  /* Counter — mobile */
  .hero-counter  { max-width: 100%; }
  .counter-item  { padding: 0 12px; }

  .hero-scroll { bottom: 20px; }

  /* Section titles */
  .section-label { font-size: 10px; }
  .section-title { margin-bottom: 32px; letter-spacing: -0.5px; font-size: clamp(22px, 5vw, 36px); }

  /* About */
  .about-grid   { grid-template-columns: 1fr; gap: 36px; }
  .about-skills { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-text p { font-size: 15px; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; gap: 12px; }
  .project-img   { height: 180px; }
  .project-tag   { margin: 20px 0 12px 20px; }
  .project-title { font-size: 18px; padding: 0 20px; }
  .project-desc  { font-size: 11px; margin-bottom: 16px; padding: 0 20px; }
  .project-stack { padding: 0 20px; margin-bottom: 16px; }
  .project-links { padding: 0 20px 20px; }

  /* Automations */
  .auto-grid   { grid-template-columns: 1fr; gap: 12px; }
  .auto-img    { height: 160px; }
  .auto-flow   { margin: 18px 20px 14px; gap: 6px; }
  .flow-node   { font-size: 9px; padding: 3px 7px; }
  .auto-title  { font-size: 17px; padding: 0 20px; }
  .auto-desc   { font-size: 11px; padding: 0 20px 20px; }

  /* Tools */
  .tools-wrapper { grid-template-columns: 1fr 1fr; gap: 2px; }
  .tool-item     { padding: 20px 16px; gap: 10px; }
  .tool-icon     { font-size: 20px; }
  .tool-name     { font-size: 13px; }

  /* Contact */
  .contact-big  { letter-spacing: -0.5px; font-size: clamp(26px, 7vw, 48px); }
  .contact-sub  { font-size: 12px; }
  .contact-links{ gap: 10px; }
  .contact-link { padding: 10px 16px; font-size: 10px; }

  /* Footer */
  footer          { padding: 28px 20px; gap: 16px; }
  .footer-socials { gap: 8px; }
  .social-link    { width: 36px; height: 36px; font-size: 14px; }
  .footer-copy    { font-size: 10px; }
}

/* ─── SMALL MOBILE (max 480px) ──────────────────────────────── */
@media (max-width: 480px) {
  section  { padding: 50px 16px; }
  #hero    { padding: 80px 16px 70px; }
  #contact { padding: 60px 16px; }

  /* Hero */
  .hero-name    { font-size: clamp(34px, 11vw, 48px); letter-spacing: -1.5px; white-space: normal; }
  .hero-tagline { font-size: 13px; line-height: 1.6; }
  .hero-badge   { font-size: 9px; }

  /* Counter */
  .counter-item  { padding: 0 10px; }

  /* About */
  .about-skills { grid-template-columns: 1fr; }
  .skill-card   { padding: 16px; }

  /* Projects */
  .project-tag   { margin: 16px 0 12px 16px; }
  .project-title { font-size: 17px; padding: 0 16px; }
  .project-desc  { padding: 0 16px; }
  .project-stack { padding: 0 16px; }
  .project-links { padding: 0 16px 16px; }

  /* Automations */
  .auto-flow  { margin: 16px 16px 12px; }
  .auto-title { padding: 0 16px; }
  .auto-desc  { padding: 0 16px 16px; }

  /* Tools */
  .tools-wrapper { grid-template-columns: 1fr 1fr; }

  /* Contact */
  .contact-big   { font-size: clamp(32px, 9vw, 48px); letter-spacing: -1px; }
  .contact-links { flex-direction: column; align-items: stretch; }
  .contact-link  { justify-content: center; }
  #contact .btn-primary { width: 100%; text-align: center; }

  /* Footer */
  .footer-socials { gap: 6px; }
  .social-link    { width: 34px; height: 34px; font-size: 13px; }
}