/* ==========================================================================
   IGNITE TECHNOLOGY GROUP - PRISM FRAMER BASE & ANIMATIONS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: #000000;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* GPU-Accelerated Hardware Layer for Background (Eliminates Scroll Lag) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #000000;
  background-image:
    /* Ultra-subtle stealth ambient reflections */
    radial-gradient(ellipse 40% 60% at 3% 35%, rgba(30, 58, 138, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 35% 50% at 6% 85%, rgba(30, 64, 175, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 97% 35%, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 35% 50% at 94% 85%, rgba(16, 185, 129, 0.04) 0%, transparent 55%),
    /* Fluted Vertical Ribbed Texture (Smoked obsidian glass flutes) */
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.015) 0px,
      rgba(255, 255, 255, 0.015) 1px,
      rgba(255, 255, 255, 0.003) 2px,
      transparent 3px,
      transparent 28px,
      rgba(0, 0, 0, 0.6) 29px,
      rgba(0, 0, 0, 0.85) 30px,
      transparent 31px,
      transparent 32px
    );
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 32px 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* --------------------------------------------------------------------------
   AMBIENT GLOW & CURSOR ENGINE
   -------------------------------------------------------------------------- */

/* Subtle Interactive Cursor Glow */
.cursor-spotlight {
  position: fixed;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.08) 0%, rgba(6, 182, 212, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

body:hover .cursor-spotlight {
  opacity: 1;
}

/* Top Iridescent Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-accent);
  z-index: 1200;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.8);
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   ON-SCROLL ANIMATION ENGINE
   -------------------------------------------------------------------------- */
[data-reveal] {
  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);
  will-change: opacity, transform;
}

[data-reveal="scale-up"] {
  transform: scale(0.94) translateY(20px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   CONTAINER & SECTION SPACING
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 0.5rem, 4.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #c084fc 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.font-mono {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-purple);
}
