/* animation.css */

/* Custom Fonts & Text Glow classes */
.font-orbitron {
  font-family: 'Orbitron', sans-serif;
}

.font-space {
  font-family: 'Manrope', sans-serif;
}

.text-glow-cyan {
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4), 0 0 20px rgba(6, 182, 212, 0.2);
}

.text-glow-purple {
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.4), 0 0 20px rgba(168, 85, 247, 0.2);
}

/* Glassmorphism Sci-Fi Panels */
.hud-glass {
  background: rgba(10, 10, 16, 0.45);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4),
    inset 0 0 15px rgba(6, 182, 212, 0.05);
}

.hud-glass-cyan {
  background: rgba(6, 182, 212, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(6, 182, 212, 0.15);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.05),
    inset 0 0 8px rgba(6, 182, 212, 0.05);
}

.hud-glass-purple {
  background: rgba(168, 85, 247, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.05),
    inset 0 0 8px rgba(168, 85, 247, 0.05);
}

/* Futuristic Cyber Grid Overlay */
.cyber-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Radial nebula backdrop */
.nebula-bg {
  background:
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(3, 3, 5, 1) 0%, rgba(1, 1, 2, 1) 100%);
}

/* Neon Glowing Badges */
.neon-border {
  position: relative;
}

.neon-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), rgba(168, 85, 247, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Animated Scanline Effect */
.scanline {
  position: relative;
  overflow: hidden;
}

.scanline::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 10;
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
}

/* Keyframe Animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

@keyframes pulse-slow {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.75;
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* Cyberpunk Panel Corner Brackets */
.cyber-panel {
  position: relative;
}

.cyber-panel::before,
.cyber-panel::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(6, 182, 212, 0.6);
  border-style: solid;
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.cyber-panel::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.cyber-panel::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.cyber-panel:hover::before,
.cyber-panel:hover::after {
  border-color: rgba(168, 85, 247, 0.8);
}

/* Custom CSS for Hero Animation (replacing Tailwind utilities) */
.loader-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #030305;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 2.5rem;
  user-select: none;
  pointer-events: auto;
}

.loader-progress {
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  letter-spacing: -0.05em;
  font-size: 3.75rem;
  /* 6xl */
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
}

.hero-canvas-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.hero-main-section {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 6rem;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}

.hero-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  user-select: none;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hero-title {
  color: #ffffff;
  font-size: 2.5rem;
  /* Mobile default */
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  white-space: normal;
  /* Better for mobile to wrap if needed */
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.text-orange-accent {
  color: #ff5e36 !important;
}

/* SECTION 2 */
.hero-section-2 {
  width: 100%;
  min-height: 100vh;
  background: #070708;
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 20px;
  box-sizing: border-box;
}

.hero-section-2-content {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.hero-section-2-title {
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.hero-section-2-desc {
  color: rgba(255, 255, 255, .7);
  font-size: 22px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width:1024px) {

  .hero-section-2 {
    padding: 80px 40px;
  }

  .hero-section-2-title {
    font-size: 48px;
  }

  .hero-section-2-desc {
    font-size: 20px;
  }

}

@media (max-width:767px) {

  .hero-section-2 {
    min-height: auto;
    padding: 60px 20px;
  }

  .hero-section-2-content {
    gap: 20px;
  }

  .hero-section-2-title {
    font-size: 34px;
    line-height: 1.3;
  }

  .hero-section-2-desc {
    font-size: 16px;
    line-height: 1.7;
  }

}

/* Responsive Styles */
@media (min-width: 768px) {
  .loader-overlay {
    padding: 4rem;
  }

  .loader-progress {
    font-size: 6rem;
    /* 8xl */
  }

  .hero-text-container {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .hero-title {
    font-size: 6.25rem;
    white-space: nowrap;
  }

  .hero-section-2 {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .hero-section-2-title {
    font-size: 3rem;
  }

  .hero-section-2-desc {
    font-size: 1.25rem;
    /* text-xl */
  }
}

@media (min-width: 1024px) {
  .hero-section-2-title {
    font-size: 4rem;
  }
}

/* Dark background fixes */
html,
body {
  background-color: #030305;
  overflow-x: hidden;
}

.site {
  overflow-x: hidden;
}

#hero-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* CSS Utilities to support animation without Tailwind */
.inline-block {
  display: inline-block;
}

.overflow-hidden {
  overflow: hidden;
}

.translate-y-full {
  transform: translateY(100%);
}

.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .md\:inline {
    display: inline !important;
  }
}

.gsap-pin-spacer {
  background-color: #030305 !important;
}

/* Ensure all wrappers stay dark */
.hero-canvas-container,
#hero-canvas-container,
#section-2,
.site,
.ast-container,
.ast-header-break-point,
.main-header-bar,
.ast-hero-section,
.entry-content,
.ast-content {
  background-color: #030305 !important;
}

.main-header {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.4s ease;
}

.main-header.show-header {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}