/**
 * AI SAMRAT PRIVATE LIMITED – MASTER ENTERPRISE STYLESHEET
 * Single source of truth for design tokens, typography, layout, 3D components, and responsive behavior.
 * Preserves the white header and branding while rendering the futuristic dark violet enterprise design.
 */

:root {
  --bg: #04050B;
  --bg-alt: #080915;
  --accent: #6552D9;
  --accent-hover: #7561EA;
  --lavender: #B3A8FF;
  --text: #ECECF6;
  --muted: #AEB0CC;
  --border: #22233F;
  --border-soft: #15162A;
  --field-border: #3A3B60;
  --focus: #8F80FF;
  --header-bg: #FFFFFF;
  --header-text: #1F2937;
  --header-text-hover: #6552D9;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

em {
  font-style: italic;
  font-weight: 700;
  color: #FFFFFF;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  z-index: 10001;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--focus);
}

/* Focus styles for WCAG 2.1 AA */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---------------- Layout & Containers ---------------- */
.container, .w {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.section, .sec {
  padding: 120px 0;
  position: relative;
}

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

/* Typography styles */
h1 {
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}

p, .mut {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.intro-p {
  font-size: 17px;
  line-height: 1.6;
}

.eyebrow, .eye {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lavender);
  font-weight: 600;
  margin-bottom: 18px;
}

/* Background visual decorations */
.glow {
  position: absolute;
  top: -140px;
  left: -260px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(101, 82, 217, 0.4), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.ghost {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: -130px;
  font-size: 240px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* 1. Header rules defined in assets/css/header.css */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  position: relative;
}

.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links, .nl {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--header-text);
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--header-text);
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.nav-link[aria-current="page"] {
  color: #111827;
  font-weight: 700;
  border-bottom-color: var(--accent);
}

.btn-header-cta, .pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  box-sizing: border-box;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(101, 82, 217, 0.35);
  transition: background 0.2s, transform 0.1s;
}

.btn-header-cta:hover, .pill:hover {
  background: var(--accent-hover);
}

.btn-header-cta i, .pill i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #04050B;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: #111827;
  cursor: pointer;
}

/* ---------------- 2. Buttons & Interactive Links ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 0 30px;
  min-height: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(101, 82, 217, 0.45);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 36px rgba(101, 82, 217, 0.6);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost, .lnk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.btn--ghost:hover, .lnk:hover {
  color: var(--lavender);
}

/* ---------------- 3. Cards & Grids ---------------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.grid-3, .g3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1400px;
}

.grid-4, .g4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(160deg, #0e0f1d, #080912);
  padding: 34px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.sv {
  min-height: 380px;
}

.grid-3 .card:hover, .g3 .card:hover {
  transform: rotateX(4deg) rotateY(-6deg) translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(101, 82, 217, 0.25);
}

.card--featured, .card.on {
  background: linear-gradient(160deg, #7561ea, #5a46c8);
  border-color: #7561ea;
}

.card--featured .mut, .card.on .mut {
  color: #FFFFFF;
}

.card-icon, .ico {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.card-icon svg, .ico svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-arrow, .ar {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.card-num, .num {
  font-size: 15px;
  font-weight: 600;
  color: var(--lavender);
}

.why {
  min-height: 260px;
  justify-content: space-between;
}

/* ---------------- 4. Steps & Methodology Rows ---------------- */
.step-row, .row {
  display: grid;
  grid-template-columns: 90px 300px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 36px 12px;
  border-top: 1px solid var(--border);
  transition: background 0.3s ease;
}

.step-row:hover, .row:hover {
  background: #0c0d1c;
}

.step-row b, .row b {
  font-size: 22px;
  font-weight: 600;
  color: #FFFFFF;
}

/* Timeline Components */
.timeline-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 48px;
}

.timeline-step {
  position: relative;
  padding-top: 36px;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}

.timeline-dot {
  position: absolute;
  top: -6px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--lavender);
  background: rgba(101, 82, 217, 0.08);
  transition: transform 0.2s, border-color 0.2s;
}

.chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* ---------------- 5. 3D Visual Canvases ---------------- */
/* 3D Globe */
.globe {
  position: relative;
  width: min(100%, 580px);
  aspect-ratio: 1/1;
  margin: 0 auto;
}

.globe::before {
  content: '';
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 92, 230, 0.22), transparent 66%);
  pointer-events: none;
}

.gl {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.gl:active {
  cursor: grabbing;
}

/* 3D Core */
.core {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1/1;
  margin: 0 auto;
}

/* 3D CSS MacBook Laptop */
.lapw {
  position: relative;
  height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1800px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.lapw:active {
  cursor: grabbing;
}

.lap {
  position: relative;
  width: 560px;
  height: 380px;
  left: 20px;
  top: -95px;
  scale: 0.66;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(-28deg);
  transform-origin: 280px 380px 198px;
}

.lid {
  position: absolute;
  left: 0;
  top: 0;
  width: 560px;
  height: 380px;
  transform-origin: 50% 100%;
  transform: rotateX(12deg);
  transform-style: preserve-3d;
}

.lf {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-radius: 18px 18px 6px 6px;
  background: linear-gradient(145deg, #dcdee6, #8a8d9f);
  padding: 5px;
  backface-visibility: hidden;
}

.lf::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 11px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.13), transparent 38%);
  pointer-events: none;
}

.lb {
  position: absolute;
  inset: 0;
  border-radius: 18px 18px 6px 6px;
  background: linear-gradient(135deg, #d9dbe3, #9a9db0);
  transform: translateZ(-8px) rotateY(180deg);
  backface-visibility: hidden;
}

.lb::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF, #a9acc0);
  opacity: 0.7;
}

.lt, .ll, .lr {
  position: absolute;
  background: linear-gradient(#c3c6d3, #8b8ea1);
}

.lt { left: 10px; top: 0; width: 540px; height: 8px; transform-origin: 0 0; transform: rotateX(-90deg); }
.ll { left: 0; top: 10px; width: 8px; height: 360px; transform-origin: 0 0; transform: rotateY(90deg); }
.lr { left: 560px; top: 10px; width: 8px; height: 360px; transform-origin: 0 0; transform: rotateY(90deg); }

.bz {
  position: relative;
  width: 100%;
  height: 100%;
  background: #050508;
  border-radius: 11px;
  overflow: hidden;
}

.bz::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 46px;
  height: 13px;
  margin-left: -23px;
  border-radius: 0 0 8px 8px;
  background: #000000;
  z-index: 3;
}

.bz::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #16171f;
  box-shadow: 0 0 0 1px #262733;
  z-index: 4;
}

.scrw {
  position: absolute;
  left: 6px;
  top: 12px;
  width: 538px;
  height: 349px;
  overflow: hidden;
  border-radius: 2px;
}

.scr {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 831px;
  transform: scale(0.42);
  transform-origin: 0 0;
  overflow: hidden;
  background: radial-gradient(circle at 15% 0, rgba(101, 82, 217, 0.4), transparent 45%), #04050b;
  color: #ececf6;
}

.qin {
  animation: qs 18s ease-in-out infinite;
}

@keyframes qs {
  0%, 38% { transform: translateY(0); }
  52%, 86% { transform: translateY(-560px); }
  100% { transform: translateY(0); }
}

.qn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 56px;
}

.qn img { height: 46px; }
.ql { display: flex; gap: 30px; font-size: 15px; color: #c9cae0; }
.qp { border: 1px solid #3a3b60; border-radius: 99px; padding: 12px 22px; font-size: 14px; }

.qh {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 56px;
  height: 640px;
  box-sizing: border-box;
}

.qt { font-size: 58px; font-weight: 300; line-height: 1.1; margin: 14px 0 20px; }
.qe { font-size: 13px; letter-spacing: 0.2em; color: #b3a8ff; }
.qh p { font-size: 18px; color: #aeb0cc; line-height: 1.6; max-width: 480px; margin: 0 0 26px; }
.qb { display: flex; align-items: center; gap: 22px; font-size: 16px; }
.qb b { background: #6552d9; border-radius: 99px; padding: 15px 30px; }
.qh .gl { width: 100%; height: auto; aspect-ratio: 1/1; cursor: inherit; }

.qs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 40px 56px 60px;
}

.qs h3 { grid-column: 1/-1; font-size: 42px; font-weight: 300; margin: 0 0 10px; }
.qc {
  border: 1px solid #22233f;
  border-radius: 20px;
  background: #0e0f1d;
  padding: 30px;
  height: 300px;
  box-sizing: border-box;
}

.qc.on { background: #6552d9; border-color: #6552d9; }
.qc h4 { font-size: 22px; margin: 0 0 12px; }
.qc p { font-size: 15px; line-height: 1.6; color: #aeb0cc; margin: 0; }
.qc.on p { color: #FFFFFF; }

.base {
  position: absolute;
  left: 0;
  top: 380px;
  width: 560px;
  height: 0;
  transform-style: preserve-3d;
}

.deck {
  position: absolute;
  left: 0;
  top: 0;
  width: 560px;
  height: 396px;
  border-radius: 3px 3px 16px 16px;
  background: url("../images/macbook-deck.jpg") 0 0 / 100% 100%;
  transform-origin: 50% 0;
  transform: rotateX(90deg);
}

.deck::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 45%, rgba(0, 0, 0, 0.14));
  pointer-events: none;
}

.lip {
  position: absolute;
  left: 0;
  top: 0;
  width: 560px;
  height: 12px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#bcbfcc, #7a7d8f);
  transform: translateZ(396px);
}

.sdl, .sdr {
  position: absolute;
  top: 0;
  width: 396px;
  height: 12px;
  background: linear-gradient(#aeb1bf, #767989);
  transform-origin: 0 0;
  transform: rotateY(-90deg);
}

.sdl { left: 0; }
.sdr { left: 560px; }

.fl {
  position: absolute;
  left: -100px;
  top: 392px;
  width: 760px;
  height: 400px;
  background: radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0.8), transparent 62%);
  transform-origin: 50% 0;
  transform: rotateX(90deg) translateY(-40px);
}

/* 3D Orbit Component */
.orbit-container {
  position: relative;
  width: min(100%, 540px);
  height: 420px;
  margin: 0 auto;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}

.orbit-container:active {
  cursor: grabbing;
}

.orbit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.orbit-card {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(160deg, rgba(14, 15, 29, 0.95), rgba(8, 9, 18, 0.95));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 32px var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #FFFFFF;
}

/* ---------------- 6. Forms & Contact Cards ---------------- */
.fm, .form-card {
  background: #0d0e1c;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px;
  display: grid;
  gap: 20px;
}

.field label, .fm label {
  display: block;
  font-size: 13px;
  color: #d3d4e8;
  margin-bottom: 8px;
  font-weight: 500;
}

.field input, .field textarea,
.fm input, .fm textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 0 14px;
  min-height: 50px;
  transition: border-color 0.2s;
}

.field input:focus, .field textarea:focus,
.fm input:focus, .fm textarea:focus {
  border-color: var(--focus);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.field textarea, .fm textarea {
  padding: 12px 14px;
  min-height: 140px;
  resize: vertical;
}

.field-error {
  color: #F87171;
  font-size: 12px;
  margin-top: 4px;
}

/* ---------------- 7. Footer ---------------- */
.site-footer, .ft {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
  color: var(--muted);
}

.footer-row, .fr {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-social-links, .sm {
  font-size: 13px;
  color: var(--muted);
}

.footer-social-links a:hover, .sm a:hover {
  color: #FFFFFF;
}

/* ---------------- 8. Section Specific Classes ---------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
  min-height: 700px;
  padding-bottom: 40px;
}

.hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.mis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Page Hero Pattern for Inner Pages */
.page-hero {
  position: relative;
  padding: 80px 0 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.cta-band {
  text-align: center;
  padding: 100px 0;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(101, 82, 217, 0.12), transparent 60%);
}

.cta-band .btn {
  margin: 0 8px;
}

/* Gallery & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(4, 5, 11, 0.7);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lavender);
}

.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 11, 0.92);
  backdrop-filter: blur(12px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.is-active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
}

.lightbox-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  color: #FFFFFF;
  font-size: 32px;
  cursor: pointer;
}

/* ---------------- 9. Scroll Reveal Animations ---------------- */
.reveal {
  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);
}

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

/* ---------------- 10. AI Chatbot & Brief Modal UI ---------------- */
.chatbot-trigger-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(101, 82, 217, 0.5);
  z-index: 999;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, background 0.2s;
}

.chatbot-trigger-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.chatbot-panel {
  display: none;
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: #0C0E1E;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-panel.is-open {
  display: flex;
}

.chat-header {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-bubble--user {
  align-self: flex-end;
  background: var(--accent);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.chat-bubble--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chat-suggestion-chip {
  padding: 5px 10px;
  background: rgba(101, 82, 217, 0.15);
  border: 1px solid rgba(101, 82, 217, 0.3);
  border-radius: 12px;
  font-size: 11px;
  color: var(--lavender);
  cursor: pointer;
}

.chat-input-bar {
  display: flex;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  gap: 8px;
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 13px;
  outline: none;
}

.chat-send-btn {
  color: var(--accent);
}

/* Modal Wizard for Project Brief */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 11, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.is-active {
  display: flex;
}

.modal-dialog {
  background: #0C0E1E;
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  padding: 2.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

.wizard-steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.wizard-step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.wizard-step-node.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 0 12px var(--accent);
}

.wizard-step-node.is-done {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10B981;
  color: #34D399;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.option-pill-label {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-pill-label.is-selected {
  border-color: var(--accent);
  background: rgba(101, 82, 217, 0.15);
  color: #FFFFFF;
}

/* ---------------- 11. Responsive Breakpoints ---------------- */
@media (max-width: 1000px) {
  .grid-4, .g4 {
    grid-template-columns: 1fr 1fr;
  }
  .step-row, .row {
    grid-template-columns: 70px 1fr;
  }
  .step-row p, .row p {
    grid-column: 2;
  }
  .timeline-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .container, .w {
    padding: 0 20px;
  }
  .section, .sec {
    padding: 76px 0;
  }
  .site-header {
    height: 70px;
  }
  .header-logo {
    height: 38px;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .btn-header-cta, .pill {
    display: none;
  }
  .nav-links, .nl {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #E5E7EB;
    gap: 16px;
    align-items: flex-start;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-link {
    font-size: 16px;
    width: 100%;
    padding: 8px 0;
  }
  .hero, .mis, .cta, .grid-2, .grid-3, .g3, .grid-4, .g4, .page-hero {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 0;
    padding-top: 20px;
    gap: 36px;
  }
  .ghost {
    font-size: 84px;
    margin-top: -60px;
  }
  .globe {
    width: min(86%, 400px);
  }
  .lapw {
    height: 270px;
  }
  .lap {
    scale: 0.47;
    left: 34px;
    top: -75px;
    margin: 0 -140px;
  }
  .mis {
    gap: 24px;
  }
  .sv, .why {
    min-height: 0;
  }
  .card {
    padding: 28px;
  }
}

/* ---------------- 9. HCLTech-Inspired Floating Header ---------------- */
.header-floating-wrapper {
  position: sticky;
  top: 16px;
  z-index: 1000;
  width: 100%;
  pointer-events: none;
}

.header-floating {
  max-width: 1200px;
  width: calc(100% - 48px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
  position: relative;
}

.header-floating .header-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-floating .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.header-floating .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-floating .nav-link:hover {
  color: var(--accent);
}

.header-floating .nav-link[aria-current="page"] {
  color: #111827;
  font-weight: 700;
  border-bottom-color: var(--accent);
}

.header-floating .btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 4px 6px 4px 18px;
  font-size: 13px;
  font-weight: 600;
  min-height: 40px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(101, 82, 217, 0.35);
  transition: background 0.2s, transform 0.1s;
}

.header-floating .btn-header-cta:hover {
  background: var(--accent-hover);
}

.header-floating .btn-header-cta i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #04050B;
}

/* ---------------- 10. IBM-Inspired Enterprise Multi-Column Footer ---------------- */
.footer-enterprise {
  background: #020307;
  border-top: 1px solid #16172B;
  padding: 84px 0 36px;
  color: #A0A2C0;
  font-size: 14px;
}

.footer-enterprise-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1.1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  margin-bottom: 22px;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-list a {
  color: #9496B8;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-link-list a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.footer-bottom-bar {
  border-top: 1px solid #16172B;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #727494;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #8C8EAE;
  transition: color 0.2s ease;
}

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

/* ---------------- 11. 3D Video Asset & Process Visuals ---------------- */
.video-asset-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 50%, rgba(101, 82, 217, 0.15), rgba(4, 5, 11, 0.95));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(101, 82, 217, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-asset-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3D Interactive Process Timeline for About Us */
.process-3d-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
}

.process-3d-step {
  position: relative;
  background: linear-gradient(160deg, #0e0f1d, #080912);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 26px;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.process-3d-step:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(101, 82, 217, 0.25);
}

.process-node-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(101, 82, 217, 0.15);
  border: 1px solid var(--accent);
  color: var(--lavender);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 0 16px rgba(101, 82, 217, 0.3);
}

@media (max-width: 1000px) {
  .process-3d-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-enterprise-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .header-floating-wrapper {
    top: 10px;
  }
  .header-floating {
    width: calc(100% - 24px);
    padding: 0 16px;
    height: 60px;
  }
  .header-floating .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid #E5E7EB;
    gap: 14px;
  }
  .header-floating .nav-links.is-open {
    display: flex;
  }
  .header-floating .btn-header-cta {
    display: none;
  }
}

@media (max-width: 600px) {
  .process-3d-timeline {
    grid-template-columns: 1fr;
  }
  .footer-enterprise-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .step-row, .row {
    grid-template-columns: 48px 1fr;
    gap: 10px 14px;
    padding: 28px 4px;
  }
  .fm, .form-card {
    padding: 24px;
  }
  .btn {
    width: 100%;
    box-sizing: border-box;
  }
  .hero .btn, .cta .btn, .page-hero .btn {
    width: auto;
    min-width: 200px;
  }
  .footer-row, .fr {
    flex-direction: column;
    gap: 28px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .chatbot-panel {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 84px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .timeline-container {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   MOBILE & TABLET EXCLUSIVE OVERRIDES (<= 1024px)
   Laptop & Desktop (> 1024px) remain 100% UNTOUCHED
   ======================================================== */
@media (max-width: 1024px) {
  /* 1. Remove 3D laptop from Home Page on all devices except Laptop & Desktop */
  .lapw,
  [data-gl="laptop"],
  .lap {
    display: none !important;
  }

  .mis {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    max-width: 760px !important;
    margin: 0 auto !important;
  }

  /* 2. About Us & Services Pages: Align 3D Model underneath text & fit properly */
  .page-about .page-hero,
  .page-services .page-hero {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .page-about .hero-left-col,
  .page-services .hero-left-col {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-about .floating-3d-model,
  .page-about .hero-3d-wrap,
  .page-services .floating-3d-model,
  .page-services .hero-3d-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: 28px auto 0 !important;
    order: 2 !important; /* Kept down below text */
  }

  .page-about .hero-3d-video,
  .page-services .hero-3d-video {
    width: 100% !important;
    max-width: 360px !important;
    height: auto !important;
    max-height: 360px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 640px) {
  .page-about .floating-3d-model,
  .page-about .hero-3d-wrap,
  .page-services .floating-3d-model,
  .page-services .hero-3d-wrap {
    max-width: 280px !important;
    margin: 20px auto 0 !important;
  }

  .page-about .hero-3d-video,
  .page-services .hero-3d-video {
    max-width: 260px !important;
    max-height: 260px !important;
  }
}

/* ========================================================
   MASTER RESPONSIVE OPTIMIZATION FOR ALL MOBILE DEVICES
   (320px - 768px Viewports: iPhone SE, Galaxy, Pixel, etc.)
   ======================================================== */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .container, .w {
    padding-left: 18px !important;
    padding-right: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .section, .sec {
    padding: 64px 0 !important;
  }

  /* Hero Section */
  .hero {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    min-height: 0 !important;
    padding-bottom: 24px !important;
    overflow: hidden !important;
  }

  .hero-content {
    max-width: 100% !important;
  }

  .hero-content h1 {
    font-size: clamp(28px, 7.6vw, 42px) !important;
    line-height: 1.14 !important;
  }

  .hero-content .intro-p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
  }

  .ghost {
    font-size: clamp(48px, 16vw, 92px) !important;
    margin-top: -30px !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }

  .globe {
    width: min(92vw, 400px) !important;
    max-width: 100% !important;
    aspect-ratio: 1/1 !important;
    margin: 0 auto !important;
  }

  /* Grid Layouts */
  .grid-2, .grid-3, .g3, .grid-4, .g4, .mis, .cta, .page-hero {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .hd {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 36px !important;
  }

  .hd h2 {
    font-size: clamp(24px, 6.8vw, 34px) !important;
  }

  .card, .sv, .why {
    padding: 24px 20px !important;
    min-height: 0 !important;
  }

  /* Modal Dialog for Project Brief */
  .modal-dialog {
    width: calc(100% - 24px) !important;
    max-width: 520px !important;
    margin: 12px auto !important;
    padding: 22px 18px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }

  /* Floating Chatbot */
  .chatbot-panel {
    width: calc(100vw - 24px) !important;
    right: 12px !important;
    left: 12px !important;
    bottom: 78px !important;
    height: min(520px, calc(100vh - 100px)) !important;
  }
}

@media (max-width: 480px) {
  .container, .w {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .section, .sec {
    padding: 48px 0 !important;
  }

  .hero {
    gap: 24px !important;
  }

  .hero-content div[style*="display: flex"] {
    gap: 12px !important;
  }

  .hero .btn, .hero .btn--ghost {
    flex: 1 1 100% !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 13px 18px !important;
  }

  .globe {
    width: min(94vw, 340px) !important;
  }

  .eyebrow, .eye {
    font-size: 11px !important;
    margin-bottom: 12px !important;
  }

  .card h3 {
    font-size: 18px !important;
  }

  .options-grid {
    grid-template-columns: 1fr !important;
  }

  .wizard-steps-indicator {
    gap: 6px !important;
  }
}

@media (max-width: 360px) {
  .container, .w {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .hero-content h1 {
    font-size: 26px !important;
  }

  .globe {
    width: min(96vw, 290px) !important;
  }

  .hero .btn, .hero .btn--ghost {
    padding: 11px 14px !important;
    font-size: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
