/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0a1628;
  --navy-mid:   #0f2040;
  --navy-light: #162a52;
  --blue:       #1a6fc4;
  --blue-light: #2589e8;
  --accent:     #00c8ff;
  --accent-dim: rgba(0, 200, 255, 0.15);
  --white:      #ffffff;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --card-bg:    rgba(255, 255, 255, 0.04);
  --card-border:rgba(255, 255, 255, 0.08);
  --shadow:     0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg:  0 8px 48px rgba(0, 0, 0, 0.45);
  --radius:     16px;
  --radius-sm:  10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font:       'Cairo', 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background-color: var(--navy);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
svg { display: block; }

/* LTR overrides when English is active */
[dir='ltr'] body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 200, 255, 0.25);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(26, 111, 196, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26, 111, 196, 0.55);
  background: linear-gradient(135deg, var(--blue-light), #3d9ff0);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 10px 20px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   LANGUAGE BUTTON
   ============================================================ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 200, 255, 0.25);
  border-radius: 8px;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.lang-btn:hover {
  background: rgba(0, 200, 255, 0.22);
  transform: translateY(-1px);
}

/* Show/hide spans based on active language */
[lang='ar'] .lang-btn .lang-ar { display: inline; }
[lang='ar'] .lang-btn .lang-en { display: none; }
[lang='en'] .lang-btn .lang-ar { display: none; }
[lang='en'] .lang-btn .lang-en { display: inline; }

/* ============================================================
   NAVIGATION (continued)
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), var(--shadow);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--accent); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 50%, rgba(26, 111, 196, 0.18) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 80%, rgba(0, 200, 255, 0.08) 0%, transparent 50%),
              var(--navy);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content { flex: 1; max-width: 580px; }

.hero-greeting {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}

.hero-name {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}
.hero-name span { color: var(--accent); }

.hero-title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.7s 0.8s forwards;
}

.hero-stats {
  display: flex;
  gap: 32px;
  opacity: 0;
  animation: fadeUp 0.7s 0.95s forwards;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero Visual */
.hero-visual {
  flex-shrink: 0;
  position: relative;
  width: 380px; height: 380px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  animation: fadeIn 1s 1.1s forwards;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 255, 0.15);
}
.hero-circle.outer  { width: 380px; height: 380px; animation: spin 30s linear infinite; }
.hero-circle.middle { width: 280px; height: 280px; animation: spin 20s linear infinite reverse; border-color: rgba(26, 111, 196, 0.2); }
.hero-circle.inner  { width: 200px; height: 200px; background: rgba(15, 32, 64, 0.8); border-color: rgba(0, 200, 255, 0.3); }

.hero-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
}
.h-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--accent);
}
.h-icon svg { width: 24px; height: 24px; }
.h-icon span { font-size: 0.6rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.05em; }

/* Floating dots on circles */
.hero-circle.outer::before,
.hero-circle.outer::after,
.hero-circle.middle::before {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}
.hero-circle.outer::before  { top: -4px; left: 50%; transform: translateX(-50%); }
.hero-circle.outer::after   { bottom: -4px; left: 50%; transform: translateX(-50%); }
.hero-circle.middle::before { top: -4px; left: 50%; transform: translateX(-50%); background: var(--blue-light); box-shadow: 0 0 12px var(--blue-light); }

/* ============================================================
   SKILLS
   ============================================================ */
.skills { background: var(--navy-mid); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.skill-card:hover {
  border-color: rgba(0, 200, 255, 0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.06);
}
.skill-card:hover::before { opacity: 1; }
.skill-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s, transform 0.6s; }

.skill-icon {
  width: 52px; height: 52px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.skill-icon svg { width: 24px; height: 24px; color: var(--accent); }
.skill-card:hover .skill-icon { background: rgba(0, 200, 255, 0.25); transform: scale(1.1); }

.skill-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.skill-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { background: var(--navy); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(24px);
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 200, 255, 0.2);
  box-shadow: var(--shadow-lg);
}
.project-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s, transform 0.6s; }

/* Browser Mockup */
.project-mockup {
  background: #0d1d38;
  border-bottom: 1px solid var(--card-border);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.25);
}
.mockup-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.mockup-bar span:nth-child(1) { background: #ff5f57; }
.mockup-bar span:nth-child(2) { background: #febc2e; }
.mockup-bar span:nth-child(3) { background: #28c840; }
.mockup-url {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 4px 14px 8px;
  font-family: monospace;
}
.mockup-body { padding: 12px 14px 20px; }
.mockup-hero-block {
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-light), var(--blue));
  margin-bottom: 12px;
}
.mockup-hero-block.dark { background: linear-gradient(135deg, #0d1117, #1a2a1a); }
.mockup-hero-block.accent { background: linear-gradient(135deg, #1a0a2e, #6b21a8); }
.mockup-lines { display: flex; flex-direction: column; gap: 6px; }
.mockup-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
}
.w-80 { width: 80%; }
.w-60 { width: 60%; }
.w-90 { width: 90%; }
.w-70 { width: 70%; }
.w-85 { width: 85%; }
.w-55 { width: 55%; }
.w-65 { width: 65%; }

.project-info { padding: 28px; }
.project-tag {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience { background: var(--navy-mid); }

.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.exp-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(24px);
}
.exp-card:hover {
  border-color: rgba(26, 111, 196, 0.35);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.exp-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s, transform 0.6s; }

.exp-number {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  user-select: none;
  letter-spacing: -0.04em;
}

.exp-icon {
  width: 48px; height: 48px;
  background: rgba(26, 111, 196, 0.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: var(--transition);
}
.exp-icon svg { width: 22px; height: 22px; color: var(--blue-light); }
.exp-card:hover .exp-icon { background: rgba(26, 111, 196, 0.3); transform: scale(1.1); }

.exp-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.exp-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.exp-tags li {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(26, 111, 196, 0.15);
  color: var(--blue-light);
  border: 1px solid rgba(26, 111, 196, 0.2);
  transition: var(--transition);
}
.exp-card:hover .exp-tags li { background: rgba(26, 111, 196, 0.25); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--navy); }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.contact-info > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-items { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: var(--transition);
}
.contact-item:hover {
  border-color: rgba(0, 200, 255, 0.25);
  background: rgba(255,255,255,0.05);
  transform: translateX(4px);
}

.contact-item-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.contact-item-icon svg { width: 20px; height: 20px; color: var(--accent); }

.contact-item-text { display: flex; flex-direction: column; gap: 2px; }
.contact-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-value { font-size: 0.95rem; font-weight: 500; color: var(--white); }

/* Contact Form */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 14px 16px;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(0, 200, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.1);
}
.form-group input.error,
.form-group textarea.error { border-color: #f87171; }

.field-error {
  font-size: 0.78rem;
  color: #f87171;
  min-height: 18px;
  display: block;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-sm);
  color: #4ade80;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-success svg { width: 18px; height: 18px; flex-shrink: 0; }
.form-success.show { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--card-border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}
.footer-logo span { color: var(--accent); }

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-back {
  width: 38px; height: 38px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-back svg { width: 18px; height: 18px; color: var(--text-muted); }
.footer-back:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.footer-back:hover svg { color: var(--accent); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-container { flex-direction: column; text-align: center; padding-top: 60px; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 280px; height: 280px; }
  .hero-circle.outer  { width: 280px; height: 280px; }
  .hero-circle.middle { width: 210px; height: 210px; }
  .hero-circle.inner  { width: 150px; height: 150px; }
  .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: right var(--transition);
    padding: 40px;
    border-left: 1px solid var(--card-border);
  }
  /* RTL: slide from left */
  [dir='rtl'] .nav-menu {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid var(--card-border);
    transition: left var(--transition);
  }
  [dir='rtl'] .nav-menu.open { left: 0; right: auto; }
  .nav-menu.open { right: 0; }
  .nav-link { font-size: 1.1rem; }
  .nav-toggle { display: flex; z-index: 1100; }

  .skills-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .projects-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }

  .hero-visual { display: none; }
  .hero { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; gap: 24px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .skills-grid { grid-template-columns: 1fr; }
  .btn { padding: 12px 22px; font-size: 0.9rem; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.6rem; }
}
