/* ========================================
   EvolvSA - Main Stylesheet
   Pure CSS without frameworks
   ======================================== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

/* CSS Variables */
/* CSS Variables - Premium Light Theme */
:root {
  --bg-light: #ffffff;
  --bg-off-white: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --brand-primary: #4f46e5; /* Indigo */
  --brand-secondary: #0ea5e9; /* Sky Blue */
  --brand-accent: #8b5cf6; /* Purple */
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.05);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.15);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  font-family: 'Cairo', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-light);
  background-image: 
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ========================================
   Tech Visual Effects
   ======================================== */

/* Floating Particles */
.tech-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 50%;
  opacity: 0.3;
  animation: floatParticle 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 30%; top: 80%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 70%; top: 30%; animation-delay: 4s; animation-duration: 14s; }
.particle:nth-child(4) { left: 90%; top: 60%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 50%; top: 50%; animation-delay: 3s; animation-duration: 20s; }

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.3; }
  25% { transform: translateY(-100px) translateX(50px) scale(1.5); opacity: 0.6; }
  50% { transform: translateY(-200px) translateX(-30px) scale(1); opacity: 0.4; }
  75% { transform: translateY(-100px) translateX(20px) scale(1.2); opacity: 0.5; }
}

/* Tech Visual Container */
.tech-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Code Window */
.code-window {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 1rem;
  padding: 0;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  min-width: 380px;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  animation: codeFloat 6s ease-in-out infinite;
}

@keyframes codeFloat {
  0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1000px) rotateY(-3deg) rotateX(4deg) translateY(-15px); }
}

.code-header {
  display: flex;
  gap: 8px;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.code-body {
  padding: 1.5rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.9rem;
  direction: ltr;
  text-align: left;
}

.code-line {
  margin-bottom: 0.75rem;
  color: #94a3b8;
  animation: typeIn 0.5s ease-out forwards;
  opacity: 0;
}

.code-line:nth-child(1) { animation-delay: 0.5s; }
.code-line:nth-child(2) { animation-delay: 1s; }
.code-line:nth-child(3) { animation-delay: 1.5s; }
.code-line:nth-child(4) { animation-delay: 2s; }

@keyframes typeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.keyword { color: #c084fc; }
.variable { color: #60a5fa; }
.function { color: #34d399; }
.string { color: #fbbf24; }

.cursor {
  color: #4f46e5;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Floating Icons */
.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-icon {
  position: absolute;
  font-size: 2rem;
  animation: floatIcon 4s ease-in-out infinite;
  animation-delay: var(--delay);
  top: 50%;
  left: 50%;
  transform: translate(var(--x), var(--y));
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
}

@keyframes floatIcon {
  0%, 100% { transform: translate(var(--x), var(--y)) scale(1); }
  50% { transform: translate(calc(var(--x) + 10px), calc(var(--y) - 15px)) scale(1.2); }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
/* Floating Navbar */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  z-index: 1000;
  height: 70px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-primary);
}

.nav a.mobile-lang-link {
  display: none;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s;
  margin-right: 0.5rem;
}

.lang-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

/* LTR Support for English Version */
html[dir="ltr"] {
  direction: ltr;
}

html[dir="ltr"] body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.01em;
}

html[dir="ltr"] .header-content {
  flex-direction: row;
}

html[dir="ltr"] .lang-toggle {
  margin-left: 0.5rem;
  margin-right: 0;
}

html[dir="ltr"] .nav {
  flex-direction: row;
}

html[dir="ltr"] .nav a:hover {
  transform: translateX(3px);
}

html[dir="ltr"] .hero-content {
  text-align: left;
}

html[dir="ltr"] .hero-content h1 {
  text-align: left;
}

html[dir="ltr"] .hero-buttons {
  justify-content: flex-start;
}

html[dir="ltr"] .section-title {
  text-align: center;
}

html[dir="ltr"] .section-title h2 {
  text-align: center;
}

html[dir="ltr"] .service-card {
  text-align: left;
}

html[dir="ltr"] .service-card h3 {
  text-align: left;
}

html[dir="ltr"] .footer {
  text-align: left;
}

html[dir="ltr"] .footer h3::after {
  right: auto;
  left: 0;
}

html[dir="ltr"] .footer a:hover {
  transform: translateX(5px);
}

html[dir="ltr"] .footer-grid {
  direction: ltr;
}

html[dir="ltr"] .dropdown-menu {
  right: auto;
  left: 0;
}

html[dir="ltr"] .dropdown-menu a {
  text-align: left;
}

html[dir="ltr"] .chatbot {
  left: 35px;
  right: auto;
  transform-origin: bottom left;
}

html[dir="ltr"] .chatbot-toggler {
  left: 35px;
  right: auto;
}

html[dir="ltr"] .chat-input textarea {
  padding: 0.75rem 1rem 0.75rem 0;
}

html[dir="ltr"] .chatbox .incoming span {
  margin: 0 10px 7px 0;
}

html[dir="ltr"] .chatbox .chat p {
  border-radius: 10px 10px 0 10px;
}

html[dir="ltr"] .chatbox .incoming p {
  border-radius: 10px 10px 10px 0;
}

@media (max-width: 490px) {
  html[dir="ltr"] .chatbot {
    left: 0;
  }
  html[dir="ltr"] .chatbot-toggler {
    left: 20px;
  }
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-radius: 1rem;
  padding: 0.5rem 0;
  z-index: 1000;
  border: 1px solid var(--glass-border);
}

.dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

.dropdown-menu a {
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.dropdown-menu a:hover {
  background-color: var(--bg-off-white);
  color: var(--brand-primary);
  padding-right: 2rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  padding: 0.8rem 2.5rem;
  border-radius: 2rem;
  font-weight: bold;
  transition: all 0.3s;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .cta-btn {
    display: none;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

/* Animated Grid Background */
.hero::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: 
    linear-gradient(rgba(79, 70, 229, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}

@keyframes gridMove {
  0% { transform: translateX(0) translateY(0) rotate(0deg); }
  100% { transform: translateX(50px) translateY(50px) rotate(1deg); }
}

/* Floating Tech Particles */
.hero::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.15) 0%, transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.15) 0%, transparent 25%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 30%);
  animation: pulseGlow 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  padding: 0.8rem 2.5rem;
  border-radius: 2rem;
  font-weight: bold;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
  display: inline-block;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
  background: white;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Services Section */
/* Services Section */
.services {
  padding: 5rem 0;
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section-title p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Service Card */
.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  color: white;
  transition: all 0.4s;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Horizontal Scroll Container */
.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 1rem 0.5rem 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
  background: var(--bg-off-white);
  border-radius: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: var(--brand-primary);
  border-radius: 10px;
}

.horizontal-scroll .service-card {
  min-width: 320px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* Slider Container */
.slider-container {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0 2rem;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider-track .service-card {
  flex: 0 0 33.333%;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .slider-track .service-card {
    flex: 0 0 50%;
  }
}

@media (max-width: 768px) {
  .slider-track .service-card {
    flex: 0 0 100%;
  }
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2);
}

.slider-btn:hover {
  background: var(--brand-secondary);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--glass-border);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  background: var(--brand-primary);
  transform: scale(1.2);
}

/* Partners Section */
.partners {
  padding: 4rem 0;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  filter: grayscale(100%);
  transition: filter 0.5s;
}

.partners-grid:hover {
  filter: grayscale(0%);
}

.partner-logo {
  width: 150px;
  height: 80px;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.3s;
}

.partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1) 0%, transparent 30%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: white;
  color: var(--brand-primary);
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-outline-white {
  background: transparent;
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.3s;
  display: inline-block;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 5rem 0 2rem;
  position: relative;
}

/* Top Gradient Border */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
}

/* Subtle Background Pattern */
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 90%, rgba(79, 70, 229, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
  padding-top: 3rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer h3 {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  right: 0;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 2px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s;
  display: inline-block;
}

.footer a:hover {
  color: white;
  transform: translateX(-5px);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: var(--brand-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--brand-secondary);
}

.footer-bottom a:hover {
  transform: none;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--gray-100);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-off-white);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Utilities */
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 4rem; }
.text-center { text-align: center; }

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Float Animation for Hero Icon */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.cta-section p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: white;
  color: var(--brand-primary);
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.btn-outline-white:hover {
  background: white;
  color: var(--brand-primary);
  border-color: white;
}

/* ========================================
   Responsive Styles
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile Landscape */
@media (max-width: 768px) {
  /* Mobile Menu Button (Hamburger) */
  .mobile-menu-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2002; /* Higher than nav to be clickable */
  }
  
  .mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  }
  
  /* Animate Hamburger to X */
  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background: var(--text-primary);
  }
  
  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    width: 0;
  }
  
  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background: var(--text-primary);
  }
  
  /* Header */
  .header-content {
    padding: 0.75rem 0;
  }
  
  /* Mobile Navigation - FULL SCREEN MODAL */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center; /* Center items vertically */
    align-items: center;     /* Center items horizontally */
    padding: 2rem;
    z-index: 2001; /* High z-index */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    /* Remove shadow and border for clean look */
    box-shadow: none; 
  }
  
  .nav.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }
  
  /* Modern Links */
  .nav a {
    color: var(--text-primary);
    font-size: 1.15rem; /* Reduced from 1.5rem for better clarity */
    font-weight: 600;
    padding: 0.8rem 1rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    text-align: center;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 300px; /* Limit width for cleaner look */
    position: relative;
    opacity: 0;
    transform: translateY(10px);
  }

  /* Staggered Animation for Links */
  .nav.active a {
    animation: fadeInUp 0.4s forwards;
  }
  
  .nav.active a:nth-child(1) { animation-delay: 0.1s; }
  .nav.active a:nth-child(2) { animation-delay: 0.15s; }
  .nav.active a:nth-child(3) { animation-delay: 0.2s; }
  .nav.active a:nth-child(4) { animation-delay: 0.25s; }
  .nav.active a:nth-child(5) { animation-delay: 0.3s; }
  .nav.active a:nth-child(6) { animation-delay: 0.35s; }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav a::after {
    display: none; /* Remove arrow */
  }

  .nav a:hover,
  .nav a.active {
    background: var(--bg-off-white);
    box-shadow: none;
    color: var(--brand-primary);
    transform: scale(1.02) !important; /* Subtle zoom */
  }
  
  /* Dropdown in mobile - Clean Accordion Style */
  .dropdown {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .dropdown-toggle {
    width: 100%;
    max-width: 300px;
    display: block;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--bg-off-white); /* Light gray background for contrast */
    margin: 0.5rem auto;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    display: none; /* Hidden by default, toggled via JS or hover */
    width: 100%;
    max-width: 280px; /* Slightly smaller than parent */
  }
  
  /* Show dropdown when parent is hovered or if we add JS toggle */
  .dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
  }
  
  .dropdown-menu a {
    font-size: 0.95rem; /* Smaller than main links */
    padding: 0.6rem 1rem;
    margin: 0;
    background: transparent;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 500;
    max-width: 100%; /* Fill container */
    animation: none; /* Reset animation for dropdown items */
    opacity: 1;
    transform: none;
    text-align: right; /* Right align sub-items for readability */
  }

  .dropdown-menu a:last-child {
    border-bottom: none;
  }
  
  /* Remove overlay since it is fullscreen */
  .nav::before {
    display: none;
  }
  
  /* Mobile Language Link - Styled Button */
  .mobile-lang-link {
    display: inline-block !important;
    margin-top: 2rem !important;
    padding: 0.75rem 2rem !important;
    border-radius: 2rem !important;
    background: var(--bg-off-white) !important;
    color: var(--text-primary) !important;
    font-size: 1rem !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    width: auto !important;
  }
  
  .mobile-lang-link:hover {
    background: var(--brand-primary) !important;
    color: white !important;
  }

  /* Hide floating lang toggle on mobile */
  .lang-toggle {
    display: none !important;
  }
  
  
  .nav.active::before {
    left: -100%;
    opacity: 1;
    pointer-events: auto;
  }
  
  .cta-btn {
    display: none;
  }
  
  /* Hero */
  .hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero > .container > div {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .hero-content {
    text-align: center !important;
    order: 1;
  }
  
  .hero-image {
    order: 2;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .hero-buttons a {
    text-align: center;
  }
  
  /* Code Window */
  .code-window {
    width: 100%;
    max-width: 350px;
    font-size: 0.8rem;
  }
  
  .floating-icons {
    display: none;
  }
  
  /* Services */
  .services {
    padding: 3rem 0;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-card h3 {
    font-size: 1.2rem;
  }
  
  /* Slider */
  .slider-container {
    padding: 2rem 0;
  }
  
  .slider-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
  }
  
  .slider-track .service-card {
    min-width: 280px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  
  /* Partners */
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .partner-logo {
    max-width: 120px;
    height: 60px;
  }
  
  /* CTA */
  .cta-section {
    padding: 3rem 0;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-white, .btn-outline-white {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Footer */
  .footer {
    padding: 3rem 0 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer h3::after {
    right: 50%;
    transform: translateX(50%);
  }
  
  /* About Section Grid */
  #about .container > div {
    grid-template-columns: 1fr !important;
  }
  
  #about img {
    max-width: 100%;
    height: auto;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .section-title p {
    font-size: 0.9rem;
  }
  
  .service-card {
    padding: 1.25rem;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .partners-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .cta-content h2 {
    font-size: 1.5rem;
  }
  
  .logo img {
    height: 35px;
  }
}

/* LTR Mobile Adjustments */
@media (max-width: 768px) {
  html[dir="ltr"] .hero-content {
    text-align: center !important;
  }
  
  html[dir="ltr"] .footer-grid {
    text-align: center;
  }
  
  html[dir="ltr"] .footer h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  html[dir="ltr"] .chatbot {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  
  html[dir="ltr"] .chatbot-toggler {
    left: 20px;
    bottom: 20px;
  }
}

/* Print Styles */
@media print {
  .header, .footer, .chatbot, .chatbot-toggler, .cta-section {
    display: none !important;
  }
  
  .hero {
    padding: 2rem 0;
    min-height: auto;
  }
  
  body {
    background: white;
  }
}
