/* ============================================
   BRAINSOFT TECHNOLOGIES — Main Stylesheet
   Brand: Red #E31E24 | Cyan #29B8E5
   ============================================ */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800;900&family=Nunito+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (THEME SYSTEM)
   ============================================ */
:root {
  /* Brand Colors */
  --red:          #E31E24;
  --red-dark:     #B5151A;
  --red-light:    #FF4349;
  --red-glow:     rgba(227, 30, 36, 0.22);
  --cyan:         #29B8E5;
  --cyan-dark:    #1A9CC4;
  --cyan-light:   #5DCEF0;
  --cyan-glow:    rgba(41, 184, 229, 0.22);

  /* Dark Theme (Default) */
  --bg:           #07090F;
  --bg-2:         #0B1019;
  --surface:      #101622;
  --surface-2:    #161E2E;
  --surface-3:    #1D2840;
  --border:       rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.13);
  --text:         #EAF0F8;
  --text-muted:   #7A90AA;
  --text-subtle:  #3F536A;
  --shadow:       0 4px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg:    0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-xl:    0 40px 100px rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-display: 'Exo 2', sans-serif;
  --font-body:    'Nunito Sans', sans-serif;

  /* Layout */
  --section-py:     100px;
  --container-max:  1200px;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      28px;

  /* Animation */
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: all 0.3s var(--ease);
}

/* Light Theme */
[data-theme="light"] {
  --bg:           #FFFFFF;
  --bg-2:         #F5F8FC;
  --surface:      #FFFFFF;
  --surface-2:    #F0F5FA;
  --surface-3:    #E6EDF6;
  --border:       rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.14);
  --text:         #080C14;
  --text-muted:   #4A6080;
  --text-subtle:  #9AABB8;
  --shadow:       0 4px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg:    0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-xl:    0 40px 100px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

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

.section { padding: var(--section-py) 0; }
.section-alt { background: var(--bg-2); }

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

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 18px;
}

.section-title .accent-red  { color: var(--red);  }
.section-title .accent-cyan { color: var(--cyan); }

.section-subtitle {
  max-width: 580px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 24px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px var(--red-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
}
.btn-secondary:hover {
  background: var(--cyan);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 36px var(--cyan-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border-hover);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-white {
  background: #fff;
  color: var(--red);
  font-weight: 800;
}
.btn-white:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.2);
}

.btn-white-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-white-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(7, 9, 15, 0.93);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  box-shadow: var(--shadow);
}
[data-theme="light"] .header.scrolled {
  background: rgba(240, 245, 252, 0.93);
}

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

.nav-logo img {
  height: 68px;
  width: auto;
}

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

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Theme toggle button */
.theme-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-hover);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.theme-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}
.mobile-menu.open { transform: translateX(0); display: flex; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--red); }

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

/* Animated geometric background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-diamond {
  position: absolute;
  border-radius: 16px;
  transform: rotate(45deg);
}
.hero-diamond-1 {
  width: 420px; height: 420px;
  border: 2px solid var(--red);
  opacity: 0.07;
  top: -90px; right: 8%;
  animation: floatDiamond 9s ease-in-out infinite;
}
.hero-diamond-2 {
  width: 260px; height: 260px;
  border: 2px solid var(--cyan);
  opacity: 0.09;
  top: 35%; right: 3%;
  animation: floatDiamond 11s ease-in-out infinite reverse;
}
.hero-diamond-3 {
  width: 650px; height: 650px;
  border: 1px solid var(--red);
  opacity: 0.04;
  bottom: -220px; left: -180px;
  animation: floatDiamond 14s ease-in-out infinite;
}
.hero-diamond-4 {
  width: 140px; height: 140px;
  border: 2px solid var(--cyan);
  opacity: 0.1;
  top: 15%; left: 60%;
  animation: floatDiamond 7s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
}
.hero-glow-red  { width: 550px; height: 550px; background: var(--red);  opacity: 0.06; top: -120px; right: -60px; }
.hero-glow-cyan { width: 400px; height: 400px; background: var(--cyan); opacity: 0.05; bottom: 0; left: 5%; }

/* Grid texture */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41, 184, 229, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 184, 229, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(41, 184, 229, 0.07);
  border: 1px solid rgba(41, 184, 229, 0.22);
  border-radius: 40px;
  margin-bottom: 30px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulseDot 2s infinite;
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 26px;
  letter-spacing: -1px;
}
.hero-title .hl-red  { color: var(--red);  }
.hero-title .hl-cyan { color: var(--cyan); }

.hero-description {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 52px;
  margin-top: 68px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text);
  display: block;
  line-height: 1;
}
.hero-stat-num .accent { color: var(--red); }
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 700;
  margin-top: 6px;
  display: block;
}

/* ============================================
   SERVICE CARDS (HOME PREVIEW)
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
}
.icon-red  { background: rgba(227, 30, 36, 0.1);  color: var(--red);  }
.icon-cyan { background: rgba(41, 184, 229, 0.1); color: var(--cyan); }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.72;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--cyan);
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.service-card:hover .service-link { color: var(--red); gap: 12px; }

/* ============================================
   WHY CHOOSE US (FEATURES)
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  text-align: center;
  padding: 40px 26px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
  box-shadow: 0 0 40px var(--red-glow);
}
.feature-icon-wrap {
  width: 70px; height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 70px 28px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: var(--border);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--red);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-suffix {
  font-size: 2rem;
  color: var(--cyan);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 700;
  font-family: var(--font-display);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, #C01018 55%, #8A0C10 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  transform: rotate(45deg);
  top: -110px; right: 12%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border: 2px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  transform: rotate(45deg);
  bottom: -90px; left: 8%;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 90px 0;
}
.cta-inner h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 18px;
}
.cta-inner p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 40px;
  font-size: 1.05rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   INNER PAGE HERO
   ============================================ */
.page-hero {
  padding: 170px 0 90px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  z-index: 0;
}
.page-hero-content { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.breadcrumb a { color: var(--cyan); }
.breadcrumb span { color: var(--text-subtle); }

.page-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.page-hero p {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

/* SVG/CSS graphic replacing image */
.about-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-diamond-wrap {
  width: 320px; height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-diamond-outer {
  position: absolute;
  inset: 0;
  border: 3px solid var(--red);
  border-radius: 28px;
  transform: rotate(45deg);
  opacity: 0.7;
  animation: rotateSlow 30s linear infinite;
}
.about-diamond-inner {
  position: absolute;
  inset: 38px;
  border: 2px solid var(--cyan);
  border-radius: 16px;
  transform: rotate(45deg);
  opacity: 0.55;
  animation: rotateSlow 20s linear infinite reverse;
}
.about-logo-center img {
  width: 110px;
  position: relative;
  z-index: 1;
}

.about-text .section-label { text-align: left; }
.about-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 22px; }
.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 0.97rem;
  line-height: 1.85;
}
.about-highlights {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.about-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.4px;
}
.about-highlight .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

/* Mission / Vision */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.mv-card {
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.mv-card-mission {
  background: linear-gradient(135deg, rgba(227,30,36,0.1), rgba(227,30,36,0.03));
  border: 1px solid rgba(227,30,36,0.2);
}
.mv-card-vision {
  background: linear-gradient(135deg, rgba(41,184,229,0.1), rgba(41,184,229,0.03));
  border: 1px solid rgba(41,184,229,0.2);
}
.mv-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.mv-card-mission .mv-label { color: var(--red); }
.mv-card-vision  .mv-label { color: var(--cyan); }
.mv-card h3 { font-size: 1.5rem; margin-bottom: 14px; }
.mv-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.85; }

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  padding: 36px 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.value-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 40px var(--cyan-glow);
  transform: translateY(-4px);
}
.value-num {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--border-hover);
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}
.value-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.value-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.72; }

/* Team approach strip */
.team-strip {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border-radius: var(--radius-xl);
  padding: 60px 52px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 60px;
}
.team-strip-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}
.team-strip-text p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.8; }
.team-strip-cta { flex-shrink: 0; }

/* ============================================
   SERVICES PAGE — FULL GRID
   ============================================ */
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.service-full-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-full-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.service-full-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}
.service-full-card:hover::after { transform: scaleX(1); }

.service-full-icon {
  font-size: 2.2rem;
  margin-bottom: 22px;
  display: block;
}
.service-full-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.service-full-card p {
  color: var(--text-muted);
  font-size: 0.91rem;
  line-height: 1.78;
  flex: 1;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.service-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-family: var(--font-display);
}

/* Process strip */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, var(--red), var(--cyan));
  z-index: 0;
}
.process-step { text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.process-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--red);
  margin: 0 auto 20px;
  transition: var(--transition);
}
.process-step:hover .process-num {
  border-color: var(--red);
  box-shadow: 0 0 30px var(--red-glow);
}
.process-step h4 { font-size: 1rem; margin-bottom: 8px; }
.process-step p  { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 70px;
  align-items: start;
}

.contact-info-side h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}
.contact-info-side > p {
  color: var(--text-muted);
  margin-bottom: 44px;
  font-size: 0.97rem;
  line-height: 1.8;
}

.contact-items { display: flex; flex-direction: column; gap: 26px; }
.contact-item  { display: flex; align-items: flex-start; gap: 18px; }

.c-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.c-icon.red  { background: rgba(227,30,36,0.1);  color: var(--red);  }
.c-icon.cyan { background: rgba(41,184,229,0.1); color: var(--cyan); }

.c-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 4px;
  display: block;
  font-family: var(--font-display);
}
.c-value { font-size: 0.95rem; color: var(--text); font-weight: 500; }
.c-value a { color: var(--text); transition: var(--transition); }
.c-value a:hover { color: var(--cyan); }

.contact-note {
  margin-top: 36px;
  padding: 20px 24px;
  background: rgba(41,184,229,0.06);
  border: 1px solid rgba(41,184,229,0.18);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.contact-note strong { color: var(--cyan); }

/* Contact Form */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 52px 44px;
}
.contact-form-wrap h3 { font-size: 1.6rem; margin-bottom: 8px; }
.contact-form-wrap > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 38px; line-height: 1.7; }

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

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 9px;
  font-family: var(--font-display);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
  background: var(--surface-3);
}
.form-control::placeholder { color: var(--text-subtle); }
textarea.form-control { resize: vertical; min-height: 145px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 85px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 52px;
  margin-bottom: 62px;
}
.footer-logo img { height: 58px; margin-bottom: 18px; }
.footer-brand > p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.78;
  max-width: 260px;
  margin-bottom: 26px;
}
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover { border-color: var(--red); color: var(--red); }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 22px;
  font-family: var(--font-display);
}
.footer-links { display: flex; flex-direction: column; gap: 13px; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--cyan); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.83rem; color: var(--text-muted); }
.footer-bottom a { color: var(--cyan); }
.footer-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
}
.footer-badge span { color: var(--red); }

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0,0,0,0.2);
  transition: var(--transition);
  z-index: 900;
  text-decoration: none;
  /* Pulsing ring to draw attention */
  animation: waPulse 2.8s ease-in-out infinite;
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: waRing 2.8s ease-in-out infinite;
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  flex-shrink: 0;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0,0,0,0.25);
  background: #20C05A;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.2); }
  50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.65), 0 2px 8px rgba(0,0,0,0.2); }
}
@keyframes waRing {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.25); opacity: 0;   }
  100% { transform: scale(1.25); opacity: 0;   }
}

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--surface-3);
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  padding: 14px 30px;
  font-size: 0.9rem;
  color: var(--text);
  box-shadow: var(--shadow);
  z-index: 9999;
  transition: transform 0.4s var(--ease);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(41,184,229,0.45); }

/* ============================================
   MATH CAPTCHA
   ============================================ */
.math-captcha-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  flex-wrap: wrap;
}
.math-captcha-question {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  user-select: none;
}
.math-captcha-question .math-op {
  color: var(--cyan);
  margin: 0 4px;
}
.math-captcha-question .math-eq {
  color: var(--text-muted);
  margin: 0 6px;
}
.math-captcha-input {
  width: 80px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border-hover);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: var(--transition);
  -moz-appearance: textfield;
}
.math-captcha-input::-webkit-outer-spin-button,
.math-captcha-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.math-captcha-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}
.math-captcha-input.error { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.math-captcha-input.success { border-color: #25D366; }
.math-captcha-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-subtle);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.math-captcha-badge svg { flex-shrink: 0; }

/* Honeypot — must be invisible to humans */
.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.form-security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 14px 18px;
  background: rgba(41,184,229,0.05);
  border: 1px solid rgba(41,184,229,0.15);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.form-security-note svg { flex-shrink: 0; margin-top: 1px; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.fade-in.visible { opacity: 1; }

/* Hero entrance animations */
.hero-content > * {
  animation: fadeInUp 0.85s var(--ease) forwards;
  opacity: 0;
}
.hero-badge       { animation-delay: 0.1s; }
.hero-title       { animation-delay: 0.25s; }
.hero-description { animation-delay: 0.42s; }
.hero-actions     { animation-delay: 0.58s; }
.hero-stats       { animation-delay: 0.74s; }

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatDiamond {
  0%, 100% { transform: rotate(45deg) translateY(0px); }
  50%       { transform: rotate(45deg) translateY(-22px); }
}
@keyframes rotateSlow {
  from { transform: rotate(45deg); }
  to   { transform: rotate(405deg); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps::before { display: none; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-intro { grid-template-columns: 1fr; gap: 52px; }
  .about-graphic { display: none; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 52px; }
  .mv-grid { grid-template-columns: 1fr; }
  .team-strip { flex-direction: column; gap: 28px; text-align: center; }
}

@media (max-width: 768px) {
  :root { --section-py: 70px; }

  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  .hamburger  { display: flex; }
  .mobile-menu { display: flex; transform: translateX(100%); }

  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .hero-stat  { min-width: 120px; }

  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }

  .values-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 34px 26px; }
  .mv-card { padding: 36px 28px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions .btn { width: auto; }
  .services-full-grid { grid-template-columns: 1fr; }
  .stat-item::after { display: none !important; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 34px 34px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.testimonial-card:hover::before { transform: scaleX(1); }

/* Big decorative quote mark */
.testimonial-quote-mark {
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 0.6;
  color: var(--red);
  opacity: 0.18;
  margin-bottom: 18px;
  display: block;
  user-select: none;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
}
.testimonial-stars span {
  color: #F4B400;
  font-size: 0.95rem;
}

.testimonial-body {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.85;
  flex: 1;
  font-style: italic;
  margin-bottom: 30px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
  color: #fff;
}
.avatar-red  { background: linear-gradient(135deg, var(--red),  var(--red-dark));  }
.avatar-cyan { background: linear-gradient(135deg, var(--cyan), var(--cyan-dark)); }
.avatar-mix  { background: linear-gradient(135deg, var(--red),  var(--cyan));      }

.testimonial-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}
.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}
.testimonial-company {
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 600;
}

/* Featured (wide) testimonial */
.testimonial-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(227,30,36,0.06) 0%, var(--surface) 60%);
  border-color: rgba(227,30,36,0.18);
}

@media (max-width: 1100px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-featured { grid-column: span 2; }
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-featured { grid-column: span 1; }
}
