﻿/* ===== MODERN HERO SECTION REDESIGN ===== */
:root {
  --hero-bg-gradient: linear-gradient(-45deg, #1b5e20 0%, #2e7d32 25%, #43a047 50%, #2e7d32 75%, #1b5e20 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --accent-color: #ffd54f;
  --text-light: #ffffff;
}

.hero-section {
  min-height: 100vh;
  background: var(--hero-bg-gradient);
  background-size: 200% 200%;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 80px;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  animation: gradientShift 15s ease infinite;
}

/* ===== ANIMATED BACKGROUND ===== */
.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  color: rgba(255, 255, 255, 0.08);
  animation: floatBackground 15s infinite ease-in-out;
}

.leaf1 { top: 10%; left: 5%; font-size: 4rem; animation-delay: 0s; }
.leaf2 { bottom: 20%; right: 10%; font-size: 3rem; animation-delay: -5s; }

.shape {
  position: absolute;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}
.shape-1 { width: 500px; height: 500px; top: -100px; right: -100px; animation: pulseShape 12s infinite alternate; }
.shape-2 { width: 300px; height: 300px; bottom: 10%; left: -50px; animation: pulseShape 18s infinite alternate-reverse; }

@keyframes pulseShape {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.3); opacity: 0.6; }
}

@keyframes floatBackground {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  25% { transform: translateY(-30px) translateX(10px) rotate(5deg); }
  50% { transform: translateY(-50px) translateX(-10px) rotate(10deg); }
  75% { transform: translateY(-30px) translateX(10px) rotate(5deg); }
  100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

/* ===== HERO CONTAINER ===== */
.hero-container {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ===== LEFT CONTENT ===== */
.hero-content {
  color: var(--text-light);
  padding-right: 20px;
}

/* Social Proof Badge */
.social-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

.social-proof-badge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

.avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background-size: cover;
  background-position: center;
  margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }

.hero-badge-text {
  font-size: 0.9rem;
  font-weight: 500;
}
.highlight {
  color: var(--accent-color);
  font-weight: 700;
}

/* Typography */
.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.type-writer-text {
  background: linear-gradient(90deg, #ffd54f, #ffca28, #ffeb3b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  25% {
    background-position: 50% 50%;
    filter: brightness(1.05);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1);
  }
  75% {
    background-position: 50% 50%;
    filter: brightness(1.05);
  }
  100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 35px;
  max-width: 550px;
}

/* Buttons */
.hero-cta {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.btn {
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: white;
  box-shadow: 0 10px 20px rgba(245, 124, 0, 0.3);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(245, 124, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  border-color: white;
}

/* Search Bar */
.hero-search {
  max-width: 500px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.search-form:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.form-group {
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  color: #2e7d32;
  margin-left: 15px;
  font-size: 1.1rem;
}

.form-input {
  flex: 1;
  border: none;
  padding: 12px 15px;
  font-size: 1rem;
  outline: none;
  color: #333;
}

.search-btn-primary {
  background: #2e7d32;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.search-btn-primary:hover {
  background: #1b5e20;
}

/* ===== RIGHT VISUALS ===== */
.hero-visuals {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 600px;
}

/* 3D Scene */
.hero-3d-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-img {
  width: 100%;
  max-width: 550px;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.3));
  position: relative;
  z-index: 2;
  animation: floatMain 6s ease-in-out infinite;
}

@keyframes floatMain {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Floating 3D Icons */
.floating-icon {
  position: absolute;
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
  z-index: 3;
  animation: floatIcon 5s ease-in-out infinite;
}

.floating-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon-1 { top: 10%; right: 10%; animation-delay: 0s; }
.icon-2 { bottom: 15%; left: 0%; animation-delay: 1.5s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

/* ===== VERTICAL STATS WIDGET ===== */
.vertical-stats-widget {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 10;
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 15px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.4);
  width: 220px;
  transform: translateX(50px);
  opacity: 0;
  animation: slideInRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--delay);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateX(-5px) scale(1.05);
  background: white;
}

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

.stat-icon-wrapper {
  width: 45px;
  height: 45px;
  background: #e8f5e9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2e7d32;
  font-size: 1.2rem;
}

.stat-icon-wrapper.color-accent { background: #fff8e1; color: #ff8f00; }
.stat-icon-wrapper.color-secondary { background: #e3f2fd; color: #1565c0; }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-count {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid white;
  border-radius: 13px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

.scroll-indicator span {
  color: white;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

@keyframes scrollWheel {
  0% { top: 8px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .hero-title { font-size: 3.5rem; }
  .vertical-stats-widget { right: 0; }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }

  .hero-content { padding-right: 0; }
  
  .hero-cta { justify-content: center; }
  
  .search-form { margin: 0 auto; }
  
  .vertical-stats-widget {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: -50px;
    z-index: 10;
  }

  .stat-card {
    width: auto;
    min-width: 180px;
    transform: none;
    animation: fadeInUp 0.8s forwards;
  }
  
  .hero-visuals { height: auto; display: block; }
  .hero-main-img { max-width: 400px; margin: 0 auto; display: block; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.8rem; }
  
  .hero-cta { flex-direction: column; width: 100%; }
  
  .btn { width: 100%; justify-content: center; }
  
  .floating-icon { width: 60px; height: 60px; }
  
  .vertical-stats-widget { flex-direction: column; align-items: center; }
  .stat-card { width: 100%; max-width: 300px; }
}
