﻿@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');
/* =============================================
   mohamedreda.net — Global Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Tajawal:wght@300;400;500;700;900&display=swap');

/* --- CSS Custom Properties (Tokens) --- */
:root {
  --brand-50: #f0f9ff;
  --brand-100: #e0f2fe;
  --brand-200: #bae6fd;
  --brand-500: #0ea5e9;
  --brand-600: #0284c7; /* Classic Sky/Azure Blue */
  --brand-700: #0369a1;
  --brand-900: #0c4a6e;
  --brand-gold: #f59e0b;
  --brand-green: #22c55e;
  --brand-purple: #3b82f6; /* Bright Blue for Gradients */

  --bg-light: #ffffff; /* Clean white as requested */
  --bg-dark: #0f172a;
  --surface-dark: #1e293b;
  --surface-card: #ffffff;

  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  --border-light: rgba(226,232,240,1);
  --border-dark: rgba(51,65,85,1);

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --shadow-brand: 0 8px 32px rgba(79, 70, 229, .25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-body: 'Cairo', 'Tajawal', sans-serif;
  --transition: all .25s cubic-bezier(.4,0,.2,1);

  --container: 1200px;
  --section-py: 80px;
}
/* ======================== New UI Enhancements ======================== */

/* Hero glass card */
.hero-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  text-align: center;
}

/* Glass‑morphism card for sections */
.card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform .3s, var(--transition);
}
.card:hover {
  transform: translateY(-6px);
}

/* CTA buttons */
.btn-primary {
  background: linear-gradient(90deg, var(--brand-500), var(--brand-green));
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: .75rem 1.5rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(90deg, var(--brand-600), #16a34a);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.5);
}

.btn-secondary {
  background: rgba(255,255,255,.15);
  color: var(--brand-600);
  border: 1px solid var(--brand-600);
  border-radius: var(--radius-full);
  padding: .75rem 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
}

/* Back to top button */
#backToTop {
  position: fixed;
  right: 1.5rem;
  bottom: 5rem;
  width: 44px;
  height: 44px;
  background: var(--brand-600);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0.8;
  transition: var(--transition);
  z-index: 1000;
}
#backToTop:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Feature cards */
.feature-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Top banner */
.banner {
  width: 100%;
  background: var(--brand-gold);
  color: #fff;
  text-align: center;
  padding: .75rem 0;
  font-weight: 700;
  font-size: .95rem;
}

/* Dark mode tweaks */
[data-theme="dark"] .hero-card,
[data-theme="dark"] .card,
[data-theme="dark"] .feature-card {
  background: rgba(30,41,59,0.5);
  border: 1px solid var(--border-dark);
}

/* Import AOS library */
/* AOS default animation overrides (optional) */
[data-aos] {
  transition-property: transform, opacity;
}

/* End of new UI enhancements */
/* --- Dark Mode --- */
[data-theme="dark"] {
  --bg-light: #0f172a;
  --surface-card: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-light: rgba(51,65,85,1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .3s, color .3s;
  -webkit-user-select: none;
  user-select: none;
}

input, textarea, select, a {
  -webkit-user-select: text;
  user-select: text;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  line-height: 1.3;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--brand-gold), #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: var(--section-py); }
.section-sm { padding-block: 40px; }

/* --- Components --- */

/* Scroll Progress */
#scrollProgress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-green));
  z-index: 1000;
  transition: width .1s linear;
}

/* Preloader */
#preloader {
  position: fixed; inset: 0;
  background: var(--bg-dark);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s, visibility .5s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-size: 3rem; font-weight: 900; color: var(--brand-500);
  animation: pulse-anim 1.5s ease-in-out infinite;
}
@keyframes pulse-anim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: .7; }
}

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}
[data-theme="dark"] .navbar {
  background: rgba(15,23,42,.92);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .875rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .75rem;
  font-size: 1.125rem; font-weight: 900;
  color: var(--brand-700);
}
[data-theme="dark"] .nav-logo { color: var(--brand-500); }
.nav-logo-icon {
  width: 40px; height: 40px;
  background: var(--brand-500);
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 900;
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 1.75rem;
  list-style: none; font-size: .9rem; font-weight: 600;
}
.nav-links a {
  color: var(--text-secondary);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; right: 0;
  width: 0; height: 2px;
  background: var(--brand-500);
  transition: width .25s;
}
.nav-links a:hover { color: var(--brand-600); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: .5rem 1.25rem;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-green));
  color: #ffffff !important;
  border-radius: var(--radius-full);
  font-weight: 700; font-size: .875rem;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: linear-gradient(90deg, var(--brand-600), #16a34a); transform: translateY(-1px); }

.nav-controls { display: flex; align-items: center; gap: .75rem; }
.btn-icon {
  background: none; border: 1px solid var(--border-light);
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  transition: var(--transition);
}
.btn-icon:hover { background: var(--brand-100); color: var(--brand-600); }

/* Mobile Menu */
.mobile-menu-btn {
  display: none; background: none; border: none;
  cursor: pointer; color: var(--text-primary); font-size: 1.5rem;
}
.mobile-menu {
  display: none; flex-direction: column; gap: .75rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--surface-card);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-secondary); font-weight: 600;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu a:last-child { border: none; color: var(--brand-600); }

/* Announcement Bar */
.topbar {
  background: var(--brand-600); color: #fff;
  text-align: center; padding: .5rem 1rem;
  font-size: .875rem; font-weight: 700;
  position: relative; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.topbar a { color: var(--brand-200); text-decoration: underline; }
.topbar-close {
  position: absolute; left: 1rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; color: #fff;
  cursor: pointer; font-size: 1rem; opacity: .7;
  transition: opacity .2s;
}
.topbar-close:hover { opacity: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 2rem; border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(90deg, var(--brand-500), var(--brand-green)); color: #fff;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}
.btn-primary:hover { background: linear-gradient(90deg, var(--brand-600), #16a34a); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(34, 197, 94, 0.5); }

.btn-outline {
  background: var(--surface-card); color: var(--text-primary);
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .btn-outline { background: var(--surface-dark); border-color: var(--border-dark); color: #f1f5f9; }
.btn-outline:hover { border-color: var(--brand-500); color: var(--brand-600); transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--brand-600);
  border: 2px solid var(--brand-200);
}
.btn-ghost:hover { background: var(--brand-50); }

.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; border-radius: var(--radius-lg); }
.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; border-radius: var(--radius-sm); }

/* Cards */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .card { background: var(--surface-dark); border-color: var(--border-dark); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Section Heading */
.section-label {
  display: inline-block; margin-bottom: .75rem;
  font-size: .8rem; font-weight: 700;
  color: var(--brand-600); letter-spacing: .12em; text-transform: uppercase;
}
.hero-sub {
      font-size: clamp(1rem, 2vw, 1.2rem);
      color: var(--text-secondary);
      max-width: 520px;
      margin-bottom: 2.5rem;
      line-height: 1.8;
      will-change: transform;
      -webkit-backface-visibility: hidden;
      transform: translateZ(0);
    }.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--text-primary); margin-bottom: 1rem;
}
[data-theme="dark"] .section-title { color: #f1f5f9; }
.section-sub {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 640px;
}

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .375rem 1rem; border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 700;
}
.badge-blue {
  background: var(--brand-100); color: var(--brand-700);
  border: 1px solid var(--brand-200);
}
[data-theme="dark"] .badge-blue { background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.2); color: var(--brand-500); }

/* Stats Strip */
.stats-strip {
  background: var(--brand-600);
  color: #fff;
  padding-block: 48px;
  position: relative; overflow: hidden;
}
.stats-strip::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 22px 22px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; text-align: center;
  position: relative;
}
.stat-number { font-size: 2.75rem; font-weight: 900; line-height: 1; }
.stat-label { font-size: .875rem; opacity: .85; margin-top: .375rem; }

/* Testimonials */
.testimonial-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
}
[data-theme="dark"] .testimonial-card { background: var(--surface-dark); border-color: var(--border-dark); }
.testimonial-card::before {
  content: '"'; font-size: 5rem; line-height: 1;
  color: var(--brand-100); position: absolute;
  top: 1rem; right: 1.5rem; font-family: Georgia, serif;
  pointer-events: none;
}
[data-theme="dark"] .testimonial-card::before { color: rgba(99,102,241,.1); }

/* Service Icon Box */
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
  flex-shrink: 0;
}

/* FAQ */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] summary ~ * { animation: faqOpen .3s ease; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Marquee */
.marquee-wrap { overflow: hidden; width: 100%; }
.marquee-track {
  display: flex; gap: 3rem; align-items: center;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-track-rev {
  animation: marqueeRev 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marqueeRev {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float { animation: float 3.5s ease-in-out infinite; }

/* Typing Cursor */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
#typing-cursor {
  animation: blink .75s step-end infinite;
  display: inline-block !important;
  font-weight: 300;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1e293b; }
::-webkit-scrollbar-thumb { background: var(--brand-600); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-500); }

/* Particles Canvas */
#particles-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* Exit Intent Popup */
#exitPopup {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  z-index: 9998; align-items: center; justify-content: center;
  padding: 1rem;
}
#exitPopup.show { display: flex; }
.popup-card {
  background: var(--surface-card);
  border-radius: var(--radius-xl); padding: 2.5rem;
  max-width: 480px; width: 100%; text-align: center;
  position: relative; animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}
[data-theme="dark"] .popup-card { background: var(--surface-dark); }
@keyframes popIn {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: scale(1); }
}

/* Chat Widget */
.chat-fab {
  position: fixed; bottom: 5.5rem; left: 1.5rem;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); color: #fff;
  border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; z-index: 500;
  box-shadow: 0 8px 24px rgba(99,102,241,.4);
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.chat-fab:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 12px 32px rgba(99,102,241,.6); }
.chat-options {
  position: fixed; bottom: 10rem; left: 1.5rem;
  display: flex; flex-direction: column; gap: .875rem;
  z-index: 499;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.95);
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
  transform-origin: bottom left;
}
.chat-options.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-option {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px; font-size: .95rem; font-weight: 700;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08); white-space: nowrap;
  color: var(--text-primary); transition: var(--transition);
}
[data-theme="dark"] .chat-option { 
  background: rgba(30, 41, 59, 0.85); 
  border-color: rgba(255, 255, 255, 0.1); 
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.chat-option i { font-size: 1.25rem; }
.chat-option:hover { transform: translateX(6px) scale(1.02); }

/* Bottom Mobile Nav */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface-card); border-top: 1px solid var(--border-light);
  padding: .5rem 1rem;
  z-index: 400;
  justify-content: space-around;
}
[data-theme="dark"] .mobile-bottom-nav { background: var(--surface-dark); border-color: var(--border-dark); }

/* Grid Utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }

/* Star Rating */
.stars { color: var(--brand-gold); font-size: 1rem; letter-spacing: 2px; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--text-muted);
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--brand-500); }
.breadcrumb span { opacity: .5; }

/* Pricing Card */
.pricing-card {
  background: var(--surface-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem; text-align: center;
  transition: var(--transition);
}
[data-theme="dark"] .pricing-card { background: var(--surface-dark); border-color: var(--border-dark); }
.pricing-card.featured {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(99,102,241,.1);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-amount { font-size: 2.5rem; font-weight: 900; color: var(--brand-600); }

/* Progress Bar */
.progress-bar {
  background: var(--brand-100); border-radius: var(--radius-full);
  height: 8px; overflow: hidden;
}
[data-theme="dark"] .progress-bar { background: rgba(99,102,241,.1); }
.progress-fill {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-500), var(--brand-green));
  transition: width 1.5s ease;
}

/* Back to top */
#backToTop {
  position: fixed; bottom: 5.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: var(--brand-600); color: #fff;
  border-radius: 50%; border: none; cursor: pointer;
  font-size: 1rem; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--brand-700); transform: translateY(-2px); }

/* ======================== Responsive ======================== */
@media (max-width: 1024px) {
  :root { --section-py: 60px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .process-steps, .pricing-grid { grid-template-columns: repeat(2,1fr) !important; }
  .testimonials-grid, .portfolio-grid { grid-template-columns: repeat(2,1fr) !important; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-bottom-nav { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
  body { padding-bottom: 70px; }
  .chat-fab { bottom: 5rem; }
  .chat-options { bottom: 8.5rem; }
  #backToTop { bottom: 5rem; }
  
  /* Fix embedded & inline grids on mobile */
  .hero-grid,
  .about-grid,
  .process-steps,
  .testimonials-grid,
  .portfolio-grid,
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }
  
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  [style*="white-space: nowrap"] {
    white-space: normal !important;
  }

  .process-steps::before {
    display: none !important;
  }

  .hero-grid, .about-grid {
    text-align: center;
    gap: 2rem !important;
  }

  .about-grid {
    display: flex !important;
    flex-direction: column-reverse;
  }

  .hero-cta-group,
  .hero-trust,
  .about-skills {
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  :root { --section-py: 48px; }
  .btn-lg { padding: .875rem 1.75rem; font-size: 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ======================== Pricing Section ======================== */
.pricing-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.pricing-tab-btn {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: .75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: .5rem;
}

[data-theme="dark"] .pricing-tab-btn {
  background: var(--surface-dark);
  border-color: var(--border-dark);
}

.pricing-tab-btn:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
}

.pricing-tab-btn.active {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-600);
  box-shadow: 0 4px 12px rgba(99,102,241,.3);
}

.pricing-tab-content {
  display: none;
  animation: fadeIn .4s ease;
}

.pricing-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--surface-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .pricing-card {
  background: var(--surface-dark);
  border-color: var(--border-dark);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(99,102,241,.12), var(--shadow-lg);
  z-index: 2;
  background: linear-gradient(160deg, rgba(99,102,241,.06) 0%, var(--surface-card) 60%);
}

[data-theme="dark"] .pricing-card.featured {
  background: linear-gradient(160deg, rgba(99,102,241,.15) 0%, var(--surface-dark) 60%);
}

.pricing-card.featured:hover {
  transform: translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -12px; /* Overlap the top border */
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-600); /* Match the solid blue theme */
  color: #fff;
  padding: .25rem 1rem;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 900;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .4rem;
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
  letter-spacing: .04em;
}

.pricing-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 2rem auto 1rem;
}

.pricing-card:not(.featured) .pricing-icon {
  margin-top: 1rem;
}

.pricing-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: .5rem;
}

[data-theme="dark"] .pricing-name { color: #f1f5f9; }

.pricing-desc {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 2.5rem;
  margin-bottom: 1.25rem;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border-light);
}

[data-theme="dark"] .pricing-price-wrap {
  border-color: var(--border-dark);
}

.price-amount {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--brand-600);
  line-height: 1;
  font-family: 'Cairo', sans-serif;
}

.price-currency {
  font-size: .8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text-primary);
  font-weight: 600;
  flex-direction: row-reverse;
}

[data-theme="dark"] .pricing-features li { color: #cbd5e1; }

.pricing-features li.disabled {
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features li i {
  flex-shrink: 0;
  font-size: .9rem;
}

/* --- Process Section --- */
.process-steps-new {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative;
}
.process-step-card {
  background: var(--surface-card); border: 1px solid var(--border-light);
  border-radius: 20px; padding: 2.5rem 1.5rem; text-align: center; position: relative;
  z-index: 2; overflow: hidden; transition: var(--transition);
}
.process-step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step-bg-num {
  position: absolute; top: -10px; right: -10px; font-size: 8rem; font-weight: 900;
  color: var(--text-muted); opacity: 0.1; line-height: 1; z-index: -1;
}
.step-icon-new {
  width: 64px; height: 64px; border-radius: 16px; color: #fff; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
}
.step-arrow {
  position: absolute; top: 40%; right: -20px; color: var(--border-light); font-size: 1.5rem; z-index: 1;
}
@media (max-width: 992px) { .process-steps-new { grid-template-columns: repeat(2, 1fr); } .step-arrow { display: none; } }
@media (max-width: 576px) { .process-steps-new { grid-template-columns: 1fr; } }

/* --- Case Study --- */
.case-study-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border-light); }
.case-card { padding: 3rem 2rem; position: relative; background: var(--surface-card); }
.case-card.before { background: rgba(239, 68, 68, 0.02); border-left: 1px solid var(--border-light); }
.case-card.after { background: rgba(34, 197, 94, 0.02); }
.case-badge { position: absolute; top: 0; padding: .25rem 1rem; font-size: .75rem; font-weight: 900; color: #fff; letter-spacing: 1px; }
.case-badge.before { right: 0; background: #ef4444; border-bottom-left-radius: 12px; }
.case-badge.after { left: 0; background: #22c55e; border-bottom-right-radius: 12px; }
.case-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; background: var(--bg-light); border-radius: 12px; margin-bottom: 1rem; border: 1px solid var(--border-light); }
.case-stat-label { font-size: .85rem; color: var(--text-secondary); font-weight: 600; }
.case-stat-val { font-size: 1.1rem; font-weight: 900; display: flex; align-items: center; gap: .5rem; }
.case-stat-val.red { color: #ef4444; }
.case-stat-val.green { color: #22c55e; }
@media (max-width: 768px) { .case-study-grid { grid-template-columns: 1fr; } .case-card.before { border-left: none; border-bottom: 1px solid var(--border-light); } }

/* --- Guarantee & Payments --- */
.guarantee-box {
  background: rgba(6, 182, 212, 0.05); border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 16px; padding: 2rem; margin-top: 3rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.guarantee-box > div:not(.guarantee-icon) {
  flex: 1;
  text-align: center;
}
.guarantee-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--brand-gold);
  color: #fff; font-size: 2.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
@media (max-width: 576px) { .guarantee-box { flex-direction: column; text-align: center; } }
.payment-methods { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.payment-badge {
  display: flex; align-items: center; gap: .75rem; padding: .5rem 1.25rem;
  border-radius: 12px; border: 1px solid var(--border-light); background: var(--surface-card);
  font-weight: 700; font-size: .85rem;
}
.pay-icon { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .75rem; }

/* Responsive pricing grid */
@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .pricing-card.featured {
    transform: scale(1);
    order: -1;
  }
  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }
}

/ * 
 
 - - - 
 
 P r o c e s s 
 
 S e c t i o n 
 
 - - - 
 
 * / 
 
 
/* ============================================================ */
/* Custom Scrollbar */
/* ============================================================ */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-400);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-600);
}
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--bg-body);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: var(--brand-500);
}

/* ============================================================
   FOOTER STYLES
   ============================================================ */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding-block: 4rem 2rem;
  border-top: 1px solid var(--border-dark);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-top-grid.right {
  text-align: right;
}

.footer-top-grid.left {
  text-align: left;
}

.footer-bottom-flex {
  border-top: 1px solid var(--border-dark);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .site-footer {
    padding-block: 3rem 1.5rem;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    text-align: center !important;
    gap: 2rem;
  }
  .footer-bottom-flex {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1rem;
  }
}

/* ============================================================
   MOBILE LAYOUT FIXES
   ============================================================ */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

@media (max-width: 768px) {
  /* Fix services grid overflow */
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  /* Fix inline nowrap that causes horizontal scrolling */
  [style*="white-space: nowrap"] {
    white-space: normal !important;
  }

  /* Fix giant logo on mobile */
  .nav-logo img {
    height: 60px !important;
  }

  /* Fix Mobile Navigation squeezing */
  .mobile-bottom-nav {
    padding: .5rem .25rem !important;
    gap: .25rem;
  }
  
  .mobile-bottom-nav a {
    font-size: .6rem !important;
    padding-inline: 0 !important;
  }
  
  .mobile-bottom-nav a.btn-book {
    padding: .4rem .6rem !important;
    font-size: .6rem !important;
  }
}

/* ============================================================
   CENTER FOOTER LOGO
   ============================================================ */
.site-footer img[src*="logo-"] {
  display: block !important;
  margin-inline: auto !important;
}


/* ============================================================
   CENTER FOOTER BRAND COLUMN
   ============================================================ */
.site-footer .footer-top-grid > div:first-child {
  text-align: center !important;
}

.site-footer .footer-top-grid > div:first-child p {
  margin-inline: auto !important;
  text-align: center !important;
}

/* ============================================================
   SWAP FOOTER SECTIONS (BRAND & SERVICES)
   ============================================================ */
.site-footer .footer-top-grid {
  grid-template-columns: 1fr 2fr 1fr !important;
}

.site-footer .footer-top-grid > div:nth-child(2) {
  order: -1 !important;
}

@media (max-width: 768px) {
  .site-footer .footer-top-grid {
    grid-template-columns: 1fr !important;
  }
  .site-footer .footer-top-grid > div:nth-child(2) {
    order: 1 !important;
  }
  .site-footer .footer-top-grid > div:nth-child(3) {
    order: 2 !important;
  }
  .site-footer .footer-top-grid > div:nth-child(1) {
    order: 3 !important;
  }
}


