:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --primary-subtle: rgba(37, 99, 235, 0.08);
  --accent: #7c3aed;
  --accent-light: rgba(124, 58, 237, 0.08);

  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;

  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 50px;

  --font: 'Cairo', 'Tajawal', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --z-nav: 100;
  --z-overlay: 90;
  --z-modal: 80;
  --z-preloader: 200;
  --z-whatsapp: 50;
  --z-top: 50;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  width: 100%; position: relative;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }

@media (min-width: 768px) { .container { padding: 0 32px; } .section { padding: 80px 0; } }
@media (min-width: 992px) { .section { padding: 100px 0; } .container { padding: 0 40px; } }

/* ===== PRELOADER ===== */
.preloader {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: var(--z-preloader);
  transition: opacity 0.5s, visibility 0.5s;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== NAV ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo-img { height: 36px; width: auto; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  z-index: calc(var(--z-modal) + 1);
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.nav-menu {
  position: fixed; top: 0; right: -100%;
  width: 260px; height: 100vh;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 30px rgba(0,0,0,0.08);
  z-index: var(--z-modal);
}
.nav-menu.active { right: 0; }
.nav-link {
  font-size: 17px; font-weight: 600; color: var(--text-secondary);
  min-height: 44px; display: flex; align-items: center;
  transition: var(--transition);
}
.nav-link.active, .nav-link:hover { color: var(--primary); }

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: var(--z-overlay);
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.nav-overlay.active { opacity: 1; visibility: visible; }

.nav-cta { display: none; }

@media (min-width: 768px) {
  .nav-container { height: 64px; }
  .nav-toggle, .nav-overlay { display: none; }
  .nav-menu {
    position: static; width: auto; height: auto;
    background: none; box-shadow: none;
    flex-direction: row; gap: 28px;
  }
  .nav-link { font-size: 14px; min-height: auto; }
  .nav-cta {
    display: inline-flex;
    align-items: center; gap: 6px;
    background: var(--primary);
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px; font-weight: 600;
    transition: var(--transition);
  }
  .nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
}

/* ===== HERO ===== */
.hero {
  padding: 100px 0 60px;
  text-align: center;
  background: var(--bg);
}
.hero-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  text-wrap: balance;
}
.hero-title .brand-text {
  color: var(--primary);
  font-weight: 900;
}
.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero .btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary);
  color: white;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-size: 15px; font-weight: 700; font-family: var(--font);
  transition: var(--transition);
  border: none; cursor: pointer;
  min-height: 48px;
}
.hero .btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

@media (min-width: 768px) {
  .hero { padding: 120px 0 80px; }
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}
.section-marker {
  display: block;
  width: 32px; height: 3px;
  background: var(--primary);
  border-radius: 3px;
  margin: 0 auto 12px;
}
.section-title {
  font-size: clamp(24px, 4.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  text-wrap: balance;
}
.section-title .brand-text { color: var(--primary); }
.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 768px) { .section-header { margin-bottom: 48px; } }

/* ===== SERVICES ===== */
.services { background: var(--bg-alt); }
.services-grid { display: flex; flex-direction: column; gap: 14px; }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}
.service-card h3 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 6px;
}
.service-card p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6;
}
.card-featured { border-color: var(--primary); border-width: 2px; position: relative; }
.card-badge {
  position: absolute; top: -10px; right: 16px;
  background: var(--primary);
  color: white;
  padding: 3px 14px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700;
}
.card-features { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.card-features li {
  font-size: 13px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
}
.card-features li i { color: #22c55e; font-size: 12px; }
.card-tags { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-tags span {
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600;
}
.card-quote-icon { color: var(--primary); font-size: 22px; margin-bottom: 8px; }
.card-alt blockquote p {
  font-size: 15px; font-weight: 600;
  color: var(--text); font-style: normal;
}
.card-attr { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

@media (min-width: 768px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (min-width: 992px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card { padding: 32px 28px; }
  .card-featured { transform: scale(1.03); }
}

/* ===== PROCESS ===== */
.process { background: var(--bg); }
.process-steps {
  display: flex; flex-direction: column; gap: 20px;
  align-items: center;
}
.process-step {
  text-align: center;
  max-width: 320px;
  padding: 24px 20px;
}
.step-number {
  font-size: 42px; font-weight: 900;
  color: var(--primary-subtle);
  line-height: 1;
  margin-bottom: 4px;
}
.step-icon {
  width: 48px; height: 48px;
  margin: 0 auto 12px;
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.process-step h3 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 4px;
}
.process-step p {
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.6;
}
.process-connector { width: 2px; height: 24px; background: var(--border); }

@media (min-width: 768px) {
  .process-steps {
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
  }
  .process-step { max-width: 220px; }
  .process-connector {
    width: 48px; height: 2px;
    margin-top: 64px;
    flex-shrink: 0;
  }
}

/* ===== ABOUT ===== */
.about { background: var(--bg-alt); }
.about-wrapper { display: flex; flex-direction: column; gap: 32px; }
.about-content .section-marker {
  margin: 0 0 12px auto;
  width: 40px;
}
.about-content .section-title { text-align: right; }
.about-text {
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}
.feature-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  min-height: 44px;
}
.feature-item i { color: var(--primary); font-size: 16px; flex-shrink: 0; }
.about-img-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.about-logo {
  width: 200px; height: 200px;
  object-fit: contain;
}
.experience-badge {
  position: absolute; bottom: 0; right: 0;
  background: var(--primary);
  color: white;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 8px 24px rgba(37,99,235,0.25);
}
.exp-number { font-size: 24px; font-weight: 900; display: block; line-height: 1; }
.exp-text { font-size: 11px; font-weight: 500; opacity: 0.9; }

@media (min-width: 768px) {
  .about-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
  .about-image { flex: 1; }
  .about-content { flex: 1; }
  .about-logo { width: 300px; height: 300px; }
  .about-text { font-size: 16px; }
}

/* ===== PROJECTS ===== */
.projects { background: var(--bg); }
.projects-showcase { max-width: 760px; margin: 0 auto; }
.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.project-card:hover { box-shadow: var(--shadow-lg); }
.project-browser {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #eab308; }
.browser-dots span:nth-child(3) { background: #22c55e; }
.browser-url {
  font-size: 12px; color: var(--text-secondary);
  font-weight: 500; flex: 1; text-align: center; direction: ltr;
}
.project-preview {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff, #f5f3ff);
}
.project-mockup { padding: 20px; max-width: 100%; }

/* Mockup inner (dashboard) */
.mockup-content {
  background: #f8fafc;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
}
.mockup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1e293b, #334155);
}
.mockup-header-left { display: flex; align-items: center; gap: 8px; }
.mockup-logo-icon {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 12px; font-weight: 800;
}
.mockup-logo-text { font-size: 13px; font-weight: 700; color: white; }
.mockup-logo-text span { color: #93c5fd; }
.mockup-header-right { display: flex; align-items: center; gap: 8px; }
.mockup-notif {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 11px;
}
.mockup-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  border: 2px solid rgba(255,255,255,0.15);
}
.mockup-body { display: flex; min-height: 200px; }
.mockup-sidebar {
  width: 44px;
  background: white;
  padding: 8px 6px;
  display: flex; flex-direction: column; gap: 4px;
  border-left: 1px solid var(--border);
}
.sidebar-item {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 13px; transition: all 0.2s; cursor: default;
}
.sidebar-item.active { background: linear-gradient(135deg, #667eea, #764ba2); color: white; }
.mockup-main { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mockup-topbar { display: flex; align-items: center; gap: 8px; }
.mockup-topbar-title { flex: 1; font-size: 13px; font-weight: 700; color: #1e293b; }
.mockup-stats-bar { display: flex; gap: 6px; }
.mockup-stat {
  display: flex; align-items: center; gap: 4px;
  background: white; border: 1px solid var(--border);
  border-radius: 8px; padding: 4px 10px;
}
.stat-val { font-size: 14px; font-weight: 800; color: var(--primary); }
.stat-lbl { font-size: 10px; color: #94a3b8; font-weight: 500; }
.mockup-cards { display: flex; flex-direction: column; gap: 6px; }
.mcard {
  display: flex; align-items: center; gap: 10px;
  background: white; border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
  transition: all 0.2s; cursor: default;
}
.mcard-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.mcard-1 .mcard-icon { background: rgba(37,99,235,0.1); color: var(--primary); }
.mcard-2 .mcard-icon { background: rgba(245,158,11,0.1); color: #d97706; }
.mcard-3 .mcard-icon { background: rgba(34,197,94,0.1); color: #16a34a; }
.mcard-4 .mcard-icon { background: rgba(239,68,68,0.1); color: #dc2626; }
.mcard-icon.urgent { background: rgba(239,68,68,0.12); color: #dc2626; }
.mcard-info { flex: 1; }
.mcard-title { font-size: 12px; font-weight: 700; color: #1e293b; }
.mcard-sub { font-size: 10px; color: #94a3b8; }
.mcard-status {
  font-size: 10px; font-weight: 600; padding: 3px 10px;
  border-radius: 20px; display: inline-flex; align-items: center;
}
.mcard-status.active { background: rgba(37,99,235,0.1); color: var(--primary); }
.mcard-status.pending { background: rgba(245,158,11,0.1); color: #d97706; }
.mcard-status.done { background: rgba(34,197,94,0.1); color: #16a34a; }
.mcard-status.live { background: rgba(239,68,68,0.1); color: #dc2626; }
.mcard-status.live::before {
  content: ''; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: #dc2626; margin-left: 5px;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }

@media (min-width: 768px) {
  .project-mockup { padding: 32px; }
  .mockup-sidebar { width: 52px; padding: 10px 8px; gap: 6px; }
  .sidebar-item { width: 36px; height: 36px; font-size: 14px; }
  .mockup-main { padding: 14px; }
  .mockup-topbar-title { font-size: 14px; }
  .mcard { padding: 12px 16px; }
  .mcard-title { font-size: 13px; }
}

/* ===== CONTACT ===== */
.contact { background: var(--bg-alt); }
.contact-wrapper { display: flex; flex-direction: column; gap: 28px; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
}
.contact-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.contact-card h4 { font-size: 15px; font-weight: 700; }
.contact-link { font-size: 14px; color: var(--primary); font-weight: 600; }
.contact-text { font-size: 14px; color: var(--text-secondary); }
.contact-social {
  display: flex; gap: 10px; margin-top: 4px;
}
.social-link {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 18px;
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: white; border-color: transparent; }
.social-link.disabled { opacity: 0.35; pointer-events: none; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
}
.form-row { display: flex; flex-direction: column; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
  min-height: 44px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.recaptcha-wrap > div { margin: 0 auto; }
.form-status {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 13px; font-weight: 600;
  display: none;
}
.form-status.success { display: block; background: rgba(34,197,94,0.1); color: #16a34a; border: 1px solid rgba(34,197,94,0.2); }
.form-status.error { display: block; background: rgba(239,68,68,0.1); color: #dc2626; border: 1px solid rgba(239,68,68,0.2); }
.form-status.loading { display: block; background: var(--primary-subtle); color: var(--primary); border: 1px solid rgba(37,99,235,0.2); }
.field-error {
  display: block; font-size: 12px; color: #dc2626;
  margin-top: 3px; min-height: 0;
}
.form-group input.invalid,
.form-group textarea.invalid { border-color: #dc2626; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary);
  color: white !important;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 15px; font-weight: 700;
  transition: var(--transition);
  border: none; cursor: pointer;
  min-height: 48px;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }

@media (min-width: 768px) {
  .contact-wrapper { flex-direction: row; gap: 40px; }
  .contact-info { flex: 1; }
  .contact-form { flex: 1.5; padding: 32px; }
  .form-row { flex-direction: row; }
  .form-row .form-group { flex: 1; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
  overflow: hidden;
}
.footer-grid { display: flex; flex-direction: column; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-logo { width: 120px; max-width: 100%; margin-bottom: 10px; }
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-links h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.footer-links ul { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: white; }
.footer-contact ul li { display: flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; }
.footer-contact ul li a,
.footer-contact ul li span { min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.footer-contact i { color: var(--primary-light); width: 16px; }
.footer-grid { overflow: hidden; }
.footer-bottom {
  padding: 16px 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 13px;
}
.footer-bottom i { margin: 0 2px; }

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 36px;
  }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ===== FLOATING UI ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--primary);
  z-index: calc(var(--z-nav) + 1);
  width: 0;
  transition: width 0.1s linear;
}
.whatsapp-float {
  position: fixed; right: 16px; bottom: 16px;
  width: 48px; height: 48px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  z-index: var(--z-whatsapp);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.back-to-top {
  position: fixed; left: 16px; bottom: 16px;
  width: 40px; height: 40px;
  background: var(--text);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  z-index: var(--z-top);
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  border: none; cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); }

@media (min-width: 768px) {
  .whatsapp-float { right: 24px; bottom: 24px; width: 52px; height: 52px; font-size: 26px; }
  .back-to-top { left: 24px; bottom: 24px; }
}

/* ===== TOUCH / REDUCED MOTION ===== */
@media (hover: none) {
  .service-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
  .project-card:hover { transform: none; box-shadow: none; }
  .whatsapp-float:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
