/* ============ CSS VARIABLES / THEMES ============ */
:root {
  --font-en: 'Poppins', 'Cairo', sans-serif;
  --font-ar: 'Cairo', 'Poppins', sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --transition: all .35s cubic-bezier(.4, 0, .2, 1);
  --nav-h: 74px;

  --primary: #34d399;
  --primary-2: #6ee7b7;
  --accent: #0ea5e9;
  --accent-2: #fbbf24;
  --gold: #fcd34d;
}

html[data-theme="dark"] {
  --bg: #071410;
  --bg-soft: #0b1c16;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(52, 211, 153, 0.14);
  --text: #ecfdf5;
  --text-muted: #86a89a;
  --nav-bg: rgba(7, 20, 16, 0.78);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --glass-shine: rgba(255,255,255,.06);
  --orb-opacity: .45;
  --card-glow: 0 0 40px rgba(52, 211, 153, 0.12);
}

html[data-theme="light"] {
  --bg: #f0faf4;
  --bg-soft: #ffffff;
  --card: rgba(255, 255, 255, 0.82);
  --card-border: rgba(6, 78, 59, 0.12);
  --text: #12372a;
  --text-muted: #5b7a6c;
  --nav-bg: rgba(240, 250, 244, 0.82);
  --shadow: 0 20px 45px rgba(6, 78, 59, 0.12);
  --glass-shine: rgba(255,255,255,.85);
  --orb-opacity: .35;
  --card-glow: 0 0 40px rgba(16, 185, 129, 0.10);
  --primary: #059669;
  --primary-2: #10b981;
  --accent: #0284c7;
  --accent-2: #d97706;
  --gold: #b45309;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  transition: var(--transition);
}

html[dir="rtl"] body { font-family: var(--font-ar); }

body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--card-border) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .5;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 10px;
}

/* ============ BACKGROUND ORBS ============ */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--orb-opacity); }
.orb-1 { width: 520px; height: 520px; top: -160px; left: -120px; background: var(--primary); animation: float1 16s ease-in-out infinite; }
.orb-2 { width: 440px; height: 440px; bottom: -120px; right: -100px; background: var(--accent); animation: float2 19s ease-in-out infinite; }
.orb-3 { width: 360px; height: 360px; top: 42%; left: 62%; background: var(--accent-2); opacity: calc(var(--orb-opacity) * .6); animation: float3 22s ease-in-out infinite; }

@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,50px) scale(1.12); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,-60px) scale(1.1); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-40px) scale(1.15); } }

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-2));
  z-index: 1000; box-shadow: 0 0 12px var(--primary);
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.logo-dot {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 18px var(--primary); position: relative;
}
.logo-dot::after { content: ''; position: absolute; inset: 7px; border-radius: 5px; background: var(--bg); }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  position: relative; padding: 8px 14px; color: var(--text-muted);
  text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 10px; transition: var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--card); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--accent));
}
html[dir="rtl"] .nav-links a.active::after { transform: translateX(50%); }

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

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--card-border);
  background: var(--card); color: var(--text); cursor: pointer; font-size: 1rem;
  display: grid; place-items: center; transition: var(--transition);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: 0 0 16px var(--primary); }

.lang-btn {
  padding: 8px 16px; border-radius: 12px; border: none; cursor: pointer; font-weight: 700;
  font-family: var(--font-ar); font-size: .9rem;
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 4px 18px var(--primary); transition: var(--transition);
}
.lang-btn:hover { transform: translateY(-2px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 26px; height: 3px; border-radius: 3px; background: var(--text); transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--nav-h) + 30px) 24px 40px; position: relative;
}
.hero-inner { max-width: 900px; }

.hero-photo-wrap { position: relative; display: inline-block; margin-bottom: 28px; }
.photo-ring {
  position: relative; width: 190px; height: 190px; margin: 0 auto;
  border-radius: 50%; padding: 6px;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--accent-2));
  box-shadow: 0 0 40px var(--primary);
  animation: glow 3.5s ease-in-out infinite;
}
.photo-ring::before {
  content: ''; position: absolute; inset: -16px; border-radius: 50%;
  border: 2px solid var(--card-border); opacity: .7;
}
.photo-ring img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 5px solid var(--bg); display: block;
}
.photo-ring .img-fallback { display: none; }
.fallback-avatar {
  display: none; width: 100%; height: 100%; border-radius: 50%;
  border: 5px solid var(--bg);
  place-items: center; font-size: 4rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.photo-ring img.img-fallback + .fallback-avatar { display: grid; }
.photo-ring img:not(.img-fallback) { display: block; }

@keyframes glow {
  0%, 100% { box-shadow: 0 0 30px var(--primary), 0 0 60px var(--accent); }
  50% { box-shadow: 0 0 50px var(--primary), 0 0 90px var(--accent-2); }
}

.online-badge {
  position: absolute; bottom: 12px; right: 6px; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  display: grid; place-items: center; font-size: 1.05rem;
  border: 3px solid var(--bg); box-shadow: 0 0 20px var(--accent);
}

.float-chip {
  position: absolute; width: 46px; height: 46px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--card-border); color: var(--primary);
  display: grid; place-items: center; font-size: 1.1rem;
  backdrop-filter: blur(8px); box-shadow: var(--shadow);
}
.chip-code { top: 6px; left: -26px; animation: bob 5s ease-in-out infinite; }
.chip-rocket { bottom: 26px; left: -52px; color: var(--accent-2); animation: bob 6.5s ease-in-out infinite 1s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }

.hero-hello { color: var(--text-muted); font-weight: 500; letter-spacing: 3px; text-transform: uppercase; font-size: .95rem; margin-bottom: 8px; }
.hero-name { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
.hero-name .first-half { font-weight: 300; color: var(--text); }

.gradient-text {
  background: linear-gradient(120deg, var(--primary), var(--accent) 35%, var(--accent-2) 65%, var(--primary));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

.hero-title {
  font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 600; color: var(--text-muted);
  margin-bottom: 18px; min-height: 1.5em;
}
.hero-title .cursor { display: inline-block; width: 3px; height: 1.1em; background: var(--accent); margin-inline-start: 4px; vertical-align: -0.15em; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-location { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 30px; }
.hero-location i { color: var(--accent); margin-inline-end: 6px; }
.dot-sep { margin: 0 8px; opacity: .5; }

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px;
  border-radius: 14px; font-weight: 600; font-size: 1rem; text-decoration: none;
  cursor: pointer; border: none; transition: var(--transition); position: relative; overflow: hidden;
}
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 30px var(--primary);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px var(--primary); }
.btn-primary:hover .btn-arrow { transform: translateX(5px); }
.btn-arrow { transition: var(--transition); }
html[dir="rtl"] .btn-primary:hover .btn-arrow { transform: translateX(-5px) rotate(180deg); }

.btn-outline {
  color: var(--text); background: var(--card); border: 1.5px solid var(--card-border);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }

.btn-sm { padding: 9px 18px; font-size: .88rem; border-radius: 11px; margin-top: 14px; }
.timeline-card .btn-sm { box-shadow: 0 6px 20px var(--primary); }
html[dir="rtl"] .timeline-card .btn-sm i { margin-inline-end: 0; margin-inline-start: 8px; }

.hero-socials { display: flex; gap: 14px; justify-content: center; }
.soc {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  color: var(--text-muted); font-size: 1.15rem; text-decoration: none;
  background: var(--card); border: 1px solid var(--card-border); transition: var(--transition);
}
.soc:hover { transform: translateY(-4px); color: #fff; }
.soc-mail:hover { background: var(--primary); box-shadow: 0 8px 24px var(--primary); }
.soc-whatsapp:hover { background: #25d366; box-shadow: 0 8px 24px #25d366; }
.soc-linkedin:hover { background: #0a66c2; box-shadow: 0 8px 24px #0a66c2; }
.soc-github:hover { background: #24292f; box-shadow: 0 8px 24px rgba(36,41,47,.6); }

.scroll-hint,
.scroll-hint span { display: none; }

/* ============ SECTIONS ============ */
.section { padding: 48px 0; position: relative; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.section-head { text-align: center; margin-bottom: 32px; }
.section-tag {
  display: inline-block; padding: 7px 20px; border-radius: 30px; font-size: .82rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary);
  background: var(--card); border: 1px solid var(--card-border); margin-bottom: 14px;
  box-shadow: inset 0 1px 0 var(--glass-shine);
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.section-title::after {
  content: ''; display: block; width: 70px; height: 4px; margin: 14px auto 0;
  border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px var(--primary);
}

/* Glassmorphism */
.glass {
  background: var(--card); border: 1px solid var(--card-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: var(--transition);
}
.glass:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--card-glow), 0 24px 60px var(--shadow);
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; }
.about-card { padding: 36px; }
.about-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.5rem; color: #fff; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 8px 24px var(--primary);
}
.about-text { color: var(--text-muted); font-size: 1.02rem; }
.about-text strong { color: var(--text); }

.about-facts { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.fact { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px dashed var(--card-border); }
.fact:last-child { border-bottom: none; padding-bottom: 0; }
.fact-label { color: var(--text-muted); font-size: .9rem; }
.fact-value { font-weight: 600; }
html[dir="rtl"] .fact { flex-direction: row; }

/* ============ SKILLS ============ */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.skill-card { padding: 24px; }
.skill-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.skill-icon { font-size: 1.8rem; color: var(--primary); }
.skill-card:nth-child(2) .skill-icon { color: var(--accent); }
.skill-card:nth-child(3) .skill-icon { color: #68a063; }
.skill-card:nth-child(4) .skill-icon { color: #e34f26; }
.skill-card:nth-child(5) .skill-icon { color: #2965f1; }
.skill-card:nth-child(6) .skill-icon { color: #f29111; }
.skill-card:nth-child(7) .skill-icon { color: #47a248; }
.skill-name { font-weight: 600; flex: 1; }
.skill-pct { color: var(--text-muted); font-size: .85rem; font-weight: 600; }

.skill-bar { height: 8px; border-radius: 8px; background: var(--card-border); overflow: hidden; }
.skill-fill {
  display: block; height: 100%; width: 0; border-radius: 8px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 10px var(--primary);
  transition: width 1.4s cubic-bezier(.25,.8,.25,1);
}
.skill-fill.animate { width: var(--w); }

.highlight-card {
  grid-column: span 1; text-align: center; justify-content: center; display: flex; flex-direction: column;
  background: linear-gradient(135deg, rgba(52,211,153,.16), rgba(14,165,233,.16));
}
.highlight-card .skill-icon { margin: 0 auto 10px; font-size: 2.2rem; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.highlight-card .skill-head { flex-direction: column; text-align: center; }
.skill-note { color: var(--text-muted); font-size: .88rem; }

/* ============ SERVICES ============ */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card { padding: 30px 24px; text-align: center; }
.service-icon {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.5rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 24px var(--primary); transition: var(--transition);
}
.service-card:hover .service-icon { transform: translateY(-4px) rotate(-6deg) scale(1.05); }
.service-card:nth-child(even) .service-icon { background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 24px var(--accent); }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-desc { color: var(--text-muted); font-size: .92rem; }

/* ============ TIMELINE ============ */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-inline-start: 0; }
.timeline::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 10px; width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent), var(--accent-2));
  border-radius: 3px;
}
html[dir="rtl"] .timeline::before { left: auto; right: 10px; }

.timeline-item { position: relative; padding-inline-start: 44px; margin-bottom: 18px; }
html[dir="rtl"] .timeline-item { padding-inline-start: 0; padding-inline-end: 44px; }

.timeline-dot {
  position: absolute; left: 3px; top: 26px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--bg); border: 4px solid var(--primary); z-index: 1;
  box-shadow: 0 0 0 5px rgba(52,211,153,.2);
}
html[dir="rtl"] .timeline-dot { left: auto; right: 3px; }

.timeline-card { padding: 28px; }
.timeline-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.timeline-card h3 { font-size: 1.15rem; }
.timeline-badge {
  padding: 4px 14px; border-radius: 20px; font-size: .75rem; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent));
}
.timeline-date { display: block; color: var(--text-muted); font-size: .88rem; margin-bottom: 14px; }
.timeline-date i { margin-inline-end: 6px; color: var(--accent); }

.timeline-list { padding-inline-start: 18px; color: var(--text-muted); font-size: .96rem; }
.timeline-list li { margin-bottom: 8px; position: relative; }
.timeline-list li::marker { color: var(--accent); }

/* ============ EDUCATION ============ */
.edu-card { display: flex; align-items: center; gap: 26px; padding: 36px; max-width: 820px; margin: 0 auto; }
.edu-icon {
  flex-shrink: 0; width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center;
  font-size: 2rem; color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--primary)); box-shadow: 0 8px 26px var(--accent-2);
}
.edu-body h3 { font-size: 1.25rem; margin-bottom: 4px; }
.edu-school { color: var(--primary); font-weight: 600; margin-bottom: 4px; }
.edu-date { color: var(--text-muted); font-size: .88rem; }
.edu-date i { margin-inline-end: 6px; }

.languages-head { margin-top: 36px; }
.lang-grid { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.lang-card { display: flex; align-items: center; gap: 16px; padding: 20px 28px; min-width: 260px; }
.lang-icon { font-size: 1.8rem; color: var(--gold); }
.lang-name { font-weight: 700; font-family: var(--font-ar); }
.lang-level { color: var(--text-muted); font-size: .88rem; }

/* ============ CERTIFICATES ============ */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert-card { padding: 28px; display: flex; flex-direction: column; }
.cert-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.cert-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 8px 24px var(--primary);
}
.cert-card:nth-child(even) .cert-icon { background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 24px var(--accent); }
.cert-card h3 { font-size: 1.05rem; }
.cert-date { display: block; color: var(--text-muted); font-size: .85rem; margin-bottom: 10px; }
.cert-date i { margin-inline-end: 6px; color: var(--accent); }
.cert-desc { color: var(--text-muted); font-size: .9rem; flex: 1; }
.cert-card .btn-sm { align-self: flex-start; margin-top: 18px; box-shadow: 0 6px 20px var(--primary); }

/* ============ CONTACT ============ */
.contact-section { padding-bottom: 48px; }
.contact-sub { color: var(--text-muted); margin-top: 16px; max-width: 560px; margin-inline: auto; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.contact-card { padding: 30px 22px; text-align: center; text-decoration: none; color: var(--text); display: block; }
.contact-icon {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 24px var(--primary); transition: var(--transition);
}
.contact-card:hover .contact-icon { transform: translateY(-4px) rotate(-6deg) scale(1.05); }
.contact-label { color: var(--text-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.contact-value { font-weight: 600; font-size: .95rem; word-break: break-word; }

/* ============ FOOTER ============ */
.footer {
  padding: 34px 24px; text-align: center; color: var(--text-muted); font-size: .92rem;
  border-top: 1px solid var(--card-border);
}
.footer i.fa-heart { color: var(--accent-2); }
.footer .gradient-text { font-weight: 700; }

/* ============ RESPONSIVE ============ */
/* Tablet landscape / small laptop */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; left: 0; flex-direction: column;
    background: var(--nav-bg); backdrop-filter: blur(20px);
    padding: 20px; gap: 8px; transform: translateY(-150%); transition: var(--transition);
    border-bottom: 1px solid var(--card-border);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; text-align: center; padding: 12px; }
  .hamburger { display: flex; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-top { flex-direction: column; }
  .photo-ring { width: 160px; height: 160px; }
  .float-chip { display: none; }
  .edu-card { flex-direction: column; text-align: center; }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }
  .hero { padding-top: calc(var(--nav-h) + 10px); }
  .hero-name { font-size: 2.5rem; }
  .hero-actions { margin-bottom: 26px; }
}

/* Small tablet / large phone */
@media (max-width: 600px) {
  .cert-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-card, .about-facts { padding: 24px; }
  .timeline-card { padding: 22px; }
  .contact-card { padding: 22px 16px; }
  .edu-card { padding: 24px; }
  .soc { width: 44px; height: 44px; font-size: 1.05rem; }
  .container { padding: 0 18px; }
  .section-title { font-size: 1.9rem; }
}

/* Phone */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; width: 100%; }
  .lang-btn { padding: 8px 12px; }
  .photo-ring { width: 140px; height: 140px; }
  .hero-name { font-size: 2.1rem; }
  .hero-location { font-size: .95rem; }
  .hero-socials { gap: 10px; }
  .online-badge { width: 36px; height: 36px; font-size: .9rem; }
  .lang-card { min-width: 100%; justify-content: center; }
  .cert-date, .cert-desc { font-size: .85rem; }
}

/* ============ PRINT / PDF ============ */
@media print {
  @page { margin: 14mm; }

  html, body {
    background: #fff !important;
    color: #111 !important;
    font-family: 'Poppins', 'Cairo', sans-serif;
  }

  body::before,
  .bg-orbs,
  .scroll-progress,
  .navbar,
  .footer,
  .contact-section,
  .hero-actions,
  .hero-socials,
  .online-badge,
  .float-chip,
  .btn {
    display: none !important;
  }

  .hero {
    min-height: 0 !important;
    padding: 0 0 16px !important;
  }
  .hero-inner { max-width: 100%; }
  .hero-photo-wrap { display: none; }
  .hero-hello { letter-spacing: 1px; text-transform: none; color: #555; margin: 0 0 4px; }
  .hero-name { font-size: 26pt; margin-bottom: 6px; }
  .hero-title { font-size: 13pt; color: #333; margin-bottom: 8px; }
  .hero-location { font-size: 10pt; color: #333; margin-bottom: 12px; }

  .section { padding: 14px 0 !important; page-break-inside: avoid; }
  .section-head { margin-bottom: 12px !important; }
  .section-tag { display: inline-block; color: #059669; border-color: #d1d5db; background: #f0fdf4; letter-spacing: 1px; font-size: 8pt; padding: 4px 10px; margin-bottom: 6px; }
  .section-title { font-size: 15pt !important; }
  .section-title::after { height: 3px; box-shadow: none; }

  .glass { background: #fff !important; border: 1px solid #d1d5db !important; box-shadow: none !important; border-radius: 10px; }
  .reveal { opacity: 1 !important; transform: none !important; }

  .about-grid, .about-facts, .about-card { grid-template-columns: 1fr; }
  .about-card, .about-facts { padding: 14px; }
  .about-text, .service-desc, .cert-desc, .timeline-list, .fact-value, .edu-date, .lang-level { color: #333 !important; font-size: 9.5pt; }

  .skills-grid, .services-grid, .cert-grid, .contact-grid, .lang-grid { grid-template-columns: 1fr; gap: 10px; }
  .skill-card, .service-card, .cert-card, .lang-card { padding: 10px 12px; page-break-inside: avoid; }
  .skill-bar { display: none; }
  .skill-head { margin-bottom: 0; }
  .skill-pct { color: #111 !important; }

  .timeline { max-width: 100%; }
  .timeline::before, .timeline-dot { display: none; }
  .timeline-item { padding-inline: 0 !important; margin-bottom: 12px; }
  .timeline-card { padding: 12px; }
  .timeline-date, .cert-date { color: #555 !important; }

  .cert-top { margin-bottom: 4px; }
  .cert-icon, .service-icon, .edu-icon, .about-icon { width: 40px; height: 40px; font-size: 1.1rem; box-shadow: none; }
  .cert-card .btn-sm { display: none; }

  .edu-card { flex-direction: row; text-align: left; padding: 12px; max-width: 100%; }
  .edu-school { color: #059669 !important; }
  .gradient-text { -webkit-text-fill-color: #059669; color: #059669; }
  .lang-name { color: #111 !important; }
}

