/* ===== JABIR LABS — Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&family=Noto+Kufi+Arabic:wght@300;400;500;600;700;800&family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #fafafa;
  --bg2: #ffffff;
  --bg3: #f5f5f7;
  --bg-dark: #0f0f12;
  --surface: #ffffff;
  --accent: #FF6B35;
  --accent-light: #FF8B5E;
  --accent-dark: #E05520;
  --accent-bg: rgba(255, 107, 53, 0.08);
  --accent-bg2: rgba(255, 107, 53, 0.15);
  --purple: #7C5CFC;
  --purple-bg: rgba(124, 92, 252, 0.08);
  --blue: #4F8EF7;
  --blue-bg: rgba(79, 142, 247, 0.08);
  --green: #34C759;
  --green-bg: rgba(52, 199, 89, 0.08);
  --yellow: #FFB830;
  --yellow-bg: rgba(255, 184, 48, 0.08);
  --text: #1a1a2e;
  --text-2: #4a4a5a;
  --text-3: #8a8a9a;
  --border: rgba(0,0,0,0.06);
  --border-2: rgba(0,0,0,0.1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --shadow-xl: 0 30px 80px rgba(0,0,0,0.12);
  --ff: 'Poppins', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --ff-ar: 'Noto Kufi Arabic', 'Cairo', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --nav-h: 80px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.rtl { direction: rtl; font-family: var(--ff-ar); }
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl .ff-display { font-family: var(--ff-ar); }
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1200px) { .container { padding: 0 20px; } }
.section { padding: 100px 0; position: relative; }
@media (min-width: 768px) { .section { padding: 120px 0; } }
.ff-display { font-family: var(--ff); }

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.vis { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-left { transform: translateX(-40px); }
.reveal-left.vis { transform: translateX(0); }
.reveal-right { transform: translateX(40px); }
.reveal-right.vis { transform: translateX(0); }
.reveal-scale { transform: scale(0.92); }
.reveal-scale.vis { transform: scale(1); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: all 0.4s var(--ease);
  background: transparent;
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--ff); font-weight: 800; font-size: 1.15rem; }
.nav-logo-mark {
  width: 40px; height: 40px; background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.85rem; font-family: var(--ff);
  transition: transform 0.3s var(--ease), border-radius 0.3s;
}
.nav-logo:hover .nav-logo-mark { transform: rotate(-8deg) scale(1.08); border-radius: 14px 10px 16px 12px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 18px; border-radius: 100px; font-size: 0.88rem;
  color: var(--text-2); font-weight: 500; transition: all 0.3s var(--ease);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: var(--accent-bg); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  background: none; border: 1px solid var(--border-2); padding: 8px 18px;
  border-radius: 100px; color: var(--text-2); font-size: 0.84rem;
  font-family: var(--ff-ar); font-weight: 500; transition: all 0.3s var(--ease);
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-cta-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff; border: none; padding: 10px 26px; border-radius: 100px;
  font-family: var(--ff); font-weight: 700; font-size: 0.88rem;
  transition: all 0.3s var(--ease); box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}
.nav-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,107,53,0.4); }
.mobile-toggle {
  display: none; background: none; border: none; padding: 8px;
  flex-direction: column; gap: 5px; width: 36px; height: 36px;
  align-items: center; justify-content: center;
}
.mobile-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.mobile-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 9989; backdrop-filter: blur(4px);
}
.mobile-overlay.open { display: block; animation: fadeIn 0.3s ease; }
.mobile-menu {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
  background: var(--bg2); z-index: 9990; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-start; padding: 80px 32px 32px;
  gap: 8px; transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -10px 0 40px rgba(0,0,0,0.15); overflow-y: auto;
}
body.rtl .mobile-menu { right: auto; left: -300px; transition: left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.mobile-menu.open { right: 0; }
body.rtl .mobile-menu.open { left: 0; right: auto; }
.mobile-menu a {
  font-family: var(--ff); font-size: 1.1rem;
  font-weight: 600; color: var(--text-2); transition: color 0.3s;
  padding: 12px 0; display: block; width: 100%;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover, .mobile-menu a:active { color: var(--accent); }
.mobile-menu-close {
  position: absolute; top: 20px; right: 20px; background: var(--bg3);
  border: 1px solid var(--border); width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 1.5rem; padding: 0; z-index: 9991;
}
body.rtl .mobile-menu-close { right: auto; left: 20px; }
.mobile-menu-lang {
  margin-top: 24px; background: none; border: 1px solid var(--border-2);
  padding: 12px 32px; border-radius: 100px; color: var(--text-2);
  font-size: 1rem; font-family: var(--ff-ar); width: 100%; text-align: center;
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-cta-btn { display: none; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 100px; padding-bottom: 60px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-blob-1 {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.15), transparent 70%);
  top: -10%; right: -5%; filter: blur(60px); animation: blobFloat 8s ease-in-out infinite;
}
.hero-blob-2 {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,252,0.1), transparent 70%);
  bottom: 10%; left: -5%; filter: blur(50px); animation: blobFloat 10s ease-in-out infinite reverse;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent);
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}
.hero-content { position: relative; z-index: 2; }
.hero-layout { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-layout { grid-template-columns: 1fr 1fr; gap: 60px; } }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 8px; border-radius: 100px;
  background: var(--accent-bg); border: 1px solid rgba(255,107,53,0.15);
  font-size: 0.84rem; color: var(--accent); font-weight: 600; margin-bottom: 24px;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero h1 {
  font-family: var(--ff); font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px;
  color: var(--text);
}
body.rtl .hero h1 { letter-spacing: 0; line-height: 1.2; }
.hero h1 .accent { color: var(--accent); }
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-2);
  max-width: 500px; line-height: 1.8; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px; font-family: var(--ff);
  font-weight: 700; font-size: 0.95rem; border: none; transition: all 0.3s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff; box-shadow: 0 4px 20px rgba(255,107,53,0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(255,107,53,0.4); }
.btn-outline {
  background: none; color: var(--text); border: 2px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline .arrow {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg3);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
  transition: all 0.3s;
}
.btn-outline:hover .arrow { background: var(--accent); color: #fff; }

.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-illustration {
  width: 100%; max-width: 500px; border-radius: var(--radius);
  position: relative;
}
.hero-lottie { width: 100%; max-width: 420px; margin: 0 auto; }
.hero-float-card {
  position: absolute; background: var(--bg2); border-radius: var(--radius-sm);
  padding: 14px 18px; box-shadow: var(--shadow-md); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600;
  animation: floatCard 4s ease-in-out infinite;
}
.hero-float-card:nth-child(2) { animation-delay: -2s; }
.hero-float-card .card-icon {
  width: 36px; height: 36px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; font-size: 1.1rem;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-card-top { top: 10%; right: -10%; }
.hero-card-bottom { bottom: 15%; left: -5%; }
body.rtl .hero-card-top { right: auto; left: -10%; }
body.rtl .hero-card-bottom { left: auto; right: -5%; }

.hero-stats {
  display: flex; gap: 40px; margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--ff); font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800; color: var(--text); line-height: 1;
}
.hero-stat-num .plus { color: var(--accent); }
.hero-stat-label { font-size: 0.82rem; color: var(--text-3); margin-top: 4px; font-weight: 500; }

/* ===== MARQUEE ===== */
.marquee {
  padding: 16px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); overflow: hidden; background: var(--bg2);
}
.marquee-track {
  display: flex; gap: 40px; animation: marquee 35s linear infinite;
  white-space: nowrap; width: max-content;
}
body.rtl .marquee-track { animation-direction: reverse; }
.marquee-item {
  font-family: var(--ff); font-size: 0.88rem; font-weight: 600;
  color: var(--text-3); display: flex; align-items: center; gap: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.marquee-sep { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== SECTION HEADERS ===== */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 12px;
}
.section-tag::before { content: ''; width: 24px; height: 2px; background: var(--accent); border-radius: 1px; }
body.rtl .section-tag::before { display: none; }
body.rtl .section-tag::after { content: ''; width: 24px; height: 2px; background: var(--accent); border-radius: 1px; }
.section-heading {
  font-family: var(--ff); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.02em;
}
body.rtl .section-heading { letter-spacing: 0; line-height: 1.3; }
.section-heading .dim { color: var(--text-3); }
.section-desc { font-size: 1.05rem; color: var(--text-3); max-width: 540px; line-height: 1.8; }
.section-header { margin-bottom: 56px; }

/* ===== ABOUT BENTO ===== */
.about-bento {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto; gap: 16px;
}
.bento-item {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; overflow: hidden; position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.bento-item:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bento-photo { grid-column: 1; grid-row: 1 / 3; padding: 0; }
.bento-photo img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: calc(var(--radius) - 1px);
  transition: transform 0.6s var(--ease), filter 0.6s;
}
.bento-photo:hover img { transform: scale(1.03); }
.bento-bio { grid-column: 2 / 4; }
.bento-bio h3 { font-family: var(--ff); font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.bento-bio h3 .accent { color: var(--accent); }
.bento-bio p { color: var(--text-2); line-height: 1.85; font-size: 0.95rem; }
.bento-detail { display: flex; flex-direction: column; gap: 16px; }
.bento-detail-item { display: flex; align-items: flex-start; gap: 12px; }
.bento-detail-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0;
}
.bento-detail-text h4 { font-family: var(--ff); font-size: 0.88rem; font-weight: 600; margin-bottom: 2px; }
.bento-detail-text p { font-size: 0.82rem; color: var(--text-3); }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: all 0.4s var(--ease); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0); transition: transform 0.4s var(--ease); transform-origin: left;
}
body.rtl .service-card::before { transform-origin: right; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(255,107,53,0.2); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon-wrap {
  width: 56px; height: 56px; border-radius: 16px; display: flex;
  align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 20px;
}
.service-icon-wrap.orange { background: var(--accent-bg); }
.service-icon-wrap.purple { background: var(--purple-bg); }
.service-icon-wrap.blue { background: var(--blue-bg); }
.service-icon-wrap.green { background: var(--green-bg); }
.service-icon-wrap.yellow { background: var(--yellow-bg); }
.service-card h3 { font-family: var(--ff); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-3); font-size: 0.9rem; line-height: 1.7; }

/* ===== SKILLS ===== */
.skills-section { background: var(--bg3); }
.skills-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.skill-item {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px 22px; display: flex; align-items: center; gap: 16px;
  transition: all 0.3s var(--ease);
}
.skill-item:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); transform: translateX(4px); }
body.rtl .skill-item:hover { transform: translateX(-4px); }
.skill-name { font-family: var(--ff); font-weight: 600; font-size: 0.9rem; min-width: 140px; }
.skill-bar-wrap { flex: 1; }
.skill-track { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.skill-fill {
  height: 100%; border-radius: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width 1.2s var(--ease-out);
}
.skill-pct { font-family: var(--ff); font-weight: 700; font-size: 0.85rem; color: var(--accent); min-width: 36px; text-align: right; }
body.rtl .skill-pct { text-align: left; }

/* ===== PROJECTS ===== */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 24px; }
.project-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.4s var(--ease); cursor: pointer;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.project-thumb-wrap { overflow: hidden; height: 220px; }
.project-thumb {
  width: 100%; height: 100%; object-fit: cover; background: var(--bg3);
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-thumb { transform: scale(1.05); }
.project-body { padding: 24px; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.project-tag {
  padding: 4px 12px; border-radius: 100px; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--accent-bg); color: var(--accent); border: 1px solid rgba(255,107,53,0.1);
}
.project-card h3 { font-family: var(--ff); font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.project-card p { color: var(--text-3); font-size: 0.88rem; line-height: 1.65; margin-bottom: 16px; }
.project-view-btn {
  display: inline-block; color: var(--accent); font-size: 0.85rem; font-weight: 600;
  transition: gap 0.3s, letter-spacing 0.3s;
}
.project-card:hover .project-view-btn { letter-spacing: 0.03em; }
.project-links { display: flex; gap: 10px; }
.project-link-btn {
  padding: 8px 18px; border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--border-2); color: var(--text-2); transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 6px;
}
.project-link-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

/* ===== BLOG ===== */
.blog-section { background: var(--bg3); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.4s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-thumb-wrap { overflow: hidden; height: 200px; }
.blog-thumb { width: 100%; height: 100%; object-fit: cover; background: var(--bg3); transition: transform 0.6s var(--ease); }
.blog-card:hover .blog-thumb { transform: scale(1.05); }
.blog-body { padding: 22px; }
.blog-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 0.76rem; color: var(--text-3); font-weight: 500; }
.blog-cat {
  padding: 3px 10px; border-radius: 100px; font-weight: 600;
  background: var(--accent-bg); color: var(--accent);
}
.blog-card h3 { font-family: var(--ff); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card p { color: var(--text-3); font-size: 0.86rem; line-height: 1.65; }

/* ===== APPS / DOWNLOADS ===== */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.dl-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; align-items: center; gap: 18px;
  transition: all 0.3s var(--ease);
}
.dl-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.dl-icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}
.dl-info { flex: 1; min-width: 0; }
.dl-info h4 { font-family: var(--ff); font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.dl-info p { font-size: 0.82rem; color: var(--text-3); }
.dl-details-link {
  display: inline-block; margin-top: 6px; font-size: 0.8rem; font-weight: 600;
  color: var(--accent); transition: gap 0.3s;
}
.dl-details-link:hover { text-decoration: underline; }
.dl-download {
  padding: 10px 22px; border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff; font-family: var(--ff); font-weight: 700; font-size: 0.82rem;
  white-space: nowrap; transition: all 0.3s; display: inline-block;
}
.dl-download:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,107,53,0.3); }

/* ===== TESTIMONIALS ===== */
.test-section { background: var(--bg3); }
.test-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.test-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative; transition: all 0.3s var(--ease);
}
.test-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.test-card .quote-mark {
  position: absolute; top: 16px; right: 24px; font-family: var(--ff);
  font-size: 4rem; font-weight: 800; color: var(--accent-bg2); line-height: 1;
}
body.rtl .test-card .quote-mark { right: auto; left: 24px; }
.test-stars { display: flex; gap: 2px; margin-bottom: 16px; color: var(--yellow); font-size: 0.9rem; }
.test-card p { color: var(--text-2); font-size: 0.94rem; line-height: 1.8; margin-bottom: 24px; position: relative; z-index: 1; }
.test-author { display: flex; align-items: center; gap: 14px; }
.test-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff); font-weight: 700; color: #fff; font-size: 0.85rem;
}
.test-name { font-family: var(--ff); font-weight: 700; font-size: 0.92rem; }
.test-role { font-size: 0.78rem; color: var(--text-3); }

/* ===== CONTACT ===== */
.contact-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-left h3 {
  font-family: var(--ff); font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; margin-bottom: 12px;
}
.contact-left h3 .dim { color: var(--text-3); }
.contact-subtext { color: var(--text-3); font-size: 0.92rem; line-height: 1.7; margin-bottom: 24px; }
.contact-info-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-info-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-info-text h4 { font-family: var(--ff); font-weight: 600; font-size: 0.88rem; }
.contact-info-text p { color: var(--text-3); font-size: 0.86rem; }
.social-row { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.social-pill {
  padding: 10px 20px; border-radius: 100px; background: var(--bg3);
  border: 1px solid var(--border); color: var(--text-2); font-size: 0.82rem;
  font-weight: 600; transition: all 0.3s;
}
.social-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.contact-form {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px;
}
.cf-group { display: flex; flex-direction: column; gap: 6px; }
.cf-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-2); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 18px; color: var(--text); font-family: var(--ff-body); font-size: 0.9rem;
  outline: none; transition: border-color 0.3s, box-shadow 0.3s; width: 100%;
}
body.rtl .contact-form input, body.rtl .contact-form select, body.rtl .contact-form textarea { font-family: var(--ff-ar); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8a9a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
body.rtl .contact-form select { background-position: left 16px center; padding-right: 18px; padding-left: 40px; }
.contact-form button {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff; border: none; padding: 16px 36px; border-radius: 100px;
  font-family: var(--ff); font-weight: 700; font-size: 1rem;
  transition: all 0.3s var(--ease); align-self: flex-start;
  box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}
body.rtl .contact-form button { align-self: flex-end; }
.contact-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,107,53,0.4); }

/* ===== FOOTER ===== */
.footer { padding: 60px 0 32px; border-top: 1px solid var(--border); background: var(--bg2); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-3); font-size: 0.88rem; line-height: 1.7; margin-top: 14px; max-width: 300px; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.footer-social-link {
  width: 38px; height: 38px; border-radius: 10px; background: var(--bg3);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all 0.3s; color: var(--text-2);
}
.footer-social-link:hover { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer-col-title {
  font-family: var(--ff); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 16px;
}
.footer-col a { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 0.88rem; padding: 5px 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-col a span { font-size: 0.9rem; }
.footer-nl-form { display: flex; gap: 8px; margin-top: 10px; }
.footer-nl-form input {
  flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-xs);
  padding: 10px 14px; color: var(--text); font-family: var(--ff-body); font-size: 0.85rem; outline: none;
  transition: border-color 0.3s; min-width: 0;
}
.footer-nl-form input:focus { border-color: var(--accent); }
.footer-nl-form button {
  width: 40px; height: 40px; border-radius: var(--radius-xs); background: var(--accent);
  color: #fff; border: none; font-size: 1rem; display: flex; align-items: center;
  justify-content: center; transition: all 0.3s; flex-shrink: 0;
}
.footer-nl-form button:hover { background: var(--accent-dark); transform: translateY(-2px); }
.footer #footerNewsletter p { color: var(--text-3); font-size: 0.85rem; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--text-3);
}
.footer-bottom a { color: var(--text-2); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--accent); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius); padding: 56px 48px; text-align: center;
  margin: 0 24px; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15), transparent 60%);
}
.cta-banner h2 { font-family: var(--ff); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 12px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 28px; position: relative; }
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px; background: #fff;
  color: var(--accent-dark); font-family: var(--ff); font-weight: 700;
  font-size: 0.95rem; border: none; transition: all 0.3s var(--ease);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1); position: relative;
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(0,0,0,0.15); }

/* ===== LEGAL OVERLAY ===== */
.legal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 2000; overflow-y: auto; padding: 48px 20px;
  backdrop-filter: blur(8px);
}
.legal-overlay.open { display: block; animation: fadeIn 0.3s; }
.legal-box {
  max-width: 700px; margin: 0 auto; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; position: relative;
}
.legal-close {
  position: absolute; top: 16px; right: 16px; background: var(--bg3);
  border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text-2);
  font-size: 1.1rem; transition: all 0.3s;
}
body.rtl .legal-close { right: auto; left: 16px; }
.legal-close:hover { background: var(--accent); color: #fff; }
.legal-box h2 { font-family: var(--ff); font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }
.legal-box .content { color: var(--text-2); line-height: 1.9; white-space: pre-wrap; font-size: 0.92rem; }

.empty-msg { text-align: center; padding: 60px 24px; color: var(--text-3); font-size: 1rem; grid-column: 1 / -1; }

/* ===== LOADING SCREEN ===== */
.preloader {
  position: fixed; inset: 0; z-index: 99999; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  width: 80px; height: 80px; border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--ff); font-weight: 900; font-size: 1.6rem;
  animation: loaderPulse 1.5s ease-in-out infinite;
  margin-bottom: 24px;
}
.preloader-bar {
  width: 200px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden;
}
.preloader-bar-fill {
  height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px; animation: loaderBar 1.8s ease-in-out forwards;
}
.preloader-text {
  margin-top: 16px; font-family: var(--ff); font-size: 0.85rem; color: var(--text-3);
  letter-spacing: 0.05em; animation: loaderFade 1s ease-in-out infinite alternate;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); }
}
@keyframes loaderBar {
  0% { width: 0; } 50% { width: 70%; } 100% { width: 100%; }
}
@keyframes loaderFade {
  0% { opacity: 0.4; } 100% { opacity: 1; }
}

/* ===== BLOG ARTICLE PAGE ===== */
.article-page { padding-top: 120px; padding-bottom: 80px; }
.article-back {
  display: inline-flex; align-items: center; gap: 8px; color: var(--accent);
  font-weight: 600; font-size: 0.9rem; margin-bottom: 24px; transition: gap 0.3s;
}
.article-back:hover { gap: 12px; }
.article-header { margin-bottom: 32px; }
.article-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; font-size: 0.82rem; color: var(--text-3); }
.article-title { font-family: var(--ff); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.article-cover { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius); margin-bottom: 32px; }
.article-content { max-width: 760px; margin: 0 auto; font-size: 1.05rem; line-height: 2; color: var(--text-2); }
.article-content p { margin-bottom: 20px; }
.article-content h2, .article-content h3 {
  font-family: var(--ff); color: var(--text); margin-top: 32px; margin-bottom: 16px;
}
.article-linked-dl {
  max-width: 760px; margin: 32px auto 0; padding: 20px 24px; border-radius: var(--radius-sm);
  background: var(--accent-bg); border: 1px solid rgba(255,107,53,0.15);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.article-linked-dl span { font-weight: 600; font-size: 0.9rem; }
.article-linked-dl a { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.article-linked-dl a:hover { text-decoration: underline; }

/* ===== PROJECT DETAIL PAGE ===== */
.project-detail-page { padding-top: 120px; padding-bottom: 80px; }
.proj-detail-header { margin-bottom: 32px; }
.proj-detail-title { font-family: var(--ff); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.proj-detail-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.proj-detail-cover {
  width: 100%; max-height: 500px; object-fit: cover; border-radius: var(--radius);
  margin-bottom: 16px; transition: opacity 0.3s;
}
.proj-gallery {
  display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap;
}
.proj-gallery-img {
  width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius-xs);
  border: 2px solid var(--border); cursor: pointer; transition: all 0.3s;
  opacity: 0.6;
}
.proj-gallery-img.active, .proj-gallery-img:hover { border-color: var(--accent); opacity: 1; transform: scale(1.05); }
.proj-detail-content { max-width: 760px; }
.proj-detail-desc { font-size: 1.05rem; line-height: 2; color: var(--text-2); margin-bottom: 32px; }
.proj-detail-desc p { margin-bottom: 16px; }
.proj-detail-section { margin-bottom: 32px; }
.proj-detail-section h3 { font-family: var(--ff); font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; }
.proj-detail-techs { display: flex; gap: 8px; flex-wrap: wrap; }
.proj-detail-tech {
  padding: 8px 18px; border-radius: 100px; font-size: 0.82rem; font-weight: 600;
  background: var(--bg3); border: 1px solid var(--border); color: var(--text-2);
}
.proj-detail-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ===== TERMS/PRIVACY PAGE ===== */
.legal-page { padding-top: 120px; padding-bottom: 80px; }
.legal-page-title { font-family: var(--ff); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 24px; }
.legal-page-content { max-width: 760px; font-size: 1rem; line-height: 2; color: var(--text-2); white-space: pre-wrap; }

/* ===== IMAGE UPLOAD ===== */
.img-upload-area {
  border: 2px dashed var(--border-2); border-radius: var(--radius-sm);
  padding: 32px; text-align: center; cursor: pointer; transition: all 0.3s;
  background: var(--bg3); position: relative; overflow: hidden;
}
.img-upload-area:hover { border-color: var(--accent); background: var(--accent-bg); }
.img-upload-area img {
  max-width: 100%; max-height: 200px; object-fit: contain; border-radius: 8px; margin: 0 auto;
}
.img-upload-text { color: var(--text-3); font-size: 0.88rem; margin-top: 8px; }
.img-upload-area input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}

/* ===== NAVBAR LOGO IMAGE ===== */
.nav-logo-img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }

/* ===== HERO SAMPLES ===== */
.hero-samples { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.hero-sample-item {
  width: 80px; height: 80px; border-radius: 12px; border: 2px solid var(--border);
  cursor: pointer; overflow: hidden; transition: all 0.3s;
}
.hero-sample-item:hover, .hero-sample-item.active { border-color: var(--accent); transform: scale(1.05); }
.hero-sample-item img { width: 100%; height: 100%; object-fit: cover; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.hidden-section { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-bento { grid-template-columns: 1fr 1fr; }
  .bento-photo { grid-column: 1 / 3; grid-row: auto; max-height: 300px; }
  .bento-bio { grid-column: 1 / 3; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-split { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Reduce reveal animation distance on mobile */
  .reveal { transform: translateY(24px); transition-duration: 0.6s; }
  .reveal-left { transform: translateX(-24px); }
  .reveal-right { transform: translateX(24px); }
  .reveal-scale { transform: scale(0.95); }

  /* General spacing */
  section { padding: 50px 0; }
  .container { padding-left: 20px; padding-right: 20px; }
  .section { padding: 60px 0; }

  /* Section headers — centered on mobile */
  .section-header { margin-bottom: 32px; text-align: center; }
  .section-tag { justify-content: center; }
  .section-heading { font-size: clamp(1.5rem, 5.5vw, 2rem); text-align: center; }
  .section-desc { font-size: 0.92rem; text-align: center; margin-left: auto; margin-right: auto; }

  /* Hero — centered */
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 50px; }
  .hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-eyebrow { justify-content: center; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .hero-desc { font-size: 0.92rem; margin: 0 auto 28px; text-align: center; max-width: 100%; }
  .hero-actions { justify-content: center; flex-wrap: wrap; gap: 10px; }
  .btn { padding: 12px 24px; font-size: 0.88rem; }

  /* Hero stats — centered grid */
  .hero-stats {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-top: 28px; padding-top: 20px;
    text-align: center; justify-items: center;
  }
  .hero-stat-num { font-size: clamp(1.3rem, 4vw, 1.7rem); }
  .hero-stat-label { font-size: 0.74rem; }

  /* About — centered text */
  .about-bento { grid-template-columns: 1fr; gap: 12px; }
  .bento-photo { grid-column: 1; max-height: 220px; }
  .bento-bio, .bento-detail { grid-column: 1; }
  .bento-item { padding: 20px; text-align: center; }
  .bento-bio h3 { font-size: 1.2rem; }
  .bento-bio p { font-size: 0.88rem; }
  .bento-detail { text-align: left; }
  .bento-detail-item { gap: 10px; }
  .bento-detail-icon { width: 36px; height: 36px; font-size: 1rem; border-radius: 10px; }
  .bento-detail-text h4 { font-size: 0.84rem; }
  .bento-detail-text p { font-size: 0.78rem; }

  /* Services — centered cards */
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { padding: 24px 20px; text-align: center; }
  .service-icon-wrap { width: 52px; height: 52px; font-size: 1.4rem; margin: 0 auto 16px; border-radius: 16px; }
  .service-card h3 { font-size: 1rem; margin-bottom: 8px; }
  .service-card p { font-size: 0.85rem; }

  /* Skills */
  .skills-wrap { grid-template-columns: 1fr; gap: 10px; }
  .skill-item { padding: 14px 16px; gap: 12px; }
  .skill-name { min-width: 90px; font-size: 0.84rem; }
  .skill-pct { font-size: 0.8rem; min-width: 32px; }

  /* Projects — centered card text */
  .projects-grid { grid-template-columns: 1fr; gap: 16px; }
  .project-thumb-wrap { height: 200px; }
  .project-body { padding: 18px; text-align: center; }
  .project-tags { justify-content: center; }
  .project-card h3 { font-size: 1rem; }
  .project-card p { font-size: 0.84rem; margin-bottom: 12px; }
  .project-tag { font-size: 0.7rem; padding: 4px 10px; }
  .project-view-btn { display: block; }
  .project-links { justify-content: center; }

  /* Blog — centered card text */
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-thumb-wrap { height: 180px; }
  .blog-body { padding: 18px; text-align: center; }
  .blog-meta { justify-content: center; }
  .blog-card h3 { font-size: 0.98rem; }
  .blog-card p { font-size: 0.82rem; }
  .blog-meta { font-size: 0.72rem; gap: 8px; }

  /* Downloads — centered */
  .dl-grid { grid-template-columns: 1fr; gap: 14px; }
  .dl-card { padding: 20px; gap: 14px; flex-direction: column; text-align: center; align-items: center; }
  .dl-icon { width: 52px; height: 52px; font-size: 1.4rem; border-radius: 16px; }
  .dl-info h4 { font-size: 0.92rem; }
  .dl-info p { font-size: 0.78rem; }
  .dl-download { margin-top: 8px; }

  /* Testimonials — centered */
  .test-grid { grid-template-columns: 1fr; gap: 16px; }
  .test-card { padding: 24px 20px; text-align: center; }
  .test-card .quote-mark { position: static; font-size: 2.5rem; margin-bottom: 8px; line-height: 1; }
  .test-stars { justify-content: center; }
  .test-card p { font-size: 0.9rem; }
  .test-author { justify-content: center; gap: 10px; }
  .test-avatar { width: 38px; height: 38px; font-size: 0.78rem; }
  .test-name { font-size: 0.86rem; }
  .test-role { font-size: 0.74rem; }

  /* Contact — centered left side */
  .contact-split { grid-template-columns: 1fr; gap: 28px; }
  .contact-left { text-align: center; }
  .contact-left h3 { font-size: clamp(1.3rem, 4vw, 1.6rem); }
  .contact-subtext { font-size: 0.88rem; }
  .contact-info-row { justify-content: center; gap: 12px; margin-bottom: 14px; }
  .contact-info-text { text-align: left; }
  .contact-info-icon { width: 42px; height: 42px; font-size: 1.1rem; border-radius: 12px; }
  .contact-info-text h4 { font-size: 0.84rem; }
  .contact-info-text p { font-size: 0.82rem; }
  .social-row { gap: 8px; margin-top: 20px; justify-content: center; }
  .social-pill { padding: 8px 16px; font-size: 0.78rem; }
  .cf-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px; }
  .contact-form input, .contact-form select, .contact-form textarea { padding: 12px 14px; font-size: 0.86rem; }
  .contact-form button { width: 100%; justify-content: center; padding: 14px 28px; font-size: 0.92rem; align-self: stretch; }

  /* CTA Banner — centered */
  .cta-banner { padding: 36px 20px; margin: 0 12px; text-align: center; }
  .cta-banner h2 { font-size: clamp(1.2rem, 4vw, 1.7rem); }
  .cta-banner p { font-size: 0.88rem; margin-bottom: 20px; }

  /* Footer — centered columns */
  .footer { padding: 40px 0 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand .nav-logo { justify-content: center; }
  .footer-brand p { max-width: 320px; font-size: 0.84rem; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-col { text-align: center; }
  .footer-col-title { margin-bottom: 10px; }
  .footer-col a { font-size: 0.84rem; padding: 4px 0; justify-content: center; }
  .footer-nl-form { justify-content: center; }
  .footer-nl-form input { font-size: 0.82rem; padding: 10px 12px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; font-size: 0.78rem; }

  /* Article / Project Detail */
  .article-page, .project-detail-page { padding-top: 100px; padding-bottom: 60px; }
  .article-title, .proj-detail-title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .article-content { font-size: 0.95rem; }
  .proj-detail-desc { font-size: 0.95rem; }
  .proj-detail-cover { max-height: 300px; }
  .proj-detail-actions { gap: 10px; justify-content: center; flex-wrap: wrap; }
  .proj-detail-tech { padding: 6px 14px; font-size: 0.78rem; }
  .proj-detail-techs { justify-content: center; }
  .proj-detail-meta { justify-content: center; }

  /* Marquee smaller */
  .marquee-item { font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 48px 0; }
  .section-heading { font-size: clamp(1.3rem, 6.5vw, 1.7rem); }

  /* Hero */
  .hero { padding-top: 90px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .hero-desc { font-size: 0.88rem; }
  .hero-eyebrow { font-size: 0.76rem; padding: 5px 12px 5px 7px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn { justify-content: center; padding: 13px 20px; font-size: 0.86rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-stat-num { font-size: 1.2rem; }
  .hero-stat-label { font-size: 0.7rem; }

  /* Cards tighter */
  .service-card { padding: 20px 16px; }
  .service-icon-wrap { width: 46px; height: 46px; font-size: 1.2rem; }
  .service-card h3 { font-size: 0.95rem; }
  .service-card p { font-size: 0.82rem; }

  .project-body { padding: 16px; }
  .project-thumb-wrap { height: 170px; }
  .project-card h3 { font-size: 0.95rem; }
  .project-card p { font-size: 0.8rem; }

  .blog-body { padding: 16px; }
  .blog-thumb-wrap { height: 160px; }
  .blog-card h3 { font-size: 0.92rem; }

  .test-card { padding: 20px 16px; }
  .test-card .quote-mark { font-size: 2rem; }
  .test-card p { font-size: 0.86rem; }

  /* Downloads vertical */
  .dl-card { padding: 18px 14px; }
  .dl-download { width: 100%; text-align: center; padding: 10px 20px; }
  .dl-icon { width: 46px; height: 46px; font-size: 1.2rem; }
  .dl-info h4 { font-size: 0.88rem; }
  .dl-info p { font-size: 0.76rem; }

  /* Skills */
  .skill-item { padding: 12px 14px; gap: 10px; }
  .skill-name { min-width: 72px; font-size: 0.78rem; }
  .skill-pct { font-size: 0.74rem; }

  /* Contact */
  .contact-form { padding: 20px 14px; }
  .contact-info-row { flex-direction: column; gap: 8px; }
  .contact-info-icon { width: 40px; height: 40px; font-size: 1rem; }
  .social-pill { padding: 7px 12px; font-size: 0.74rem; }
  .social-row { flex-wrap: wrap; justify-content: center; }

  /* About */
  .bento-item { padding: 16px; }
  .bento-photo { max-height: 180px; }
  .bento-bio h3 { font-size: 1.1rem; }
  .bento-bio p { font-size: 0.84rem; }
  .bento-detail-icon { width: 32px; height: 32px; font-size: 0.9rem; }

  /* Gallery */
  .proj-gallery-img { width: 54px; height: 40px; }
  .proj-detail-actions { flex-direction: column; }
  .proj-detail-actions .btn { width: 100%; }
  .proj-detail-title { font-size: clamp(1.2rem, 6vw, 1.7rem); }

  /* Footer */
  .footer { padding: 32px 0 20px; }
  .footer-top { gap: 24px; margin-bottom: 24px; }
  .footer-brand p { font-size: 0.8rem; max-width: 280px; }
  .footer-social-link { width: 34px; height: 34px; font-size: 0.9rem; }
  .footer-col a { font-size: 0.8rem; }
  .footer-col-title { font-size: 0.72rem; }
  .footer-bottom { font-size: 0.74rem; gap: 8px; }
  .footer-nl-form input { padding: 8px 10px; font-size: 0.8rem; }
  .footer-nl-form button { width: 36px; height: 36px; font-size: 0.9rem; }

  /* CTA */
  .cta-banner { padding: 28px 16px; margin: 0 8px; }
  .cta-banner h2 { font-size: 1.1rem; }
  .cta-banner p { font-size: 0.84rem; }
  .btn-white { padding: 12px 24px; font-size: 0.86rem; }

  /* Marquee */
  .marquee-item { font-size: 0.72rem; gap: 8px; }
  .marquee-sep { width: 5px; height: 5px; }

  /* Navbar */
  .nav-logo { font-size: 1rem; gap: 8px; }
  .nav-logo-mark { width: 34px; height: 34px; font-size: 0.75rem; border-radius: 10px; }
  .lang-btn { padding: 6px 14px; font-size: 0.78rem; }
}
