/* Cloud Physics & Interactive Hero Styles */

/* Hero Section - Cloud Sky Background */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(135deg, #87CEEB 0%, #4682B4 50%, #6495ED 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark .hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
}

/* Interactive Cloud Canvas */
#cloudCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Main Cloud Character */
.cloud-character {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.cloud-body {
  width: 320px;
  height: 200px;
  background: linear-gradient(145deg, rgba(255,255,255,0.6) 0%, rgba(248,250,252,0.5) 100%);
  border-radius: 100px;
  position: relative;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    inset 0 -10px 20px rgba(0, 0, 0, 0.05);
  animation: cloudFloat 6s ease-in-out infinite;
}

body.dark .cloud-body {
  background: linear-gradient(145deg, rgba(255,255,255,0.2) 0%, rgba(200,200,200,0.15) 100%);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 -10px 20px rgba(0, 0, 0, 0.1);
}

/* Cloud Shape - Base Puffs */
.cloud-body::before,
.cloud-body::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
  box-shadow: inherit;
}

.cloud-body::before {
  width: 120px;
  height: 120px;
  top: -60px;
  left: 40px;
}

.cloud-body::after {
  width: 140px;
  height: 140px;
  top: -70px;
  right: 30px;
}

/* Cloud Shape - Additional Puffs */
.cloud-puff-1,
.cloud-puff-2,
.cloud-puff-3 {
  position: absolute;
  background: inherit;
  border-radius: 50%;
  box-shadow: inherit;
}

.cloud-puff-1 {
  width: 80px;
  height: 80px;
  top: -40px;
  left: 120px;
}

.cloud-puff-2 {
  width: 60px;
  height: 60px;
  top: 20px;
  left: -30px;
}

.cloud-puff-3 {
  width: 90px;
  height: 90px;
  top: 30px;
  right: -45px;
}

/* Cloud Animation */
@keyframes cloudFloat {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-25px) scale(1.02);
  }
}

/* Cloud Eyes */
.eye {
  position: absolute;
  width: 45px;
  height: 45px;
  background: #2c3e50;
  border-radius: 50%;
  top: 70px;
  transition: all 0.1s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

body.dark .eye {
  background: #34495e;
}

.eye-left {
  left: 85px;
}

.eye-right {
  right: 85px;
}

.pupil {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at 30% 30%, white 0%, #f8f9fa 100%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.1s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

body.dark .pupil {
  background: radial-gradient(circle at 30% 30%, #ecf0f1 0%, #bdc3c7 100%);
}

/* Cloud Cheeks */
.cheek {
  position: absolute;
  width: 25px;
  height: 20px;
  background: rgba(255, 182, 193, 0.3);
  border-radius: 50%;
  top: 85px;
}

.cheek-left {
  left: 50px;
}

.cheek-right {
  right: 50px;
}

/* Hero Content */
.hero-content {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 10;
  max-width: 600px;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 1s;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 1.5s;
  text-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.hero-description {
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  font-weight: 200;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 2s;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Mode Toggle */
.mode-toggle {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.75rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
  z-index: 100;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

/* Interaction Hint */
.interaction-hint {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-align: center;
  z-index: 10;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 2.5s;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 2.5s, bounce 2s infinite 3s;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  z-index: 10;
}

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

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sparkle Effects */
@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}