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

:root {
  --primary-blue: #2657fd;
  --gradient-blue: rgba(38, 87, 253, 0.8);
  --gradient-blue-light: rgba(38, 87, 253, 0.3);
  --gradient-blue-dark: rgba(38, 87, 253, 0.95);
}

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

body {
  font-family: "Inter", sans-serif;
  background: #000000;
  color: white;
  overflow-x: hidden;
}

.bento-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.bento-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-height: fit-content;
  overflow: visible;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-blue);
  box-shadow: 0 20px 40px rgba(38, 87, 253, 0.2);
}

.highlight-number {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-blue) 0%, rgba(38, 87, 253, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  display: block;
  min-height: 1.2em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.english-subtitle {
  font-size: 0.875rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--gradient-blue-light) 0%, transparent 70%);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#three-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, rgba(38, 87, 253, 0.3) 100%);
  transform-origin: left;
  z-index: 1000;
}

/* Flywheel Animation Styles */
.flywheel-container {
  position: relative;
  width: 350px;
  height: 350px;
}

.flywheel-step {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(38, 87, 253, 0.2) 0%, rgba(38, 87, 253, 0.05) 100%);
  border: 2px solid rgba(38, 87, 253, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.flywheel-step:hover {
  border-color: var(--primary-blue);
  background: linear-gradient(135deg, rgba(38, 87, 253, 0.3) 0%, rgba(38, 87, 253, 0.1) 100%);
  transform: scale(1.05);
}

.step-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.step-2 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}
.step-3 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.step-4 {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.step-content {
  text-align: center;
  padding: 1rem;
}

.step-number {
  width: 24px;
  height: 24px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
}

.step-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
}

.step-subtitle {
  font-size: 0.75rem;
  color: var(--primary-blue);
  font-weight: 500;
}

.flywheel-arrow {
  position: absolute;
  font-size: 1.5rem;
  color: var(--primary-blue);
  font-weight: bold;
  animation: pulse 2s infinite;
}

.arrow-1 {
  top: 25%;
  right: 20%;
  transform: rotate(45deg);
}
.arrow-2 {
  bottom: 25%;
  right: 20%;
  transform: rotate(135deg);
}
.arrow-3 {
  bottom: 25%;
  left: 20%;
  transform: rotate(225deg);
}
.arrow-4 {
  top: 25%;
  left: 20%;
  transform: rotate(315deg);
}

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

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin-slow 10s linear infinite;
}

/* Additional Animation Styles */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out forwards;
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.parallax-element {
  transition: transform 0.1s ease-out;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .highlight-number {
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1.2;
  }

  .flywheel-container {
    width: 300px;
    height: 300px;
  }

  .flywheel-step {
    width: 100px;
    height: 100px;
  }
}
