/* ============================================================
   MOSTAFA SHAABAN — PORTFOLIO STYLES
   Modern Tech (Dark) + Minimal Professional (Light)
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  /* Light Mode Colors */
  --bg-primary: #FAFAFA;
  --bg-secondary: #F0F0F0;
  --bg-card: rgba(255,255,255,0.8);
  --bg-glass: rgba(255,255,255,0.6);
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent: #2563EB;
  --accent-2: #60A5FA;
  --accent-gradient: linear-gradient(135deg, #2563EB, #60A5FA);
  --border: rgba(0,0,0,0.08);
  --border-accent: rgba(37,99,235,0.3);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(37,99,235,0.15);
  --glow: 0 0 20px rgba(37,99,235,0.15);
  --navbar-bg: rgba(250,250,250,0.85);
  --particle-color: rgba(37,99,235,0.1);
  --badge-bg: rgba(37,99,235,0.1);
  --badge-color: #2563EB;
  --tag-bg: rgba(37,99,235,0.08);
  --tag-border: rgba(37,99,235,0.2);
  --timeline-line: #E0E0E0;
  --overlay-bg: rgba(250,250,250,0.95);
}

[data-theme="dark"] {
  --bg-primary: #0D1117;
  --bg-secondary: #161B22;
  --bg-card: rgba(22,27,34,0.8);
  --bg-glass: rgba(22,27,34,0.6);
  --text-primary: #E6EDF3;
  --text-secondary: #8B949E;
  --text-muted: #6E7681;
  --accent: #3B82F6;
  --accent-2: #8B5CF6;
  --accent-gradient: linear-gradient(135deg, #3B82F6, #8B5CF6);
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(139,92,246,0.4);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 40px rgba(139,92,246,0.25);
  --glow: 0 0 30px rgba(139,92,246,0.2);
  --navbar-bg: rgba(13,17,23,0.9);
  --particle-color: rgba(139,92,246,0.15);
  --badge-bg: rgba(59,130,246,0.15);
  --badge-color: #60A5FA;
  --tag-bg: rgba(139,92,246,0.1);
  --tag-border: rgba(139,92,246,0.3);
  --timeline-line: #30363D;
  --overlay-bg: rgba(13,17,23,0.95);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

body[dir="rtl"] { font-family: 'Inter', 'Segoe UI', sans-serif; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.mono { font-family: 'IBM Plex Mono', monospace; }

/* ── Gradient Text ── */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Sections ── */
section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 56px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Divider ── */
.section-divider {
  width: 48px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin: 16px auto 48px;
}

/* ── Glass Card ── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Tags ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-radius: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  transition: transform 0.3s ease;
  display: block;
}

.nav-logo img:hover { transform: scale(1.08); }

.nav-logo .logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: white;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--tag-bg);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
}

.nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--tag-bg);
}

.lang-btn { width: auto; padding: 0 12px; font-size: 0.75rem; letter-spacing: 0.05em; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  opacity: 1;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.mobile-menu a:hover { background: var(--tag-bg); color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

/* Particles Canvas */
#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Gradient Blob */
.hero-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  background: var(--accent-gradient);
  top: -100px;
  right: -100px;
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.05); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content { max-width: 580px; }

/* Badge */
.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-color);
  border-radius: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--badge-color);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.2s;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-greeting {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.4s;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.5s;
}

/* Typing Effect */
.hero-role-wrapper {
  height: 36px;
  overflow: hidden;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.6s;
}

.hero-role {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  line-height: 36px;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.7s;
}

.hero-brief {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.8s;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.9s;
}

.hero-social {
  display: flex;
  gap: 12px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 1s;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--tag-bg);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

/* Hero Photo */
.hero-photo-wrapper {
  position: relative;
  opacity: 0;
  animation: fadeInRight 0.8s ease forwards 0.6s;
}

.hero-photo-ring {
  position: relative;
  width: 280px;
  height: 280px;
}

.hero-photo-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent-gradient);
  z-index: 0;
  animation: ringRotate 6s linear infinite;
}

.hero-photo-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg-primary);
  z-index: 1;
}

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

.hero-photo-ring img,
.hero-photo-placeholder {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
}

.hero-photo-placeholder {
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 4rem;
  color: white;
}

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-bio {
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.9;
  white-space: pre-line;
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.about-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.about-info-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.about-info-item a:hover { color: var(--accent); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  padding: 24px 20px;
  text-align: center;
  border-radius: 16px;
}

.stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-categories { display: flex; flex-direction: column; gap: 32px; }

.skill-category-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   PROJECTS
   ============================================================ */
#projects { background: var(--bg-secondary); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-preview {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-preview-placeholder {
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.3;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  gap: 8px;
}

.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-preview img { transform: scale(1.05); }
.project-card:hover { border-color: var(--border-accent); box-shadow: var(--glow); }

.project-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.project-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-impact {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--tag-bg);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.project-links {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
}

.project-link.live {
  background: var(--accent-gradient);
  color: white;
}

.project-link.live:hover { opacity: 0.9; transform: translateY(-1px); }

.project-link.source {
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.project-link.source:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================================
   QUALIFICATION
   ============================================================ */
.qual-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}

.qual-tab {
  padding: 10px 28px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.qual-tab.active {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.qual-tab:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

.qual-panel { display: none; }
.qual-panel.active { display: block; }

/* Timeline */
.timeline { position: relative; padding-left: 32px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: var(--timeline-line);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.timeline-item.revealed {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 3px solid var(--bg-primary);
  box-shadow: var(--glow);
}

.timeline-card { padding: 20px 24px; }

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-period {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--tag-bg);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.timeline-company {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-points li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.7;
}

.timeline-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.timeline-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
#certifications { background: var(--bg-secondary); }

.cert-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cert-group { margin-bottom: 40px; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.cert-card { padding: 20px; }

.cert-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.cert-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cert-year {
  display: inline-block;
  margin-top: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--tag-bg);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card { padding: 32px; }

.contact-info-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-info-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info-item a:hover { color: var(--accent); }

.contact-social { display: flex; gap: 10px; }

/* Form */
.contact-form-card { padding: 32px; }

.form-group { margin-bottom: 20px; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-group textarea {
  height: 130px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   RTL SUPPORT
   ============================================================ */
[dir="rtl"] .timeline { padding-left: 0; padding-right: 32px; }
[dir="rtl"] .timeline::before { left: auto; right: 8px; }
[dir="rtl"] .timeline-dot { left: auto; right: -32px; }
[dir="rtl"] .timeline-points li { padding-left: 0; padding-right: 16px; }
[dir="rtl"] .timeline-points li::before { left: auto; right: 0; }
[dir="rtl"] .nav-links { direction: rtl; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-photo-wrapper { order: -1; }
  .hero-photo-ring { width: 200px; height: 200px; margin: 0 auto; }
  .hero-cta, .hero-social { justify-content: center; }
  .hero-content { max-width: 100%; }

  .projects-grid { grid-template-columns: 1fr; }

  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-links { gap: 12px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.2rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Hero Stats ── */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 0.95s;
}
.hero-stat-item { text-align: left; }
[dir="rtl"] .hero-stat-item { text-align: right; }
.hero-stat-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
@media (max-width: 480px) {
  .hero-stats { gap: 20px; flex-wrap: wrap; }
}

.cert-view-all-wrapper { text-align: center; margin-top: 20px; }

/* ── Services ── */
#services { background: var(--bg-secondary); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.service-card { padding: 28px 22px; text-align: center; }
.service-icon { font-size: 2rem; margin-bottom: 12px; }
.service-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.service-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.services-cta-wrapper { text-align: center; }

a.nav-btn { text-decoration: none; }
@media (max-width: 900px) {
  a.nav-btn[title="Services"], a.nav-btn[title="All Links"] { display: none; }
}
