/**
 * @file styles.css
 * @description Complete design system and styles for KAP Technosoft website rebuild
 * @module frontend/styles
 */

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

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand colors */
  --kap-orange: #EB4C00;
  --kap-orange-light: #FF6622;
  --kap-orange-dark: #C43F00;
  --services-orange: #FF7B25;
  --services-orange-light: #FF9248;
  --kap-navy: #1B2A4A;
  --kap-navy-light: #243556;
  --kap-navy-dark: #111C33;
  --kap-blue: #0A7CFF;
  --kap-blue-light: #3D9AFF;

  /* Neutrals */
  --kap-dark: #2D2D2D;
  --kap-grey-900: #333333;
  --kap-grey-700: #555555;
  --kap-grey-500: #888888;
  --kap-grey-300: #CCCCCC;
  --kap-grey-100: #F5F5F7;
  --kap-grey-50: #FAFAFA;
  --kap-white: #FFFFFF;

  /* Gradients */
  --gradient-orange: linear-gradient(135deg, #EB4C00, #FF6622);
  --gradient-navy: linear-gradient(135deg, #1B2A4A, #243556);
  --gradient-hero: linear-gradient(135deg, #1B2A4A 0%, #0f1d36 50%, #111C33 100%);
  --gradient-cta: linear-gradient(135deg, #EB4C00, #C43F00);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Sizing */
  --container-max: 1280px;
  --container-wide: 1440px;
  --nav-height: 80px;
  --nav-height-scrolled: 64px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.16);
  --shadow-glow-orange: 0 0 30px rgba(235,76,0,0.3);
  --shadow-glow-blue: 0 0 30px rgba(10,124,255,0.2);

  /* Transitions */
  --transition-fast: 0.2s linear;
  --transition-base: 0.35s linear;
  --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 0.5s linear;
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--kap-dark);
  background-color: var(--kap-white);
  overflow-x: hidden;
}

/* Prevent horizontal scrollbar from reveal animations */
section,
.mission-vision,
.cta-banner {
  overflow-x: clip;
}

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

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: none;
}

input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--wide {
  max-width: var(--container-wide);
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--kap-orange);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-sm);
}

.section-tag::before {
  content: '//';
  font-weight: 800;
}

.section-tag--light {
  color: var(--kap-orange-light);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--kap-navy);
  margin-bottom: var(--space-md);
}

.section-title--light {
  color: var(--kap-white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--kap-grey-700);
  max-width: 600px;
  line-height: 1.8;
}

.section-subtitle--light {
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Diagonal slider opening from center */
.btn::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 160%;
  height: calc(100% + 4px);
  background: #2D3139;
  transform: translateX(-50%) skewX(-25deg) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.btn:hover::before {
  transform: translateX(-50%) skewX(-25deg) scaleX(1);
}

.btn--primary {
  background: var(--gradient-orange);
  color: var(--kap-white);
  border: none;
  box-shadow: 0 4px 15px rgba(235,76,0,0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  color: var(--kap-white);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--kap-white);
  border: 2px solid var(--kap-white);
}

.btn--outline:hover {
  border-color: #2D3139;
  color: var(--kap-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.btn--white {
  background: #FFFFFF;
  color: var(--kap-orange);
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn--white:hover {
  color: var(--kap-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.btn--outline-dark {
  background: transparent;
  color: var(--kap-navy);
  border: 2px solid var(--kap-navy);
}

.btn--outline-dark:hover {
  border-color: #2D3139;
  color: var(--kap-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn--ghost {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: var(--kap-white);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn--ghost:hover {
  border-color: #2D3139;
  color: var(--kap-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Pulse animation for primary CTA */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 15px rgba(235,76,0,0.35); }
  50% { box-shadow: 0 4px 30px rgba(235,76,0,0.55); }
}

.btn--pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

.btn--pulse:hover {
  animation: none;
}

/* Arrow animation */
.btn .btn-arrow {
  transition: transform var(--transition-base);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  background: transparent;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.navbar__logo {
  display: flex;
  align-items: center;
  height: 56px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.navbar__logo:hover {
  transform: scale(1.02);
}

.navbar__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.footer__logo {
  height: 54px;
  width: auto;
  margin-bottom: var(--space-md);
  object-fit: contain;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar__link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--kap-orange);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--kap-white);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__cta {
  margin-left: var(--space-md);
}

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

.navbar__hamburger span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--kap-white);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile menu */
.navbar__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--kap-navy-dark);
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
  transition: right var(--transition-slow);
  z-index: 999;
  flex-direction: column;
  gap: var(--space-lg);
}

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

.navbar__mobile-menu .navbar__link {
  font-size: 1.2rem;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar__mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.navbar__mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__canvas canvas {
  width: 100%;
  height: 100%;
}

/* Gradient overlay mesh */
.hero__gradient-mesh {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.4;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(235,76,0,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(10,124,255,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 60% 80%, rgba(235,76,0,0.08) 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-3xl) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(235,76,0,0.15);
  border: 1px solid rgba(235,76,0,0.3);
  color: var(--kap-orange-light);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--kap-orange);
  border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--kap-white);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.hero__title-highlight {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__typewriter {
  display: inline;
  border-right: 3px solid var(--kap-orange);
  animation: blink-caret 0.8s step-end infinite;
}

@keyframes blink-caret {
  0%, 100% { border-color: var(--kap-orange); }
  50% { border-color: transparent; }
}

.hero__description {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  max-width: 680px;
  text-align: center;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Scrolldown indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.hero__scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--kap-orange);
  border-radius: 4px;
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--gradient-orange);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.cta-banner__text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--kap-white);
  line-height: 1.3;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  padding: var(--space-2xl) 0;
  background: var(--kap-white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__image-wrapper {
  position: relative;
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.about__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about__image:hover img {
  transform: scale(1.03);
}

/* Decorative border accent */
.about__image::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 80px;
  height: 80px;
  border-top: 4px solid var(--kap-orange);
  border-left: 4px solid var(--kap-orange);
  border-radius: var(--radius-md) 0 0 0;
  z-index: 2;
}

.about__image::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 80px;
  height: 80px;
  border-bottom: 4px solid var(--kap-orange);
  border-right: 4px solid var(--kap-orange);
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 2;
}

/* Floating experience badge */
.about__experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--kap-navy);
  color: var(--kap-white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 3;
  text-align: center;
}

.about__experience-badge .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--kap-orange);
  line-height: 1;
  display: block;
}

.about__experience-badge .label {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about__content {
  padding-left: var(--space-lg);
}

.about__text {
  color: var(--kap-grey-700);
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}

.about__certifications {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.about__cert-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--kap-white);
  border: 1px solid rgba(27, 42, 74, 0.08);
  border-left: 3px solid var(--kap-orange);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(27, 42, 74, 0.05);
  transition: all var(--transition-fast);
}

.about__cert-badge:hover {
  border-color: rgba(235, 76, 0, 0.25);
  border-left-color: var(--kap-orange);
  background: #FFFBF9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(235, 76, 0, 0.1);
}

.about__cert-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(235, 76, 0, 0.08);
  color: var(--kap-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about__cert-badge-info {
  display: flex;
  flex-direction: column;
}

.about__cert-badge-code {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--kap-navy);
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.about__cert-badge-desc {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--kap-grey-500);
  margin-top: 2px;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.about__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  color: var(--kap-navy);
}

.about__feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(235,76,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kap-orange);
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* ============================================================
   SERVICES — MANAGED SERVICES
   ============================================================ */
.services {
  padding: var(--space-2xl) 0;
  background: var(--kap-grey-100);
  position: relative;
  overflow: hidden;
}

.services .container {
  max-width: var(--container-wide);
}

.services__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.services .section-tag {
  justify-content: center;
  color: var(--services-orange);
}

.services__carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.services__track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
  will-change: transform;
  user-select: none;
  cursor: grab;
}

.services__track:active {
  cursor: grabbing;
}

.services__slide {
  flex: 0 0 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding: 4px;
}

.services__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-xl);
}

.services__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #009688;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.services__dot:first-child {
  background: var(--services-orange);
}

.services__dot.active {
  transform: scale(1.3);
}

.service-card {
  background: var(--kap-white);
  border-radius: var(--radius-lg);
  padding: 44px 32px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: background-color 0.35s linear, transform 0.35s linear, box-shadow 0.35s linear, border-color 0.35s linear;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  cursor: default;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--services-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s linear;
}

.service-card:hover {
  background: #2D3139;
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  border-color: transparent;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--services-orange);
  margin-bottom: 24px;
  transition: transform 0.35s linear, color 0.35s linear;
}

.service-card__icon svg {
  width: 76px;
  height: 76px;
}

.service-card:hover .service-card__icon {
  color: var(--services-orange);
  transform: translateY(-2px);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--kap-navy);
  margin-bottom: 16px;
  line-height: 1.3;
  transition: color 0.35s linear;
}

.service-card:hover .service-card__title {
  color: var(--kap-white);
}

.service-card__description {
  font-size: 0.96rem;
  color: var(--kap-grey-700);
  line-height: 1.75;
  margin: 0;
  transition: color 0.35s linear;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--services-orange);
  text-decoration: none;
  transition: all 0.25s ease;
}

.service-card:hover .service-card__link {
  color: #FFA366;
  transform: translateX(4px);
}

.service-card:hover .service-card__description {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   ENTERPRISE SOLUTIONS
   ============================================================ */
.enterprise {
  padding: var(--space-4xl) 0;
  background: var(--kap-white);
}

.enterprise__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.enterprise__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.enterprise__image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.enterprise__image:hover img {
  transform: scale(1.03);
}

/* Floating icon decorations */
.enterprise__float-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.enterprise__float-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(10,124,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kap-blue);
  font-size: 1.2rem;
  animation: float-icon 4s ease-in-out infinite;
}

.enterprise__float-icon:nth-child(1) { top: 15%; right: 5%; animation-delay: 0s; }
.enterprise__float-icon:nth-child(2) { top: 40%; right: -5%; animation-delay: 1s; }
.enterprise__float-icon:nth-child(3) { bottom: 20%; right: 10%; animation-delay: 2s; }

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

/* ============================================================
   WHY CHOOSE KTPL
   ============================================================ */
.why-choose {
  padding: var(--space-2xl) 0;
  background: #F8FAFC;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(235, 76, 0, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(10, 124, 255, 0.04) 0%, transparent 40%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid #EDF2F7;
  border-bottom: 1px solid #EDF2F7;
}

.why-choose::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2394a3b8' fill-opacity='0.08'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.why-choose__header {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

.why-choose__header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(235, 76, 0, 0.08);
  color: var(--kap-orange);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.why-choose__header .section-subtitle {
  text-align: center;
  max-width: 680px;
  margin: 12px auto 0;
  color: #475569;
}

.why-choose__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-xl);
}

.why-card {
  background: var(--kap-white);
  border-radius: var(--radius-lg);
  padding: 44px 32px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: background-color 0.35s linear, transform 0.35s linear, box-shadow 0.35s linear, border-color 0.35s linear;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  cursor: default;
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--services-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s linear;
}

.why-card:hover {
  background: #2D3139;
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  border-color: transparent;
}

.why-card:hover::after {
  transform: scaleX(1);
}

.why-card__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--services-orange);
  margin-bottom: 24px;
  transition: transform 0.35s linear, color 0.35s linear;
}

.why-card__icon svg {
  width: 76px;
  height: 76px;
}

.why-card:hover .why-card__icon {
  color: var(--services-orange);
  transform: translateY(-2px);
}

.why-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--kap-navy);
  margin-bottom: 16px;
  line-height: 1.3;
  transition: color 0.35s linear;
}

.why-card:hover .why-card__title {
  color: var(--kap-white);
}

.why-card__text {
  font-size: 0.96rem;
  color: var(--kap-grey-700);
  line-height: 1.75;
  transition: color 0.35s linear;
}

.why-card:hover .why-card__text {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   MISSION & VISION
   ============================================================ */
.mission-vision {
  position: relative;
  background: #FFFFFF;
}

.mv-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: auto;
  border-bottom: 1px solid #F1F5F9;
}

.mv-panel--mission {
  background: #FFFFFF;
}

.mv-panel--vision {
  background: #F8FAFC;
}

.mv-panel__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-2xl);
  position: relative;
}

.mv-visual-card {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.mv-visual-card--mission {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 50%, #FED7AA 100%);
}

.mv-visual-card--vision {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 50%, #BAE6FD 100%);
}

.mv-visual__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform var(--transition-slow);
}

.mv-visual-card:hover .mv-visual__img {
  transform: scale(1.03);
}

.mv-visual__bg-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 76, 0, 0.2) 0%, transparent 70%);
  filter: blur(30px);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

.mv-visual__bg-glow--vision {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, transparent 70%);
}

@keyframes pulseGlow {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 1; }
}

.mv-visual__icon-wrap {
  position: relative;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mv-visual-card:hover .mv-visual__icon-wrap {
  transform: scale(1.08) rotate(4deg);
}

.mv-floating-tag {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(235, 76, 0, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  transition: transform 0.3s ease;
}

.mv-floating-tag--vision {
  border-color: rgba(2, 132, 199, 0.2);
}

.mv-floating-tag--1 {
  top: 15%;
  right: 8%;
}

.mv-floating-tag--2 {
  bottom: 15%;
  left: 8%;
}

.mv-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kap-orange);
  box-shadow: 0 0 8px var(--kap-orange);
}

.mv-tag-dot--vision {
  background: #0284C7;
  box-shadow: 0 0 8px #0284C7;
}

.mv-panel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-3xl);
}

.mv-panel__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--kap-orange);
  background: rgba(235, 76, 0, 0.08);
  padding: 6px 14px;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: var(--space-md);
}

.mv-panel__label--vision {
  color: #0284C7;
  background: rgba(2, 132, 199, 0.08);
}

.mv-panel__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #0F172A;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.mv-panel__text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 0;
}

.mv-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px var(--space-lg);
}

.mv-pillar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1E293B;
  background: rgba(0, 0, 0, 0.03);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.mv-pillar__check {
  color: var(--kap-orange);
  font-weight: 800;
}

.mv-pillar__check--vision {
  color: #0284C7;
  font-weight: 800;
}

/* Reverse layout for vision */
.mv-panel--reverse {
  direction: rtl;
}

.mv-panel--reverse > * {
  direction: ltr;
}

/* ============================================================
   FEATURES — ENGINEERED FOR ENTERPRISE IMPACT
   ============================================================ */
.features {
  padding: var(--space-xl) 0;
  background: var(--kap-white);
  position: relative;
  overflow: hidden;
  border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
}

.features .container {
  max-width: var(--container-wide);
}

.features__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.features__header .section-title {
  margin-bottom: 0;
}

.features__header .section-tag {
  justify-content: center;
  color: var(--services-orange);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.feature-item {
  background: var(--kap-white);
  border-radius: var(--radius-lg);
  padding: 44px 32px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  transition: background-color 0.35s linear, transform 0.35s linear, box-shadow 0.35s linear, border-color 0.35s linear;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  cursor: default;
}

.feature-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--services-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s linear;
}

.feature-item:hover {
  background: #2D3139;
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  border-color: transparent;
}

.feature-item:hover::after {
  transform: scaleX(1);
}

.feature-item__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--services-orange);
  margin-bottom: 24px;
  transition: transform 0.35s linear, color 0.35s linear;
}

.feature-item__icon svg {
  width: 76px;
  height: 76px;
}

.feature-item:hover .feature-item__icon {
  color: var(--services-orange);
  transform: translateY(-2px);
}

.feature-item__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--kap-navy);
  margin-bottom: 16px;
  line-height: 1.3;
  transition: color 0.35s linear;
}

.feature-item:hover .feature-item__title {
  color: var(--kap-white);
}

.feature-item__text {
  font-size: 0.96rem;
  color: var(--kap-grey-700);
  line-height: 1.75;
  margin: 0;
  transition: color 0.35s linear;
}

.feature-item:hover .feature-item__text {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: var(--space-4xl) 0;
  background: var(--kap-grey-100);
}

.testimonials__header {
  margin-bottom: var(--space-3xl);
}

.testimonials__layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  align-items: center;
}

.testimonials__carousel {
  position: relative;
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial-card {
  flex: 0 0 50%;
  padding: 0 var(--space-sm);
  display: flex;
}

.testimonials__carousel {
  min-width: 0;
}

.testimonial-card__inner {
  background: var(--kap-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card__inner:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-card__quote-icon {
  color: var(--kap-orange);
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: var(--space-sm);
  opacity: 0.3;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--kap-grey-700);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  font-style: italic;
  flex-grow: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: auto;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kap-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: transform var(--transition-slow);
}

.testimonial-card__inner:hover .testimonial-card__avatar img {
  transform: scale(1.08);
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--kap-navy);
  font-size: 1rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--kap-grey-500);
}

.testimonials__nav {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.testimonials__nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--kap-grey-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: var(--kap-navy);
  font-size: 1.2rem;
}

.testimonials__nav-btn:hover {
  background: var(--kap-orange);
  border-color: var(--kap-orange);
  color: var(--kap-white);
}

/* ============================================================
   CTA SECTION — Empowering Enterprises
   ============================================================ */
.cta-section {
  padding: var(--space-4xl) 0;
  background: var(--kap-navy);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,124,255,0.1), transparent, rgba(235,76,0,0.1));
}

.cta-section__content {
  position: relative;
  z-index: 1;
}

.cta-section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--kap-white);
  margin-bottom: var(--space-sm);
}

.cta-section__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-xl);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: var(--space-4xl) 0;
  background: var(--kap-grey-50);
}

.faq__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.faq__info-image {
  margin-top: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.faq__info-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--kap-orange);
}

.faq__info-image p {
  font-size: 0.95rem;
  color: var(--kap-grey-700);
}

.faq__accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--kap-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.active {
  box-shadow: var(--shadow-md);
  border-color: rgba(235,76,0,0.2);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--kap-navy);
  transition: color var(--transition-fast);
  width: 100%;
  text-align: left;
  gap: var(--space-sm);
}

.faq-item.active .faq-item__question {
  color: var(--kap-orange);
}

.faq-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--kap-grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
  font-size: 1rem;
  color: var(--kap-navy);
}

.faq-item.active .faq-item__icon {
  background: var(--kap-orange);
  color: var(--kap-white);
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 var(--space-lg);
}

.faq-item.active .faq-item__answer {
  max-height: 300px;
  padding: 0 var(--space-lg) var(--space-lg);
}

.faq-item__answer p {
  font-size: 0.95rem;
  color: var(--kap-grey-700);
  line-height: 1.8;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: var(--space-4xl) 0;
  background: var(--kap-white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
}

.contact__info-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.contact__info-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact__info-icon {
  width: 52px;
  height: 52px;
  background: rgba(235,76,0,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kap-orange);
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(235,76,0,0.15);
}

.contact__info-label {
  font-size: 0.8rem;
  color: var(--kap-grey-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact__info-value {
  font-weight: 600;
  color: var(--kap-navy);
  font-size: 1rem;
}

.contact__info-value a {
  color: var(--kap-navy);
  transition: color var(--transition-fast);
}

.contact__info-value a:hover {
  color: var(--kap-orange);
}

/* Contact Form */
.contact__form-wrapper {
  background: var(--kap-grey-50);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid rgba(0,0,0,0.04);
}

.contact__form-header {
  margin-bottom: var(--space-lg);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  position: relative;
}

.form-group__input,
.form-group__textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--kap-white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--kap-dark);
  transition: all var(--transition-base);
}

.form-group__input::placeholder,
.form-group__textarea::placeholder {
  color: var(--kap-grey-500);
}

.form-group__input:focus,
.form-group__textarea:focus {
  border-color: var(--kap-orange);
  box-shadow: 0 0 0 4px rgba(235,76,0,0.08);
}

.form-group__textarea {
  min-height: 140px;
  resize: vertical;
}

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

.form-group.error .form-group__input,
.form-group.error .form-group__textarea {
  border-color: #e53e3e;
}

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

.contact__form-submit {
  align-self: flex-start;
  min-width: 200px;
}

/* Submit Button Spinner */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: btnSpinnerAnim 0.65s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes btnSpinnerAnim {
  to {
    transform: rotate(360deg);
  }
}

/* Inline Notification Banners (Dark Navy & Orange Theme) */
.contact__form-banner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: var(--space-md);
  animation: fadeIn 0.35s ease-out;
  width: 100%;
}

.contact__form-banner--success {
  background: var(--kap-navy-dark, #0b1528);
  border-left: 4px solid var(--kap-orange, #EB4C00);
  border-top: 1px solid rgba(235, 76, 0, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #f7fafc;
  box-shadow: 0 8px 24px rgba(11, 21, 40, 0.28);
}

.contact__form-banner--success .contact__form-banner-icon {
  color: var(--kap-orange, #EB4C00);
  flex-shrink: 0;
}

.contact__form-banner--error {
  background: var(--kap-navy-dark, #0b1528);
  border-left: 4px solid #e53e3e;
  border-top: 1px solid rgba(229, 62, 62, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #f7fafc;
  box-shadow: 0 8px 24px rgba(11, 21, 40, 0.28);
}

.contact__form-banner--error .contact__form-banner-icon {
  color: #fc8181;
  flex-shrink: 0;
}

.contact__form-banner--error a {
  color: var(--kap-orange, #EB4C00);
  text-decoration: underline;
  font-weight: 600;
}

.contact__form-banner--error a:hover {
  color: #ff6b26;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--kap-navy-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__logo {
  height: 45px;
  width: auto;
  margin-bottom: var(--space-md);
}

.footer__about-text {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.footer__socials {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  font-size: 1rem;
}

.footer__social-link:hover {
  background: var(--kap-orange);
  color: var(--kap-white);
  transform: translateY(-3px);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--kap-white);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
  padding: 4px 0;
}

.footer__link:hover {
  color: var(--kap-orange);
  transform: translateX(4px);
}

.footer__contact-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.footer__contact-icon {
  color: var(--kap-orange);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer__bottom {
  text-align: center;
  padding: var(--space-md) 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--kap-orange);
  color: var(--kap-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
  pointer-events: none;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-orange);
}

/* ============================================================
   ANIMATED COUNTERS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(235, 76, 0, 0.25);
  box-shadow: 0 10px 25px rgba(235, 76, 0, 0.08);
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--kap-orange);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 0.88rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--kap-navy-dark);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--kap-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   RESPONSIVE — TABLETS
   ============================================================ */
@media (max-width: 1200px) {
  .services__slide {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 992px) {
  .about__grid,
  .enterprise__grid,
  .faq__layout,
  .contact__grid,
  .testimonials__layout {
    grid-template-columns: 1fr;
  }

  .about__content {
    padding-left: 0;
  }

  .about__experience-badge {
    bottom: 20px;
    right: 20px;
  }

  .mv-panel {
    grid-template-columns: 1fr;
  }

  .mv-panel__visual {
    padding: var(--space-2xl) var(--space-md);
  }

  .mv-panel--reverse {
    direction: ltr;
  }

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

  .testimonial-card {
    flex: 0 0 100%;
  }

  .navbar__links {
    display: none;
  }

  .navbar__cta {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__mobile-menu {
    display: flex;
  }

  .navbar__mobile-overlay {
    display: block;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --space-3xl: 4rem;
    --space-4xl: 5rem;
  }

  .hero__title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .hero__scroll-indicator {
    display: none;
  }

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

  .why-choose__grid {
    grid-template-columns: 1fr;
  }

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

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

  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 576px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

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

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .stat-item__number {
    font-size: 2rem;
  }

  .mv-panel__content {
    padding: var(--space-xl);
  }

  .about__certifications {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ============================================================
   SUBPAGE STYLES (Shared across capability pages)
   ============================================================ */
.subpage-hero {
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  position: relative;
  overflow: hidden;
  color: var(--kap-white);
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(235, 76, 0, 0.18) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(2, 132, 199, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

.subpage-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-md);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--kap-orange);
}

.breadcrumb__sep {
  opacity: 0.4;
}

.breadcrumb__current {
  color: var(--kap-orange-light);
  font-weight: 600;
}

.subpage-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: var(--space-md);
  letter-spacing: -0.5px;
}

.subpage-hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-xl);
  max-width: 780px;
}

.subpage-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--space-xl);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.badge-tag--orange {
  border-color: rgba(235, 76, 0, 0.4);
  background: rgba(235, 76, 0, 0.18);
  color: #FF9B54;
}

.subpage-section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.subpage-section--light {
  background: #F8FAFC;
}

.subpage-section__header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
}

.subpage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.arch-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.stack-layer {
  background: var(--kap-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 26px 32px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.stack-layer::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--services-orange);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.stack-layer:hover {
  transform: translateX(6px);
  border-color: rgba(235, 76, 0, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.stack-layer:hover::before {
  transform: scaleY(1);
}

.stack-layer__header {
  display: flex;
  flex-direction: column;
}

.stack-layer__num {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--kap-orange);
  margin-bottom: 4px;
}

.stack-layer__title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--kap-navy);
}

.stack-layer__desc {
  font-size: 0.96rem;
  line-height: 1.7;
  color: #475569;
}

.compliance-strip {
  background: #0F172A;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: var(--space-3xl);
}

.compliance-strip::after {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 76, 0, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.compliance-strip__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.compliance-strip__text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.compliance-strip__standards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.std-chip {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFA366;
}

@media (max-width: 768px) {
  .stack-layer {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .compliance-strip {
    grid-template-columns: 1fr;
  }
  .legal-card {
    padding: var(--space-lg) var(--space-md);
  }
}

/* ============================================================
   LEGAL & POLICY PAGES
   ============================================================ */
.legal-container {
  max-width: 1040px;
  margin: 0 auto;
}

.legal-card {
  background: var(--kap-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  margin-bottom: var(--space-xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: all 0.3s ease;
}

.legal-card:hover {
  border-color: rgba(235, 76, 0, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.legal-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid #F1F5F9;
}

.legal-card__num {
  width: 36px;
  height: 36px;
  background: rgba(235, 76, 0, 0.1);
  color: var(--kap-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.legal-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--kap-navy);
  margin: 0;
}

.legal-card__body {
  color: var(--kap-grey-700);
  font-size: 1rem;
  line-height: 1.8;
}

.legal-card__body p {
  margin-bottom: var(--space-sm);
}

.legal-card__body p:last-child {
  margin-bottom: 0;
}

.legal-card__list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-card__list-item {
  position: relative;
  padding-left: 28px;
  color: var(--kap-grey-700);
  line-height: 1.7;
}

.legal-card__list-item::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--kap-orange);
  border-radius: 50%;
}

.legal-highlight-box {
  background: #FFF8F5;
  border-left: 4px solid var(--kap-orange);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-md) 0;
  color: var(--kap-navy);
  font-weight: 500;
}

.legal-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

