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

:root {
  /* Brand Color Palette */
  --primary-color: #1a4b8c;       /* Deep Royal Blue (Emblem & 'KRISH') */
  --primary-hover: #143c72;
  --primary-dark: #0f274a;
  --primary-subtle: #ebf3fa;
  
  --secondary-color: #c83e93;     /* Vibrant Orchid Magenta ('KALP') */
  --secondary-hover: #b02f80;
  --secondary-subtle: #fdf2f9;
  --brand-gradient: linear-gradient(135deg, #1a4b8c 0%, #7e4492 50%, #c83e93 100%);
  --brand-gradient-subtle: linear-gradient(135deg, rgba(26, 75, 140, 0.04) 0%, rgba(200, 62, 147, 0.04) 100%);
  
  --accent-color: #2b79c2;        /* Ocean Blue Wave Accent */
  --accent-subtle: #eff6ff;
  
  --dark-color: #0b1a30;          /* Deep Corporate Navy Base */
  --dark-surface: #112542;
  --dark-surface-border: #1d3963;
  --dark-text-muted: #94a3b8;
  
  --light-color: #f8fafc;
  --surface-color: #ffffff;
  --surface-muted: #f1f5f9;
  
  --text-color: #1e293b;          /* Main readable slate */
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --success: #0d9488;
  --error: #e11d48;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(11, 26, 48, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(11, 26, 48, 0.06);
  --shadow-lg: 0 14px 34px -4px rgba(11, 26, 48, 0.1);
  --shadow-glow: 0 0 25px rgba(26, 75, 140, 0.12);
  
  /* Typography */
  --font-heading: 'Times New Roman', Times, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* Lenis Smooth Scrolling Optimization */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--surface-color);
  line-height: 1.65;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Headings and Titles in Times New Roman */
h1, h2, h3, h4, h5, h6,
.video-banner-title,
.page-title,
.section-title,
.card-title,
.hero-title,
.hero-company-name,
.box-highlight-title,
.product-name,
.statement-title,
.director-name,
.director-role {
  font-family: var(--font-heading);
  color: var(--dark-color);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
  overflow-wrap: break-word;
}

a:hover {
  color: var(--secondary-color);
}

img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Spacing */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-sm {
  padding: 3.5rem 0;
}

.section-bg-light {
  background-color: var(--light-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-bg-dark {
  background-color: var(--dark-color);
  color: #ffffff;
}

.section-bg-dark h1,
.section-bg-dark h2,
.section-bg-dark h3,
.section-bg-dark h4 {
  color: #ffffff;
}

.section-bg-dark p {
  color: var(--dark-text-muted);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  background-color: var(--primary-subtle);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid rgba(26, 75, 140, 0.12);
  max-width: 100%;
}

.badge-secondary {
  color: var(--secondary-color);
  background-color: var(--secondary-subtle);
  border-color: rgba(200, 62, 147, 0.15);
}

.badge-dark {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(11, 26, 48, 0.08), 0 1px 3px rgba(11, 26, 48, 0.04);
  transition: box-shadow var(--transition-base), background-color var(--transition-base);
  width: 100%;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(11, 26, 48, 0.12), 0 2px 6px rgba(11, 26, 48, 0.06);
  background-color: #ffffff;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.brand-logo img {
  height: 48px;
  max-height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

/* Dropdown Navigation Item */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item.has-dropdown .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.dropdown-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-base);
  opacity: 0.75;
  flex-shrink: 0;
}

.nav-item.has-dropdown:hover .dropdown-chevron,
.nav-item.has-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--primary-color);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 270px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px -8px rgba(11, 26, 48, 0.16), 0 2px 6px rgba(11, 26, 48, 0.04);
  padding: 0.45rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  z-index: 1100;
}

/* Invisible bridge so mouse hover doesn't break when moving cursor */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown.is-open .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark-color);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--primary-subtle);
  color: var(--primary-color);
  transform: translateX(3px);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

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

/* Mobile CTA button container */
.mobile-cta {
  display: none;
}

/* Hamburger Menu Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--primary-color);
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark-color);
  margin: 3px 0;
  transition: transform var(--transition-base), opacity var(--transition-base), background-color var(--transition-base);
  border-radius: 2px;
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Backdrop for Mobile Navigation */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(11, 26, 48, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.nav-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  border: 1px solid transparent;
  white-space: nowrap;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(26, 75, 140, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 75, 140, 0.35);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(200, 62, 147, 0.25);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 62, 147, 0.35);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-subtle);
  color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  min-height: 38px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
  min-height: 50px;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* ==========================================================================
   VIDEO BANNER & CAROUSEL
   ========================================================================== */
.video-banner {
  position: relative;
  width: 100%;
  height: 520px;
  max-height: 75vh;
  overflow: hidden;
  background: var(--dark-color);
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}

.video-banner.is-dragging {
  cursor: grabbing;
}

.video-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.video-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.video-banner-media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/* Light, vibrant overlay to avoid dark look */
.video-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 26, 48, 0.22) 0%, rgba(11, 26, 48, 0.38) 100%);
}

.video-banner-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.video-banner-title {
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.6rem 0;
  line-height: 1.25;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.video-banner-tagline {
  color: rgba(255, 255, 255, 0.90);
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.9vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.09em;
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.video-banner-btn {
  font-size: 0.9rem;
  padding: 0.6rem 1.6rem;
  min-height: 40px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px) scale(0.95);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), background-color var(--transition-fast), box-shadow var(--transition-fast);
  will-change: transform, opacity;
}

/* Staggered entrance animation when active */
.video-slide.active .video-banner-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.video-slide.active .video-banner-tagline {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.video-slide.active .video-banner-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.55s;
}

/* Subtle Minimalist Dots */
.video-carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 10;
}

.carousel-dot {
  width: 24px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: #ffffff;
  width: 38px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

/* Minimalist Nav Arrows */
.video-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(11, 26, 48, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.video-carousel-arrow:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.08);
}

.video-carousel-arrow.prev {
  left: 18px;
}

.video-carousel-arrow.next {
  right: 18px;
}

.video-carousel-arrow svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .video-banner {
    height: 460px;
  }
  .video-content-glass {
    padding: 1.25rem 1.4rem;
  }
  .video-carousel-arrow {
    display: none;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 5rem 0 6rem 0;
  background: radial-gradient(circle at top right, rgba(26, 75, 140, 0.05) 0%, transparent 60%),
              radial-gradient(circle at bottom left, rgba(200, 62, 147, 0.04) 0%, transparent 50%),
              var(--surface-color);
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-canvas-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.hero-title-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Rotating headline */
.text-rotator {
  display: inline-block;
  position: relative;
  min-width: 240px;
  text-align: left;
  vertical-align: bottom;
}

.text-rotator-word {
  display: inline-block;
  opacity: 0;
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.text-rotator-word.active {
  opacity: 1;
  position: relative;
  transform: translateY(0);
}

.hero-description {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-tagline-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.tagline-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
}

.tagline-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  flex-shrink: 0;
}

/* Hero Tech Card */
.hero-visual {
  position: relative;
}

.hero-visual-glow {
  position: absolute;
  top: -15px;
  right: -15px;
  bottom: -15px;
  left: -15px;
  background: linear-gradient(135deg, rgba(26, 75, 140, 0.15) 0%, rgba(200, 62, 147, 0.15) 100%);
  border-radius: calc(var(--radius-lg) + 10px);
  filter: blur(25px);
  z-index: 1;
  pointer-events: none;
}

.hero-tech-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  animation: subtle-float 6s ease-in-out infinite;
}

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

.hero-tech-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
  flex-wrap: wrap;
}

.tech-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
  animation: pulse-glow 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  flex-shrink: 0;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

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

.matrix-item {
  background: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.matrix-item:hover {
  border-color: var(--primary-color);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.matrix-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.matrix-item:nth-child(even) .matrix-item-icon {
  background: var(--secondary-subtle);
  color: var(--secondary-color);
}

.matrix-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.matrix-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   INFINITE SMOOTH MARQUEE & TECHNOLOGY STRIP (LIGHT PINK THEME)
   ========================================================================== */
.tech-strip,
.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #fdf2f8 0%, #fce7f3 50%, #fdf2f8 100%);
  color: var(--dark-color);
  padding: 1rem 0;
  border-top: 1px solid rgba(200, 62, 147, 0.22);
  border-bottom: 1px solid rgba(200, 62, 147, 0.22);
  user-select: none;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(200, 62, 147, 0.08);
}

/* Gradient edge masks for seamless entry & exit */
.tech-strip::before,
.tech-strip::after,
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 3;
  pointer-events: none;
}

.tech-strip::before,
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fdf2f8 0%, rgba(253, 242, 248, 0) 100%);
}

.tech-strip::after,
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fdf2f8 0%, rgba(253, 242, 248, 0) 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  padding-right: 2.75rem;
  animation: marqueeScroll 26s linear infinite;
  will-change: transform;
}

.tech-strip:hover .marquee-content,
.marquee-wrapper:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0b1a30;
  white-space: nowrap;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.marquee-item:hover {
  color: var(--secondary-color);
  transform: translateY(-1px);
}

.marquee-icon {
  color: var(--secondary-color);
  font-size: 0.9rem;
  display: inline-block;
}

.marquee-badge {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(200, 62, 147, 0.15);
  color: #9d174d;
  border: 1px solid rgba(200, 62, 147, 0.3);
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-full);
}

@keyframes marqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

@media (max-width: 768px) {
  .tech-strip,
  .marquee-wrapper {
    padding: 0.95rem 0;
  }

  .tech-strip::before,
  .tech-strip::after,
  .marquee-wrapper::before,
  .marquee-wrapper::after {
    width: 35px;
  }

  .marquee-item {
    font-size: 0.88rem;
    gap: 0.5rem;
  }

  .marquee-content {
    gap: 1.85rem;
    padding-right: 1.85rem;
    animation-duration: 20s;
  }
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

.competencies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(26, 75, 140, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-number {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: -0.02em;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.card:hover .card-icon {
  background: var(--primary-color);
  color: #ffffff;
}

.card-icon.secondary {
  background: var(--secondary-subtle);
  color: var(--secondary-color);
}

.card:hover .card-icon.secondary {
  background: var(--secondary-color);
  color: #ffffff;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  color: var(--dark-color);
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: auto;
}

.card-link:hover {
  color: var(--secondary-color);
  gap: 0.6rem;
}

/* Glowing Border Card */
.glow-card {
  position: relative;
  z-index: 1;
}

.glow-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--brand-gradient);
  border-radius: calc(var(--radius-lg) + 1px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glow-card:hover::after {
  opacity: 0.35;
}

/* Shimmer Highlight */
.card::before, .matrix-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.6s ease;
  pointer-events: none;
}

.card:hover::before, .matrix-item:hover::before {
  left: 100%;
}

/* ==========================================================================
   PAGE HERO / BANNER
   ========================================================================== */
.page-banner {
  padding: 4.5rem 0 4rem 0;
  background: linear-gradient(180deg, var(--light-color) 0%, var(--surface-color) 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.page-banner-content {
  max-width: 800px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb-separator {
  color: #cbd5e1;
}

.page-title {
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ==========================================================================
   PROCESS / APPROACH TIMELINE
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  z-index: 1;
}

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

.process-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 0 6px var(--light-color);
  transition: var(--transition-base);
}

.process-step:nth-child(even) .process-number {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.process-step:hover .process-number {
  background: var(--primary-color);
  color: #ffffff;
  transform: scale(1.08);
}

.process-step:nth-child(even):hover .process-number {
  background: var(--secondary-color);
  color: #ffffff;
}

.process-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.process-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   DETAILED SERVICE SECTIONS (services.html)
   ========================================================================== */
.service-detail-section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.service-detail-section:last-child {
  border-bottom: none;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.service-detail-grid.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.service-detail-grid.reverse .service-detail-content {
  order: 2;
}

.service-detail-grid.reverse .service-detail-visual {
  order: 1;
}

.service-meta-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-badge-num {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-color);
  background: var(--primary-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26, 75, 140, 0.15);
  white-space: nowrap;
}

.service-capabilities-list {
  margin: 1.5rem 0 2rem 0;
}

.service-capabilities-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.service-check-icon {
  width: 20px;
  height: 20px;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-img-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  background-color: var(--surface-muted);
  margin-bottom: 1.5rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-img-wrap:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.service-img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.service-detail-box {
  background: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.box-highlight-title {
  font-size: 1.1rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.benefits-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.benefits-list li::before {
  content: '■';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 0.75rem;
}

/* ==========================================================================
   VISION & MISSION (vision-mission.html)
   ========================================================================== */
.vision-mission-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 4.5rem;
}

.statement-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.statement-card.vision-card {
  border-top: 4px solid var(--primary-color);
}

.statement-card.mission-card {
  border-top: 4px solid var(--secondary-color);
}

.statement-icon-bg {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 160px;
  height: 160px;
  opacity: 0.04;
  pointer-events: none;
}

.statement-title {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.statement-quote {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-color);
  font-style: italic;
  font-weight: 500;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
}

.principle-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition-base);
}

.principle-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.principle-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.principle-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.principle-card:nth-child(even) .principle-icon {
  background: var(--secondary-subtle);
  color: var(--secondary-color);
}

.principle-header h4 {
  margin: 0;
  font-size: 1.1rem;
}

.principle-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   OUR DIRECTORS / EXECUTIVE LEADERSHIP SHOWCASE (about.html)
   ========================================================================== */
.director-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1040px;
  margin: 0 auto;
}

.director-row {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 3.5rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
}

.director-row:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.director-row.reverse {
  grid-template-columns: 1fr 270px;
}

.director-row.reverse .director-img-box {
  order: 2;
}

.director-row.reverse .director-content {
  order: 1;
}

.director-img-box {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26, 75, 140, 0.15);
  border: 5px solid var(--primary-subtle);
  background-color: var(--surface-muted);
  margin: 0 auto;
  flex-shrink: 0;
}

.director-row.reverse .director-img-box {
  border-color: var(--secondary-subtle);
  box-shadow: 0 10px 30px rgba(200, 62, 147, 0.15);
}

.director-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.director-row:hover .director-img-box img {
  transform: scale(1.06);
}

.director-content {
  display: flex;
  flex-direction: column;
}

.director-role-tag {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-color);
  margin-bottom: 0.35rem;
}

.director-role-tag.secondary {
  color: var(--secondary-color);
}

.director-name {
  font-size: 1.85rem;
  color: var(--dark-color);
  margin-bottom: 0.2rem;
}

.director-designation {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.director-bio {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ==========================================================================
   SUSTAINABLE DEVELOPMENT (about.html)
   ========================================================================== */
.sustainability-card {
  background: linear-gradient(135deg, rgba(26, 75, 140, 0.03) 0%, rgba(200, 62, 147, 0.03) 100%), #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.sustainability-title {
  font-size: 1.5rem;
  color: var(--dark-color);
  margin-bottom: 1.25rem;
}

.sustainability-quote {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-color);
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
}

.sdg-badge-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sdg-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-color);
  background: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Legacy & Shared Leadership Grid */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.leader-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.leader-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.leader-img-container {
  position: relative;
  width: 100%;
  height: 380px;
  background-color: var(--surface-muted);
  overflow: hidden;
}

.leader-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.leader-card:hover .leader-img-container img {
  transform: scale(1.03);
}

.leader-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.leader-role-badge {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-color);
  background: var(--primary-subtle);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.leader-role-badge.secondary {
  color: var(--secondary-color);
  background: var(--secondary-subtle);
}

.leader-name {
  font-size: 1.45rem;
  color: var(--dark-color);
  margin-bottom: 0.3rem;
}

.leader-designation {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.leader-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   OUR PRODUCTS & PROPRIETARY PLATFORMS (about.html)
   ========================================================================== */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: center;
}

.product-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-logo-box {
  background: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
}

.product-logo-box:hover {
  background: #ffffff;
  border-color: var(--primary-color);
  transform: scale(1.03);
  box-shadow: var(--shadow-sm);
}

.product-logo-box img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.product-tag {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--primary-subtle);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26, 75, 140, 0.1);
}

/* ==========================================================================
   CONTACT FORM & DETAILS (contact.html)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.45rem;
}

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

.form-control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px; /* Prevents auto-zoom on iOS mobile */
  padding: 0.8rem 1rem;
  min-height: 48px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: var(--text-color);
  transition: var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

select.form-control {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.12);
  outline: none;
}

.form-control.error {
  border-color: var(--error);
  background-color: #fff1f2;
}

.error-text {
  display: none;
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.35rem;
}

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

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

.form-status-alert {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.form-status-alert.success {
  display: block;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-status-alert.error {
  display: block;
  background-color: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card {
  background: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-subtle);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.info-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  overflow-wrap: break-word;
}

/* Small Rounded Square Map Beside Address */
.contact-mini-map {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(11, 26, 48, 0.08);
  border: 1px solid var(--border-color);
  margin-top: 0.65rem;
  background: var(--surface-color);
}

.contact-mini-map iframe {
  display: block;
  width: 100%;
  height: 180px;
  border: none;
}

/* ==========================================================================
   CALL TO ACTION (CTA)
   ========================================================================== */
.cta-section {
  background: var(--dark-color);
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  color: #ffffff;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(200, 62, 147, 0.15) 0%, transparent 60%),
              radial-gradient(circle at bottom left, rgba(26, 75, 140, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.cta-title {
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--dark-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--dark-color);
  color: #ffffff;
  border-top: 1px solid var(--dark-surface-border);
  padding: 5rem 0 2rem 0;
  margin-top: auto;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand img {
  height: 44px;
  max-height: 44px;
  width: auto;
  max-width: 200px;
  margin-bottom: 1.25rem;
  object-fit: contain;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--dark-text-muted);
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--dark-text-muted);
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: var(--dark-text-muted);
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-mini-map {
  width: 100%;
  max-width: 260px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  margin-top: 0.5rem;
}

.footer-mini-map iframe {
  display: block;
  width: 100%;
  height: 110px;
  border: none;
}

.footer-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--secondary-color);
  margin-top: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-map-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--dark-surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--dark-text-muted);
}

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

.footer-legal-links a {
  color: var(--dark-text-muted);
  font-size: 0.85rem;
}

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

/* ==========================================================================
   FLOATING ACTION MENU (3-dots → WhatsApp left + FAQ on top)
   ========================================================================== */
.floating-action-menu {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  -webkit-tap-highlight-color: transparent;
}

.fam-toggle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(145deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(26, 75, 140, 0.45);
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.25s ease,
              background 0.28s ease;
  z-index: 3;
}

.fam-toggle:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 26px rgba(26, 75, 140, 0.55);
}

.fam-toggle:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 3px;
}

.fam-toggle svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  position: absolute;
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.fam-toggle .icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.floating-action-menu.is-open .fam-toggle {
  background: linear-gradient(145deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
  box-shadow: 0 4px 22px rgba(200, 62, 147, 0.45);
  transform: rotate(90deg);
}

.floating-action-menu.is-open .fam-toggle:hover {
  transform: rotate(90deg) scale(1.06);
}

.floating-action-menu.is-open .fam-toggle .icon-dots {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.floating-action-menu.is-open .fam-toggle .icon-close {
  opacity: 1;
  transform: rotate(-90deg) scale(1);
}

/* Options layer — same origin as toggle, expand outward */
.fam-options {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 58px;
  height: 58px;
  pointer-events: none;
  z-index: 2;
}

.fam-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.35);
  pointer-events: none;
  transition: opacity 0.28s ease,
              transform 0.38s cubic-bezier(0.34, 1.45, 0.64, 1),
              box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.floating-action-menu.is-open .fam-options {
  pointer-events: none; /* children enable their own */
}

.floating-action-menu.is-open .fam-btn {
  opacity: 1;
  pointer-events: auto;
}

/* WhatsApp → slides to the LEFT of the 3-dots */
.floating-action-menu.is-open .fam-whatsapp {
  transform: translateX(-68px) scale(1);
  transition-delay: 0.04s;
}

/* Ask Questions / FAQ → rises ABOVE the 3-dots */
.floating-action-menu.is-open .fam-questions {
  transform: translateY(-68px) scale(1);
  transition-delay: 0.1s;
}

.fam-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.fam-whatsapp {
  background-color: #25D366;
}

.fam-whatsapp:hover {
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.55);
  color: #ffffff;
}

.floating-action-menu.is-open .fam-whatsapp:hover {
  transform: translateX(-68px) scale(1.1);
}

.fam-questions {
  background: linear-gradient(145deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.fam-questions:hover {
  box-shadow: 0 6px 18px rgba(43, 121, 194, 0.55);
}

.floating-action-menu.is-open .fam-questions:hover {
  transform: translateY(-68px) scale(1.1);
}

.fam-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark-color);
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

/* Labels sit outward from each button */
.fam-whatsapp .fam-label {
  right: 58px;
}

.fam-whatsapp .fam-label::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--dark-color);
}

.fam-questions .fam-label {
  right: 58px;
}

.fam-questions .fam-label::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--dark-color);
}

.fam-btn:hover .fam-label {
  opacity: 1;
}

/* FAQ Chatbot popup - Systematic Compact Box Layout */
.faq-chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(11, 26, 48, 0.38);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 24px 96px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.faq-chat-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.faq-chat-box {
  width: 370px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 116px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 48px -10px rgba(11, 26, 48, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  border: 1px solid rgba(26, 75, 140, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.faq-chat-overlay.is-open .faq-chat-box {
  transform: translateY(0) scale(1);
}

.faq-chat-header {
  background: linear-gradient(135deg, #1A4B8C 0%, #0B1A30 100%);
  color: #ffffff;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.faq-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-chat-avatar svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.faq-chat-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.faq-chat-subtitle {
  font-size: 0.68rem;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 0;
  line-height: 1;
}

.faq-chat-subtitle::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  box-shadow: 0 0 6px #22c55e;
}

.faq-chat-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.faq-chat-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.faq-chat-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.faq-chat-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.faq-chat-body::-webkit-scrollbar {
  width: 4px;
}

.faq-chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.faq-chat-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.faq-msg {
  max-width: 88%;
  padding: 0.6rem 0.85rem;
  font-size: 0.83rem;
  line-height: 1.5;
  animation: faqMsgIn 0.25s ease-out;
  word-break: break-word;
}

@keyframes faqMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-msg-bot {
  align-self: flex-start;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 12px 12px 12px 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.faq-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #1A4B8C, #2B79C2);
  color: #ffffff;
  border-radius: 12px 12px 2px 12px;
  box-shadow: 0 2px 6px rgba(26, 75, 140, 0.25);
}

.faq-msg-bot strong {
  color: #1A4B8C;
}

.faq-chat-footer {
  padding: 0.65rem 0.85rem 0.75rem;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.faq-suggestions-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.faq-suggestions {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.faq-suggestions::-webkit-scrollbar {
  display: none;
}

.faq-chip {
  border: 1px solid rgba(26, 75, 140, 0.2);
  background: #f0f6ff;
  color: #1a4b8c;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
}

.faq-chip:hover {
  background: #1a4b8c;
  color: #ffffff;
  border-color: #1a4b8c;
  transform: translateY(-1px);
}

.faq-chip:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.faq-chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 2px 3px 2px 12px;
  transition: all 0.2s ease;
}

.faq-chat-input-row:focus-within {
  background: #ffffff;
  border-color: #1a4b8c;
  box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.12);
}

.faq-chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.4rem 0;
  font-family: inherit;
  font-size: 0.82rem;
  color: #1e293b;
  outline: none;
  min-width: 0;
}

.faq-chat-input::placeholder {
  color: #94a3b8;
}

.faq-chat-send {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  background: #1a4b8c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.faq-chat-send:hover {
  background: #0b1a30;
  transform: scale(1.05);
}

.faq-chat-send:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.faq-chat-send svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.faq-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.6rem 0.85rem;
  min-height: 32px;
}

.faq-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  opacity: 0.45;
  animation: faqDot 1.2s ease-in-out infinite;
}

.faq-typing span:nth-child(2) { animation-delay: 0.15s; }
.faq-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes faqDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* ==========================================================================
   SCROLL REVEAL & MICRO-ANIMATIONS
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

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

/* Stagger delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* ==========================================================================
   UNIFIED RESPONSIVE BREAKPOINTS (MOBILE & TABLET EXCELLENCE)
   ========================================================================== */

/* --- 1. Large Tablets & Small Laptops (<= 1200px) --- */
@media (max-width: 1200px) {
  .hero-grid {
    gap: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1.3fr 0.9fr 1.1fr 1.1fr;
    gap: 2rem;
  }
}

/* --- 2. Tablets in Landscape & Medium Tablets (<= 1024px) --- */
@media (max-width: 1024px) {
  .section {
    padding: 4.5rem 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    max-width: 100%;
  }

  .hero-visual {
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }

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

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

  .service-detail-grid,
  .service-detail-grid.reverse {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
  }

  .service-detail-grid .service-detail-content,
  .service-detail-grid.reverse .service-detail-content {
    order: 1 !important;
    width: 100%;
  }

  .service-detail-grid .service-detail-visual,
  .service-detail-grid.reverse .service-detail-visual {
    order: 2 !important;
    width: 100%;
  }

  .service-detail-content .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-bottom: 0.5rem;
  }

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

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

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

  .process-grid::before {
    display: none;
  }

  .product-card {
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding: 2.25rem;
  }
}

/* --- 3. Tablets in Portrait & Mobile Landscape (<= 768px) --- */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .section-sm {
    padding: 2.5rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Sticky Header on Mobile */
  .site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200;
    background-color: #ffffff;
  }

  body.menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  body.menu-open .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 2000 !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(11, 26, 48, 0.1) !important;
  }

  .navbar {
    height: 70px;
  }

  .brand-logo img {
    height: 42px;
    max-height: 42px;
    max-width: 180px;
  }

  .header-actions .btn {
    display: none; /* Hidden from main navbar, visible in mobile drawer */
  }

  .mobile-nav-toggle {
    display: flex;
  }

  /* Slide-out Mobile Navigation Drawer */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    background-color: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.5rem 3rem 1.5rem;
    gap: 0.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    box-shadow: 0 10px 30px rgba(11, 26, 48, 0.15);
    z-index: 1999;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-item {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-item.has-dropdown .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    width: 100%;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--primary-color);
    border-radius: 0;
    padding: 0.25rem 0 0.5rem 0.75rem;
    margin: 0.25rem 0 0.5rem 0.5rem;
    background: var(--surface-muted);
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-item.has-dropdown.mobile-open .dropdown-menu {
    display: block;
  }

  .nav-item.has-dropdown.mobile-open .dropdown-chevron {
    transform: rotate(180deg);
  }

  .dropdown-item {
    padding: 0.55rem 0.6rem;
  }

  .dropdown-item:hover {
    transform: none;
  }

  .dropdown-item-title {
    font-size: 0.88rem;
  }

  .dropdown-item-desc {
    font-size: 0.75rem;
  }

  .dropdown-footer {
    text-align: left;
    padding-left: 0.6rem;
  }

  .nav-link {
    font-size: 1.08rem;
    width: 100%;
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: normal;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    color: var(--primary-color);
    background: var(--primary-subtle);
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: var(--radius-sm);
    border-bottom-color: transparent;
  }

  /* Mobile CTA inside Drawer */
  .mobile-cta {
    display: block !important;
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 0.5rem;
  }

  .mobile-cta .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }

  /* Video Banner on Mobile */
  .video-banner {
    height: 400px;
  }

  /* Hero Section */
  .hero {
    padding: 3rem 0 4rem 0;
  }

  .hero-description {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    margin-bottom: 2rem;
  }

  /* Technology Strip */
  .tech-strip {
    padding: 1.5rem 0;
  }

  .tech-strip-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .tech-strip-items {
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }

  /* Grids Collapse to Single Column */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .vision-mission-cards {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 3.5rem;
  }

  .statement-card {
    padding: 2.25rem;
  }

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

  .director-row,
  .director-row.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .director-row.reverse .director-img-box {
    order: 1;
  }

  .director-row.reverse .director-content {
    order: 2;
  }

  .director-img-box {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .sustainability-card {
    padding: 2rem;
  }

  .leader-img-container {
    height: 320px;
  }

  .product-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .product-logo-box {
    max-width: 260px;
    margin: 0 auto;
    width: 100%;
  }

  .contact-form-card {
    padding: 2rem;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .footer-legal-links {
    justify-content: center;
  }

  /* Floating Action Menu */
  .floating-action-menu {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .fam-toggle {
    width: 52px;
    height: 52px;
  }

  .fam-toggle svg {
    width: 24px;
    height: 24px;
  }

  .fam-options {
    width: 52px;
    height: 52px;
  }

  .fam-btn {
    width: 46px;
    height: 46px;
    bottom: 3px;
    right: 3px;
  }

  .fam-btn svg {
    width: 24px;
    height: 24px;
  }

  .floating-action-menu.is-open .fam-whatsapp {
    transform: translateX(-60px) scale(1);
  }

  .floating-action-menu.is-open .fam-questions {
    transform: translateY(-60px) scale(1);
  }

  .floating-action-menu.is-open .fam-whatsapp:hover {
    transform: translateX(-60px) scale(1.08);
  }

  .floating-action-menu.is-open .fam-questions:hover {
    transform: translateY(-60px) scale(1.08);
  }

  .fam-label {
    display: none !important;
  }

  .faq-chat-overlay {
    padding: 0 12px 84px 12px;
    justify-content: center;
  }

  .faq-chat-box {
    width: 100%;
    max-width: 360px;
    height: min(460px, calc(100vh - 100px));
    border-radius: 14px;
  }
}

/* --- 4. Large Phones & Small Tablets (<= 640px) --- */
@media (max-width: 640px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

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

  .page-banner {
    padding: 3.5rem 0 3rem 0;
  }

  .page-subtitle {
    font-size: 1.05rem;
  }

  .card {
    padding: 1.75rem;
  }

  .service-detail-section {
    padding: 2.75rem 0;
  }

  .service-detail-content h2 {
    font-size: 1.6rem;
    margin-bottom: 0.65rem;
  }

  .service-capabilities-list {
    margin: 1.15rem 0 1.5rem 0;
  }

  .service-capabilities-list li {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.6rem;
  }

  .service-img-wrap {
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
  }

  .service-img-wrap img {
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }

  .service-detail-box {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-md);
  }

  .box-highlight-title {
    font-size: 0.98rem;
    margin-bottom: 0.65rem;
  }

  .benefits-list li {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .cta-section {
    padding: 4rem 0;
  }

  .cta-desc {
    font-size: 1.05rem;
  }
}

/* --- 5. Standard Mobile Phones (<= 480px) --- */
@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .brand-logo img {
    height: 38px;
    max-height: 38px;
    max-width: 155px;
  }

  .video-banner {
    height: 340px;
  }

  .video-banner-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .video-banner-tagline {
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
  }

  .hero {
    padding: 2.25rem 0 3.25rem 0;
  }

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

  .text-rotator {
    display: block;
    min-width: 0;
    width: 100%;
    margin-top: 0.25rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-tagline-strip {
    gap: 0.6rem 1rem;
  }

  .hero-tech-card {
    padding: 1.25rem;
  }

  .hero-matrix {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .matrix-item {
    padding: 1rem;
  }

  .card,
  .contact-form-card,
  .statement-card,
  .sustainability-card,
  .director-row,
  .leader-info,
  .product-card {
    padding: 1.35rem;
  }

  .director-img-box {
    width: 170px;
    height: 170px;
  }

  .director-name {
    font-size: 1.45rem;
  }

  .leader-img-container {
    height: 270px;
  }

  .statement-title {
    font-size: 1.35rem;
  }

  .statement-quote {
    font-size: 1rem;
    line-height: 1.6;
  }

  .process-number {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }

  .cta-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .contact-info-card {
    padding: 1.35rem;
  }
}

/* --- 6. Extra Small Mobile Devices (<= 360px) --- */
@media (max-width: 360px) {
  .brand-logo img {
    max-width: 135px;
    height: 34px;
  }

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

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .card,
  .contact-form-card,
  .statement-card,
  .service-detail-box {
    padding: 1.15rem;
  }
}

/* --- 7. Reduced Motion Support for Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in-up,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-tech-card,
  .status-dot {
    animation: none !important;
  }
}

/* ==========================================================================
   INTERNSHIP APPLICATION MODAL (INBOX-STYLE POPUP)
   ========================================================================== */
.internship-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(11, 26, 48, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.internship-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.internship-modal-box {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 64px -12px rgba(11, 26, 48, 0.4), 0 0 0 1px rgba(26, 75, 140, 0.12);
  border: 1px solid rgba(26, 75, 140, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.internship-modal-overlay.is-open .internship-modal-box {
  transform: translateY(0) scale(1);
}

.internship-modal-header {
  background: linear-gradient(135deg, #1A4B8C 0%, #0B1A30 100%);
  color: #ffffff;
  padding: 1rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.internship-header-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.internship-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.internship-header-avatar svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.internship-modal-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.internship-modal-subtitle {
  font-size: 0.76rem;
  color: #93c5fd;
  margin: 3px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.internship-modal-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.internship-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.internship-modal-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

.internship-modal-body {
  flex: 1 1 auto;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 1.5rem;
  background: #f8fafc;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.internship-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .internship-form-grid {
    grid-template-columns: 1fr;
  }
}

.resume-dropzone {
  border: 2px dashed rgba(26, 75, 140, 0.28);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.resume-dropzone:hover,
.resume-dropzone.is-dragover {
  border-color: var(--primary-color);
  background: var(--primary-subtle);
}

.resume-dropzone-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.5rem auto;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-dropzone-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.2rem;
}

.resume-dropzone-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.resume-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.resume-file-preview {
  display: none;
  flex-direction: column;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(26, 75, 140, 0.18);
  border-radius: 12px;
  margin-top: 0.75rem;
  box-shadow: 0 4px 16px rgba(11, 26, 48, 0.06);
  transition: all 0.25s ease;
}

.resume-file-preview.is-active {
  display: flex;
}

.doc-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.doc-info-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.doc-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(26, 75, 140, 0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-icon-badge svg {
  width: 20px;
  height: 20px;
}

.doc-name-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}

.doc-size-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.doc-progress-container {
  margin-top: 0.85rem;
}

.doc-progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.doc-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1A4B8C, #00B4D8);
  border-radius: 999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-progress-fill.is-complete {
  background: #16a34a;
}

.doc-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-top: 0.45rem;
  color: #64748b;
  font-weight: 500;
}

.doc-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
  gap: 0.5rem;
}

.doc-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #15803d;
  font-size: 0.8rem;
  font-weight: 600;
  background: #f0fdf4;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

.doc-remove-btn {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.doc-remove-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.internship-status-alert {
  display: none;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.internship-status-alert.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.internship-status-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

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

/* Mobile Responsiveness Improvements for Internship Modal */
@media (max-width: 640px) {
  .internship-modal-overlay {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .internship-modal-box {
    max-height: 94vh;
    border-radius: 16px 16px 0 0;
  }

  .internship-modal-header {
    padding: 0.85rem 1rem;
  }

  .internship-modal-body {
    padding: 1rem;
  }

  .doc-name-text {
    max-width: 160px;
  }

  .doc-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .doc-ready-badge {
    justify-content: center;
  }

  .doc-remove-btn {
    justify-content: center;
  }
}



