/* =============================================
   SMART DIGITAL - MAIN STYLESHEET
   ============================================= */

/* ----- DARK MODE VARIABLES (DEFAULT) ----- */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-glow: rgba(14, 165, 233, 0.35);
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --bg-dark: #040d1a;
  --bg-card: #0a1628;
  --bg-card-2: #0f1f36;
  --bg-section: #060e1c;
  --text-primary: #f0f8ff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(14, 165, 233, 0.15);
  --border-card: rgba(255, 255, 255, 0.06);
  --gradient-primary: linear-gradient(135deg, #0ea5e9, #6366f1);
  --gradient-dark: linear-gradient(180deg, #040d1a 0%, #060e1c 100%);
  --gradient-card: linear-gradient(145deg, rgba(14, 165, 233, 0.08), rgba(99, 102, 241, 0.05));
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(14, 165, 233, 0.1);
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.2);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Cairo', 'Tajawal', sans-serif;
}

/* ----- LIGHT MODE VARIABLES ----- */
[data-theme="light"] {
  --bg-dark: #f0f6ff;
  --bg-card: #ffffff;
  --bg-card-2: #f8faff;
  --bg-section: #e8f2fe;
  --text-primary: #0f1e38;
  --text-secondary: #3d5270;
  --text-muted: #6b7fa0;
  --border: rgba(14, 165, 233, 0.2);
  --border-card: rgba(14, 165, 233, 0.12);
  --gradient-card: linear-gradient(145deg, rgba(14, 165, 233, 0.06), rgba(99, 102, 241, 0.04));
  --shadow-card: 0 4px 24px rgba(14, 165, 233, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.15);
}

/* Smooth theme transition */
body, body * {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 0.35s;
  transition-timing-function: ease;
}

/* ----- RESET & BASE ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  background-color: var(--bg-dark);
  overflow-x: hidden;
  color: var(--text-primary);
  line-height: 1.7;
  direction: rtl;
}

/* Light mode body background */
[data-theme="light"] body {
  background-color: var(--bg-dark);
}

[data-theme="light"] ::-webkit-scrollbar-track { background: #e8f2fe; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--primary); }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

img {
  max-width: 100%;
  display: block;
}

/* ----- SCROLLBAR ----- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ----- CONTAINER ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- SECTION COMMON ----- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-tag.light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 16px;
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-light {
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(4, 13, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-main {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
}

/* CTA Button */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: rgba(4, 13, 26, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  gap: 4px;
}

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

.mob-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: 10px;
  transition: var(--transition);
}

.mob-link:hover {
  color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
}

.mob-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 12px;
  justify-content: center;
  margin-top: 8px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(4, 13, 26, 0.92) 0%,
    rgba(4, 13, 26, 0.75) 50%,
    rgba(6, 14, 28, 0.88) 100%
  );
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-particle 8s infinite ease-in-out;
}

.particle:nth-child(1) { width: 6px; height: 6px; background: var(--primary); top: 20%; right: 15%; animation-delay: 0s; }
.particle:nth-child(2) { width: 4px; height: 4px; background: var(--accent); top: 60%; right: 80%; animation-delay: 1.5s; }
.particle:nth-child(3) { width: 8px; height: 8px; background: var(--primary); top: 75%; right: 30%; animation-delay: 3s; opacity: 0.6; }
.particle:nth-child(4) { width: 5px; height: 5px; background: #a78bfa; top: 35%; right: 60%; animation-delay: 4.5s; }
.particle:nth-child(5) { width: 3px; height: 3px; background: var(--primary); top: 50%; right: 45%; animation-delay: 2s; }
.particle:nth-child(6) { width: 7px; height: 7px; background: var(--accent); top: 85%; right: 65%; animation-delay: 6s; opacity: 0.5; }

@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-30px) scale(1.2); opacity: 0.5; }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 40px 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
}

.hero-badge i { font-size: 0.75rem; color: #fbbf24; }

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
  animation: fadeInUp 0.9s ease 0.2s both;
}

.title-line {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.title-highlight {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  filter: drop-shadow(0 0 30px rgba(14, 165, 233, 0.4));
}

.hero-desc {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 580px;
  margin: 0 auto 36px;
  animation: fadeInUp 1s ease 0.35s both;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeInUp 1s ease 0.5s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  box-shadow: 0 6px 24px var(--primary-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px var(--primary-glow);
  color: #fff;
}

.btn-primary.large {
  font-size: 1.05rem;
  padding: 16px 36px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
  color: #fff;
}

.btn-whatsapp i { font-size: 1.2rem; }

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  animation: fadeInUp 1s ease 0.65s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(14, 165, 233, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  padding: 100px 0;
  background: var(--bg-section);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* Service Card */
.service-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 30px var(--primary-glow);
}

.service-card.featured {
  border-color: rgba(14, 165, 233, 0.25);
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.07));
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .card-img { transform: scale(1.06); }

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(4, 13, 26, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.card-features li i {
  color: var(--primary);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 20px;
  border: 1.5px solid rgba(14, 165, 233, 0.3);
  border-radius: 10px;
  transition: var(--transition);
}

.card-btn:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: translateX(-4px);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--bg-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

/* About Visual */
.about-visual {
  display: flex;
  justify-content: center;
}

.about-card-stack {
  position: relative;
  width: 280px;
  height: 320px;
}

.about-stat-card {
  position: absolute;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
  animation: float-card 4s infinite ease-in-out;
}

.about-stat-card i {
  font-size: 2rem;
  color: var(--primary);
}

.about-stat-card.accent i { color: var(--accent); }

.about-stat-card:nth-child(1) {
  top: 0;
  right: 0;
  width: 220px;
  animation-delay: 0s;
}

.about-stat-card:nth-child(2) {
  bottom: 60px;
  left: 0;
  width: 210px;
  animation-delay: 1.5s;
}

.big-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

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

.about-circle-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px var(--primary-glow);
  animation: float-card 3.5s infinite ease-in-out;
  animation-delay: 0.8s;
}

.about-circle-badge span {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.about-circle-badge small {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* About Content */
.about-content { padding-right: 20px; }

.about-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.about-feat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feat-icon {
  width: 48px;
  height: 48px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.about-feat h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-feat p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-us {
  padding: 100px 0;
  background: linear-gradient(135deg, #060e1c 0%, #0a1628 50%, #060e1c 100%);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

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

.why-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.why-card:hover::before { opacity: 0.06; }

.why-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.why-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px var(--primary-glow);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.why-card:hover .why-icon { transform: scale(1.1) rotate(5deg); }

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 80px 0;
  background: var(--bg-dark);
}

.cta-box {
  background: var(--gradient-card);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: 100px 0;
  background: var(--bg-section);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

/* Contact Info Cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card-2);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: rgba(14, 165, 233, 0.25);
  transform: translateX(-4px);
  box-shadow: var(--shadow-card);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-icon.phone { background: rgba(14, 165, 233, 0.15); color: var(--primary); }
.contact-icon.whatsapp { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.contact-icon.location { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.contact-icon.clock { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

.contact-details h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

a.contact-value:hover { color: var(--primary); }

.contact-details small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card-2);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-card);
}

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-primary);
  direction: rtl;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.05);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

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

.form-group select option {
  background: #0a1628;
  color: var(--text-primary);
}

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

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: var(--transition);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--primary-glow);
}

/* Form Success */
.form-success {
  text-align: center;
  padding: 48px 24px;
}

.form-success i {
  font-size: 4rem;
  color: #22c55e;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-success p { color: var(--text-secondary); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #020910;
  border-top: 1px solid rgba(14, 165, 233, 0.1);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo { margin-bottom: 16px; }

.footer-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-btn.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.social-btn.whatsapp:hover {
  background: #25d366;
  color: #fff;
  transform: translateY(-3px);
}

.social-btn.phone {
  background: rgba(14, 165, 233, 0.15);
  color: var(--primary);
}

.social-btn.phone:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(14, 165, 233, 0.2);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links ul li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary);
  padding-right: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-item i {
  color: var(--primary);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item span,
.footer-contact-item a {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-contact-item a:hover { color: var(--primary); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.float-whatsapp {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}

.float-whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.float-tooltip {
  position: absolute;
  right: 68px;
  background: #fff;
  color: #1a1a2e;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.float-whatsapp:hover .float-tooltip { opacity: 1; }

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

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

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .about-content { padding-right: 0; }
  .about-card-stack { width: 100%; height: 260px; max-width: 340px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; margin-right: auto; }

  /* Hero */
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-card { text-align: right; display: flex; align-items: flex-start; gap: 16px; padding: 20px; }
  .why-icon { width: 52px; height: 52px; font-size: 1.2rem; margin: 0; flex-shrink: 0; }

  /* CTA */
  .cta-box { padding: 36px 24px; }
  .cta-actions { flex-direction: column; }

  /* Contact */
  .contact-form-wrapper { padding: 24px 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Float button position — raised so it doesn't overlap mobile nav bars */
  .float-whatsapp { bottom: 80px; left: 16px; width: 52px; height: 52px; font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-header { margin-bottom: 40px; }
  .services, .about, .why-us, .contact { padding: 70px 0; }

  .hero-content { padding: 24px 16px; }
  .hero-stats { flex-direction: row; justify-content: center; gap: 16px; }
  .stat-divider { height: 30px; }

  .card-img-wrapper { height: 180px; }
  .card-body { padding: 18px; }
}

/* ============================================
   FOOTER DEVELOPER CREDIT LINK
   ============================================ */
.footer-dev-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(14, 165, 233, 0.4);
  transition: var(--transition);
}

.footer-dev-link:hover {
  color: #fff;
  border-bottom-color: transparent;
}

[data-theme="light"] .footer-dev-link { color: var(--primary-dark); }
[data-theme="light"] .footer-dev-link:hover { color: #0f1e38; }

/* ============================================
   SELECTION COLOR
   ============================================ */
::selection {
  background: rgba(14, 165, 233, 0.35);
  color: #fff;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(14, 165, 233, 0.1);
  border: 1.5px solid rgba(14, 165, 233, 0.25);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: rgba(14, 165, 233, 0.2);
  transform: rotate(15deg) scale(1.08);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.theme-toggle .icon-dark { display: block; }
.theme-toggle .icon-light { display: none; }

[data-theme="light"] .theme-toggle .icon-dark { display: none; }
[data-theme="light"] .theme-toggle .icon-light { display: block; }

/* Mobile theme toggle in mobile menu */
.mob-theme-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  font-family: var(--font);
  width: 100%;
  text-align: right;
  direction: rtl;
}

.mob-theme-btn:hover {
  color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
}

/* ============================================
   LIGHT MODE — NAVBAR
   ============================================ */
[data-theme="light"] .navbar.scrolled {
  background: rgba(240, 246, 255, 0.95);
  border-bottom-color: rgba(14, 165, 233, 0.15);
  box-shadow: 0 4px 24px rgba(14, 165, 233, 0.12);
}

[data-theme="light"] .logo-main { color: #0f1e38; }
[data-theme="light"] .nav-link { color: #3d5270; }
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active { color: var(--primary); background: rgba(14, 165, 233, 0.08); }
[data-theme="light"] .hamburger span { background: #0f1e38; }

[data-theme="light"] .mobile-menu {
  background: rgba(240, 246, 255, 0.98);
  border-top-color: rgba(14, 165, 233, 0.15);
}
[data-theme="light"] .mob-link { color: #3d5270; }
[data-theme="light"] .mob-link:hover { color: var(--primary); background: rgba(14, 165, 233, 0.08); }

/* ============================================
   LIGHT MODE — HERO
   ============================================ */
[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(240, 246, 255, 0.88) 0%,
    rgba(240, 246, 255, 0.70) 50%,
    rgba(232, 242, 254, 0.84) 100%
  );
}

[data-theme="light"] .hero-badge {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.28);
}

[data-theme="light"] .title-line { color: #0f1e38; }

[data-theme="light"] .hero-desc { color: #3d5270; }

[data-theme="light"] .btn-secondary {
  background: rgba(15, 30, 56, 0.07);
  border-color: rgba(15, 30, 56, 0.2);
  color: #0f1e38;
}
[data-theme="light"] .btn-secondary:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="light"] .stat-label { color: #3d5270; }
[data-theme="light"] .stat-divider { background: rgba(14, 165, 233, 0.25); }
[data-theme="light"] .scroll-indicator { border-color: rgba(14, 165, 233, 0.35); }

/* ============================================
   LIGHT MODE — SERVICES
   ============================================ */
[data-theme="light"] .services { background: #e8f2fe; }
[data-theme="light"] .services::before {
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.4), transparent);
}

[data-theme="light"] .service-card {
  background: #ffffff;
  border-color: rgba(14, 165, 233, 0.1);
  box-shadow: 0 2px 16px rgba(14, 165, 233, 0.08);
}
[data-theme="light"] .service-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.18);
}
[data-theme="light"] .service-card.featured {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.06), rgba(99, 102, 241, 0.04));
  border-color: rgba(14, 165, 233, 0.2);
}

[data-theme="light"] .card-title { color: #0f1e38; }
[data-theme="light"] .card-desc { color: #3d5270; }
[data-theme="light"] .card-features li { color: #3d5270; }

/* ============================================
   LIGHT MODE — ABOUT
   ============================================ */
[data-theme="light"] .about { background: #f0f6ff; }

[data-theme="light"] .about-stat-card {
  background: #ffffff;
  border-color: rgba(14, 165, 233, 0.15);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
}

[data-theme="light"] .about-text { color: #3d5270; }

[data-theme="light"] .feat-icon {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.18);
}

[data-theme="light"] .about-feat p { color: #3d5270; }
[data-theme="light"] .about-feat h4 { color: #0f1e38; }

/* ============================================
   LIGHT MODE — WHY US
   ============================================ */
[data-theme="light"] .why-us {
  background: linear-gradient(135deg, #dbeeff 0%, #e8f2fe 50%, #dbeeff 100%);
}

[data-theme="light"] .why-us::before {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 70%);
}

[data-theme="light"] .why-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(14, 165, 233, 0.12);
  backdrop-filter: blur(8px);
}
[data-theme="light"] .why-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.12);
}
[data-theme="light"] .why-card h3 { color: #0f1e38; }
[data-theme="light"] .why-card p { color: #3d5270; }

[data-theme="light"] .section-tag.light {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.25);
  color: var(--primary-dark);
}

[data-theme="light"] .section-header.light .section-title { color: #0f1e38; }
[data-theme="light"] .section-header.light .section-desc { color: #3d5270; }
[data-theme="light"] .highlight-light {
  color: var(--primary-dark);
  text-shadow: none;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   LIGHT MODE — CTA
   ============================================ */
[data-theme="light"] .cta-section { background: #f0f6ff; }
[data-theme="light"] .cta-box {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.06), rgba(99, 102, 241, 0.04));
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: 0 4px 30px rgba(14, 165, 233, 0.1);
}
[data-theme="light"] .cta-glow {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
}
[data-theme="light"] .cta-content h2 { color: #0f1e38; }
[data-theme="light"] .cta-content p { color: #3d5270; }

/* ============================================
   LIGHT MODE — CONTACT
   ============================================ */
[data-theme="light"] .contact { background: #e8f2fe; }

[data-theme="light"] .contact-card {
  background: #ffffff;
  border-color: rgba(14, 165, 233, 0.12);
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.08);
}
[data-theme="light"] .contact-card:hover {
  border-color: rgba(14, 165, 233, 0.28);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}
[data-theme="light"] .contact-details h4 { color: #6b7fa0; }
[data-theme="light"] .contact-value { color: #0f1e38; }

[data-theme="light"] .contact-form-wrapper {
  background: #ffffff;
  border-color: rgba(14, 165, 233, 0.12);
  box-shadow: 0 4px 24px rgba(14, 165, 233, 0.08);
}
[data-theme="light"] .form-title {
  color: #0f1e38;
  border-bottom-color: rgba(14, 165, 233, 0.12);
}
[data-theme="light"] .form-group label { color: #3d5270; }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #f0f6ff;
  border-color: rgba(14, 165, 233, 0.15);
  color: #0f1e38;
}
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder { color: #6b7fa0; }
[data-theme="light"] .form-group select option { background: #f0f6ff; color: #0f1e38; }

/* ============================================
   LIGHT MODE — FOOTER
   ============================================ */
[data-theme="light"] .footer {
  background: #dbeeff;
  border-top-color: rgba(14, 165, 233, 0.18);
}
[data-theme="light"] .footer-grid { border-bottom-color: rgba(14, 165, 233, 0.12); }
[data-theme="light"] .footer-desc { color: #3d5270; }
[data-theme="light"] .footer-links h4,
[data-theme="light"] .footer-contact-info h4 {
  color: #0f1e38;
  border-bottom-color: rgba(14, 165, 233, 0.25);
}
[data-theme="light"] .footer-links ul li a { color: #3d5270; }
[data-theme="light"] .footer-links ul li a:hover { color: var(--primary); }
[data-theme="light"] .footer-contact-item span,
[data-theme="light"] .footer-contact-item a { color: #3d5270; }
[data-theme="light"] .footer-bottom p { color: #6b7fa0; }

[data-theme="light"] .social-btn.whatsapp { background: rgba(37, 211, 102, 0.12); }
[data-theme="light"] .social-btn.phone { background: rgba(14, 165, 233, 0.1); }

/* ============================================
   LIGHT MODE — ABOUT CARD STACK
   ============================================ */
[data-theme="light"] .small-label { color: #6b7fa0; }
