/* =========================================
   NIRVED INTEGRATED SERVICES — styles.css
   ========================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Custom Properties (Theme Variables) ---- */
:root {
  /* Brand Colors */
  --brand-blue: #0D1A63;
  --brand-blue-mid: #1A2CA3;
  --brand-blue-light: #dbeafe;
  --brand-orange: #FF9966;
  /* Bold pastel orange — light theme */
  --brand-orange-light: #fff1e8;
  /* Matching soft bg tint */
  --brand-green: #16a34a;
  --brand-yellow: #eab308;

  /* Light Theme (DEFAULT) */
  --bg-primary: #fafafa;
  /* Warm off-white — easier on the eyes */
  --bg-secondary: #f4f6f9;
  /* Slightly warm light gray */
  --bg-tertiary: #eceef3;
  --bg-card: #ffffff;
  --bg-nav: rgba(250, 250, 250, 0.94);
  --bg-hero-start: #0D1A63;
  --bg-hero-end: #1A2CA3;
  --text-primary: #1a2035;
  /* Deep navy — easier to read than pure black */
  --text-secondary: #3d4f6b;
  /* Softer dark-blue slate */
  --text-muted: #7b8fa8;
  /* Visible muted, not too light */
  --text-on-brand: #ffffff;
  --border-color: #d8dde8;
  /* Slightly visible, softer border */
  --border-light: #eceef3;
  --shadow-sm: 0 1px 4px rgba(30, 58, 138, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 18px rgba(30, 58, 138, 0.09), 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 40px rgba(30, 58, 138, 0.12), 0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-brand: 0 8px 30px rgba(37, 99, 235, 0.22);
  --tab-bg: #eceef3;
  --tab-active-bg: #1e3a8a;
  --tab-active-text: #ffffff;
  --input-bg: #f4f6f9;
  --scrollbar-thumb: #b8c4d8;
  --badge-bg: #dde8fb;
  /* Slightly richer blue badge */
  --badge-text: #1e3a8a;
}

[data-theme="dark"] {
  --bg-primary: #0b1120;
  --bg-secondary: #101827;
  --bg-tertiary: #1a2438;
  --bg-card: #151f30;
  --bg-nav: rgba(11, 17, 32, 0.94);
  --bg-hero-start: #0b1120;
  --bg-hero-end: #101c34;
  --text-primary: #f0f6ff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-on-brand: #ffffff;
  --border-color: #1e2d45;
  --border-light: #1a2438;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-brand: 0 8px 30px rgba(37, 99, 235, 0.35);
  --tab-bg: #1a2438;
  --tab-active-bg: #2563eb;
  --tab-active-text: #ffffff;
  --input-bg: #1a2438;
  --brand-orange: #fb923c;
  /* Richer orange restored for dark theme */
  --scrollbar-thumb: #334155;
  --badge-bg: #1e2d45;
  --badge-text: #93c5fd;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overflow-x: hidden;
  /* Block horizontal scroll at HTML level */
  max-width: 100%;
  /* Prevent any child from stretching past viewport */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
  max-width: 100%;
  /* Belt-and-suspenders width clamp */
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 99px;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Sora', sans-serif;
  line-height: 1.2;
  color: var(--text-primary);
}

/* ========================================
   NAVBAR
   ======================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

#navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
  /* Allow flex child to shrink */
  overflow: hidden;
  /* Don't let long text blow out width */
}

.nav-logo-text span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-logo-text span:first-child {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-blue-mid);
}

[data-theme="dark"] .nav-logo-text span:first-child {
  color: #60a5fa;
}

.nav-logo-text span:last-child {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-blue-mid);
  background: var(--brand-blue-light);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.12);
}

.nav-link-robotics {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-orange);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1.5px solid var(--brand-orange);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.nav-link-robotics:hover {
  background: var(--brand-orange);
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Theme Toggle */
#theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

#theme-toggle:hover {
  border-color: var(--brand-blue-mid);
  color: var(--brand-blue-mid);
  background: var(--brand-blue-light);
}

[data-theme="dark"] #theme-toggle:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
}

/* Hamburger */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-secondary);
  transition: all 0.2s;
}

#hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

#hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
#mobile-menu {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;             /* Stretch to navbar's right edge (already 100vw) */
  box-sizing: border-box;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
  overflow-x: hidden;
}

#mobile-menu.open {
  display: flex;
}

.mobile-nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--brand-blue-mid);
  background: var(--brand-blue-light);
}

[data-theme="dark"] .mobile-nav-link:hover,
[data-theme="dark"] .mobile-nav-link.active {
  color: #60a5fa;
  background: rgba(37, 99, 235, 0.12);
}

.mobile-nav-link-robotics {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-orange);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--brand-orange);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s;
}

.mobile-nav-link-robotics:hover {
  background: var(--brand-orange);
  color: #fff;
}

/* ========================================
   HERO SECTION
   ======================================== */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-hero-start) 0%, var(--bg-hero-end) 50%, #1e3a5f 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(22, 163, 74, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: heroFloat 8s ease-in-out infinite;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: rgba(37, 99, 235, 0.18);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: rgba(249, 115, 22, 0.12);
  bottom: -50px;
  left: 10%;
  animation-delay: 3s;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: rgba(22, 163, 74, 0.10);
  top: 40%;
  right: 25%;
  animation-delay: 6s;
}

@keyframes heroFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffbd87;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #ffbd87, #eab308);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 2.5rem;
  max-width: 520px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #ff8935, #ff6b1c);
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.40);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.hero-certifications {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.cert-badge {
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

/* Hero right — image card */
.hero-image-wrap {
  position: relative;
  animation: fadeInRight 1s ease 0.2s both;
}

.hero-image-card {
  border-radius: 50%;
  overflow: hidden;
  padding: 3.5rem;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Don't crop the transparent logo */
  display: block;
}

.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: cardFloat 5s ease-in-out infinite;
}

.hero-float-card-1 {
  top: -20px;
  left: -30px;
  animation-delay: 0s;
}

.hero-float-card-2 {
  bottom: -36px;
  right: -44px;
  animation-delay: 2.5s;
}

.hero-float-card .icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff8935, #ff6b1c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.hero-float-card-2 .icon-wrap {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.hero-float-card .label {
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.hero-float-card .value {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

@keyframes cardFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-dot {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-dot::after {
  content: '';
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 99px;
  position: absolute;
  top: 6px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* ========================================
   STATS BAR
   ======================================== */
#stats {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-mid) 100%);
  padding: 3.5rem 1.5rem;
}

.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

/* ========================================
   SECTION COMMON
   ======================================== */
.section {
  padding: 5.5rem 1.5rem;
}

.section-alt {
  background: var(--bg-secondary);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: 99px;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-label.orange {
  background: var(--brand-orange-light);
  color: var(--brand-orange);
}

[data-theme="dark"] .section-label.orange {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.75;
}

.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-yellow));
  border-radius: 99px;
  margin: 1rem 0;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.about-experience-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg, var(--brand-orange), #ea580c);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.40);
  border: 5px solid var(--bg-primary);
  transition: border-color 0.35s;
}

.about-experience-badge .exp-num {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.about-experience-badge .exp-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-top: 0.2rem;
}

.about-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border: 8px solid var(--brand-blue-light);
  border-radius: 16px;
  z-index: -1;
  transition: border-color 0.35s;
}

[data-theme="dark"] .about-accent {
  border-color: rgba(37, 99, 235, 0.18);
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.about-point {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.25s;
}

.about-point:hover {
  border-color: var(--brand-blue-mid);
  box-shadow: var(--shadow-brand);
  transform: translateX(4px);
}

.about-point-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.about-point-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding: 0.5rem;
  background: var(--tab-bg);
  border-radius: 14px;
}

.service-tab {
  flex: 1;
  min-width: 120px;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.service-tab:hover {
  background: var(--bg-card);
  color: var(--brand-blue-mid);
}

.service-tab.active {
  background: var(--tab-active-bg);
  color: var(--tab-active-text);
  box-shadow: var(--shadow-md);
  font-weight: 600;
}

.service-panel {
  display: none;
  animation: fadePanel 0.4s ease;
}

.service-panel.active {
  display: block;
}

@keyframes fadePanel {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.service-panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.service-panel-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.service-panel-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.service-panel-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.25s;
  cursor: default;
}

.product-card:hover {
  border-color: var(--brand-blue-mid);
  box-shadow: var(--shadow-brand);
  transform: translateY(-2px);
}

.product-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-orange);
  flex-shrink: 0;
  margin-top: 6px;
}

.product-name {
  font-size: 0.845rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ========================================
   DEALERS SECTION
   ======================================== */
.dealers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.dealer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.dealer-card:hover {
  border-color: var(--brand-blue-mid);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.dealer-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-blue-light), #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-blue-mid);
}

[data-theme="dark"] .dealer-logo-wrap {
  background: rgba(37, 99, 235, 0.15);
}

.dealer-name {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dealer-country {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dealer-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: 99px;
}

/* ========================================
   CLIENTS SECTION
   ======================================== */
.clients-marquee-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  margin-top: 2.5rem;
  padding-top: 0.75rem;
  /* Space so hover raise effect isn't clipped */
  padding-bottom: 0.5rem;
}

.clients-marquee {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.clients-marquee:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  to {
    transform: translateX(-50%);
  }
}

.client-card {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.25s;
}

.client-card:hover {
  border-color: var(--brand-orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.15);
}

.client-name {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.client-location {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: all 0.25s;
}

.contact-info-item:hover {
  border-color: var(--brand-blue-mid);
  box-shadow: var(--shadow-brand);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.contact-icon.orange {
  background: linear-gradient(135deg, var(--brand-orange), #ea580c);
}

.contact-icon.green {
  background: linear-gradient(135deg, var(--brand-green), #15803d);
}

.contact-label {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-value a {
  color: var(--brand-blue-mid);
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

[data-theme="dark"] .contact-value a {
  color: #60a5fa;
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.35s;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-blue-mid);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

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

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-mid));
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-brand);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(37, 99, 235, 0.35);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--brand-green);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--bg-hero-start);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.footer-brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.50);
  max-width: 280px;
}

.footer-col-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.50);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fb923c;
}

.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.50);
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: #fb923c;
}

.footer-bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #fb923c;
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: var(--brand-blue);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}

#toast.success {
  background: var(--brand-green);
}

#toast.error {
  background: #dc2626;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* AOS overrides */
[data-aos] {
  transition-duration: 0.8s !important;
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-blue-mid);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 900;
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#scroll-top:hover {
  background: var(--brand-blue);
  transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image-wrap {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-wrap {
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

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

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

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .nav-links {
    display: none;
  }

  #hamburger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding: 5rem 1rem 3rem;
  }

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

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

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

  .stat-item::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  /* 2 per row on mobile */
  .dealer-card {
    padding: 1.25rem 1rem;
  }

  /* compact padding */
  .form-row {
    grid-template-columns: 1fr;
  }

  .services-tabs {
    gap: 0.35rem;
  }

  .service-tab {
    min-width: auto;
    font-size: 0.75rem;
    padding: 0.5rem 0.7rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .section {
    padding: 4rem 1rem;
  }
}

@media (max-width: 480px) {
  .nav-logo-text span:first-child {
    font-size: 0.82rem;
  }

  .nav-container {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 1.7rem;
  }
}