
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow: hidden;
  height: 100%;
  width: 100%;
  position: fixed;
  touch-action: none;
}

body {
  overflow: hidden;
  height: 100%;
  width: 100%;
  position: fixed;
  background: #0a0a0a;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

.app {
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile */
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0f0a 50%, #0a0a0a 100%);
}

.gradient-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.gradient-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ff6b35 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.gradient-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ff8c42 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation-delay: 7s;
}

.gradient-orb-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #ffa552 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 14s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-50px, 100px) scale(0.9);
  }
}

/* Circle Container */
.circle-container {
  position: relative;
  width: 400px;
  height: 400px;
  z-index: 1;
  transition: transform 0.3s ease-out;
}

/* Particles */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #ff6b35, #ffa552);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform-origin: 0 0;
  animation: particleOrbit var(--duration) linear infinite;
  animation-delay: var(--delay);
  opacity: 0;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

@keyframes particleOrbit {
  0% {
    transform: rotate(var(--angle)) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: rotate(var(--angle)) translateX(250px) scale(0);
    opacity: 0;
  }
}

/* Rotating Rings */
.rotating-ring {
  position: absolute;
  border: 2px solid rgba(255, 107, 53, 0.2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 120%;
  height: 120%;
  animation: rotateClockwise 20s linear infinite;
  border-style: dashed;
}

.ring-2 {
  width: 140%;
  height: 140%;
  animation: rotateCounterClockwise 15s linear infinite;
  border-top-color: rgba(255, 140, 66, 0.4);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
}

.ring-3 {
  width: 160%;
  height: 160%;
  animation: rotateClockwise 25s linear infinite;
  border-right-color: rgba(255, 165, 82, 0.3);
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
}

@keyframes rotateClockwise {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes rotateCounterClockwise {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

/* Main Circle */
.main-circle {
  position: absolute;
  width: 280px;
  height: 280px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.circle-core {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffa552 100%);
  border-radius: 50%;
  animation: morphCircle 8s ease-in-out infinite, glowPulse 3s ease-in-out infinite;
  box-shadow: 
    0 0 60px rgba(255, 107, 53, 0.6),
    0 0 120px rgba(255, 107, 53, 0.4),
    inset 0 0 60px rgba(255, 165, 82, 0.3);
}

.circle-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 107, 53, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: expandGlow 4s ease-in-out infinite;
}

.circle-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 107, 53, 0.8);
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes morphCircle {
  0%, 100% {
    border-radius: 50%;
    transform: rotate(0deg) scale(1);
  }
  25% {
    border-radius: 45% 55% 50% 50%;
    transform: rotate(5deg) scale(1.05);
  }
  50% {
    border-radius: 50% 50% 45% 55%;
    transform: rotate(-5deg) scale(0.95);
  }
  75% {
    border-radius: 55% 45% 55% 45%;
    transform: rotate(3deg) scale(1.02);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 
      0 0 60px rgba(255, 107, 53, 0.6),
      0 0 120px rgba(255, 107, 53, 0.4),
      inset 0 0 60px rgba(255, 165, 82, 0.3);
  }
  50% {
    box-shadow: 
      0 0 80px rgba(255, 107, 53, 0.8),
      0 0 160px rgba(255, 107, 53, 0.6),
      inset 0 0 80px rgba(255, 165, 82, 0.5);
  }
}

@keyframes expandGlow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.2;
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Orbiting Elements */
.orbit {
  position: absolute;
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 {
  width: 180%;
  height: 180%;
  animation: rotateClockwise 12s linear infinite;
}

.orbit-2 {
  width: 220%;
  height: 220%;
  animation: rotateCounterClockwise 18s linear infinite;
}

.orbit-3 {
  width: 260%;
  height: 260%;
  animation: rotateClockwise 24s linear infinite;
}

.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #ff6b35, #ffa552);
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.5);
  }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .circle-container {
    width: 350px;
    height: 350px;
  }

  .main-circle {
    width: 240px;
    height: 240px;
  }

  .gradient-orb-1,
  .gradient-orb-2 {
    width: 400px;
    height: 400px;
  }

  .gradient-orb-3 {
    width: 500px;
    height: 500px;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .circle-container {
    width: 240px;
    height: 240px;
  }

  .main-circle {
    width: 160px;
    height: 160px;
  }

  .particle {
    width: 6px;
    height: 6px;
  }

  .orbit-dot {
    width: 8px;
    height: 8px;
  }

  @keyframes particleOrbit {
    0% {
      transform: rotate(var(--angle)) translateX(0) scale(0);
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    100% {
      transform: rotate(var(--angle)) translateX(150px) scale(0);
      opacity: 0;
    }
  }

  .gradient-orb-1,
  .gradient-orb-2 {
    width: 300px;
    height: 300px;
  }

  .gradient-orb-3 {
    width: 400px;
    height: 400px;
  }
}

/* Mobile Portrait */
@media (max-width: 768px) and (orientation: portrait) {
  .circle-container {
    width: 280px;
    height: 280px;
  }

  .main-circle {
    width: 180px;
    height: 180px;
  }

  .particle {
    width: 6px;
    height: 6px;
  }

  .orbit-dot {
    width: 10px;
    height: 10px;
  }

  @keyframes particleOrbit {
    0% {
      transform: rotate(var(--angle)) translateX(0) scale(0);
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    100% {
      transform: rotate(var(--angle)) translateX(170px) scale(0);
      opacity: 0;
    }
  }

  .gradient-orb {
    filter: blur(80px);
  }

  .gradient-orb-1 {
    width: 350px;
    height: 350px;
    top: -150px;
    left: -150px;
  }

  .gradient-orb-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -100px;
  }

  .gradient-orb-3 {
    width: 450px;
    height: 450px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .circle-container {
    width: 240px;
    height: 240px;
  }

  .main-circle {
    width: 150px;
    height: 150px;
  }

  .particle {
    width: 5px;
    height: 5px;
  }

  .orbit-dot {
    width: 8px;
    height: 8px;
  }

  @keyframes particleOrbit {
    0% {
      transform: rotate(var(--angle)) translateX(0) scale(0);
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    100% {
      transform: rotate(var(--angle)) translateX(140px) scale(0);
      opacity: 0;
    }
  }

  .gradient-orb {
    filter: blur(60px);
  }

  .gradient-orb-1 {
    width: 280px;
    height: 280px;
    top: -120px;
    left: -120px;
  }

  .gradient-orb-2 {
    width: 240px;
    height: 240px;
    bottom: -80px;
    right: -80px;
  }

  .gradient-orb-3 {
    width: 350px;
    height: 350px;
  }

  .rotating-ring {
    border-width: 1px;
  }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
  .circle-container {
    width: 200px;
    height: 200px;
  }

  .main-circle {
    width: 130px;
    height: 130px;
  }

  .particle {
    width: 4px;
    height: 4px;
  }

  .orbit-dot {
    width: 6px;
    height: 6px;
  }

  @keyframes particleOrbit {
    0% {
      transform: rotate(var(--angle)) translateX(0) scale(0);
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    100% {
      transform: rotate(var(--angle)) translateX(120px) scale(0);
      opacity: 0;
    }
  }

  .gradient-orb {
    filter: blur(50px);
  }

  .gradient-orb-1 {
    width: 240px;
    height: 240px;
    top: -100px;
    left: -100px;
  }

  .gradient-orb-2 {
    width: 200px;
    height: 200px;
    bottom: -60px;
    right: -60px;
  }

  .gradient-orb-3 {
    width: 300px;
    height: 300px;
  }
}
