/* ============================================================
   AM2AR - Business Automation | styles.css
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #08080e;
  color: #f5f5f5;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   Fixed Tunnel Canvas (full-page background)
   ============================================================ */
#tunnelCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ============================================================
   Header
   ============================================================ */
header {
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.2rem 2rem;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, transparent, #00e5ff, #00bcd4, transparent, transparent);
  background-size: 200% 100%;
  animation: headerScan 4s linear infinite;
}

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

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #00e5ff, #00bcd4, #7c4dff, #00e5ff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGradient 6s ease infinite;
  filter: drop-shadow(0 0 12px rgba(0, 188, 212, 0.4));
}

@keyframes titleGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.tagline {
  font-weight: 300;
  font-size: 0.9rem;
  color: #aaa;
  display: block;
  margin-top: 0.2rem;
}

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav a {
  color: #f5f5f5;
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.3s;
  border-radius: 6px;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00bcd4;
  transition: all 0.3s;
  transform: translateX(-50%);
}

nav a:hover {
  color: #00e5ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

nav a:hover::after {
  width: 80%;
  background: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6), 0 0 16px rgba(0, 229, 255, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid #00bcd4;
  color: #00bcd4;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

/* ============================================================
   Language Toggle
   ============================================================ */
.lang-toggle {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  margin-left: 1rem;
  background: rgba(0, 188, 212, 0.06);
  border-radius: 20px;
  padding: 3px;
  border: 1px solid rgba(0, 188, 212, 0.15);
}
.lang-toggle button {
  background: none;
  border: none;
  color: #f5f5f5;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  border-radius: 16px;
  transition: all 0.3s;
  font-weight: 500;
}
.lang-toggle button.active {
  background: linear-gradient(135deg, #00bcd4, #0097a7);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 188, 212, 0.4);
}
.lang-toggle button:not(.active):hover {
  background: rgba(0, 188, 212, 0.1);
}

/* ============================================================
   Hero Section — transparent over tunnel
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  margin: 0;
  max-width: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  /* Override section base — hero is always visible */
  opacity: 1 !important;
  transform: none !important;
}

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

.hero h2 {
  font-size: 3.5rem;
  color: #00e5ff;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease, heroTextGlow 4s ease-in-out 1s infinite;
  text-shadow:
    0 0 20px rgba(0, 188, 212, 0.8),
    0 0 60px rgba(0, 188, 212, 0.4),
    0 0 100px rgba(0, 188, 212, 0.2);
  letter-spacing: -0.02em;
}

@keyframes heroTextGlow {
  0%, 100% {
    text-shadow:
      0 0 20px rgba(0, 188, 212, 0.8),
      0 0 60px rgba(0, 188, 212, 0.4),
      0 0 100px rgba(0, 188, 212, 0.2);
  }
  50% {
    text-shadow:
      0 0 30px rgba(0, 229, 255, 1),
      0 0 80px rgba(0, 188, 212, 0.6),
      0 0 140px rgba(0, 188, 212, 0.3),
      0 0 200px rgba(0, 188, 212, 0.15);
  }
}

.hero p {
  font-size: 1.2rem;
  margin: 1rem auto;
  max-width: 700px;
  color: rgba(220, 220, 220, 0.95);
  animation: fadeInUp 1s ease 0.2s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeInUp 1s ease 0.4s both;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, #00bcd4, #0097a7);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #00bcd4;
  border: 2px solid #00bcd4;
}

.btn-secondary:hover {
  background: rgba(0, 188, 212, 0.1);
  transform: translateY(-3px);
}

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

/* ============================================================
   Workflow — "How It Works" Step Cards
   ============================================================ */
.workflow {
  background: rgba(8, 8, 16, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 188, 212, 0.08);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin-top: 0;
}

.workflow-subtitle {
  color: #aaa;
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
}

.wf-cards {
  display: flex;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* Energy pulse traveling across the card icons */
.wf-cards::after {
  content: '';
  position: absolute;
  top: calc(1.75rem + 32px);
  left: -60px;
  width: 60px;
  height: 6px;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.9), rgba(0, 229, 255, 0.4), transparent);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6), 0 0 25px rgba(0, 229, 255, 0.3);
  animation: energyTravel 3.5s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

.wf-card {
  flex: 1;
  background: rgba(15, 15, 28, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 1.75rem 1.1rem 1.5rem;
  border: 1px solid rgba(0, 188, 212, 0.15);
  position: relative;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease,
              box-shadow 0.4s ease, border-color 0.4s ease;
}

section.visible .wf-card { opacity: 1; transform: none; }
section.visible .wf-cards .wf-card:nth-child(1) { transition-delay: 0s; }
section.visible .wf-cards .wf-card:nth-child(3) { transition-delay: 0.1s; }
section.visible .wf-cards .wf-card:nth-child(5) { transition-delay: 0.2s; }
section.visible .wf-cards .wf-card:nth-child(7) { transition-delay: 0.3s; }
section.visible .wf-cards .wf-card:nth-child(9) { transition-delay: 0.4s; }

.wf-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 188, 212, 0.5);
  box-shadow: 0 15px 40px rgba(0, 188, 212, 0.2);
}

.wf-step-num {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(0, 188, 212, 0.45);
  letter-spacing: 0.06em;
}

.wf-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 188, 212, 0.07);
  border: 2px solid rgba(0, 188, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Node pulse synced with energy travel */
.wf-cards .wf-card:nth-child(1) .wf-icon-ring { animation: nodePulse 3.5s ease-in-out 0.3s infinite; }
.wf-cards .wf-card:nth-child(3) .wf-icon-ring { animation: nodePulse 3.5s ease-in-out 1.1s infinite; }
.wf-cards .wf-card:nth-child(5) .wf-icon-ring { animation: nodePulse 3.5s ease-in-out 1.8s infinite; }
.wf-cards .wf-card:nth-child(7) .wf-icon-ring { animation: nodePulse 3.5s ease-in-out 2.5s infinite; }
.wf-cards .wf-card:nth-child(9) .wf-icon-ring { animation: nodePulse 3.5s ease-in-out 3.1s infinite; }

.wf-title {
  color: #00bcd4;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.wf-desc {
  color: #999;
  font-size: 0.78rem;
  line-height: 1.55;
}

/* Animated connector arrow between cards */
.wf-arrow {
  display: flex;
  align-items: center;
  padding: 0 0.4rem;
  color: rgba(0, 188, 212, 0.35);
  font-size: 1.6rem;
  flex-shrink: 0;
  animation: arrowPulse 3.5s ease-in-out infinite;
}

.wf-arrow:nth-child(2) { animation-delay: 0.7s; }
.wf-arrow:nth-child(4) { animation-delay: 1.4s; }
.wf-arrow:nth-child(6) { animation-delay: 2.1s; }
.wf-arrow:nth-child(8) { animation-delay: 2.8s; }

@keyframes arrowPulse {
  0%, 100% { color: rgba(0, 188, 212, 0.25); }
  50% { color: rgba(0, 229, 255, 0.9); text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
}

/* Pause workflow animations until scrolled into view */
.workflow .wf-cards::after,
.workflow .wf-icon-ring,
.workflow .wf-arrow {
  animation-play-state: paused;
}
.workflow.visible .wf-cards::after,
.workflow.visible .wf-icon-ring,
.workflow.visible .wf-arrow {
  animation-play-state: running;
}

@keyframes energyTravel {
  0% { left: -60px; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: calc(100% + 60px); opacity: 0; }
}

@keyframes nodePulse {
  0%, 100% {
    border-color: rgba(0, 188, 212, 0.25);
    box-shadow: none;
    transform: scale(1);
  }
  12% {
    border-color: #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6), 0 0 40px rgba(0, 229, 255, 0.2), inset 0 0 8px rgba(0, 229, 255, 0.15);
    transform: scale(1.12);
  }
  25% {
    border-color: rgba(0, 188, 212, 0.25);
    box-shadow: none;
    transform: scale(1);
  }
}

@keyframes energyTravelV {
  0% { top: -40px; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: calc(100% + 40px); opacity: 0; }
}

/* ============================================================
   Sections — glass panels floating over the tunnel
   ============================================================ */
section {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  border-radius: 20px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  /* Scroll transition — starts hidden */
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

section.visible {
  opacity: 1;
  transform: none;
}

h3 {
  color: #00bcd4;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 20px rgba(0, 188, 212, 0.6), 0 2px 10px rgba(0, 0, 0, 0.8);
}

h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #00bcd4, transparent);
}

/* ============================================================
   Services Grid
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service {
  background: rgba(15, 15, 28, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(0, 188, 212, 0.15);
  position: relative;
  overflow: hidden;
  /* Stagger animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease,
              box-shadow 0.4s ease, border-color 0.4s ease;
}

section.visible .service { opacity: 1; transform: none; }
section.visible .service:nth-child(1) { transition-delay: 0s; }
section.visible .service:nth-child(2) { transition-delay: 0.1s; }
section.visible .service:nth-child(3) { transition-delay: 0.2s; }
section.visible .service:nth-child(4) { transition-delay: 0.3s; }

.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.08), transparent);
  transition: 0.5s;
}

.service:hover::before {
  left: 100%;
}

.service:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 188, 212, 0.25);
  border-color: rgba(0, 188, 212, 0.5);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

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

.service h4 {
  color: #00bcd4;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service p {
  color: #ccc;
  margin-bottom: 1.5rem;
}

.service-link {
  color: #00bcd4;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.3s;
}

.service-link:hover {
  gap: 1rem;
}

/* ============================================================
   About Section
   ============================================================ */
#about {
  background: rgba(10, 10, 20, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid rgba(0, 188, 212, 0.1);
  border-left: 4px solid #00bcd4;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial {
  background: rgba(15, 15, 28, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 2rem;
  border-left: 4px solid #00bcd4;
  /* Stagger animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease,
              box-shadow 0.3s ease;
}

section.visible .testimonial { opacity: 1; transform: none; }
section.visible .testimonial:nth-child(1) { transition-delay: 0s; }
section.visible .testimonial:nth-child(2) { transition-delay: 0.15s; }

.testimonial:hover {
  transform: translateX(10px);
  box-shadow: -5px 5px 20px rgba(0, 188, 212, 0.2);
}

blockquote {
  font-style: italic;
  color: #ddd;
  margin-bottom: 1rem;
}

.testimonial-author {
  color: #00bcd4;
  font-weight: 600;
  text-align: right;
}

/* ============================================================
   Contact Form
   ============================================================ */
.contact-form {
  background: rgba(15, 15, 28, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 3rem;
  border: 1px solid rgba(0, 188, 212, 0.2);
  max-width: 600px;
  margin: 2rem auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(0, 188, 212, 0.8);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

input, textarea, select {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(0, 188, 212, 0.2);
  border-radius: 8px;
  background: rgba(10, 10, 20, 0.5);
  color: #fff;
  resize: none;
  transition: 0.3s;
  font-family: "Poppins", sans-serif;
  font-size: 16px; /* prevent iOS auto-zoom on focus */
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #00bcd4;
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}

/* custom dropdown arrow — replaces native arrow removed by appearance:none */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath stroke='%2300bcd4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-consent label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #ddd;
}

.form-consent input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
}

button[type="submit"] {
  background: linear-gradient(135deg, #00bcd4, #0097a7);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button[type="submit"]:hover::before {
  width: 300px;
  height: 300px;
}

button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-status {
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  display: none;
}

.form-status.success {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid #4caf50;
  color: #4caf50;
}

.form-status.error {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid #f44336;
  color: #f44336;
}

/* ============================================================
   Audit CTA Card — replaces always-visible form (MKT-05)
   ============================================================ */
.audit-cta {
  background: rgba(15, 15, 28, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 3rem;
  border: 1px solid rgba(0, 188, 212, 0.2);
  max-width: 600px;
  margin: 2rem auto 0;
  text-align: center;
}

.audit-cta-headline {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f5f5f5;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.audit-cta-bullets {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
  display: inline-block;
}

.audit-cta-bullets li {
  color: #ccc;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

.audit-open-btn {
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
}

/* ============================================================
   Collapsible Form Wrapper (MKT-05)
   ============================================================ */
.audit-form-wrapper {
  max-height: 2400px;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.audit-form-wrapper.audit-form-hidden {
  max-height: 0;
}

/* ============================================================
   Video Showcase Grid (MKT-05)
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(0, 188, 212, 0.15);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   Footer — glass panel
   ============================================================ */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #aaa;
  margin: 2rem auto 0;
  max-width: 1200px;
  border-radius: 20px 20px 0 0;
  background: rgba(10, 10, 20, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 188, 212, 0.08);
  border-bottom: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   Bilingual Toggle
   ============================================================ */
.en-text.hidden { display: none; }
.es-text.hidden { display: none; }
.en-text:not(.hidden) + .es-text { display: none; }
.es-text:not(.hidden) + .en-text { display: none; }

/* ============================================================
   Scroll to Top
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 10, 20, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 188, 212, 0.3);
  color: #00bcd4;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  padding: 0;
  line-height: 1;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  border-color: #00bcd4;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  nav.active {
    display: flex;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  section {
    margin: 1rem 0.5rem;
    padding: 2.5rem 1.2rem;
    border-radius: 16px;
  }

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

  .hero {
    min-height: 80vh;
    padding: 4rem 1rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .scroll-top { width: 42px; height: 42px; font-size: 1rem; bottom: 1.2rem; right: 1.2rem; }

  /* Workflow cards — mobile stack */
  .workflow { padding: 2rem 1rem; }
  .wf-cards { flex-direction: column; gap: 0.75rem; }
  .wf-arrow { display: none; }
  .wf-card { padding: 1.25rem 1rem; }
  .wf-icon-ring { width: 52px; height: 52px; font-size: 1.4rem; }
  .wf-cards::after { display: none; }
  .video-grid { grid-template-columns: 1fr; }
}

/* Tablet — 2-column services */
@media (min-width: 769px) and (max-width: 1024px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}
