/* =========================================================
   CodeAugs — Premium Viewport Animation System
   Brand glow: cyan #00E5FF / purple #A855F7
   GPU-accelerated (transform + opacity only)
   ========================================================= */

:root {
  --ca-cyan: #00e5ff;
  --ca-purple: #a855f7;
  --ca-glow-cyan: 0 0 0 1px rgba(0, 229, 255, 0.18),
    0 12px 40px -10px rgba(0, 229, 255, 0.45);
  --ca-glow-purple: 0 0 0 1px rgba(168, 85, 247, 0.2),
    0 12px 40px -10px rgba(168, 85, 247, 0.5);
  --ca-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ca-dur: 0.85s;
}

/* ---------- Base reveal classes ---------- */
[data-ca-anim] {
  opacity: 0;
  will-change: transform, opacity, filter;
  transition:
    opacity var(--ca-dur) var(--ca-ease),
    transform var(--ca-dur) var(--ca-ease),
    filter var(--ca-dur) var(--ca-ease),
    letter-spacing 1.2s var(--ca-ease);
  transition-delay: var(--ca-delay, 0s);
}

[data-ca-anim="fade-up"]    { transform: translate3d(0, 32px, 0); }
[data-ca-anim="fade-down"]  { transform: translate3d(0, -32px, 0); }
[data-ca-anim="fade-left"]  { transform: translate3d(-40px, 0, 0); }
[data-ca-anim="fade-right"] { transform: translate3d(40px, 0, 0); }
[data-ca-anim="scale-in"]   { transform: scale(0.94); }
[data-ca-anim="glow-in"]    { transform: scale(0.97); filter: blur(6px); }

/* Heading-specific: subtle letter-spacing tighten */
[data-ca-anim][data-ca-text="heading"] {
  letter-spacing: 0.04em;
  transform: translate3d(0, 28px, 0);
}

/* Visible state */
[data-ca-anim].ca-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: none;
  letter-spacing: normal;
}

/* Stagger via inline --ca-delay (set by JS) */

/* ---------- Section ambient glow ---------- */
section {
  position: relative;
  isolation: isolate;
}
section[data-ca-section]::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.4s var(--ca-ease);
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(0, 229, 255, 0.08), transparent 70%),
    radial-gradient(50% 45% at 85% 100%, rgba(168, 85, 247, 0.09), transparent 70%);
}
section[data-ca-section].ca-in::before { opacity: 1; }

/* ---------- Card polish (non-destructive) ---------- */
.card-box,
.card-wrapper,
.item-wrapper {
  transition:
    transform 0.5s var(--ca-ease),
    box-shadow 0.5s var(--ca-ease),
    border-color 0.5s var(--ca-ease);
}
.item-wrapper:hover .card-box,
.card-wrapper:hover,
.card:hover .card-wrapper {
  transform: translateY(-5px);
  box-shadow: var(--ca-glow-cyan);
}
.features-without-image:nth-child(even) .item-wrapper:hover .card-box {
  box-shadow: var(--ca-glow-purple);
}

/* ---------- Count-up cosmetic ---------- */
[data-ca-count] {
  display: inline-block;
  background: linear-gradient(135deg, var(--ca-cyan), var(--ca-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-ca-anim] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ============================================================
   CodeAugs Hero Auto-Loop Showcase
   ============================================================ */
.hero-loop-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: #0A0F1C;
  isolation: isolate;
}
.hero-loop-container::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(0, 229, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(168, 85, 247, 0.18), transparent 55%);
  pointer-events: none;
  z-index: 1;
}
.hero-loop-container::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,15,28,0.55) 0%, rgba(10,15,28,0.85) 100%);
  pointer-events: none;
  z-index: 2;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.98);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.9s;
  z-index: 3;
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
  z-index: 4;
}
.hero-slide.is-leaving {
  opacity: 0;
  transform: translateY(-20px) scale(1);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-media img,
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 6s ease-out;
  filter: saturate(1.05) contrast(1.05);
}
.hero-slide.is-active .hero-media img,
.hero-slide.is-active .hero-media video {
  transform: scale(1.08);
}
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 640px;
  margin-left: clamp(1.25rem, 6vw, 6rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.25));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 229, 255, 0.06);
  transform: translateY(0);
  animation: hero-float 8s ease-in-out infinite;
}
.hero-slide.is-active .hero-content {
  animation: hero-float 8s ease-in-out infinite 0.4s;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #00E5FF;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  margin-bottom: 1.25rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00E5FF;
  box-shadow: 0 0 12px #00E5FF;
}
.hero-title {
  font-family: 'Space Grotesk', 'Manrope', 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 5.2vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 1.1rem;
}
.hero-title .grad {
  background: linear-gradient(120deg, #ffffff 0%, #00E5FF 50%, #A855F7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text {
  font-family: 'Inter Tight', 'Manrope', system-ui, sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.6;
  color: #C0C6CF;
  margin: 0 0 1.75rem;
  max-width: 52ch;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  color: #0A0F1C;
  background: linear-gradient(135deg, #00E5FF 0%, #A855F7 100%);
  border: none;
  text-decoration: none;
  box-shadow:
    0 10px 30px -10px rgba(0, 229, 255, 0.55),
    0 10px 30px -15px rgba(168, 85, 247, 0.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}
.hero-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  color: #0A0F1C;
  box-shadow:
    0 16px 40px -12px rgba(0, 229, 255, 0.7),
    0 16px 40px -18px rgba(168, 85, 247, 0.7);
}
.hero-cta svg { transition: transform 0.3s ease; }
.hero-cta:hover svg { transform: translateX(4px); }

/* Indicators */
.hero-indicators {
  position: absolute;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.65rem;
  z-index: 10;
}
.hero-indicator {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 44px; height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.hero-indicator .fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #00E5FF, #A855F7);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.hero-indicator.is-active .fill {
  transform: scaleX(1);
  transition: transform var(--hero-duration, 5500ms) linear;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-loop-container { height: auto; min-height: 92vh; }
  .hero-content {
    margin: clamp(4rem, 14vw, 6rem) 1rem 5rem;
    max-width: none;
  }
  .hero-indicators { bottom: 1.25rem; }
  .hero-indicator { width: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-active,
  .hero-media img,
  .hero-content {
    transition: opacity 0.2s linear !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   About Hero — Cinematic Authority
   ========================================================================== */
.about-hero-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background-color: #05080F;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.about-hero-bg {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  will-change: transform;
  animation: aboutHeroZoom 14s ease-out forwards;
  z-index: 0;
}
@keyframes aboutHeroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.about-hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(10,15,28,0.35) 0%, rgba(10,15,28,0.85) 60%, rgba(5,8,15,0.96) 100%),
    linear-gradient(180deg, rgba(5,8,15,0.85) 0%, rgba(5,8,15,0.35) 35%, rgba(5,8,15,0.55) 70%, rgba(5,8,15,0.95) 100%);
  z-index: 1;
}
.about-hero-glow {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  z-index: 1;
  pointer-events: none;
}
.about-hero-glow--cyan   { background: #00E5FF; top: -180px; left: -160px; }
.about-hero-glow--purple { background: #A855F7; bottom: -200px; right: -160px; opacity: 0.35; }

.about-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  padding: 9rem 1.5rem 7rem;
  text-align: center;
}
.about-hero-panel {
  display: inline-block;
  padding: 3rem clamp(1.5rem, 4vw, 4rem);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,229,255,0.04);
}

/* Eyebrow */
.about-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #00E5FF;
  padding: 8px 18px;
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 999px;
  background: rgba(0,229,255,0.05);
  margin-bottom: 1.75rem;
  opacity: 0; transform: translateY(20px);
}
.about-hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00E5FF; box-shadow: 0 0 12px #00E5FF;
}

/* Headline */
.about-hero-headline {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 5.4vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin: 0 0 1.5rem;
  opacity: 0; transform: translateY(30px);
  text-shadow: 0 0 60px rgba(0,229,255,0.15);
}
.about-hero-gradient {
  background: linear-gradient(120deg, #FFFFFF 0%, #00E5FF 45%, #A855F7 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Subtext */
.about-hero-subtext {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
  color: #C0C6CF;
  max-width: 780px;
  margin: 0 auto 2rem;
  opacity: 0; transform: translateY(30px);
}

/* Accent line */
.about-hero-accent {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.05vw, 1rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #E6EAF2;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,229,255,0.08), rgba(168,85,247,0.08));
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
.about-hero-accent .ah-word {
  opacity: 0; transform: translateY(12px);
  display: inline-block;
}
.about-hero-accent .ah-sep {
  color: #00E5FF; opacity: 0; transform: translateY(12px);
  display: inline-block;
}

.about-hero-cta {
  opacity: 0; transform: translateY(20px);
  margin-top: 0.5rem;
}
.about-hero-cta .btn {
  padding: 14px 32px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0,229,255,0.45) !important;
  color: #fff !important;
  background: linear-gradient(135deg, rgba(0,229,255,0.10), rgba(168,85,247,0.10)) !important;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease !important;
  letter-spacing: 0.04em;
}
.about-hero-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(0,229,255,0.35);
  background: linear-gradient(135deg, rgba(0,229,255,0.18), rgba(168,85,247,0.18)) !important;
}

/* Animated states (added by JS on load) */
.about-hero-container.is-ready [data-ah-anim="eyebrow"] {
  animation: ahFadeUp 0.8s cubic-bezier(.22,1,.36,1) 0.05s forwards;
}
.about-hero-container.is-ready [data-ah-anim="headline"] {
  animation: ahFadeUp 1s cubic-bezier(.22,1,.36,1) 0.25s forwards;
}
.about-hero-container.is-ready [data-ah-anim="subtext"] {
  animation: ahFadeUp 0.95s cubic-bezier(.22,1,.36,1) 0.55s forwards;
}
.about-hero-container.is-ready [data-ah-anim="accent"] .ah-word,
.about-hero-container.is-ready [data-ah-anim="accent"] .ah-sep {
  animation: ahFadeUp 0.7s cubic-bezier(.22,1,.36,1) forwards;
}
.about-hero-container.is-ready [data-ah-anim="accent"] > *:nth-child(1) { animation-delay: 0.95s; }
.about-hero-container.is-ready [data-ah-anim="accent"] > *:nth-child(2) { animation-delay: 1.05s; }
.about-hero-container.is-ready [data-ah-anim="accent"] > *:nth-child(3) { animation-delay: 1.15s; }
.about-hero-container.is-ready [data-ah-anim="accent"] > *:nth-child(4) { animation-delay: 1.25s; }
.about-hero-container.is-ready [data-ah-anim="accent"] > *:nth-child(5) { animation-delay: 1.35s; }
.about-hero-container.is-ready [data-ah-anim="cta"] {
  animation: ahFadeUp 0.85s cubic-bezier(.22,1,.36,1) 1.55s forwards;
}

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

/* Responsive */
@media (max-width: 768px) {
  .about-hero-content { padding: 7rem 1rem 5rem; }
  .about-hero-panel   { padding: 2rem 1.25rem; border-radius: 20px; }
  .about-hero-accent  { gap: 10px; padding: 10px 16px; letter-spacing: 0.2em; }
  .about-hero-glow    { width: 380px; height: 380px; filter: blur(90px); }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero-bg { animation: none !important; }
  .about-hero-container.is-ready [data-ah-anim],
  .about-hero-container.is-ready [data-ah-anim] * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
