/* =========================================================
   VIKAAR TECHNOLOGIES — MAIN STYLESHEET
   Design tokens derived from brand logo:
   navy #0a1440 -> blue #1c63e8 -> sky #35a7f0, orange accent #f7a531
   ========================================================= */

:root {
  /* Color tokens */
  --navy-950: #060d24;
  --navy-900: #0a1440;
  --navy-800: #101d5c;
  --blue-600: #1c4fd9;
  --blue-500: #1c63e8;
  --sky-400: #35a7f0;
  --sky-300: #6cc3f5;
  --orange-500: #f7a531;
  --orange-400: #ffbc5c;

  --ink: #0c1430;
  --ink-soft: #454f6b;
  --paper: #ffffff;
  --paper-soft: #f5f7fc;
  --line: #e3e7f2;

  --grad-brand: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-600) 55%, var(--sky-400) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(28,79,217,0.10), rgba(53,167,240,0.10));
  --grad-accent: linear-gradient(90deg, var(--orange-500), var(--orange-400));

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --max-width: 100%;
  --content-width: 1320px;
  --side-padding: clamp(20px, 5vw, 80px);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-md: 0 12px 30px -12px rgba(10, 20, 64, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(10, 20, 64, 0.35);

  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; color: var(--navy-900); }
p { margin: 0; line-height: 1.65; color: var(--ink-soft); }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
}

/* =========================================================
   LAYOUT — full max-width with generous left/right padding
   ========================================================= */
.container {
  width: var(--max-width);
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--side-padding);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* =========================================================
   LOADER
   ========================================================= */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-mark { width: 64px; height: 64px; }
.loader-v { width: 100%; height: 100%; }
.loader-v path {
  stroke: var(--sky-400);
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw-v 1.1s ease forwards infinite alternate;
}
@keyframes draw-v {
  to { stroke-dashoffset: 0; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(10,20,64,0.3);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.brand-logo { height: 44px; width: auto; }

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy-900);
  padding-block: 6px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad-accent);
  transition: width var(--transition);
}
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.call-link { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--navy-900); }
.call-link svg { color: var(--orange-500); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; padding-block: clamp(60px, 10vw, 120px) clamp(60px, 8vw, 100px); }
.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  background: var(--grad-brand-soft);
  filter: blur(60px);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(28,99,232,0.08);
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 1.08rem; max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--navy-900); }
.hero-stats span { font-size: 0.85rem; color: var(--ink-soft); }

.hero-visual { position: relative; height: 420px; }
.hero-mark {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  animation: float-slow 6s ease-in-out infinite;
}
.hero-v { width: 90px; height: 90px; }
.hero-v path { stroke: var(--orange-400); }
.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  animation: float-slow 6s ease-in-out infinite;
}
.card-1 { top: 8%; left: 0; animation-delay: 0.4s; }
.card-2 { bottom: 10%; right: 2%; animation-delay: 1.1s; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: #2ec27e; }
.dot-blue { background: var(--sky-400); }

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

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 22px; }
.trust-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* =========================================================
   SECTION HEADERS (generic)
   ========================================================= */
section h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; margin-bottom: 48px; max-width: 30ch; }
.services, .work, .process, .about, .testimonials, .contact { padding-block: clamp(64px, 9vw, 110px); }

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--grad-brand);
  color: #fff;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { font-size: 0.95rem; }

/* =========================================================
   WORK
   ========================================================= */
.work { background: var(--paper-soft); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.work-thumb { height: 190px; background: var(--grad-brand); }
.work-thumb-2 { background: linear-gradient(135deg, var(--navy-800), var(--sky-400)); }
.work-thumb-3 { background: linear-gradient(135deg, var(--blue-600), var(--orange-500)); }
.work-body { padding: 24px; }
.work-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 10px;
}
.work-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.work-body p { font-size: 0.92rem; }

/* =========================================================
   PROCESS
   ========================================================= */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.process-step { padding: 28px 22px; border-radius: var(--radius-lg); background: var(--paper-soft); }
.step-index {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.9rem; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-inner { display: grid; grid-template-columns: 1fr 0.8fr; gap: 60px; align-items: center; }
.about-points { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.about-points li {
  position: relative;
  padding-left: 28px;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad-accent);
}
.about-visual { position: relative; height: 360px; }
.about-blob {
  position: absolute;
  inset: 0;
  border-radius: 32% 68% 65% 35% / 45% 40% 60% 55%;
  background: var(--grad-brand);
  opacity: 0.92;
  animation: morph 10s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 32% 68% 65% 35% / 45% 40% 60% 55%; }
  50% { border-radius: 60% 40% 30% 70% / 55% 65% 35% 45%; }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { background: var(--navy-900); }
.testimonials .eyebrow { background: rgba(255,255,255,0.1); color: var(--sky-300); }
.testimonials h2 { color: #fff; }
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  margin: 0;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.testimonial-card p { color: #dfe4f5; font-size: 1rem; margin-bottom: 22px; }
.testimonial-card footer strong { display: block; color: #fff; font-size: 0.92rem; }
.testimonial-card footer span { font-size: 0.82rem; color: #9aa5c9; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-methods { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.contact-method {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 0.95rem;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition);
}
.contact-method:hover { border-color: var(--blue-500); transform: translateX(4px); }
.contact-method svg { color: var(--orange-500); flex-shrink: 0; }

.contact-form {
  background: var(--paper-soft);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--navy-900); }
.form-row input, .form-row textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(28,99,232,0.12);
  outline: none;
}
.form-status { margin-top: 14px; font-size: 0.88rem; font-weight: 600; }
.form-status.success { color: #1a8f5a; }
.form-status.error { color: #d0432c; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy-950); color: #b7bfdd; padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-brand p { color: #8b93b8; font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: #8b93b8; transition: color var(--transition); }
.footer-col a:hover { color: var(--sky-300); }
.footer-col p { font-size: 0.9rem; color: #8b93b8; margin-bottom: 8px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 24px;
  font-size: 0.82rem;
  color: #6b7396;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--sky-300); }

/* =========================================================
   BACK TO TOP
   ========================================================= */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--grad-brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 900;
}
#back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 560px;
  margin-inline: auto;
  background: var(--navy-900);
  color: #fff;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  z-index: 2000;
  transform: translateY(140%);
  transition: transform 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { color: #cfd6ef; font-size: 0.85rem; flex: 1 1 260px; }
.cookie-banner a { text-decoration: underline; color: #fff; }
.cookie-actions { display: flex; gap: 10px; }

/* =========================================================
   SCROLL ANIMATIONS
   ========================================================= */
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-animate="fade-in"] { transform: none; }
[data-animate].is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .services-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .testimonial-track { grid-template-columns: 1fr; }
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: #fff;
    box-shadow: -20px 0 40px -20px rgba(10,20,64,0.25);
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav .nav-list { flex-direction: column; align-items: flex-start; gap: 26px; }
  .nav-toggle { display: flex; }
  .call-link span { display: none; }
  .header-actions .btn-primary { display: none; }
}

@media (max-width: 640px) {
  .services-grid, .work-grid, .process-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .trust-inner { justify-content: center; }
}