/* ============================================================
   NOVA COMPONENT - CORE STYLES
   ============================================================= */

:root {
  --nova-bg: #050505;
  --nova-blue: #004d94;
  --nova-gold: #d2b99a;
  --nova-muted: #c3c5c6;
  --nova-border: rgba(255, 255, 255, 0.1);
  --nova-term-bg: #0a0a0a;
}

/* Base utility for the component */
.nova-section {
  padding: 100px 0;
  position: relative;
  background-color: var(--nova-bg);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
}

.nova-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

/* Atmospheric Ambient Glows */
.nova-bg-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 77, 148, 0.15) 0%, transparent 70%);
  z-index: 1;
  filter: blur(120px);
  pointer-events: none;
}
.top-left { top: -300px; left: -300px; }
.bottom-right { bottom: -300px; right: -300px; }

/* ============================================================
   SECTION 1: HERO BROWSER MOCKUP
   ============================================================= */

.nova-central-card {
  max-width: 1100px; 
  margin: 0 auto 100px;
  background: rgba(10, 10, 10, 0.98);
  border: 1px solid rgba(0, 77, 148, 0.4);
  border-radius: 24px;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.nova-card-header {
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--nova-border);
  display: flex;
  align-items: center;
  gap: 20px;
}

.nova-dots { display: flex; gap: 8px; }
.nova-dots span { width: 12px; height: 12px; border-radius: 50%; background: #222; }

.nova-url-bar {
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 13px;
  color: #666;
  flex-grow: 1;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nova-card-body-iframe {
  width: 100%;
  height: 600px; 
  overflow: hidden;
  position: relative;
  /* Add these lines to center content */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000; /* Ensures the background behind the iframe is solid black */
}

.nova-card-body-iframe iframe {
  width: 125%; 
  height: 125%; 
  /* Change 'top left' to 'center center' */
  transform-origin: center center; 
  transform: scale(0.8); 
  border: none;
  /* Add absolute positioning to allow perfect centering */
  position: absolute; 
}

/* ============================================================
   SECTION 2: MASSIVE TERMINAL SHOWCASE (FULL PAGE)
   ============================================================= */

.nova-terminal-showcase {
  padding: 120px 0;
  background: radial-gradient(circle at center, rgba(0, 77, 148, 0.05) 0%, transparent 80%);
  text-align: center;
}

.showcase-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 60px;
  background: linear-gradient(135deg, #fff 0%, var(--nova-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.terminal-massive-wrapper {
  perspective: 1000px;
}

.nova-terminal {
  max-width: 1000px;
  margin: 0 auto;
  background: #000;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 60px 120px rgba(0,0,0,0.9);
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  transform: rotateX(5deg);
  text-align: left;
}

.terminal-header {
  background: #111;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #222;
}

.terminal-dots { display: flex; gap: 8px; margin-right: 20px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }
.terminal-title { color: #555; font-size: 13px; }

.terminal-body {
  padding: 40px;
  font-size: 17px;
  line-height: 1.6;
  color: #bbb;
}

.t-prompt { color: var(--nova-gold); font-weight: bold; }
.t-process { color: #00a2ff; }
.t-success { color: #27c93f; }
.t-bold { font-weight: bold; color: #fff; }

.t-tree {
  margin: 20px 0;
  color: #444;
  font-size: 16px;
  display: flex;
  flex-direction: column;
}

/* --- SEQUENTIAL REVEAL ANIMATIONS --- */

/* Hidden State */
.t-line, .t-tree span { 
  opacity: 0; 
  transform: translateX(-10px); 
  transition: all 0.5s ease; 
}

/* Active State (Triggered when scrolled into view) */
.terminal-massive-wrapper.active .anim-delay-1 { opacity: 1; transform: translateX(0); transition-delay: 0.2s; }
.terminal-massive-wrapper.active .anim-delay-2 { opacity: 1; transform: translateX(0); transition-delay: 0.8s; }
.terminal-massive-wrapper.active .anim-delay-3 { opacity: 1; transform: translateX(0); transition-delay: 1.4s; }
.terminal-massive-wrapper.active .t-tree span { opacity: 1; transform: translateX(0); transition-delay: 2.0s; }
.terminal-massive-wrapper.active .anim-delay-5 { opacity: 1; transform: translateX(0); transition-delay: 2.8s; }
.terminal-massive-wrapper.active .anim-delay-6 { opacity: 1; transform: translateX(0); transition-delay: 3.4s; }
.terminal-massive-wrapper.active .anim-delay-7 { opacity: 1; transform: translateX(0); transition-delay: 4.0s; }

/* ============================================================
   SECTION 3: FEATURES GRID (6 CARDS)
   ============================================================= */

.nova-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 80px;
}

.nova-feature-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--nova-border);
  transition: 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.nova-feature-card:hover {
  background: rgba(0, 77, 148, 0.08);
  border-color: var(--nova-blue);
  transform: translateY(-8px);
}

.nova-feature-card i { font-size: 32px; color: var(--nova-gold); margin-bottom: 25px; }
.nova-feature-card h3 { margin: 0 0 15px; font-weight: 700; font-size: 1.3rem; color: #fff; }
.nova-feature-card p { color: var(--nova-muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* ============================================================
   SECTION 4: IMPACT METRICS
   ============================================================= */

.nova-impact-grid {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin: 100px 0;
  padding: 80px 0;
  background: linear-gradient(to right, transparent, rgba(0, 77, 148, 0.05), transparent);
}

.impact-num {
  display: block;
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--nova-gold);
  margin-bottom: 10px;
}

.impact-label {
  color: var(--nova-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ============================================================
   SECTION 5: FINAL CTA
   ============================================================= */

.nova-cta-section {
  text-align: center;
  padding: 120px 0;
}

.cta-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.nova-btn-primary {
  background: var(--nova-blue);
  color: #fff;
  border: none;
  padding: 20px 50px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 20px rgba(0, 77, 148, 0.4);
}

.nova-btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 77, 148, 0.7);
}

/* ============================================================
   REVEAL ANIMATIONS (SCROLL TRIGGERS)
   ============================================================= */

.nova-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease-out;
}

.nova-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVENESS
   ============================================================= */

@media (max-width: 1024px) {
  .nova-features-grid { grid-template-columns: repeat(2, 1fr); }
  .nova-impact-grid { flex-direction: column; gap: 40px; }
  .cta-title, .showcase-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .nova-features-grid { grid-template-columns: 1fr; }
  .nova-terminal { font-size: 14px; }
  .terminal-body { padding: 20px; }
}