/* Homepage-specific styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.homepage {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-duration: 8s;
}

.floating-element:nth-child(2) {
  top: 60%;
  left: 85%;
  animation-duration: 6s;
}

.floating-element:nth-child(3) {
  top: 80%;
  left: 20%;
  animation-duration: 10s;
}

.floating-element:nth-child(4) {
  top: 30%;
  left: 70%;
  animation-duration: 7s;
}

.floating-element:nth-child(5) {
  top: 10%;
  left: 50%;
  animation-duration: 9s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.3;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  padding: 50px 0;
}

.logo-container {
  margin-bottom: 0.5rem;
}

.logo {
  max-width: 500px;
  height: auto;
  filter: brightness(1.2);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.highlight {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fed7d7;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 3rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.cta-button.large {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
}

/* Warning Banner */
.warning-banner {
  background: rgba(255, 193, 7, 0.2);
  color: #fff3cd;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 193, 7, 0.3);
  max-width: 500px;
  margin: 0 auto;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

/* Main Content */
main {
  position: relative;
  z-index: 1;
  background: white;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: #2d3748;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2d3748;
}

.feature-card p {
  color: #718096;
  line-height: 1.6;
}

/* Challenge Section */
.challenge-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  color: white;
  text-align: center;
}

.challenge-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.challenge-content p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: rgba(255, 255, 255, 0.9);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
  background: #1a202c;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 1rem;
}

.footer-left p {
  color: #a0aec0;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

a:hover:not(.social-button) {
  color: #ffd700;
}

.social-share p {
  color: #a0aec0;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.social-button {
  display: inline-block;
  background: #1da1f2;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

.social-button:hover {
  background: #1991db;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #a0aec0;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }

  .cta-section {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .floating-element {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    justify-content: center;
    font-size: 1.25rem;
  }

  .features-section,
  .challenge-section {
    padding: 60px 0;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

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

.hero-title,
.hero-subtitle,
.hero-description {
  animation: fadeInUp 1s ease-out;
}

.cta-section {
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Pulse animation for primary button */
@keyframes pulse {
  0% {
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
  }
  50% {
    box-shadow: 0 10px 30px rgba(255, 59, 59, 0.738);
  }
  100% {
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
  }
}

.cta-button.primary {
  animation: pulse 1s infinite;
}
