/**
 * 5D Website - Modern Professional Design
 * Sleek, Elegant, and Clean
 */

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

:root {
  /* Colors */
  --color-bg: #fafafa;
  --color-bg-alt: #f5f5f7;
  --color-bg-card: #ffffff;
  --color-text: #1a1a2e;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-primary-light: #818cf8;
  --color-accent: #8b5cf6;
  --color-accent-2: #ec4899;
  --color-success: #10b981;
  --color-border: rgba(0, 0, 0, 0.06);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-dark: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
  --gradient-mesh: radial-gradient(at 40% 20%, hsla(228,100%,74%,0.15) 0px, transparent 50%),
                   radial-gradient(at 80% 0%, hsla(189,100%,56%,0.1) 0px, transparent 50%),
                   radial-gradient(at 0% 50%, hsla(280,100%,70%,0.1) 0px, transparent 50%),
                   radial-gradient(at 80% 50%, hsla(340,100%,76%,0.08) 0px, transparent 50%),
                   radial-gradient(at 0% 100%, hsla(22,100%,77%,0.1) 0px, transparent 50%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Spacing */
  --section-padding: clamp(4rem, 10vw, 8rem);
  --container-max: 1280px;
  --container-padding: clamp(1rem, 4vw, 2rem);

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

/* Dark Mode */
[data-theme="dark"] {
  --color-bg: #0f0f1a;
  --color-bg-alt: #1a1a2e;
  --color-bg-card: #1e1e32;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-light: #64748b;
  --color-border: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.3);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(15, 15, 26, 0.85);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
}

.navbar-logo img {
  height: 40px;
  width: auto;
}

/* Logo inversion for light/dark mode */
.logo-img {
  filter: brightness(0) invert(0.2);
  transition: filter 0.3s ease;
}

[data-theme="dark"] .logo-img {
  filter: brightness(0) invert(0.9);
}

.navbar-logo span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-menu {
  display: none;
  list-style: none;
  gap: 2rem;
}

/* Mobile menu - shown when active */
.navbar-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  padding: 1.5rem;
  gap: 0;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-menu.active li {
  border-bottom: 1px solid var(--color-border);
}

.navbar-menu.active li:last-child {
  border-bottom: none;
}

.navbar-menu.active a {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  .navbar-menu {
    display: flex;
  }

  .navbar-menu.active {
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    animation: none;
  }

  .navbar-menu.active li {
    border-bottom: none;
  }

  .navbar-menu.active a {
    display: inline;
    padding: 0;
    font-size: 0.95rem;
  }
}

.navbar-menu a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s var(--ease-out-expo);
}

.navbar-menu a:hover {
  color: var(--color-text);
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.lang-switch:hover {
  background: var(--color-primary);
  color: white;
}

.lang-switch img {
  border-radius: 2px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-bg-alt);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--color-primary);
  color: white;
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

/* Hamburger to X animation */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--color-bg-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--color-primary);
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.05rem;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.8;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  animation: slideUp 0.8s var(--ease-out-expo) forwards;
  opacity: 0;
}

.hero-badge i {
  color: var(--color-primary);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 1.5rem;
  animation: slideUp 0.8s var(--ease-out-expo) 0.1s forwards;
  opacity: 0;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.7;
  animation: slideUp 0.8s var(--ease-out-expo) 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: slideUp 0.8s var(--ease-out-expo) 0.3s forwards;
  opacity: 0;
}

.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  max-width: 500px;
  display: none;
}

@media (min-width: 1024px) {
  .hero-visual {
    display: block;
  }
}

/* 5 Dimensions Grid */
.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.dimensions-grid .dimension-card:nth-child(4) {
  grid-column: 1 / 2;
}

.dimensions-grid .dimension-card:nth-child(5) {
  grid-column: 2 / 4;
}

.dimension-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  animation: fadeInScale 0.6s var(--ease-out-expo) forwards;
  animation-delay: calc(var(--delay) * 0.1s);
  opacity: 0;
  transition: all 0.3s var(--ease-out-expo);
}

.dimension-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.dimension-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin: 0 auto 0.75rem;
}

.dimension-label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-family: 'Space Grotesk', sans-serif;
}

/* 5D Process Label */
.dimensions-label {
  text-align: center;
  margin-bottom: 1.5rem;
}

.dimensions-label-text {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.dimensions-label-text strong {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Highlighted D in dimension labels */
.d-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.1em;
}

.d-number {
  font-size: 0.6em;
  font-weight: 700;
  color: var(--color-primary);
  vertical-align: super;
  margin-right: 1px;
  opacity: 0.8;
}

/* Arabic number styling */
.d-number-ar {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  line-height: 1.4em;
  text-align: center;
  font-size: 0.7em;
  font-weight: 700;
  color: white;
  background: var(--gradient-primary);
  border-radius: 50%;
  margin-left: 0.4em;
  vertical-align: middle;
}

.dimension-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

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

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  animation: bounce 2s ease-in-out infinite;
}

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

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients {
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}

.clients-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

.client-logo {
  height: 40px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.4s ease;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================
   SERVICES - BENTO GRID
   ============================================ */
.services {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  border: 1px solid var(--color-border);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.bento-card:hover::before {
  opacity: 0.03;
}

.bento-card > * {
  position: relative;
  z-index: 1;
}

.bento-card-lg {
  grid-column: span 12;
}

@media (min-width: 768px) {
  .bento-card-lg {
    grid-column: span 8;
  }
  .bento-card-md {
    grid-column: span 4;
  }
  .bento-card-sm {
    grid-column: span 6;
  }
}

@media (max-width: 767px) {
  .bento-card-lg,
  .bento-card-md,
  .bento-card-sm {
    grid-column: span 12;
  }
}

.bento-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.bento-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.bento-text {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.bento-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bento-tag {
  padding: 0.375rem 0.875rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
  background: var(--gradient-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.products::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.3;
}

.products .section-header {
  position: relative;
  z-index: 1;
}

.products .section-label {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: white;
}

.products .section-subtitle {
  color: rgba(255,255,255,0.7);
}

/* Mobile-first: single column, smaller gaps */
.products-grid {
  display: grid;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.product-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.product-content {
  text-align: center;
}

.product-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary-light);
  margin-bottom: 0.75rem;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.product-text {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Mobile: single column features */
.product-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.product-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-feature i {
  color: var(--color-success);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.product-feature span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.product-visual {
  position: relative;
  order: -1; /* Image first on mobile */
}

.product-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transition: transform 0.6s var(--ease-out-expo);
}

.product-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

/* Tablet: 2-column features */
@media (min-width: 480px) {
  .product-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }

  .product-title {
    font-size: 1.75rem;
  }
}

/* Desktop: side-by-side layout */
@media (min-width: 768px) {
  .products-grid {
    gap: 4rem;
  }

  .product-item {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
  }

  .product-content {
    max-width: 500px;
    text-align: left;
  }

  .product-visual {
    order: 0; /* Reset order */
  }

  .product-item:nth-child(even) .product-content {
    order: 2;
  }

  .product-item:nth-child(even) .product-visual {
    order: 1;
  }

  .product-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .product-text {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .product-badge {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .product-features {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .product-feature i {
    font-size: 1.25rem;
  }

  .product-feature span {
    font-size: 0.9rem;
  }

  .product-image {
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  }
}

/* Hover effect only on non-touch devices */
@media (hover: hover) {
  .product-item:hover .product-image {
    transform: scale(1.02) translateY(-10px);
  }
}

/* ============================================
   PRODUCTS - CAROUSEL LAYOUT
   ============================================ */
.products-carousel {
  position: relative;
  z-index: 1;
}

.carousel-container {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
  min-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.product-card-carousel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .product-card-carousel {
    grid-template-columns: 1fr 1fr;
    padding: 2rem;
    gap: 3rem;
  }
}

.product-card-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card-content .product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.product-card-content .product-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.product-card-content .product-features i {
  color: var(--color-success);
}

/* Carousel Navigation */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: -24px;
}

.carousel-next {
  right: -24px;
}

@media (max-width: 768px) {
  .carousel-prev {
    left: 10px;
  }
  .carousel-next {
    right: 10px;
  }
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* ============================================
   PRODUCTS - COMPACT GRID LAYOUT
   ============================================ */
.products-compact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .products-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-compact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.product-card-compact {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.product-card-compact:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

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

.product-card-compact:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-img .product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: white;
}

.product-card-body p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.product-card-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.product-card-features i {
  color: var(--color-success);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.85rem;
}

/* ============================================
   PRODUCTS - TABS LAYOUT
   ============================================ */
.product-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.product-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-tab:hover {
  border-color: rgba(99, 102, 241, 0.5);
  color: white;
}

.product-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.product-tab i {
  font-size: 1.1rem;
}

.products-tab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .products-tab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-tab-card {
  display: grid;
  grid-template-columns: 1fr;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

@media (min-width: 640px) {
  .product-tab-card {
    grid-template-columns: 200px 1fr;
  }
}

.product-tab-card.hidden {
  display: none;
}

.product-tab-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-3px);
}

.product-tab-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

@media (min-width: 640px) {
  .product-tab-img {
    aspect-ratio: auto;
    height: 100%;
  }
}

.product-tab-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-tab-content {
  padding: 1.5rem;
}

.product-tab-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: white;
}

.product-tab-content p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-tab-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.product-tab-features span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.product-tab-features i {
  color: var(--color-success);
  font-size: 0.875rem;
}

/* ============================================
   PRODUCTS - FEATURED + GRID LAYOUT
   ============================================ */
.products-featured-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .products-featured-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-featured-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.product-featured-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.product-featured-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

.product-featured-card:hover .product-featured-img img {
  transform: scale(1.05);
}

.product-featured-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.product-badge-lg {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.9);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}

.product-featured-content {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .product-featured-content {
    padding: 2rem;
  }
}

.product-featured-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: white;
}

.product-featured-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.product-featured-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.product-featured-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.product-featured-features i {
  color: var(--color-success);
}

/* More Products Label */
.products-more-label {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.products-more-label span {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Rest of Products Grid */
.products-rest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .products-rest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-rest-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-rest-card {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.product-rest-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.product-rest-img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-rest-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-rest-content {
  flex: 1;
  min-width: 0;
}

.product-badge-sm {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary-light);
  margin-bottom: 0.5rem;
}

.product-rest-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: white;
}

.product-rest-content p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.product-rest-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--color-primary-light);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.3s ease;
}

.product-rest-link:hover {
  gap: 0.5rem;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

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

/* ============================================
   TECH STACK
   ============================================ */
.tech {
  background: var(--color-bg-alt);
}

.tech-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.tech-category {
  padding: 0.625rem 1.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tech-category:hover,
.tech-category.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-out-expo);
}

.tech-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.tech-item.hidden {
  display: none;
}

.tech-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.tech-item span {
  font-weight: 500;
  font-size: 0.95rem;
}

/* ============================================
   WHY US
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  transition: all 0.4s var(--ease-out-expo);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.why-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.why-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.why-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-secondary {
  background: white;
  color: var(--color-primary);
  border: none;
}

.cta .btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: var(--section-padding) 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 40px;
}

.footer-logo span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.footer-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-3px);
  text-decoration: none;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

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

.footer-copyright {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.footer-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-lang:hover {
  border-color: var(--color-primary);
}

/* ============================================
   WHATSAPP FAB
   ============================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  background: #25D366;
  opacity: 0.3;
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal.visible {
  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; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 2rem; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
