/*
  ┌─────────────────────────────────────────────────────────────────────┐
  │  AVAN IT Solutions — Creative Design System                         │
  │  Photography-Inspired Composition Rules Applied Throughout          │
  │                                                                     │
  │  Principles:                                                        │
  │  • Rule of Thirds — content anchored at 1/3 intersections          │
  │  • Golden Ratio (1.618) — column splits, font scales, spacing      │
  │  • Leading Lines — gradients + borders guide the eye               │
  │  • Negative Space — let the dark breathe                           │
  │  • Depth of Field — sharp foreground, blurred/muted bg             │
  │  • Framing — cards and overlays "frame" focal content              │
  │  • Vignette — edges darker, focal point brighter                   │
  └─────────────────────────────────────────────────────────────────────┘
*/

/* ── PAGE HERO WRAPPERS ──────────────────────────────────────────────── */

/*
  Each page hero uses a unique compositional gradient.
  We name them by their "photographic mood" rather than their page.
*/

/* INDEX — Cinematic Left-Lead (Golden Ratio 62/38) */
.hero-index .hero-overlay {
  background:
    linear-gradient(105deg,
      rgba(10,10,11,0.95) 0%,
      rgba(10,10,11,0.80) 38.2%,
      rgba(10,10,11,0.30) 61.8%,
      rgba(10,10,11,0.04) 100%);
}

/* ABOUT — Portrait / Centred Vignette */
.hero-about .hero-overlay {
  background:
    radial-gradient(ellipse 70% 90% at 50% 40%,
      rgba(10,10,11,0.0) 0%,
      rgba(10,10,11,0.5) 55%,
      rgba(10,10,11,0.94) 100%),
    linear-gradient(180deg, rgba(10,10,11,0.6) 0%, rgba(10,10,11,0.0) 40%, rgba(10,10,11,0.85) 100%);
}

/* SERVICES — Diagonal Split (Rule of Thirds diagonal) */
.hero-services .hero-overlay {
  background:
    linear-gradient(135deg,
      rgba(10,10,11,0.96) 0%,
      rgba(10,10,11,0.75) 33%,
      rgba(10,10,11,0.20) 66%,
      rgba(10,10,11,0.05) 100%);
}

/* CLIENTS — Bottom-Up (content anchored at lower-third) */
.hero-clients .hero-overlay {
  background:
    linear-gradient(0deg,
      rgba(10,10,11,0.98) 0%,
      rgba(10,10,11,0.70) 33%,
      rgba(10,10,11,0.20) 66%,
      rgba(10,10,11,0.08) 100%);
}

/* CAREERS — Right-Anchor (text on right, Rule of Thirds) */
.hero-careers .hero-overlay {
  background:
    linear-gradient(255deg,
      rgba(10,10,11,0.96) 0%,
      rgba(10,10,11,0.80) 38.2%,
      rgba(10,10,11,0.30) 61.8%,
      rgba(10,10,11,0.04) 100%);
}

/* CONTACT — Corner Spotlight (dramatic top-right light) */
.hero-contact .hero-overlay {
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%,
      rgba(0,229,255,0.06) 0%,
      transparent 60%),
    linear-gradient(160deg,
      rgba(10,10,11,0.05) 0%,
      rgba(10,10,11,0.6) 50%,
      rgba(10,10,11,0.97) 100%);
}

/* LEARNING — Warm Bottom Third */
.hero-learning .hero-overlay {
  background:
    linear-gradient(170deg,
      rgba(10,10,11,0.10) 0%,
      rgba(10,10,11,0.50) 33%,
      rgba(10,10,11,0.92) 66%,
      rgba(10,10,11,0.98) 100%);
}

/* TECH-STACK — Centre-Stage Spotlight */
.hero-tech .hero-overlay {
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%,
      rgba(10,10,11,0.0) 0%,
      rgba(10,10,11,0.55) 50%,
      rgba(10,10,11,0.95) 100%),
    linear-gradient(180deg, rgba(10,10,11,0.4) 0%, transparent 50%, rgba(10,10,11,0.4) 100%);
}

/* SERVICE DETAIL PAGES — Side Lead */
.hero-service-detail .hero-overlay {
  background:
    linear-gradient(100deg,
      rgba(10,10,11,0.97) 0%,
      rgba(10,10,11,0.75) 40%,
      rgba(10,10,11,0.20) 75%,
      rgba(10,10,11,0.05) 100%);
}

/* ── UNIVERSAL HERO STRUCTURE ────────────────────────────────────────── */

.page-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;           /* Rule of Thirds — content at bottom third */
  overflow: hidden;
  background: transparent;
}

.page-hero.hero-tall { min-height: 90vh; }
.page-hero.hero-short { min-height: 52vh; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Subtle dot texture — adds photographic grain feel */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,229,255,0.06) 1px, transparent 0);
  background-size: 52px 52px;
}

/* Chromatic accent line — like a lens flare in photography */
.hero-flare {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,229,255,0.4) 30%,
    rgba(112,0,255,0.3) 70%,
    transparent 100%);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

@media (min-width: 768px) {
  .hero-content { padding: 0 64px 80px; }
}
@media (min-width: 1200px) {
  .hero-content { padding: 0 96px 96px; }
}

/* ── HERO TYPOGRAPHY SYSTEM ──────────────────────────────────────────── */

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00e5ff;
}
.hero-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 24px;
}

/* Font sizes — Golden Ratio scale */
.hero-title-xl { font-size: clamp(2.5rem, 6vw, 5.5rem); }
.hero-title-lg { font-size: clamp(2rem, 5vw, 4.2rem); }
.hero-title-md { font-size: clamp(1.8rem, 4vw, 3.2rem); }

.hero-subtitle {
  font-family: 'Sora', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.75;
  color: #bac9cc;
  max-width: 580px;
  font-weight: 300;
  margin-bottom: 40px;
}

/* Gradient text variants */
.grad-cyan {
  background: linear-gradient(135deg, #c3f5ff 0%, #00e5ff 60%, #7000ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.grad-gold {
  background: linear-gradient(90deg, #FFD700, #FF8C00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.grad-violet {
  background: linear-gradient(135deg, #d1bcff, #9d4dff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── BUTTONS ──────────────────────────────────────────────────────────── */

.avan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 14px;
  padding: 14px 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.avan-btn-primary {
  background: linear-gradient(135deg, #00e5ff, #0099cc);
  color: #001a1f;
}
.avan-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,229,255,0.35);
}
.avan-btn-primary:active { transform: translateY(0); }

.avan-btn-ghost {
  background: transparent;
  color: #e5e1e4;
  border: 1.5px solid rgba(255,255,255,0.14);
}
.avan-btn-ghost:hover {
  border-color: rgba(0,229,255,0.4);
  color: #00e5ff;
  background: rgba(0,229,255,0.05);
  transform: translateY(-2px);
}

/* ── SECTION SYSTEM ───────────────────────────────────────────────────── */

.avan-section {
  padding: 96px 24px;
}
@media (min-width: 768px) { .avan-section { padding: 112px 64px; } }
@media (min-width: 1200px) { .avan-section { padding: 128px 96px; } }

.avan-container {
  max-width: 1360px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #00e5ff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: #00e5ff;
  flex-shrink: 0;
}

.section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
}

/* Asymmetric heading — Rule of Thirds horizontal anchoring */
.heading-left-anchor {
  text-align: left;
  max-width: 61.8%;   /* Golden ratio */
}
@media (max-width: 768px) { .heading-left-anchor { max-width: 100%; } }

/* ── GLASS CARDS ─────────────────────────────────────────────────────── */

.glass {
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

.glass:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(0,229,255,0.18);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,229,255,0.08);
}

/* Colored glass variants */
.glass-cyan  { border-color: rgba(0,229,255,0.12); }
.glass-violet { border-color: rgba(112,0,255,0.12); }
.glass-gold  { border-color: rgba(255,215,0,0.12); }

/* ── DIAGONAL SECTION DIVIDER ────────────────────────────────────────── */
/* Like a tilted horizon line in photography — creates dynamic energy    */

.section-diagonal-top {
  position: relative;
}
.section-diagonal-top::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 60px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
  z-index: 1;
}

/* ── STAT NUMBERS ────────────────────────────────────────────────────── */

.stat-block { text-align: left; }

.stat-block .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #c3f5ff, #00e5ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

.stat-block .lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #849396;
  margin-top: 6px;
}

/* ── PILL / TAG ──────────────────────────────────────────────────────── */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tag-cyan {
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.2);
  color: #00e5ff;
}
.tag-violet {
  background: rgba(112,0,255,0.07);
  border: 1px solid rgba(112,0,255,0.25);
  color: #b388ff;
}
.tag-gold {
  background: rgba(255,215,0,0.07);
  border: 1px solid rgba(255,215,0,0.2);
  color: #FFD700;
}
.tag-muted {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #bac9cc;
}

/* ── PULSING LIVE DOT ────────────────────────────────────────────────── */

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5ff;
  animation: pulse-live 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,229,255,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(0,229,255,0); }
}

/* ── KINETIC HOVER CARD ──────────────────────────────────────────────── */
/* Mimics depth of field — card lifts like moving from background focus  */

.kinetic-card {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.4s ease;
  transform-origin: center bottom;
}
.kinetic-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,229,255,0.12);
}

/* ── GRID LINES (subtle Rule of Thirds visual guides) ───────────────── */

.rof-bg {
  position: relative;
}
.rof-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,229,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.02) 1px, transparent 1px);
  background-size: 33.33% 33.33%;
  z-index: 0;
}

/* ── PARALLAX DEPTH LAYER ────────────────────────────────────────────── */
/* Creates depth-of-field-like layering without actual parallax JS       */

.depth-back {
  opacity: 0.35;
  filter: blur(1px);
  transition: opacity 0.5s ease, filter 0.5s ease;
}
.depth-back:hover {
  opacity: 0.6;
  filter: blur(0);
}

/* ── SCROLL REVEAL (replaces generic 'reveal-up') ───────────────────── */

.appear {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.appear.visible {
  opacity: 1;
  transform: translateY(0);
}
.appear-delay-1 { transition-delay: 100ms; }
.appear-delay-2 { transition-delay: 200ms; }
.appear-delay-3 { transition-delay: 300ms; }
.appear-delay-4 { transition-delay: 450ms; }

/* ── BREADCRUMB / PAGE INDICATOR ────────────────────────────────────── */

.page-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #849396;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}
.page-indicator a { color: #849396; text-decoration: none; transition: color 0.2s; }
.page-indicator a:hover { color: #00e5ff; }
.page-indicator .sep { opacity: 0.4; }
.page-indicator .current { color: #00e5ff; }

/* ── ACCENT RULE LINE ────────────────────────────────────────────────── */
/* Like a horizon line in photography — defines foreground/background   */

.accent-rule {
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #00e5ff, #7000ff);
  margin-bottom: 28px;
}

/* ── FLOATING WIDGET CARD (for hero sidebars) ────────────────────────── */

@keyframes float-gentle {
  0%, 100% { transform: translateY(0px) rotate(-0.5deg); }
  50%       { transform: translateY(-10px) rotate(0.5deg); }
}
.float-widget {
  animation: float-gentle 5s ease-in-out infinite;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px 24px;
}

/* ── RESPONSIVE HELPERS ──────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero-title-xl { font-size: clamp(1.85rem, 7vw, 2.4rem); line-height: 1.15; }
  .hero-title-lg { font-size: clamp(1.6rem, 6vw, 2rem); line-height: 1.2; }
  .hero-title-md { font-size: clamp(1.4rem, 5vw, 1.7rem); line-height: 1.25; }
  .hero-subtitle  { font-size: 0.95rem; line-height: 1.5; }
  .avan-btn       { padding: 12px 24px; font-size: 0.88rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .page-hero      { min-height: 55vh; padding-top: 100px; padding-bottom: 40px; align-items: flex-end; }
  .page-hero.hero-tall { min-height: 70vh; padding-top: 110px; }
  .float-widget   { padding: 14px 16px; border-radius: 14px; max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-title-xl { font-size: clamp(1.55rem, 7.5vw, 1.95rem); }
  .hero-title-lg { font-size: clamp(1.4rem, 6.5vw, 1.7rem); }
  .hero-subtitle  { font-size: 0.88rem; }
  .avan-btn       { width: 100%; text-align: center; justify-content: center; }
}

/* ── MISC UTILITIES ──────────────────────────────────────────────────── */

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.text-muted  { color: #849396; }
.text-soft   { color: #bac9cc; }
.text-bright { color: #e5e1e4; }
.text-cyan   { color: #00e5ff; }
.text-violet { color: #9d4dff; }
.text-gold   { color: #FFD700; }

/* ── LIGHT MODE OVERLAYS & CREATIVE ADAPTORS ───────────────────────── */
html.light .hero-overlay,
html.light .hero-index .hero-overlay,
html.light .hero-about .hero-overlay,
html.light .hero-services .hero-overlay,
html.light .hero-clients .hero-overlay,
html.light .hero-careers .hero-overlay,
html.light .hero-contact .hero-overlay,
html.light .hero-service-detail .hero-overlay {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.75) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
}

html.light .hero-grain {
  opacity: 0.05 !important;
}
html.light .hero-flare {
  opacity: 0.15 !important;
}

html.light .float-widget {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(203, 213, 225, 0.9) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

html.light .stat-block .num {
  color: #00838f !important;
}
html.light .stat-block .lbl {
  color: #64748b !important;
}

html.light .tag,
html.light .tag-cyan,
html.light .tag-violet,
html.light .tag-gold {
  background: rgba(0, 184, 212, 0.1) !important;
  border-color: rgba(0, 184, 212, 0.3) !important;
  color: #00838f !important;
}

html.light .page-indicator a,
html.light .page-indicator .sep {
  color: #64748b !important;
}
html.light .page-indicator .current {
  color: #0f172a !important;
}

html.light .text-muted  { color: #64748b !important; }
html.light .text-soft   { color: #334155 !important; }
html.light .text-bright { color: #0f172a !important; }

/* ── AMBIENT FX & STICKY SECTION NAV (Duhitr-inspired) ─────────────────── */
.ambient-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  animation: blobFloat 18s ease-in-out infinite alternate;
}

.ambient-gold {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #FFD700 0%, rgba(255,215,0,0) 70%);
  top: -100px; right: -100px;
}

.ambient-cyan {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #00e5ff 0%, rgba(0,229,255,0) 70%);
  bottom: 10%; left: -150px;
  animation-delay: -6s;
}

.ambient-violet {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #7000ff 0%, rgba(112,0,255,0) 70%);
  top: 40%; right: -120px;
  animation-delay: -12s;
}

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* Sticky Section Tab Bar */
.sticky-section-bar {
  position: sticky;
  top: 64px;
  z-index: 45;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-y: 1px solid rgba(0, 229, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.section-tabs-inner {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  max-width: 1280px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.section-tab-btn:hover, .section-tab-btn.active {
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

/* Orbital Ecosystem Diagram Animations */
@keyframes coreOrbit  { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes coreOrbitR { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes coreFloat  { 0%,100% { transform: translate(-50%,-50%) translateY(0); } 50% { transform: translate(-50%,-50%) translateY(-10px); } }
@keyframes coreHalo   { 0%,100% { opacity: 0.4; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 0.9; transform: translate(-50%,-50%) scale(1.08); } }
@keyframes beamFlow   { to { stroke-dashoffset: -28; } }

.orbital-node {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.orbital-node:hover {
  transform: translate(-50%, -50%) scale(1.1);
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.6));
}


