/* ==========================================================================
   ADRUTH TECHNO LEGAL SOLUTIONS PVT LTD
   Light Sky-Blue & Wheat Editorial Design System
   Core Colors: Soft Sky-Blue (#F0F5FA), Subtle Wheat/Cream (#FAF7F0), 
   Crisp White (#FFFFFF), Deep Corporate Navy (#0D1C2E / #173152), 
   Charcoal (#1E293B / #334155) & Golden-Yellow (#E5B842 / #C5A059)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Soft Sky-Blue & Wheat Canvas System */
  --bg-main: #F0F5FA;             /* Dominant soft sky-blue canvas */
  --bg-secondary: #FAF7F0;        /* Subtle wheat / warm cream editorial backdrop */
  --bg-elevated: #FFFFFF;         /* Crisp white panel / card surface */
  --bg-elevated-hover: #F8FAFD;   /* Interactive hover surface */
  --bg-accent-soft: #E5EFF9;      /* Delicate sky-blue section accent */
  
  --text-primary: #0D1C2E;        /* Deep commanding corporate navy text */
  --text-secondary: #334155;      /* Slate-700 / charcoal high-readability body text */
  --text-muted: #64748B;          /* Slate-500 helper and metadata text */
  
  /* Primary Brand Navy Blue (#173152) */
  --blue-brand: #173152;          /* Official deep corporate blue */
  --blue-dark: #0D1C2E;           /* Deepest navy */
  --blue-accent: #1F5EA9;         /* High-contrast royal corporate blue */
  --blue-accent-hover: #174A87;   /* Deep interactive blue */
  --blue-glow: rgba(31, 94, 169, 0.15); /* Soft ambient aura */
  --blue-subtle: rgba(23, 49, 82, 0.08); /* Soft corporate blue tint */
  --border-blue: rgba(31, 94, 169, 0.18); /* Refined sky/navy border */
  --border-blue-glow: rgba(31, 94, 169, 0.4); /* Highlighted blue border */
  --border-light: rgba(15, 23, 42, 0.08); /* Subtle slate divider */
  --border-wheat: rgba(197, 160, 89, 0.3); /* Warm wheat border */

  /* Golden-Yellow Brand Accent (Matching Logo Backdrop Reference) */
  --gold-accent: #B88A3B;         /* Metallic warm gold */
  --gold-bright: #E5B842;         /* Vibrant golden-yellow */
  --gold-bg: #F5D061;             /* Warm golden-yellow backdrop for logo */
  --gold-glow: rgba(229, 184, 66, 0.35); /* Ambient gold aura */

  /* Timing & Easing Curves */
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--bg-main);
  color: var(--text-primary);
}

/* Typography Classes */
.font-serif,
.serif-title {
  font-family: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  font-feature-settings: "liga" 1, "kern" 1;
}

.font-sans {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.font-mono-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  margin-top: 0;
  letter-spacing: -0.015em;
  font-weight: normal;
}

/* Reading Progress Bar with Corporate Blue / Gold Gradient */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #173152 0%, #3B7AC4 70%, #C5A059 100%);
  box-shadow: 0 0 12px rgba(59, 122, 196, 0.6);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s var(--ease-editorial);
}

/* Persistent Crisp White Backdrop for Fixed/Sticky Header */
header {
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* ==========================================================================
   CINEMATIC AMBIENT LIGHTING & SUBTLE TONE EFFECTS
   ========================================================================== */
.blue-radial-glow {
  background: radial-gradient(circle at 50% 0%, rgba(31, 94, 169, 0.08) 0%, rgba(240, 245, 250, 0.6) 45%, transparent 75%);
}

.blue-radial-center {
  background: radial-gradient(circle at 50% 50%, rgba(31, 94, 169, 0.06) 0%, rgba(250, 247, 240, 0.6) 45%, transparent 75%);
}

.glow-box-subtle {
  box-shadow: 0 4px 20px rgba(13, 28, 46, 0.05), 0 0 1px rgba(31, 94, 169, 0.15);
}

.glow-box-hover {
  transition: box-shadow 0.35s var(--ease-editorial), border-color 0.35s ease, transform 0.35s var(--ease-editorial);
}

.glow-box-hover:hover {
  box-shadow: 0 12px 30px rgba(13, 28, 46, 0.08), 0 0 15px rgba(197, 160, 89, 0.2);
  border-color: rgba(31, 94, 169, 0.35);
  transform: translateY(-3px);
}

.text-glow-blue {
  color: #173152;
}

.text-glow-gold {
  color: #B88A3B;
}

/* ==========================================================================
   VIDEO COMPONENT STYLING
   ========================================================================== */
.video-container {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-blue);
  box-shadow: 0 15px 40px rgba(13, 28, 46, 0.12), 0 0 20px rgba(31, 94, 169, 0.08);
}

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

.video-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 14, 0.2) 0%, rgba(6, 9, 14, 0.6) 70%, rgba(6, 9, 14, 0.95) 100%);
  pointer-events: none;
}

/* ==========================================================================
   LINE-MASKED TYPOGRAPHY & KEYFRAME SEQUENCES
   ========================================================================== */
.line-mask {
  display: block;
  overflow: hidden;
  line-height: 1.15;
}

.line-mask-inner {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.1s var(--ease-editorial), opacity 0.8s ease;
  will-change: transform, opacity;
}

.line-mask.revealed .line-mask-inner,
.line-mask-inner.active {
  transform: translateY(0);
  opacity: 1;
}

@keyframes heroLineSlide {
  0% {
    transform: translateY(115%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroClipReveal {
  0% {
    clip-path: inset(100% 0% 0% 0%);
    transform: scale(1.08);
  }
  100% {
    clip-path: inset(0% 0% 0% 0%);
    transform: scale(1);
  }
}

.animate-hero-line-1 {
  animation: heroLineSlide 1.1s var(--ease-editorial) 0.15s both;
}

.animate-hero-line-2 {
  animation: heroLineSlide 1.1s var(--ease-editorial) 0.3s both;
}

.animate-hero-line-3 {
  animation: heroLineSlide 1.1s var(--ease-editorial) 0.45s both;
}

.animate-hero-badge {
  animation: heroFadeIn 0.8s var(--ease-editorial) 0.1s both;
}

.animate-hero-desc {
  animation: heroFadeIn 0.9s var(--ease-editorial) 0.55s both;
}

.animate-hero-cta {
  animation: heroFadeIn 0.9s var(--ease-editorial) 0.7s both;
}

.animate-hero-image {
  animation: heroClipReveal 1.35s var(--ease-editorial) 0.25s both;
}

/* Growing Accent Hairline */
.grow-line {
  position: relative;
  width: 0%;
  height: 1px;
  background-color: var(--border-dark);
  transition: width 1.2s var(--ease-editorial);
  will-change: width;
}

.grow-line.blue {
  background: linear-gradient(90deg, #3B7AC4 0%, #173152 70%, rgba(197, 160, 89, 0.4) 100%);
  box-shadow: 0 0 10px rgba(59, 122, 196, 0.5);
}

.grow-line.active {
  width: 100% !important;
}

/* Scroll Trigger Reveal System */
.reveal,
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s var(--ease-editorial), transform 0.85s var(--ease-editorial);
  will-change: opacity, transform;
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.9s ease;
  will-change: opacity;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.9s var(--ease-editorial), transform 0.9s var(--ease-editorial);
  will-change: opacity, transform;
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.9s var(--ease-editorial), transform 0.9s var(--ease-editorial);
  will-change: opacity, transform;
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.95s var(--ease-editorial), transform 0.95s var(--ease-editorial);
  will-change: opacity, transform;
}

.reveal.active,
.reveal-up.active,
.reveal-fade.active,
.reveal-left.active,
.reveal-right.active,
.reveal-zoom.active {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

.delay-100 { transition-delay: 0.1s !important; }
.delay-200 { transition-delay: 0.2s !important; }
.delay-300 { transition-delay: 0.3s !important; }
.delay-400 { transition-delay: 0.4s !important; }
.delay-500 { transition-delay: 0.5s !important; }

/* ==========================================================================
   BUTTON DESIGN SYSTEM — RICH NAVY (#173152) & ROYAL BLUE GLOW
   ========================================================================== */

/* 1. Primary Blue Pill Button (#173152) */
.btn-blue-pill {
  background: linear-gradient(135deg, #173152 0%, #10233b 100%) !important;
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  padding: 0.65rem 1.45rem !important;
  border: 1px solid var(--border-blue) !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 18px rgba(23, 49, 82, 0.4), 0 0 15px rgba(59, 122, 196, 0.2) !important;
  transition: all 0.3s var(--ease-editorial) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

.btn-blue-pill:hover {
  background: linear-gradient(135deg, #204572 0%, #173152 100%) !important;
  color: #FFFFFF !important;
  border-color: var(--border-blue-glow) !important;
  box-shadow: 0 6px 26px rgba(23, 49, 82, 0.6), 0 0 30px rgba(59, 122, 196, 0.45) !important;
  transform: translateY(-2px) !important;
}

.btn-blue-pill:hover i,
.btn-blue-pill:hover svg {
  color: #E5C378 !important; /* Gold flash on hover */
}

/* 2. Solid Royal Blue Button */
.btn-blue-primary {
  background: linear-gradient(135deg, #255B9A 0%, #173152 100%) !important;
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  padding: 0.7rem 1.6rem !important;
  border: 1px solid rgba(94, 154, 227, 0.4) !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 20px rgba(23, 49, 82, 0.5), 0 0 25px rgba(59, 122, 196, 0.35) !important;
  transition: all 0.3s var(--ease-editorial) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.btn-blue-primary:hover {
  background: linear-gradient(135deg, #3B7AC4 0%, #204572 100%) !important;
  border-color: #5693DD !important;
  box-shadow: 0 6px 30px rgba(23, 49, 82, 0.7), 0 0 35px rgba(59, 122, 196, 0.6) !important;
  transform: translateY(-2px) !important;
}

/* 3. Dark Outline Button */
.btn-dark-outline {
  background-color: transparent !important;
  color: var(--text-primary) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  padding: 0.65rem 1.4rem !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 9999px !important;
  transition: all 0.28s var(--ease-editorial) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.btn-dark-outline:hover {
  border-color: var(--blue-accent) !important;
  background-color: rgba(23, 49, 82, 0.35) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 25px rgba(59, 122, 196, 0.3) !important;
  transform: translateY(-1.5px) !important;
}

/* ==========================================================================
   DISTINCTIVE HORIZONTAL EXPERTISE PANELS
   ========================================================================== */
.horizontal-panel {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-blue);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(23, 49, 82, 0.3);
  transition: all 0.4s var(--ease-editorial);
  position: relative;
}

.horizontal-panel:hover {
  border-color: var(--border-blue-glow);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7), 0 0 45px rgba(59, 122, 196, 0.25);
  transform: translateY(-4px);
}

.horizontal-panel-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.85s var(--ease-editorial);
}

.horizontal-panel:hover .horizontal-panel-img {
  transform: scale(1.045);
}

/* ==========================================================================
   BADGES & EYEBROWS (BLUE & GOLD)
   ========================================================================== */
.badge-blue-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.95rem;
  border-radius: 9999px;
  background: rgba(31, 94, 169, 0.08);
  border: 1px solid rgba(31, 94, 169, 0.25);
  box-shadow: 0 1px 4px rgba(31, 94, 169, 0.08);
  color: #173152;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.6875rem; /* 11px */
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Gold Badge Variant */
.badge-gold-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.95rem;
  border-radius: 9999px;
  background: rgba(229, 184, 66, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.45);
  box-shadow: 0 1px 4px rgba(197, 160, 89, 0.15);
  color: #8C651E;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ==========================================================================
   FRAMEWORK METHODOLOGY STEPPER
   ========================================================================== */
.methodology-card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-blue);
  border-radius: 18px;
  transition: all 0.35s var(--ease-editorial);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(13, 28, 46, 0.05);
}

.methodology-card:hover {
  border-color: var(--blue-accent);
  box-shadow: 0 10px 28px rgba(31, 94, 169, 0.15);
  transform: translateY(-3px);
}

/* ==========================================================================
   HORIZONTAL NAVIGATION RIBBON & BUTTONS
   ========================================================================== */
.nav-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  background-color: #FFFFFF;
  color: #0D1C2E;
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 9999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 5px rgba(13, 28, 46, 0.06);
  transition: all 0.25s var(--ease-editorial);
}

.nav-hub-btn:hover {
  background: linear-gradient(135deg, #FAF7F0 0%, #FFFFFF 100%);
  border-color: #B88A3B;
  color: #173152;
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25);
  transform: translateY(-1.5px);
}

.nav-hub-btn:hover i,
.nav-hub-btn:hover svg {
  color: #B88A3B !important;
}

/* ==========================================================================
   DIFFERENTIATORS ROW / STACKED STATEMENTS
   ========================================================================== */
.differentiator-item {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

.differentiator-item:first-child {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.differentiator-item:hover {
  border-bottom-color: var(--blue-accent);
  padding-left: 0.75rem;
}

.differentiator-item:hover .diff-num {
  color: #1F5EA9;
}

/* Scroll indicator glide */
@keyframes scrollGlide {
  0% {
    transform: translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.9;
  }
}

.scroll-indicator-dot {
  animation: scrollGlide 2.2s infinite var(--ease-editorial);
}

/* ==========================================================================
   LIGHT EDITORIAL ENQUIRY MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(13, 28, 46, 0.65);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease-in-out;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #FFFFFF;
  border: 1px solid rgba(31, 94, 169, 0.2);
  border-radius: 20px;
  color: #0D1C2E;
  max-width: 42rem;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(13, 28, 46, 0.35), 0 0 25px rgba(31, 94, 169, 0.15);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.28s var(--ease-editorial);
}

.modal-backdrop.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  background-color: #F8FAFD !important;
  color: #0D1C2E !important;
  border: 1px solid rgba(31, 94, 169, 0.25) !important;
  border-radius: 0.75rem !important;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  background-color: #FFFFFF !important;
  border-color: #1F5EA9 !important;
  box-shadow: 0 0 0 3px rgba(31, 94, 169, 0.15) !important;
  outline: none !important;
}

/* ==========================================================================
   LIGHT SKY-BLUE & WHEAT GLOBAL CONTRAST MAPPINGS
   ========================================================================== */
.bg-sky-canvas {
  background-color: #F0F5FA !important;
}

.bg-wheat-editorial {
  background-color: #FAF7F0 !important;
}

.logo-gold-badge {
  background: linear-gradient(135deg, #F5D061 0%, #E5B842 50%, #D4A328 100%);
  border: 1px solid rgba(200, 155, 36, 0.45);
  box-shadow: 0 3px 12px rgba(212, 163, 40, 0.35);
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background-color: #173152;
  color: #6EA7E8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(59, 122, 196, 0.3);
  border: 1px solid var(--border-blue);
  z-index: 80;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s var(--ease-editorial);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background-color: #255B9A;
  border-color: #5693DD;
  color: #FFFFFF;
  box-shadow: 0 0 30px rgba(59, 122, 196, 0.55);
  transform: translateY(-2px);
}

/* ==========================================================================
   ACCESSIBILITY COMPLIANCE (REDUCED MOTION)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  
  .line-mask-inner,
  .reveal,
  .reveal-up,
  .reveal-fade,
  .reveal-left,
  .reveal-right,
  .reveal-zoom,
  .grow-line {
    opacity: 1 !important;
    transform: none !important;
    width: 100% !important;
  }
}
