/* Home Page Redesign */

:root {
  --home-primary: #2c3e50;
  --home-secondary: #34495e;
  --home-accent: #3498db;
  --home-success: #27ae60;
  --home-warning: #f39c12;
  --home-light: #ecf0f1;
  --home-bg: #f5f6fa;
  --home-text: #2c3e50;
  --home-text-muted: #7f8c8d;
}

/* Reset container constraints for full-width sections */
.container.my-bg {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: url('/static/images/bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 2rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  animation: pulse 15s ease-in-out infinite;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 900px;
  animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  animation: float 3s ease-in-out infinite;
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 6px 24px rgba(44,62,80,0.7), 0 1px 0 #000;
  background: linear-gradient(90deg, rgba(44,62,80,0.85) 0%, rgba(52,73,94,0.85) 100%);
  padding: 0.5rem 2.5rem;
  border-radius: 1.5rem;
  display: inline-block;
  box-shadow: 0 8px 32px rgba(44,62,80,0.25);
  mix-blend-mode: lighten;
  opacity: 0.97;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin: 0 0 1.5rem 0;
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.8;
  margin: 0 0 2.5rem 0;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero-btn:hover::before {
  width: 300px;
  height: 300px;
}

.hero-btn span {
  position: relative;
  z-index: 1;
}

.hero-btn i {
  position: relative;
  z-index: 1;
}

.hero-btn-primary {
  background: white;
  color: var(--home-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  color: var(--home-primary);
}

.hero-btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

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

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  cursor: pointer;
}

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

/* Statistics Section */
.stats-section {
  background: white;
  padding: 4rem 2rem;
}

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

.stats-header {
  text-align: center;
  margin-bottom: 3rem;
}

.stats-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--home-text);
  margin: 0 0 1rem 0;
}

.stats-header p {
  font-size: 1.1rem;
  color: var(--home-text-muted);
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: var(--home-bg);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--home-accent);
}

.stat-icon {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
}

.stat-icon-research {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon-sites {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon-evidence {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-icon-users {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--home-text);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--home-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Features Section */
.features-section {
  background: var(--home-bg);
  padding: 5rem 2rem;
}

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

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--home-text);
  margin: 0 0 1rem 0;
}

.features-header p {
  font-size: 1.1rem;
  color: var(--home-text-muted);
  margin: 0;
}

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

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--home-accent);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--home-accent), #2980b9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--home-text);
  margin: 0 0 1rem 0;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--home-text-muted);
  margin: 0;
}

/* Quick Access Section */
.quick-access-section {
  background: white;
  padding: 4rem 2rem;
}

.quick-access-container {
  max-width: 1200px;
  margin: 0 auto;
}

.quick-access-header {
  text-align: center;
  margin-bottom: 3rem;
}

.quick-access-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--home-text);
  margin: 0 0 1rem 0;
}

.quick-access-header p {
  font-size: 1.1rem;
  color: var(--home-text-muted);
  margin: 0;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.access-card {
  background: var(--home-bg);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.access-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
  transition: left 0.5s ease;
}

.access-card:hover::before {
  left: 100%;
}

.access-card:hover {
  transform: translateX(5px);
  border-color: var(--home-accent);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  background: white;
}

.access-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--home-accent), #2980b9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.access-card:hover .access-icon {
  transform: scale(1.1);
}

.access-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--home-text);
  margin: 0 0 0.5rem 0;
}

.access-card p {
  font-size: 0.9rem;
  color: var(--home-text-muted);
  margin: 0 0 1rem 0;
}

.access-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--home-accent);
  color: white;
  border-radius: 50%;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.access-card:hover .access-arrow {
  transform: translateX(5px);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--home-primary) 0%, var(--home-secondary) 100%);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content {
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.cta-content p {
  font-size: 1.2rem;
  margin: 0 0 2rem 0;
  opacity: 0.95;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 3rem;
  background: white;
  color: var(--home-primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  color: var(--home-primary);
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .stats-grid,
  .features-grid,
  .quick-access-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    padding: 3rem 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
  }

  .stats-section,
  .features-section,
  .quick-access-section,
  .cta-section {
    padding: 3rem 1rem;
  }

  .stats-header h2,
  .features-header h2,
  .quick-access-header h2,
  .cta-content h2 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
  }

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

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

  .hero-badge {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

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

  .stat-number {
    font-size: 2rem;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .cta-content p {
    font-size: 1rem;
  }
}
