/* Eternal App Custom Styles */

/* DNA Animation Background - Light Version */
.dna-animation-light {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  background: linear-gradient(45deg, transparent 30%, #14b8a6 50%, transparent 70%),
              linear-gradient(-45deg, transparent 30%, #06b6d4 50%, transparent 70%);
  background-size: 200% 200%;
  animation: dna-flow 20s ease-in-out infinite;
}

/* DNA Animation Background - Dark Version */
.dna-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background: linear-gradient(45deg, transparent 30%, #0ea5e9 50%, transparent 70%),
              linear-gradient(-45deg, transparent 30%, #14b8a6 50%, transparent 70%);
  background-size: 200% 200%;
  animation: dna-flow 20s ease-in-out infinite;
}

@keyframes dna-flow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Add DNA helix pattern */
.dna-animation::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(30, 64, 175, 0.05) 50px, rgba(30, 64, 175, 0.05) 100px),
    repeating-linear-gradient(-45deg, transparent, transparent 50px, rgba(16, 185, 129, 0.05) 50px, rgba(16, 185, 129, 0.05) 100px);
  animation: dna-helix 30s linear infinite;
}

@keyframes dna-helix {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100px);
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1e40af, #10b981);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2563eb, #059669);
}

/* Category Buttons */
.category-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: rgba(30, 64, 175, 0.1);
  border: 2px solid rgba(30, 64, 175, 0.3);
  color: #60a5fa;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-btn:hover {
  background: rgba(30, 64, 175, 0.2);
  border-color: rgba(30, 64, 175, 0.5);
  transform: translateY(-2px);
}

.category-btn.active {
  background: linear-gradient(135deg, #1e40af, #10b981);
  border-color: #10b981;
  color: white;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

/* Stage Buttons */
.stage-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: rgba(100, 116, 139, 0.1);
  border: 2px solid rgba(100, 116, 139, 0.3);
  color: #94a3b8;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.875rem;
}

.stage-btn:hover {
  background: rgba(100, 116, 139, 0.2);
  border-color: rgba(100, 116, 139, 0.5);
  transform: translateY(-2px);
}

.stage-btn.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
}

/* Schedule Filter Buttons */
.schedule-filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(30, 64, 175, 0.1);
  border: 2px solid rgba(30, 64, 175, 0.3);
  color: #60a5fa;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.75rem;
}

.schedule-filter-btn:hover {
  background: rgba(30, 64, 175, 0.2);
  border-color: rgba(30, 64, 175, 0.5);
  transform: translateY(-2px);
}

.schedule-filter-btn.active {
  background: linear-gradient(135deg, #1e40af, #10b981);
  border-color: #10b981;
  color: white;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

/* Feature Cards */
.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature-card:hover::before {
  left: 100%;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-product {
  position: relative;
}

.timeline-milestone {
  display: inline-block;
}

/* Modal */
#feature-modal {
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease-out;
}

#feature-modal > div {
  animation: slideUp 0.3s ease-out;
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #1e40af, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow Effect */
.glow {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.glow-hover:hover {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.7);
  transition: box-shadow 0.3s ease;
}

/* Card Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

/* Progress Bar Glow */
#overall-progress-bar,
#app-progress-bar,
#station-progress-bar,
#nanotech-progress-bar,
#core-progress-bar {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  position: relative;
}

/* Pulse Animation */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Nav Link Hover */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1e40af, #10b981);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Section Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline-product {
    margin-bottom: 2rem;
  }

  .timeline-milestone {
    display: block;
    margin-bottom: 1rem;
  }

  .timeline-milestone .w-48 {
    width: 100%;
  }
}

/* Grid Animation */
.feature-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.1s; }
.feature-card:nth-child(5) { animation-delay: 0.2s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }
.feature-card:nth-child(7) { animation-delay: 0.1s; }
.feature-card:nth-child(8) { animation-delay: 0.2s; }
.feature-card:nth-child(9) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid rgba(16, 185, 129, 0.3);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Background Particles */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(16, 185, 129, 0.5);
  border-radius: 50%;
  animation: float-particle 20s infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

/* Button Ripple Effect */
button, .button {
  position: relative;
  overflow: hidden;
}

button::after, .button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:active::after, .button:active::after {
  width: 300px;
  height: 300px;
}

/* Glass Morphism */
.glass {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Border */
.gradient-border {
  position: relative;
  background: #0f172a;
  border-radius: 1rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 2px;
  background: linear-gradient(135deg, #1e40af, #10b981);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Tooltip */
[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.95);
  color: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  margin-bottom: 0.5rem;
}

[data-tooltip]:hover::before {
  opacity: 1;
}

/* Print Styles */
@media print {
  .dna-animation,
  nav,
  footer,
  button {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
