/* Hero Section - Enhanced Creative Design */
.hero-section {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 50%, #0f5132 100%);
  color: white;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Animated Background Elements */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 45% 10%, rgba(255,255,255,0.08) 0%, transparent 30%);
  animation: backgroundPulse 8s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.1) 100%);
  clip-path: polygon(0 60%, 25% 40%, 50% 60%, 75% 30%, 100% 50%, 100% 100%, 0% 100%);
}

/* Floating Particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 15s infinite linear;
  pointer-events: none;
}

.particle:nth-child(1) {
  width: 8px;
  height: 8px;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 20s;
}

.particle:nth-child(2) {
  width: 12px;
  height: 12px;
  left: 25%;
  animation-delay: 2s;
  animation-duration: 18s;
}

.particle:nth-child(3) {
  width: 6px;
  height: 6px;
  left: 45%;
  animation-delay: 4s;
  animation-duration: 22s;
}

.particle:nth-child(4) {
  width: 10px;
  height: 10px;
  left: 70%;
  animation-delay: 6s;
  animation-duration: 16s;
}

.particle:nth-child(5) {
  width: 14px;
  height: 14px;
  left: 85%;
  animation-delay: 8s;
  animation-duration: 24s;
}

.particle:nth-child(6) {
  width: 7px;
  height: 7px;
  left: 60%;
  animation-delay: 10s;
  animation-duration: 19s;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes backgroundPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  animation: slideInLeft 1s ease-out;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, #f0f8ff, #e6f7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #fff, transparent);
  border-radius: 2px;
  animation: underlineGrow 2s ease-out;
}

@keyframes titleGlow {
  from {
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
  }
  to {
    text-shadow: 0 0 30px rgba(255,255,255,0.5), 0 0 40px rgba(255,255,255,0.2);
  }
}

@keyframes underlineGrow {
  from {
    width: 0;
  }
  to {
    width: 100px;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 600px;
  animation: slideInLeft 1s ease-out 0.3s both;
  position: relative;
}

.hero-subtitle::before {
  content: '"';
  position: absolute;
  left: -20px;
  top: -10px;
  font-size: 3rem;
  opacity: 0.2;
  font-family: serif;
}

/* Enhanced Search Box */
.search-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 60px;
  padding: 8px;
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.6);
  max-width: 650px;
  margin: 2rem auto;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.search-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}

.search-box:hover::before {
  left: 100%;
}

.search-box:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.15),
    0 0 0 1px rgba(255,255,255,0.3);
}

/* Hero CTA Cards - More Creative */
.hero-cta-section {
  margin: 3rem 0 2rem 0;
  animation: slideInLeft 1s ease-out 0.6s both;
}

.hero-cta-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-cta-card:hover::before {
  opacity: 1;
}

.hero-cta-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-10px) scale(1.05);
  box-shadow: 
    0 25px 50px rgba(0,0,0,0.15),
    0 0 0 1px rgba(255,255,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

.hero-cta-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
}

.hero-cta-desc {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  font-weight: 300;
  position: relative;
  z-index: 2;
}

.hero-cta-card .btn {
  border-radius: 15px;
  font-weight: 700;
  padding: 1rem 2rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 2;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-cta-card .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.hero-cta-card .btn:hover::before {
  left: 100%;
}

.hero-cta-card .btn-light {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: var(--primary-green);
  border: 2px solid white;
  box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.hero-cta-card .btn-light:hover {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255,255,255,0.4);
}

.hero-cta-card .btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 8px 25px rgba(255,255,255,0.1);
}

.hero-cta-card .btn-outline-light:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.8));
  color: var(--primary-green);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255,255,255,0.3);
}

/* Creative Popular Tags */
.popular-tags {
  margin-top: 2.5rem;
  animation: slideInLeft 1s ease-out 0.9s both;
}

.tag-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  margin-right: 2rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 0.5rem;
}

.tag-link:hover {
  color: var(--primary-green);
  background: rgba(255,255,255,0.95);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255,255,255,0.3);
}

.tag-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.tag-link:hover::after {
  width: 80%;
}

/* Enhanced Hero Image */
.hero-image {
  position: relative;
  z-index: 5;
  animation: slideInRight 1s ease-out 0.6s both;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent, rgba(255,255,255,0.1));
  border-radius: 30px;
  z-index: -1;
  animation: rotateGlow 8s linear infinite;
}

.image-frame {
  position: relative;
  z-index: 6;
}

.hero-image img {
  border-radius: 25px;
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.2),
    0 0 0 1px rgba(255,255,255,0.1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 7;
}

.hero-image:hover img {
  transform: translateY(-15px) rotateY(10deg) rotateX(5deg);
  box-shadow: 
    0 50px 100px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.2),
    0 0 50px rgba(255,255,255,0.1);
}

.floating-element {
  z-index: 8 !important;
  position: absolute;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes rotateGlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Authenticated User Buttons */
.hero-auth-buttons {
  animation: slideInLeft 1s ease-out 0.6s both;
}

.hero-auth-buttons .btn {
  border-radius: 15px;
  font-weight: 700;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.hero-auth-buttons .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.hero-auth-buttons .btn:hover::before {
  left: 100%;
}

.hero-auth-buttons .btn-light {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border: 2px solid white;
  box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.hero-auth-buttons .btn-light:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255,255,255,0.4);
}

.hero-auth-buttons .btn-outline-light {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.6);
  color: white;
}

.hero-auth-buttons .btn-outline-light:hover {
  background: rgba(255,255,255,0.9);
  color: var(--primary-green);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255,255,255,0.3);
}

/* Stats Section - Enhanced */
.stats-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 80px 0;
  position: relative;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Enhanced Feature Cards */
.feature-card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: var(--transition);
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.feature-card:hover .feature-icon::before {
  left: 100%;
}

.feature-card:hover .feature-icon {
  transform: rotateY(180deg);
}

/* Category Cards - Enhanced */
.category-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover::before {
  opacity: 0.05;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: var(--primary-green);
}

.category-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotateZ(10deg);
}

.category-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  position: relative;
  z-index: 2;
}

.category-description {
  color: var(--text-light);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

/* Testimonial Cards - Enhanced */
.testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  margin: 1.5rem 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 4rem;
  color: var(--primary-green);
  opacity: 0.1;
  font-family: serif;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.user-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-green);
  transition: var(--transition);
}

.testimonial-card:hover .user-avatar {
  transform: scale(1.1);
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin: 1.5rem 0;
}

.user-info h6 {
  font-weight: 700;
  color: var(--text-dark);
}

.user-role {
  color: var(--text-light);
  font-weight: 500;
}

.stars {
  color: #fbbf24;
  font-size: 1.1rem;
}

/* How it Works Section */
.how-it-works-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 100px 0;
  position: relative;
}

.how-it-works-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: var(--transition);
  height: 100%;
  position: relative;
  border: 2px solid transparent;
  overflow: hidden;
}

.how-it-works-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.how-it-works-card:hover::before {
  opacity: 0.03;
}

.how-it-works-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  border-color: var(--primary-green);
}

.step-number {
  position: absolute;
  top: -15px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(20, 168, 0, 0.3);
  z-index: 2;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  transition: var(--transition);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.step-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.how-it-works-card:hover .step-icon::before {
  left: 100%;
}

.how-it-works-card:hover .step-icon {
  transform: scale(1.1) rotateZ(10deg);
}

.step-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
  position: relative;
  z-index: 2;
  font-size: 1.25rem;
}

.step-description {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
    text-align: center;
  }
  
  .hero-cta-section {
    margin: 2rem 0 1.5rem 0;
  }
  
  .hero-cta-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-cta-title {
    font-size: 1.25rem;
  }
  
  .hero-cta-desc {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .hero-cta-card .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .popular-tags {
    text-align: center;
  }
  
  .tag-link {
    display: inline-block;
    margin: 0.5rem 0.75rem;
  }
  
  .stats-section {
    padding: 60px 0;
  }
  
  .stat-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .category-card {
    margin-bottom: 1.5rem;
  }
  
  .testimonial-card {
    margin: 1rem 0;
    padding: 2rem;
  }
  
  .how-it-works-section {
    padding: 80px 0;
  }
  
  .how-it-works-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: -10px;
    right: 15px;
  }
  
  .step-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .step-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .step-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 40px 0;
  }
  
  .search-input {
    font-size: 14px;
  }
  
  .btn-search {
    font-size: 14px;
  }
  
  .feature-card, .category-card, .testimonial-card, .how-it-works-card {
    padding: 1.5rem;
  }
  
  .feature-icon, .category-icon, .step-icon {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

/* Loading animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}