/* Modern Terra-inspired Design for Lumbung Hijau */

:root {
  --bs-success: #00aa13;
  --bs-success-rgb: 0, 170, 19;
  --purple: #6f42c1;
  --border-radius: 20px;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --navbar-height: 50px;
  --white: rgba(255, 255, 255, 0.95);
  --white-support: rgba(255, 255, 255, 0.2);
  --primary: #00aa13;
  --primary-dark: #008a10;
  --text-dark: #2d3748;
  --gray-600: #718096;
}

* {
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #ffffff;
  color: #2d3748;
  padding-top: var(--navbar-height);
  line-height: 1.6;
}

/* Custom Colors */
.bg-purple {
  background-color: var(--purple) !important;
}

/* Section Padding */
.section-padding {
  padding: 80px 0;
}

/* Navigation */
.navbar {
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.25rem 0;
  transition: all 0.3s ease;
  height: var(--navbar-height);
  z-index: 1050;
}

.navbar-brand {
  font-weight: 700;
  transition: transform 0.3s ease;
  color: #2d3748 !important;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  color: #64748b !important;
  padding: 0.4rem 0.8rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  margin: 0 0.25rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--bs-success) !important;
  background-color: rgba(0, 170, 19, 0.1);
  transform: translateY(-1px);
}

/* Hero Section - Reduced spacing */
.hero-section {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 25%, #ebf8ff 50%, #f0f5ff 75%, #f5f0ff 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Add decorative elements to the hero background */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(0, 170, 19, 0.05) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(0, 170, 19, 0.07) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(111, 66, 193, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

/* Add subtle pattern overlay */
.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 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='%2300aa13' 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;
  pointer-events: none;
}

.hero-content {
  padding-right: 1rem; /* Reduced padding */
  z-index: 2;
  position: relative;
}

/* Make text more prominent with reduced spacing */
.hero-content .badge {
  background: rgba(0, 170, 19, 0.15) !important;
  color: #006b0d !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem; /* Reduced padding */
  border: 1px solid rgba(0, 170, 19, 0.2);
  margin-bottom: 1rem; /* Reduced margin */
}

.hero-content .display-3 {
  color: #1a202c !important;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 0.5rem; /* Reduced margin */
  font-size: 3.5rem; /* Slightly smaller */
}

.hero-content .h3 {
  color: #00aa13 !important;
  font-weight: 600;
  margin-bottom: 1rem; /* Reduced margin */
}

.hero-content .lead {
  color: #4a5568 !important;
  font-size: 1.05rem; /* Slightly smaller */
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1.5rem; /* Reduced margin */
}

/* Add new wrapper for better positioning */
.phone-mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
}

/* Modern minimalist transparent background highlight */
.phone-mockup-highlight {
  position: absolute;
  width: 120%;
  height: 120%;
  background: rgba(0, 170, 19, 0.06);
  border-radius: 50px;
  z-index: 1;
  top: -10%;
  left: -10%;
  backdrop-filter: blur(2px);
  transition: all 0.3s ease;
}

/* Modern minimalist phone mockup container with enhanced card styling */
.phone-mockup-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  padding: 2rem;
  background: var(--white, rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 35px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-align: center;
  z-index: 2;
  color: var(--text-dark, #2d3748);
}

.phone-mockup-container::before {
  content: "";
  position: absolute;
  bottom: 0; /* Changed from top: 0 to bottom: 0 */
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00aa13, #008a10);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.phone-mockup-container:hover::before {
  transform: scaleX(1);
}

.phone-mockup-container:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 170, 19, 0.15), 0 15px 35px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 1);
}

/* Clean modern phone mockup image */
.phone-mockup-image {
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  display: inline-block;
  filter: drop-shadow(0 20px 40px rgba(0, 170, 19, 0.15));
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.phone-mockup-container:hover .phone-mockup-image {
  transform: scale(1.02);
  filter: drop-shadow(0 25px 50px rgba(0, 170, 19, 0.2));
}

/* Enhanced buttons with reduced spacing */
.hero-content .btn-success {
  background: linear-gradient(135deg, #00aa13 0%, #008a10 100%);
  border: none;
  box-shadow: 0 6px 15px rgba(0, 170, 19, 0.4);
  font-weight: 600;
  font-size: 1rem; /* Reduced size */
  padding: 0.75rem 2rem; /* Reduced padding */
}

.hero-content .btn-success:hover {
  background: linear-gradient(135deg, #008a10 0%, #00aa13 100%);
  box-shadow: 0 8px 20px rgba(0, 170, 19, 0.5);
  transform: translateY(-3px);
}

.hero-content .btn-outline-success {
  border: 2px solid #00aa13;
  color: #00aa13;
  font-weight: 600;
  font-size: 1rem; /* Reduced size */
  padding: 0.75rem 2rem; /* Reduced padding */
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.hero-content .btn-outline-success:hover {
  background: #00aa13;
  border-color: #00aa13;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 170, 19, 0.3);
}

/* Cards */
.info-card,
.problem-card,
.solution-card,
.feature-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.info-card:hover,
.problem-card:hover,
.solution-card:hover,
.feature-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-5px);
}

/* Completely redesigned info icons */
.custom-icon-container {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background-color: rgba(0, 170, 19, 0.1);
  color: #00aa13;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.custom-icon-container i {
  font-size: 2rem;
  color: #00aa13;
}

.info-card:hover .custom-icon-container {
  transform: scale(1.1);
  background-color: rgba(0, 170, 19, 0.15);
}

/* Problem Cards */
.problem-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

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

/* Solution Cards */
.solution-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.solution-card:hover .solution-number {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 170, 19, 0.3);
}

/* Feature Cards */
.feature-card {
  padding: 2rem;
  text-align: center;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}

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

.feature-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  background: rgba(0, 170, 19, 0.1);
  color: var(--bs-success);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(0, 170, 19, 0.2);
  transform: scale(1.05);
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-success {
  background: linear-gradient(135deg, var(--bs-success) 0%, #008a10 100%);
  box-shadow: 0 4px 15px rgba(0, 170, 19, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #008a10 0%, var(--bs-success) 100%);
  box-shadow: 0 6px 20px rgba(0, 170, 19, 0.4);
  transform: translateY(-2px);
}

.btn-outline-success {
  border: 2px solid var(--bs-success);
  color: var(--bs-success);
  background: transparent;
}

.btn-outline-success:hover {
  background: var(--bs-success);
  border-color: var(--bs-success);
  color: white;
  transform: translateY(-2px);
}

.btn-light {
  background: white;
  color: var(--bs-success);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
  background: #f8f9fa;
  color: var(--bs-success);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Badges */
.badge {
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: transform 0.3s ease;
}

.badge:hover {
  transform: scale(1.05);
}

/* Footer - Improved text visibility */
footer {
  background: #1a202c !important;
}

footer h6 {
  color: #ffffff !important; /* Brighter heading */
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

footer .text-muted {
  color: #cbd5e0 !important; /* Lighter text color for better visibility */
}

footer a.text-muted {
  color: #cbd5e0 !important; /* Lighter link color */
  text-decoration: none;
  transition: all 0.2s ease;
}

footer a.text-muted:hover {
  color: #ffffff !important; /* White on hover */
  transform: translateY(-1px);
}

footer .btn-outline-success {
  border-color: #00aa13;
  color: #00aa13;
}

footer .btn-outline-success:hover {
  background-color: #00aa13;
  color: #ffffff;
}

footer .text-success {
  color: #2ecc71 !important; /* Brighter green for icons */
}

footer .border-secondary {
  border-color: #2d3748 !important; /* Darker border */
}

.btn-outline-success.btn-sm {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Newsletter form in footer */
footer .form-control {
  background-color: #2d3748;
  border: 1px solid #4a5568;
  color: #ffffff;
}

footer .form-control::placeholder {
  color: #a0aec0;
}

footer .form-control:focus {
  background-color: #2d3748;
  border-color: #00aa13;
  box-shadow: 0 0 0 0.25rem rgba(0, 170, 19, 0.25);
  color: #ffffff;
}

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

  .hero-section {
    padding: 80px 0 40px; /* Further reduced for mobile */
    min-height: auto;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .phone-mockup-image {
    max-width: 220px; /* Smaller on mobile */
  }

  .feature-card {
    padding: 1.5rem;
  }

  .display-3 {
    font-size: 2.25rem; /* Smaller on mobile */
  }

  .phone-mockup-container {
    padding: 1.5rem;
    margin-left: 0; /* Reset margin on mobile */
  }
}

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

  .phone-mockup-image {
    max-width: 180px; /* Even smaller on small mobile */
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Scroll offset for fixed navbar */
section {
  scroll-margin-top: calc(var(--navbar-height) + 20px);
}

/* Loading states */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus {
  outline: 2px solid var(--bs-success);
  outline-offset: 2px;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--bs-success), #008a10);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--bs-success);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #008a10;
}
