/* ========================================
   SmartConnection - Main Stylesheet
   Dark Premium + SAP Enterprise + PYME Friendly
   ======================================== */

/* --- CSS Variables --- */
:root {
  --primary: #00c1c1;
  --primary-dark: #009a9a;
  --accent-gold: #f0ab00;
  --dark-bg: #0a0e17;
  --dark-bg-2: #111827;
  --dark-bg-3: #1a2332;
  --card-bg: rgba(26, 35, 50, 0.8);
  --card-border: rgba(0, 193, 193, 0.15);
  --text-white: #f0f4f8;
  --text-gray: #94a3b8;
  --text-muted: #64748b;
  --gradient-primary: linear-gradient(135deg, #00c1c1, #0077b6);
  --gradient-gold: linear-gradient(135deg, #f0ab00, #ff6b35);
  --gradient-dark: linear-gradient(180deg, #0a0e17 0%, #111827 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 8px 32px rgba(0, 193, 193, 0.25);
  --shadow-gold-glow: 0 8px 32px rgba(240, 171, 0, 0.25);
  --primary-light: rgba(0, 193, 193, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark-bg);
  color: var(--text-white);
  line-height: 1.75;
  overflow-x: hidden;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

a:hover { color: var(--accent-gold); }

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

/* Prevent text overflow on mobile */
h1, h2, h3, h4, p {
  overflow-wrap: break-word;
  word-break: break-word;
}

section { padding: 120px 0; position: relative; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Animated Grid Background --- */
.grid-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0, 193, 193, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 193, 193, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.navbar-brand img {
  height: 45px;
  transition: var(--transition);
}

.navbar.scrolled .navbar-brand img { height: 38px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 0;
  position: relative;
}

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

.nav-links a:hover { color: var(--text-white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gradient-primary);
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 8px;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 193, 193, 0.3); }

.nav-wsp {
  background: #25D366 !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 8px;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-wsp::after { display: none !important; }
.nav-wsp:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); color: #fff !important; }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  width: 25px; height: 2px;
  background: var(--text-white);
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-dark);
}

/* Hero Video */
.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 23, 0.7) 0%,
    rgba(10, 14, 23, 0.85) 50%,
    rgba(10, 14, 23, 0.95) 100%
  );
  z-index: 1;
}

.hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: auto;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-glow-1 {
  background: var(--primary);
  top: -200px; right: -100px;
}

.hero-glow-2 {
  background: var(--accent-gold);
  bottom: -200px; left: -100px;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 193, 193, 0.1);
  border: 1px solid rgba(0, 193, 193, 0.3);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease;
  box-shadow: 0 0 20px rgba(0, 193, 193, 0.15), inset 0 0 20px rgba(0, 193, 193, 0.05);
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #00e5e5, #0077b6, #00c1c1);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .highlight-gold {
  background: linear-gradient(135deg, #ffcc00, #ff6b35, #f0ab00);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-white);
  opacity: 0.85;
  max-width: 700px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 193, 193, 0.3);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--glass-bg);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-gold {
  background: var(--gradient-gold);
  color: #fff;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(240, 171, 0, 0.3);
  color: #fff;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 15px;
  background: rgba(0, 193, 193, 0.1);
  padding: 6px 18px;
  border-radius: 50px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.section-header p {
  color: var(--text-gray);
  font-size: 1.1rem;
}

/* --- Service Cards (SAP) --- */
.services-section { overflow: hidden; }

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

@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: visible;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  border-radius: 3px 0 0 3px;
}

/* Connecting line between cards (horizontal) */
.service-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -13px;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(0, 193, 193, 0.3));
  border-radius: 1px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

/* Hide line on last card of each row (4-col) */
.service-card:nth-child(4n)::after,
.service-card:last-child::after {
  display: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 193, 193, 0.3);
  box-shadow: var(--shadow-lg);
  background: rgba(26, 35, 50, 0.95);
}

.service-card:hover::before { opacity: 1; }

/* 2-col: hide line on every 2nd card */
@media (max-width: 1200px) {
  .service-card:nth-child(4n)::after { display: block; }
  .service-card:nth-child(2n)::after { display: none; }
}

.service-icon {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 193, 193, 0.15), rgba(0, 119, 182, 0.1));
  border-radius: 14px;
  margin-bottom: 24px;
  font-size: 1.6rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.service-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin: 0;
}

.badge-sap {
  display: inline-block;
  background: rgba(0, 193, 193, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 16px;
}

/* --- AI Section --- */
.ai-section { background: var(--dark-bg-2); overflow: hidden; }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}

.ai-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: visible;
}

.ai-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: var(--transition);
}

/* Connecting line between AI cards */
.ai-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -13px;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), rgba(240, 171, 0, 0.3));
  border-radius: 1px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

/* Hide on last card of each row & last card */
.ai-card:nth-child(2n)::after,
.ai-card:last-child::after {
  display: none;
}

.ai-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 171, 0, 0.3);
  box-shadow: var(--shadow-lg);
}

.ai-card:hover::before { opacity: 1; }

.ai-card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
  color: var(--primary);
}

.ai-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.ai-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin: 0;
}

/* Tech logos */
.tech-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}

.tech-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
}

.tech-logo:hover { color: var(--text-white); }

.tech-logo-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 1.3rem;
  transition: var(--transition);
}

.tech-logo:hover .tech-logo-icon {
  border-color: var(--primary);
  background: rgba(0, 193, 193, 0.1);
}

/* --- Why Section --- */
.why-section { background: var(--dark-bg); overflow: hidden; position: relative; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
  counter-reset: pillar-counter;
}

.pillar {
  text-align: center;
  padding: 50px 30px 40px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), var(--accent-gold)) 1;
  border-image-slice: 0 0 1 0;
  transition: var(--transition);
  position: relative;
  overflow: visible;
  counter-increment: pillar-counter;
}

.pillar::before {
  content: "0" counter(pillar-counter);
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(0, 193, 193, 0.06);
  line-height: 1;
  pointer-events: none;
}

/* Connecting line between pillars */
.pillar::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -16px;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(0, 193, 193, 0.2));
  border-radius: 1px;
  transform: translateY(-50%);
  pointer-events: none;
}

.pillar:last-child::after { display: none; }

.pillar:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
  color: var(--accent-gold);
}

.pillar h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.pillar p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin: 0;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat {
  text-align: center;
  padding: 36px 30px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 193, 193, 0.08);
  transition: var(--transition);
}

.stat:hover {
  border-color: rgba(0, 193, 193, 0.3);
  box-shadow: 0 0 30px rgba(0, 193, 193, 0.15);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

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

/* --- Trust / Partners Section --- */
.trust-section {
  background: var(--dark-bg-2);
  overflow: hidden;
}

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

.trust-item {
  text-align: center;
  padding: 36px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: var(--transition);
  cursor: default;
}

.trust-item:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  background: rgba(0, 193, 193, 0.05);
}

.trust-icon {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 16px;
  font-size: 1.6rem;
  color: var(--primary);
  transition: var(--transition);
}

.trust-item:hover .trust-icon {
  transform: scale(1.15);
  box-shadow: 0 8px 24px rgba(0, 193, 193, 0.2);
}

.trust-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-gray);
  transition: var(--transition);
}

.trust-item:hover span {
  color: var(--text-white);
}

/* --- PYMES Section --- */
.pymes-section {
  background: var(--dark-bg-2);
  position: relative;
  overflow: hidden;
}

.pymes-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(240, 171, 0, 0.05) 0%, transparent 50%, rgba(0, 193, 193, 0.05) 100%);
  pointer-events: none;
  z-index: 0;
}

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

.pymes-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 20px;
}

.pymes-text p {
  color: var(--text-gray);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.pymes-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.pymes-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.pymes-list li .check {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
  background: rgba(0, 193, 193, 0.1);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.pymes-examples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.pyme-example {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.pyme-example:hover {
  border-color: rgba(240, 171, 0, 0.4);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(240, 171, 0, 0.15);
}

.pyme-example-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  color: var(--accent-gold);
}

.pyme-example h4 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.pyme-example p {
  color: var(--text-gray);
  font-size: 0.85rem;
  margin: 0;
}

/* --- Contact Section --- */
.contact-section { background: var(--dark-bg); overflow: hidden; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 193, 193, 0.1);
  border-radius: 10px;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.95rem;
  margin: 0 0 4px;
}

.contact-item p, .contact-item a {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin: 0;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--card-bg);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 44px;
  background-image: linear-gradient(var(--card-bg), var(--card-bg)), linear-gradient(135deg, rgba(0, 193, 193, 0.3), rgba(240, 171, 0, 0.2), rgba(0, 193, 193, 0.3));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 193, 193, 0.1);
}

.form-control.is-invalid { border-color: #ef4444; }
.form-control.is-valid { border-color: #22c55e; }

.invalid-feedback {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.is-invalid ~ .invalid-feedback { display: block; }

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

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

.contact-form-wrapper .btn-primary {
  width: 100%;
  padding: 16px 32px;
  font-size: 1.05rem;
  justify-content: center;
  transition: var(--transition), transform 0.2s ease;
}

.contact-form-wrapper .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Honeypot */
.hp-field { position: absolute; left: -9999px; }

/* Toast */
.toast {
  position: fixed;
  top: 100px; right: 30px;
  background: #22c55e;
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  z-index: 9999;
  transform: translateX(400px);
  transition: transform 0.4s ease;
  box-shadow: var(--shadow-lg);
}

.toast.show { transform: translateX(0); }
.toast.error { background: #ef4444; }

/* --- Footer --- */
.footer {
  background: linear-gradient(180deg, var(--dark-bg-3) 0%, #0d1220 60%, #080c14 100%);
  padding: 70px 0 30px;
  border-top: 1px solid var(--glass-border);
}

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

.footer-grid > *:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: 30px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-gray);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: var(--text-gray);
  font-size: 0.9rem;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.footer-links a:hover { color: var(--primary); }
.footer-links a:hover::after { width: 100%; }

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

.footer-social a {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-gray);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 30px;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Floating Blobs (like VOY) --- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  opacity: 0.08;
  top: -150px; right: -150px;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

.blob-2 {
  width: 350px; height: 350px;
  background: var(--accent-gold);
  opacity: 0.06;
  bottom: -100px; left: -100px;
  animation: blobFloat 8s ease-in-out infinite alternate 2s;
}

.blob-3 {
  width: 250px; height: 250px;
  background: #7C3AED;
  opacity: 0.05;
  top: 40%; left: 30%;
  animation: blobFloat 8s ease-in-out infinite alternate 4s;
}

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -30px) scale(1.08); }
}

/* --- Section Blobs --- */
.section-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.ai-section .section-blob {
  width: 400px; height: 400px;
  background: var(--accent-gold);
  opacity: 0.05;
  top: 10%; right: -100px;
  animation: blobFloat 10s ease-in-out infinite alternate;
}

.why-section .section-blob {
  width: 350px; height: 350px;
  background: var(--primary);
  opacity: 0.06;
  bottom: 5%; left: -80px;
  animation: blobFloat 10s ease-in-out infinite alternate 3s;
}

/* --- Enhanced Card Hover Effects --- */
.service-card {
  transition: var(--transition-slow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-card:hover {
  box-shadow: var(--shadow-glow);
}

.ai-card {
  transition: var(--transition-slow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ai-card:hover {
  box-shadow: var(--shadow-gold-glow);
}

/* --- Glassmorphism on pillars --- */
.pillar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-slow);
}

.pillar:hover {
  box-shadow: var(--shadow-glow);
  background: rgba(255, 255, 255, 0.08);
}

/* --- Floating animation for icons --- */
.service-icon {
  transition: var(--transition-slow);
}

.service-card:hover .service-icon {
  transform: scale(1.15) translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 193, 193, 0.2);
}

.ai-card:hover .ai-card-icon {
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* --- PYME example cards glow on hover --- */
.pyme-example {
  transition: var(--transition-slow);
}

.pyme-example:hover {
  box-shadow: var(--shadow-gold-glow);
  background: rgba(26, 35, 50, 0.95);
}

.pyme-example:hover .pyme-example-icon {
  animation: iconBounce 0.5s ease;
}

/* --- Gradient text shimmer --- */
.hero h1 .highlight {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* --- Stats glow effect --- */
.stat-number {
  text-shadow: 0 0 40px rgba(0, 193, 193, 0.3);
}

/* --- Contact form glow on focus --- */
.form-control:focus {
  box-shadow: 0 0 0 3px rgba(0, 193, 193, 0.15), 0 0 20px rgba(0, 193, 193, 0.1);
}

/* --- Button shine effect --- */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after {
  transform: rotate(45deg) translateX(100%);
}

/* --- Tech logos float --- */
.tech-logo-icon {
  transition: var(--transition-slow);
}

.tech-logo:hover .tech-logo-icon {
  transform: translateY(-6px) scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* --- Footer social glow --- */
.footer-social a:hover {
  box-shadow: var(--shadow-glow);
}

/* --- Contact card glassmorphism --- */
.contact-form-wrapper {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-slow);
}

.contact-form-wrapper:hover {
  border-color: rgba(0, 193, 193, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- Scroll reveal with stagger --- */
.animate-on-scroll { transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.services-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.services-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.services-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.services-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.services-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }
.services-grid .animate-on-scroll:nth-child(7) { transition-delay: 0.6s; }
.services-grid .animate-on-scroll:nth-child(8) { transition-delay: 0.7s; }

.ai-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.ai-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.ai-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.ai-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.ai-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

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

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.7rem;
  z-index: 998;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
  color: #fff;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.15); }
}

/* --- Mobile Call Button (navbar) --- */
.mobile-call-btn {
  display: none !important;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: #fff !important;
  font-size: 1rem;
  text-decoration: none;
}

.mobile-call-btn:hover {
  color: #fff !important;
  transform: scale(1.1);
}

@keyframes callPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 193, 193, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(0, 193, 193, 0); }
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .pymes-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }

  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.active { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; }

  .menu-toggle { display: flex; z-index: 1001; }

  .hero-buttons { flex-direction: column; align-items: center; }

  .stats-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-number { font-size: 2.2rem; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > *:not(:first-child) { border-left: none; padding-left: 0; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

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

  /* Hide connecting lines on mobile */
  .service-card::after,
  .ai-card::after,
  .pillar::after { display: none; }

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

  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .trust-item { padding: 24px 16px; }
  .trust-icon { width: 52px; height: 52px; font-size: 1.3rem; }

  .pymes-content { gap: 40px; }
  .stat { padding: 24px 16px; }

  /* Tech logos: reducir gap para tablet/mobile */
  .tech-logos { gap: 28px; }

  /* Pillar counter: ajustar en 1 columna */
  .pillar::before {
    font-size: 4rem;
    top: -8px;
    right: 16px;
  }

  /* Blobs: reducir en tablet */
  .blob-1 { width: 350px; height: 350px; top: -100px; right: -100px; }
  .blob-2 { width: 250px; height: 250px; bottom: -80px; left: -80px; }
  .blob-3 { width: 180px; height: 180px; }
  .hero-glow { width: 400px; height: 400px; }

  .mobile-call-btn { display: flex !important; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 54px; height: 54px; font-size: 1.5rem; }

  /* Hero badge responsive */
  .hero-badge {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  section { padding: 60px 0; }
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .contact-form-wrapper { padding: 24px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust-item { padding: 20px 12px; border-radius: 14px; }
  .trust-icon { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 12px; }
  .trust-item span { font-size: 0.8rem; }
  .service-card, .ai-card { padding: 28px; }
  .pillar { padding: 32px 20px; }
  .stats-row { grid-template-columns: 1fr; gap: 12px; }
  .stat { padding: 20px 16px; }
  .stat-number { font-size: 2rem; }

  /* Blobs: reducir tamaño para evitar overflow en mobile */
  .blob-1 { width: 250px; height: 250px; top: -80px; right: -80px; }
  .blob-2 { width: 180px; height: 180px; bottom: -60px; left: -60px; }
  .blob-3 { width: 130px; height: 130px; }
  .ai-section .section-blob { width: 200px; height: 200px; right: -50px; }
  .why-section .section-blob { width: 180px; height: 180px; left: -50px; }

  /* Hero glow: reducir para pantallas pequeñas */
  .hero-glow { width: 300px; height: 300px; }

  /* Hero badge: evitar desborde en pantallas 320px */
  .hero-badge {
    padding: 8px 16px;
    font-size: 0.75rem;
    max-width: 100%;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Botones: asegurar que quepan en 320px */
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Nav CTA en mobile */
  .nav-cta {
    padding: 10px 20px !important;
  }

  /* Tech logos: reducir gap en mobile */
  .tech-logos { gap: 20px; }

  /* Pillar counter: reducir tamaño del número en 1 columna */
  .pillar::before {
    font-size: 3rem;
    top: -6px;
    right: 14px;
  }

  .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 1.4rem; }

  /* Footer bottom: asegurar que no desborde */
  .footer-bottom {
    font-size: 0.75rem;
    gap: 8px;
  }
}

/* --- Extra small devices (320px) --- */
@media (max-width: 360px) {
  .container { padding: 0 16px; }

  .hero h1 { font-size: 1.75rem; }
  .hero-subtitle { font-size: 0.9rem; }

  .hero-badge {
    padding: 6px 12px;
    font-size: 0.7rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    width: 100%;
  }

  .section-header h2 { font-size: 1.5rem; }
  .section-header p { font-size: 0.95rem; }

  .service-card, .ai-card { padding: 20px; }
  .service-card h3, .ai-card h3 { font-size: 1.1rem; }

  .pillar { padding: 24px 16px; }
  .pillar::before { font-size: 2.5rem; }

  .pyme-example { padding: 16px; gap: 12px; }
  .pyme-example-icon { font-size: 1.4rem; }

  .contact-form-wrapper { padding: 20px; }
  .form-control { padding: 12px 14px; font-size: 0.9rem; }

  .tech-logos { gap: 16px; }
  .tech-logo-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .tech-logo { font-size: 0.7rem; }

  .trust-grid { gap: 8px; }
  .trust-item { padding: 16px 8px; }
}
