/* ============================================================
   DevEps — Servicios Landing Page
   Styles — Mobile First + Parallax + Glassmorphism
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --bg-light: #f0f2f5;
  --bg-light-alt: #e8eaed;
  --orange: #FF6B00;
  --orange-hover: #FF8533;
  --orange-glow: rgba(255, 107, 0, 0.3);
  --text-light: #e8e8e8;
  --text-secondary: #a0a0b0;
  --text-dark: #2d2d2d;
  --text-dark-secondary: #555555;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --footer-bg: #05050f;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-height: 72px;
  --section-padding: 100px 0;
  --container-width: 1140px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--orange);
  width: 0%;
  z-index: 10000;
  transition: none;
  box-shadow: 0 0 10px var(--orange-glow);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 5%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.5px;
}

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

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--text-light);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-switch button {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  color: var(--text-secondary);
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.lang-switch button.active {
  background: var(--orange);
  color: white;
}

.lang-switch button:hover:not(.active) {
  color: var(--text-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s ease;
  border-radius: 2px;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100dvh;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 36px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu a:hover {
  color: var(--orange);
}

/* ── Hero ── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 0 5%;
}

/* Animated mesh gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-primary);
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 130%;
  height: 130%;
  top: -15%;
  left: -15%;
  background: 
    radial-gradient(ellipse 600px 600px at 20% 50%, rgba(255, 107, 0, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 20%, rgba(100, 60, 180, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 60% 80%, rgba(0, 120, 200, 0.06) 0%, transparent 70%);
  animation: meshMove 20s ease-in-out infinite;
}

@keyframes meshMove {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2%, -2%) rotate(1deg); }
  50% { transform: translate(-1%, 3%) rotate(-0.5deg); }
  75% { transform: translate(3%, 1%) rotate(0.5deg); }
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

/* Glow orb */
.hero-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.08) 0%, transparent 70%);
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: orbPulse 8s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

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

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s ease forwards 0.3s;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-content h1 {
    white-space: normal;
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards 0.5s;
}

.hero-subtitle-line {
  display: block;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards 0.7s;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--orange);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--orange-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition);
}

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

/* Dark section variants */
.section-light .btn-primary { background: var(--orange); color: white; }
.section-light .btn-secondary {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-dark);
}
.section-light .btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ── Parallax Sections ── */
.parallax-section {
  height: 50vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  background-color: var(--bg-primary); /* fallback if image doesn't load */
}

.parallax-section:nth-of-type(1) { background-color: #1a2332; }
.parallax-section:nth-of-type(2) { background-color: #2a1a0a; }
.parallax-section:nth-of-type(3) { background-color: #1a1a2e; }
.parallax-section:nth-of-type(4) { background-color: #0a0a1a; }

.parallax-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 26, 0.5) 0%,
    rgba(10, 10, 26, 0.3) 50%,
    rgba(10, 10, 26, 0.5) 100%
  );
}

.parallax-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
  padding: 0 5%;
}

.parallax-text p {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll;
    height: 35vh;
  }
}

/* ── Wave Dividers ── */
.wave-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
}

.wave-divider.dark-to-light {
  background: var(--bg-light);
}

.wave-divider.light-to-dark {
  background: var(--bg-secondary);
}

.wave-divider svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ── Section Base ── */
.section-dark {
  background: var(--bg-secondary);
  color: var(--text-light);
  padding: var(--section-padding);
}

.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: var(--section-padding);
}

.section-dark-alt {
  background: var(--bg-primary);
  color: var(--text-light);
  padding: var(--section-padding);
}

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

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-dark h2, .section-dark-alt h2 { color: var(--text-light); }
.section-light h2 { color: var(--text-dark); }

.section-header h2 .accent {
  color: var(--orange);
}

.section-header p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p, .section-dark-alt .section-header p {
  color: var(--text-secondary);
}

.section-light .section-header p {
  color: var(--text-dark-secondary);
}

/* ── Problem / Solution ── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 0 auto 48px;
}

.problem-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}

.problem-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 107, 0, 0.2);
  transform: translateY(-2px);
}

.problem-card .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.solution-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.06), rgba(255, 107, 0, 0.02));
  border: 1px solid rgba(255, 107, 0, 0.1);
}

.solution-text p {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.4;
}

.solution-text .highlight {
  color: var(--orange);
}

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

.service-card {
  background: white;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  background: var(--orange);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(255, 107, 0, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--orange);
  transform: scale(1.1);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--orange);
  stroke-width: 1.5;
  fill: none;
  transition: stroke var(--transition);
}

.service-card:hover .service-icon svg {
  stroke: white;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.service-card .desc {
  font-size: 0.9rem;
  color: var(--text-dark-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.service-card .price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 20px;
}

.service-card .price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dark-secondary);
}

.service-card .btn-card {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--orange);
  color: var(--orange);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
}

.service-card .btn-card:hover {
  background: var(--orange);
  color: white;
}

/* ── Why DevEps ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all var(--transition);
}

.why-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 107, 0, 0.15);
  transform: translateY(-4px);
}

.why-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--orange);
  stroke-width: 1.5;
  fill: none;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-light);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Portfolio ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  background: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.portfolio-visual {
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: 100% auto;
  background-position: top left;
  background-repeat: no-repeat;
  background-color: #e2e8f0;
}

.portfolio-visual svg.portfolio-icon {
  width: 80px;
  height: 80px;
  fill: rgba(255, 255, 255, 0.2);
  z-index: 1;
  transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-icon {
  transform: scale(1.15);
  fill: rgba(255, 255, 255, 0.35);
}

.portfolio-visual .badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  z-index: 2;
  letter-spacing: 0.3px;
}

.portfolio-card.dental .portfolio-visual {
  /* screenshot via inline style */
}

.portfolio-card.shop .portfolio-visual {
  /* screenshot via inline style */
}

.portfolio-card.fisio .portfolio-visual {
  /* screenshot via inline style */
}

.portfolio-card:hover.dental .portfolio-visual {
  filter: brightness(1.05);
}

.portfolio-card:hover.shop .portfolio-visual {
  filter: brightness(1.05);
}

.portfolio-card:hover.fisio .portfolio-visual {
  filter: brightness(1.05);
}

.portfolio-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.portfolio-info .desc {
  font-size: 0.88rem;
  color: var(--text-dark-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.portfolio-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--orange);
  transition: gap var(--transition);
}

.portfolio-card:hover .portfolio-cta {
  gap: 10px;
}

/* ── Counters ── */
.counters-section {
  background: var(--bg-primary);
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.counter-item {
  padding: 24px;
}

.counter-value {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
  transition: text-shadow 0.3s ease;
}

.counter-value.glow {
  text-shadow: 0 0 30px var(--orange-glow), 0 0 60px rgba(255, 107, 0, 0.15);
}

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

/* ── Process / Timeline ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
}

/* Connection line */
.process-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.3;
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--orange);
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}

.process-step:hover .step-number {
  background: var(--orange);
  color: white;
  box-shadow: 0 0 30px var(--orange-glow);
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-light);
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Contact Form ── */
.contact-section {
  background: var(--bg-secondary);
  padding: var(--section-padding);
}

.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

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

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

.form-group label .required {
  color: var(--orange);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select.form-input option {
  background: var(--bg-secondary);
  color: var(--text-light);
}

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

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

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--orange);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--orange-glow);
}

.btn-submit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-submit:active::after {
  width: 400px;
  height: 400px;
}

.form-note {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-error {
  color: #ff4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-group.error .form-input {
  border-color: #ff4444;
}

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

/* ── Footer ── */
.footer {
  background: var(--footer-bg);
  padding: 64px 0 32px;
}

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

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand .footer-logo span {
  color: var(--orange);
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  color: var(--text-light);
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--orange);
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
  transition: fill var(--transition);
}

.social-link:hover svg {
  fill: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 400px;
    margin: 0 auto;
  }
  .process-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
    --nav-height: 64px;
  }
  
  .nav-links { display: none; }
  .hamburger { display: flex; }
  
  .services-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .portfolio-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .counters-grid { grid-template-columns: 1fr; gap: 16px; }
  .problems-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .section-header { margin-bottom: 40px; }
  .hero-orb { width: 250px; height: 250px; }
  
  /* Mobile lang switch next to hamburger */
  .navbar .lang-switch {
    margin-right: 8px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* ── AOS Custom Overrides ── */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Fallback: if AOS JS hasn't initialized, show all elements */
html:not(.aos-loaded) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* On mobile: simpler, faster animations */
@media (max-width: 768px) {
  [data-aos] {
    transition-duration: 400ms !important;
  }
  [data-aos][data-aos-delay] {
    transition-delay: 0s !important;
  }
}
