/* ============================================
   HYPERAVEN.COM - v2 Styles
   Theme: Dark Sci-Fi / Anatomical AI
   ============================================ */

:root {
  --primary: #00bfff; /* Cyan / Electric Blue */
  --primary-rgb: 0, 191, 255;
  --bg-dark: #030408;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --glass-bg: rgba(10, 20, 40, 0.6);
  --glass-border: rgba(0, 191, 255, 0.3);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden; /* Prevent horizontal scroll */
  overscroll-behavior: none;
}

/* ---- 3D Scene Layout ---- */
#brain-scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: auto; /* Allow mouse interaction with 3D scene */
}

.scroll-height {
  height: 12000px; /* Extended scroll height for smooth sequencing */
  width: 1px;
  pointer-events: none;
}

.overlay-ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Let clicks pass through to 3D scene unless hitting UI */
  z-index: 10;
}

/* ---- Loading Screen ---- */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  letter-spacing: 4px;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
}

.progress-bar-container {
  width: 300px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto 1rem;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.1s linear;
}

.progress-text {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1rem;
}

/* ---- Header ---- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  height: 30px;
}

.header .logo-text {
  font-size: 1.5rem;
  margin-bottom: 0;
  text-shadow: none;
}

.header-actions {
  display: flex;
  gap: 1.5rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 4px; /* Slightly rounded, tech feel */
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  backdrop-filter: blur(5px);
}

.btn-glass:hover {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-primary {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5);
}

/* ---- Hero Section ---- */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  max-width: 900px;
  pointer-events: none;
  opacity: 1; /* Default visible */
  transition: opacity 1s ease;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 8px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.6);
}

.hero-content .subtitle {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary);
  letter-spacing: 4px;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-content .tagline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.scroll-indicator {
  position: relative; /* Changed from absolute to flow naturally below text */
  margin-top: 4rem;   /* Spacing from the tagline */
  bottom: auto;
  left: auto;
  transform: none; /* Reset centering transform since it's now relative flow */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  letter-spacing: 2px;
  animation: pulse-zoom 2s infinite ease-in-out; /* New Zoom Animation */
}

@keyframes pulse-zoom {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1); /* Zoom in */
    opacity: 1;
  }
}

/* ---- Typewriter Section ---- */
.typewriter-section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  text-align: center;
  pointer-events: none;
  z-index: 5;
  opacity: 0; /* Hidden by default to prevent cursor leak at 0px */
}

.typewriter-container {
  display: inline-block;
  text-align: left; /* Text aligns left within centered container for typewriter feel */
}

#typewriter-text {
  font-family: var(--font-heading); /* Orbitron for tech feel */
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
  letter-spacing: 1px;
}

.cursor {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 5px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Industries Typewriter */
.industries-section {
  /* Inherits positioning from .typewriter-section but allows overrides */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

#industries-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center align for architectural look */
  gap: 0.5rem;
}

.industry-line {
  font-family: var(--font-body); /* Rajdhani for system data look */
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary); /* Cyan */
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0; /* Hidden by default */
  min-height: 1.6rem; /* Reserve space */
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.4);
}

.industry-cursor {
  display: inline-block;
  width: 8px;
  height: 1.2rem;
  background-color: var(--primary);
  margin-left: 4px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@media (max-width: 768px) {
  #typewriter-text {
    font-size: 1.1rem;
  }
  .typewriter-section {
    padding: 0 2rem;
  }
  .industry-line {
    font-size: 1rem;
  }
}

/* ---- Neural Journey (Now 3D, CSS Removed) ---- */
/* See main.js for 3D Label Logic */
.novastro-section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  visibility: hidden; /* Default hidden */
  pointer-events: auto;
}

.novastro-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.novastro-content h2 {
  font-family: var(--font-heading);
  font-size: 4rem;
  margin-bottom: 1rem;
}

.novastro-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-glow {
  background: var(--primary);
  color: #000;
  border: none;
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.6);
}

.btn-glow:hover {
  background: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* ---- Footer ---- */
.footer-section {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff; /* White bg transition */
  color: #111;
  padding: 6rem 4rem 2rem;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden; /* Default hidden for autoAlpha */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-cta {
  text-align: center;
  margin-bottom: 6rem;
}

.footer-cta h3 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000;
}

.footer-cta p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 3rem;
}

.btn-dark {
  background: #000;
  color: #fff;
  border: none;
}

.btn-dark:hover {
  background: var(--primary);
  color: #000;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #eee;
  padding-top: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.company-name {
  font-weight: 700;
  color: #000;
}

.social-links a {
  color: #000;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary);
}

/* Utility Classes */
.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.clipped {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 1.5rem 1rem; /* More top padding */
    align-items: center; 
    justify-content: space-between;
  }

  .header .logo-text {
    display: none; /* Hidden on mobile as requested */
  }

  .btn {
    padding: 0.4rem 0.8rem; /* Smaller buttons */
    font-size: 0.65rem;
  }

  .header-actions {
    gap: 0.4rem;
  }

  /* Specific fix for very small screens (iPhone SE) */
  @media (max-width: 374px) {
      .logo-text {
          font-size: 1.0rem; /* Even smaller for 320px width */
      }
      .btn {
          padding: 0.3rem 0.6rem;
          font-size: 0.6rem;
      }
  }

  /* Adjust hero title for mobile */
  .hero-content h1 {
    font-size: 2.5rem; /* Reduced from 3.2rem */
  }
  
  /* Fix Mobile Overlap & Centering */
  .novastro-section {
    top: 50% !important; /* Center vertically */
    left: 50% !important; /* Center horizontally */
    transform: translate(-50%, -50%) !important; /* Perfect center */
    width: 90%;
    max-width: none;
    text-align: center;
  }
  
  .novastro-content h2 {
    font-size: 2.5rem;
  }
  
  .novastro-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .footer-section { 
    padding: 3rem 1.5rem 2rem; 
  }
  
  .footer-cta {
    margin-bottom: 3rem;
  }

  .footer-cta h3 { font-size: 2rem; }
  .footer-bottom { flex-direction: column; gap: 2rem; align-items: center; text-align: center; }
}

