/* ============================================
   thynkLab - Landing Page Styles
   Mind-blowing hero section & effects
   ============================================ */

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */

/* Animated Grid Background */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.08;
  background-image: 
    linear-gradient(rgba(0, 217, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}

/* Gradient Orbs Container */
.orbs-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Individual Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: morphBlob 15s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.6), transparent);
  top: -10%;
  left: -10%;
  animation: floatSlow 25s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.5), transparent);
  bottom: -10%;
  right: -10%;
  animation: floatSlow 20s ease-in-out infinite;
  animation-delay: 5s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 0, 107, 0.4), transparent);
  top: 40%;
  left: 50%;
  animation: floatSlow 30s ease-in-out infinite;
  animation-delay: 10s;
}

/* Particles Container */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(0, 217, 255, 0.6);
  border-radius: 50%;
  animation: particleFloat 15s linear infinite;
}

/* Random particle positions (will be set via JS) */
.particle:nth-child(odd) {
  background: rgba(123, 97, 255, 0.5);
}

.particle:nth-child(3n) {
  background: rgba(255, 0, 107, 0.4);
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.landing-main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding-top: 100px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  position: relative;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-accent-cyan);
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent-cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Hero Title */
.hero-title {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: var(--font-black);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tighter);
  margin-bottom: var(--space-xl);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  opacity: 1;
}

/* First word (thynk) - always visible, no animation */
.hero-title-word:first-child {
  opacity: 1;
}

/* Second word (Lab) - slides in from right */
.hero-title-word:last-child {
  opacity: 0;
  transform: translateX(200px);
  animation: slideInFromRight 1s ease 1s forwards;
}

@keyframes slideInFromRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* Animated text effect */
.hero-title-word {
  display: inline-block;
  background: var(--gradient-cosmic);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}

/* 3D Text Effect */
.hero-title-3d {
  text-shadow: 
    0 1px 0 rgba(0, 217, 255, 0.3),
    0 2px 0 rgba(0, 217, 255, 0.25),
    0 3px 0 rgba(0, 217, 255, 0.2),
    0 4px 0 rgba(0, 217, 255, 0.15),
    0 5px 0 rgba(0, 217, 255, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
  line-height: var(--leading-relaxed);
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-4xl);
  opacity: 0;
  animation: fadeInUp 1s ease 0.8s forwards;
}

.hero-btn {
  padding: var(--space-lg) var(--space-3xl);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.hero-btn-primary {
  background: var(--gradient-primary);
  color: var(--color-text-primary);
  border: none;
  box-shadow: 0 10px 40px rgba(0, 217, 255, 0.4);
}

.hero-btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(0, 217, 255, 0.6);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-accent-purple);
  border: 2px solid var(--color-accent-purple);
  backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  background: rgba(123, 97, 255, 0.1);
  border-color: var(--color-accent-purple);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(123, 97, 255, 0.3);
}

/* Button Ripple Effect */
.hero-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero-btn:hover::before {
  width: 400px;
  height: 400px;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
  margin-top: var(--space-4xl);
  opacity: 0;
  animation: fadeInUp 1s ease 1s forwards;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(0, 217, 255, 0.5);
  border-radius: var(--radius-full);
  position: relative;
  margin: 0 auto;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-accent-cyan);
  border-radius: 50%;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0% {
    top: 10px;
    opacity: 1;
  }
  100% {
    top: 35px;
    opacity: 0;
  }
}

/* ============================================
   STATS SECTION (Optional - floating cards)
   ============================================ */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  max-width: 1000px;
  margin: var(--space-4xl) auto 0;
  opacity: 0;
  animation: fadeInUp 1s ease 1.2s forwards;
}

.stat-card {
  background: rgba(20, 20, 31, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-xl);
  filter: blur(20px);
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.stat-card:hover::before {
  opacity: 0.15;
}

.stat-value {
  font-size: var(--text-4xl);
  font-weight: var(--font-black);
  background: var(--gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  display: block;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* ============================================
   FEATURES SECTION (if needed)
   ============================================ */

.features-section {
  padding: var(--space-5xl) var(--space-lg);
  max-width: var(--max-w-screen-xl);
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-4xl);
}

.feature-card {
  background: rgba(20, 20, 31, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
  box-shadow: 0 8px 25px rgba(0, 217, 255, 0.3);
}

.feature-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.feature-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   CURSOR EFFECT (Magnetic/Glow)
   ============================================ */

.cursor-glow {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.3), transparent);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  mix-blend-mode: screen;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */

.floating-element {
  position: absolute;
  pointer-events: none;
  opacity: 0.3;
}

.floating-element-1 {
  top: 20%;
  left: 10%;
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 8s ease-in-out infinite;
  filter: blur(40px);
}

.floating-element-2 {
  bottom: 30%;
  right: 15%;
  width: 80px;
  height: 80px;
  background: var(--gradient-secondary);
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  animation: morph 10s ease-in-out infinite;
  animation-delay: 2s;
  filter: blur(40px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .hero-section {
    padding: var(--space-3xl) var(--space-lg);
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-btn {
    width: 100%;
    padding: var(--space-md) var(--space-xl);
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .orb-1,
  .orb-2,
  .orb-3 {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: var(--space-2xl) var(--space-md);
  }
  
  .hero-badge {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-md);
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: var(--space-lg);
  }
  
  .hero-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-2xl);
  }
  
  .hero-btn {
    font-size: var(--text-base);
    padding: var(--space-md) var(--space-lg);
  }
}

/* ============================================
   ANIMATIONS FOR ENTRANCE
   ============================================ */

/* Stagger animations for multiple elements */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU acceleration for smooth animations */
.hero-title,
.hero-subtitle,
.hero-cta,
.hero-badge,
.orb {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
  .orb,
  .particle,
  .floating-element {
    animation: none;
  }
  
  .hero-title-word {
    animation: none;
  }
}

/* ============================================
   DARK MODE ENHANCEMENTS
   ============================================ */

@media (prefers-color-scheme: dark) {
  .orb {
    opacity: 0.5;
  }
  
  .grid-background {
    opacity: 0.1;
  }
}