/* ============================================
   AL-WASEET - Premium Enterprise Design System
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --primary-50:  #e8f1fd;
  --primary-100: #c5dcfa;
  --primary-200: #9ec5f6;
  --primary-300: #74adf2;
  --primary-400: #539bf0;
  --primary-500: #3389ed;
  --primary-600: #2e7de0;
  --primary-700: #256dd0;
  --primary-800: #1f5ec0;
  --primary-900: #1542a3;

  /* Accent Blue */
  --accent-glow: #4da6ff;
  --accent-cyan: #00d4ff;

  /* Dark Theme */
  --bg-primary:    #050b15;
  --bg-secondary:  #0a1628;
  --bg-tertiary:   #0f1f36;
  --bg-card:       rgba(15, 31, 54, 0.7);
  --bg-glass:      rgba(15, 31, 54, 0.45);
  --bg-glass-hover: rgba(25, 50, 80, 0.55);

  /* Text */
  --text-primary:   #f0f4f8;
  --text-secondary: #a0b4cc;
  --text-muted:     #5a7a9a;
  --text-accent:    #4da6ff;

  /* Borders & Surfaces */
  --border-subtle:  rgba(77, 166, 255, 0.1);
  --border-glow:    rgba(77, 166, 255, 0.3);
  --surface-glow:   rgba(77, 166, 255, 0.05);

  /* Gradients */
  --gradient-primary:  linear-gradient(135deg, #1542a3 0%, #3389ed 50%, #00d4ff 100%);
  --gradient-hero:     linear-gradient(180deg, rgba(5,11,21,0.3) 0%, rgba(5,11,21,0.85) 100%);
  --gradient-card:     linear-gradient(145deg, rgba(25,60,110,0.3) 0%, rgba(10,22,40,0.6) 100%);
  --gradient-section:  linear-gradient(180deg, #050b15 0%, #0a1628 50%, #050b15 100%);

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(77, 166, 255, 0.15);
  --shadow-glow-lg: 0 0 60px rgba(77, 166, 255, 0.2);

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --font-family: 'Cairo', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;
  --font-size-hero: clamp(2.5rem, 5vw, 4.5rem);

  /* Z-Index Scale */
  --z-base: 1;
  --z-overlay: 10;
  --z-nav: 100;
  --z-modal: 1000;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-700);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-500);
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--surface-glow);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  color: var(--text-accent);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-badge svg {
  width: 16px;
  height: 16px;
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

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

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---------- Glassmorphism Card ---------- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--font-size-base);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(51, 137, 237, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(51, 137, 237, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-accent);
  border: 2px solid var(--border-glow);
}

.btn-outline:hover {
  background: rgba(77, 166, 255, 0.1);
  border-color: var(--accent-glow);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: var(--z-nav);
  padding: 16px 0;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: rgba(5, 11, 21, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(77, 166, 255, 0.3));
}

.nav-logo-text {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-logo-text span {
  color: var(--text-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 18px;
  left: 18px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-right: 12px;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: var(--font-size-sm);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  z-index: calc(var(--z-nav) + 1);
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-glow);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 8s infinite;
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  animation: logo-float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(77, 166, 255, 0.4));
}

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

.hero-title {
  font-size: var(--font-size-hero);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: var(--section-padding);
  position: relative;
  background: var(--gradient-section);
}

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

.about-content h3 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-content h3 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-content p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 30px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-glow);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.about-feature:hover {
  border-color: var(--border-glow);
  background: rgba(77, 166, 255, 0.08);
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.about-feature-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.about-feature span {
  font-weight: 600;
  font-size: var(--font-size-sm);
}

/* About Image Side */
.about-visual {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-glow-lg);
}

.about-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(77, 166, 255, 0.1) 0%, transparent 60%);
  z-index: 1;
}

/* Floating badge */
.floating-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  box-shadow: var(--shadow-glow);
  z-index: 2;
  animation: badge-float 4s ease-in-out infinite;
}

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

.floating-badge-number {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.floating-badge-text {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  font-weight: 600;
}

/* ============================================
   VISION & MISSION SECTION
   ============================================ */
.vision-mission {
  padding: var(--section-padding);
  position: relative;
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.vm-card {
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.vm-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(77, 166, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.vm-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(51, 137, 237, 0.3);
}

.vm-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.vm-card h3 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.vm-card p {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 2;
}

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

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

.service-card {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.service-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.service-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 11, 21, 0.8) 100%);
}

/* SVG icon-based service cards */
.service-card-icon {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--gradient-card);
  overflow: hidden;
}

.service-card-icon::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(77, 166, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.service-card-icon svg {
  width: 80px;
  height: 80px;
  color: var(--accent-glow);
  position: relative;
  z-index: 1;
  transition: var(--transition-base);
  opacity: 0.7;
}

.service-card:hover .service-card-icon svg {
  transform: scale(1.1);
  opacity: 1;
  filter: drop-shadow(0 0 20px rgba(77, 166, 255, 0.5));
}

.service-card-body {
  padding: 28px;
}

.service-card-body h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card-body p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ============================================
   WHY AL-WASEET SECTION
   ============================================ */
.why-us {
  padding: var(--section-padding);
  position: relative;
}

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

.why-grid .glass-card:first-child {
  grid-column: span 2;
}

.why-card {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-glow);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.glass-card:hover .why-card-icon {
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(51, 137, 237, 0.3);
}

.why-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--text-accent);
  transition: var(--transition-base);
}

.glass-card:hover .why-card-icon svg {
  color: #fff;
}

.why-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.why-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
  padding: var(--section-padding);
  position: relative;
  background: var(--gradient-section);
}

.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-glow-lg);
  height: 450px;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Custom Leaflet Popup */
.leaflet-popup-content-wrapper {
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-glow) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-glow) !important;
  font-family: var(--font-family) !important;
  direction: rtl;
}

.leaflet-popup-tip {
  background: var(--bg-tertiary) !important;
  border: 1px solid var(--border-glow) !important;
}

.leaflet-popup-content {
  margin: 16px !important;
  font-size: var(--font-size-sm) !important;
  line-height: 1.6 !important;
}

.map-popup-title {
  font-weight: 700;
  font-size: var(--font-size-base);
  color: var(--text-accent);
  margin-bottom: 6px;
}

.map-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.map-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.map-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.map-info-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.map-info-content h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.map-info-content p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.map-info-content a {
  color: var(--text-accent);
}

.map-info-content a:hover {
  text-decoration: underline;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: var(--section-padding);
  position: relative;
}

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

.contact-form-wrapper {
  padding: 40px;
}

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

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

.form-group label .required {
  color: #ff6b6b;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(5, 11, 21, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  transition: var(--transition-base);
  direction: rtl;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(51, 137, 237, 0.15);
  background: rgba(5, 11, 21, 0.8);
}

.form-control.error {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.form-error {
  font-size: var(--font-size-xs);
  color: #ff6b6b;
  margin-top: 6px;
  display: none;
}

.form-error.show {
  display: block;
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-submit {
  margin-top: 8px;
}

.form-submit .btn {
  width: 100%;
  padding: 16px;
  font-size: var(--font-size-lg);
}

/* Honeypot field - hidden from humans */
.ohnohoney {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  overflow: hidden;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success.show {
  display: block;
}

.form-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00c853, #00e676);
  border-radius: 50%;
  animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes success-pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.form-success-icon svg {
  width: 40px;
  height: 40px;
  color: #fff;
}

.form-success h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: 12px;
}

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

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

.contact-info-card {
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.contact-info-content h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-info-content p,
.contact-info-content a {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-info-content a:hover {
  color: var(--text-accent);
}

/* Social links */
.contact-social {
  padding: 28px;
}

.contact-social h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 16px;
}

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

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-glow);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(51, 137, 237, 0.3);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  max-width: 350px;
}

.footer-brand .nav-logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

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

.footer-col ul li a {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--text-accent);
  transform: translateX(-4px);
}

.footer-col ul li a svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: var(--transition-fast);
}

.footer-col ul li a:hover svg {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--text-accent);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  color: #fff;
  box-shadow: var(--shadow-glow);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-lg);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 80px;
  height: 80px;
  animation: loader-pulse 1.5s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    order: -1;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid .glass-card:first-child {
    grid-column: span 2;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .map-info-cards {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
  }

  /* Mobile Navigation */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 60px 24px;
    gap: 4px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-nav);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    padding: 14px 18px;
    font-size: var(--font-size-base);
    border-radius: var(--radius-sm);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover {
    background: var(--surface-glow);
  }

  .nav-cta {
    margin-right: 0;
    margin-top: 16px;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .menu-toggle {
    display: flex;
  }

  /* Mobile Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: calc(var(--z-nav) - 1);
  }

  .nav-overlay.active {
    display: block;
  }

  /* Hero */
  .hero-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: 30px;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-stat-number {
    font-size: var(--font-size-3xl);
  }

  /* Sections */
  .section-header {
    margin-bottom: 40px;
  }

  .vm-grid {
    grid-template-columns: 1fr;
  }

  .vm-card {
    padding: 32px 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-grid .glass-card:first-child {
    grid-column: span 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .map-wrapper {
    height: 350px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h4::after {
    right: 50%;
    transform: translateX(50%);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    bottom: -10px;
    right: 10px;
    padding: 14px 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  :root {
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
    --container-padding: 0 16px;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat-number {
    font-size: var(--font-size-2xl);
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  .why-card {
    padding: 24px 20px;
  }
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  margin: 0;
}

/* Glow orbs background decoration */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.glow-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-600);
  top: -200px;
  right: -100px;
}

.glow-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-cyan);
  bottom: -150px;
  left: -50px;
}
