/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* Custom Properties */
:root {
  --primary: #00ffcc;
  --primary-dark: #00ddb3;
  --secondary: #2c3e50;
  --accent: #e74c3c;
  --text-light: #ffffff;
  --text-dark: #333333;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background and Overlay */
body {
  background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.2)),
              url("https://res.cloudinary.com/dp71rx6nx/image/upload/v1750778896/sunny-meadow-landscape_yq5qjr.jpg") no-repeat center center/cover fixed;
  color: var(--text-light);
  min-height: 100vh;
  padding-top: 4rem;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 255, 204, 0.1);
  transition: var(--transition);
}

.navbar:hover {
  background: rgba(0, 0, 0, 0.9);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(0, 255, 204, 0.8);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links .active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links .active {
  color: var(--primary);
}

/* Hero Section */
.overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
  position: relative;
  overflow: hidden;
}

.overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.7) 100%);
  animation: pulse 4s infinite;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 0.8; }
  100% { opacity: 0.5; }
}

.content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

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

.content h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--primary), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 3s infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: #f0f0f0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.glow-button {
  padding: 1rem 2rem;
  background: linear-gradient(45deg, var(--primary), var(--primary-dark));
  color: var(--text-dark);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
  position: relative;
  overflow: hidden;
}

.glow-button::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: 0.5s;
}

.glow-button:hover::before {
  left: 100%;
}

.glow-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.6);
}

/* Features Section */
.features-section {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.9) 100%);
}

.features-section h2 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.features-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.feature-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  perspective: 1000px;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--text-light);
  padding: 2rem;
  width: 300px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.1);
  transition: var(--transition);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 204, 0.1), transparent);
  transform: translateX(-100%);
  transition: 0.6s;
}

.card:hover::before {
  transform: translateX(100%);
}

.card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 255, 204, 0.2);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

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

/* Footer */
footer {
  background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,1) 100%);
  color: #ccc;
  padding: 2rem;
  text-align: center;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Scroll To Top Button */
#scrollBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  font-size: 20px;
  background: var(--primary);
  color: var(--text-dark);
  border: none;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
  transition: var(--transition);
}

#scrollBtn:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .content h2 {
    font-size: 2.5rem;
  }
  
  .feature-cards {
    gap: 1.5rem;
  }
  
  .card {
    width: 100%;
    max-width: 300px;
  }
}

/* Loading Animation */
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.glow-button.secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.glow-button.secondary:hover {
  background: var(--primary);
  color: var(--text-dark);
}

/* Stats Section */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.9) 100%);
  position: relative;
  overflow: hidden;

}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.9) 100%);
  animation: pulse 4s infinite;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  min-width: 200px;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 255, 204, 0.1);
}

.stat-card.animate {
  transform: translateY(0);
  opacity: 1;
}

.stat-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: #ccc;
  font-size: 1.1rem;
}

/* Footer Enhancements */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-links a {
  color: #ccc;
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

/* Card Animations */
.card {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.animate {
  opacity: 1;
  transform: translateY(0);
}

.card i {
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card:hover i {
  transform: scale(1.2);
}

/* Responsive Design Updates */
@media (max-width: 768px) {
  .stats-section {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .stat-card {
    width: 100%;
    max-width: 300px;
  }

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

  .glow-button {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* Loading Animation Enhancement */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 1.5s infinite;
}

/* Additional Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.logo i {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

/* Hover Effects */
.card, .stat-card {
  position: relative;
  overflow: hidden;
}

.card::after, .stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,255,204,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::after, .stat-card:hover::after {
  opacity: 1;
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  z-index: 1001;
  transition: width 0.1s ease;
}
