/**
 * NUCLEORA SCROLL ANIMATION STYLES
 * Hero section with logo that grows to fill screen
 */

/* Hero Section - Full viewport takeover */
.hero-scroll-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  z-index: 1000;
  transition: opacity 0.5s ease;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Animated DNA helix background */
.hero-background::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background: 
    radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(138, 43, 226, 0.05) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.logo-container {
  position: relative;
  z-index: 10;
  transition: transform 0.05s ease-out, opacity 0.3s ease;
  will-change: transform, opacity;
}

.hero-logo {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(0, 212, 255, 0.5));
}

@media (min-width: 768px) {
  .hero-logo {
    width: 150px;
  }
}

/* Scroll Prompt */
.scroll-prompt {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.scroll-arrow {
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}

/* Navigation - Hidden initially, slides down after animation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

.main-nav.hidden {
  transform: translateY(-100%);
}

.main-nav.visible {
  transform: translateY(0);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #00d4ff;
}

/* Quick Access Buttons */
.nav-actions {
  display: flex;
  gap: 12px;
}

.btn-admin {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-admin:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-app {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  border: none;
  border-radius: 8px;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

/* Main Content - Hidden initially, fades in after animation */
.main-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Skip Animation Link (for accessibility) */
.skip-animation {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.skip-animation:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* Reduced motion - skip animation entirely */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-animation {
    display: none !important;
  }
  
  .main-nav {
    transform: translateY(0) !important;
  }
  
  .main-content {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-actions {
    gap: 8px;
  }
  
  .btn-admin span,
  .btn-app span {
    display: none;
  }
  
  .btn-admin,
  .btn-app {
    padding: 10px 12px;
  }
  
  .scroll-prompt {
    bottom: 40px;
    font-size: 12px;
  }
}
