* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #059669 0%, #3b82f6 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

/* Animated Background Elements */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="20" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  animation: floatBg 25s infinite linear;
  pointer-events: none;
}

@keyframes floatBg {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
  }
}

/* Floating Language Bubbles */
.language-bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 15px 25px;
  font-size: 18px;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.language-bubble:nth-child(1) {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.language-bubble:nth-child(2) {
  top: 25%;
  right: 15%;
  animation-delay: 2s;
}

.language-bubble:nth-child(3) {
  bottom: 20%;
  left: 15%;
  animation-delay: 4s;
}

.language-bubble:nth-child(4) {
  bottom: 30%;
  right: 10%;
  animation-delay: 1s;
}

.language-bubble:nth-child(5) {
  top: 50%;
  left: 5%;
  animation-delay: 3s;
}

.language-bubble:nth-child(6) {
  top: 60%;
  right: 5%;
  animation-delay: 5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(2deg);
  }
  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
  75% {
    transform: translateY(-15px) rotate(1deg);
  }
}

/* Main Content */
.hero-content {
  max-width: 900px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  animation: slideUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 30px;
  opacity: 0.95;
  animation: slideUp 1s ease-out 0.3s both;
  line-height: 1.5;
}

.hero-highlight {
  background: linear-gradient(120deg, #9397fb 0%, #57b1f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Language Cards */
.language-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 50px 0;
  animation: slideUp 1s ease-out 0.6s both;
}

.language-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.language-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.language-card:hover::before {
  left: 100%;
}

.language-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.25);
}

.language-flag {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
  animation: bounce 2s ease-in-out infinite;
}

.language-card:nth-child(1) .language-flag {
  animation-delay: 0.2s;
}
.language-card:nth-child(2) .language-flag {
  animation-delay: 0.4s;
}
.language-card:nth-child(3) .language-flag {
  animation-delay: 0.6s;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.language-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.language-desc {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

/* CTA Buttons */
.cta-section {
  margin-top: 50px;
  animation: slideUp 1s ease-out 0.9s both;
}

.cta-primary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  margin: 0 15px 15px 0;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(245, 87, 108, 0.3);
  text-decoration: none;
  display: inline-block;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(245, 87, 108, 0.4);
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 16px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  margin: 0 15px 15px 0;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  backdrop-filter: blur(10px);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* Trust Indicators */
.trust-indicators {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  animation: slideUp 1s ease-out 1.2s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  opacity: 0.9;
}

.trust-icon {
  font-size: 1.5rem;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce-scroll 2s ease-in-out infinite;
  opacity: 0.7;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
}

@keyframes bounce-scroll {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Animation keyframes */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .language-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 0;
  }

  .language-bubble {
    display: none; /* Hide floating bubbles on mobile */
  }

  .cta-primary,
  .cta-secondary {
    display: block;
    margin: 10px auto;
    text-align: center;
  }

  .trust-indicators {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-content {
    padding: 0 15px;
  }

  .language-card {
    padding: 25px 15px;
  }

  .language-flag {
    font-size: 2.5rem;
  }

  .language-name {
    font-size: 1.3rem;
  }

  .cta-primary {
    font-size: 1.1rem;
    padding: 16px 30px;
  }

  .cta-secondary {
    font-size: 1rem;
    padding: 14px 25px;
  }
}
