/********** Green Energy - Tropical Modern **********/
:root {
  --green-deep: #0d6e2b;
  --green-bright: #16a34a;
  --green-light: #dcfce7;
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --light: #fafaf9;
  --warm-white: #fefcfb;
  --teal: #0d9488;

  --primary: var(--green-deep);
  --success: var(--green-deep);

  font-family: "Sora", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sora", system-ui, sans-serif;
  color: #334155;
  line-height: 1.7;
  background: var(--warm-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

.display-3, .display-4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-success { color: var(--green-deep) !important; }
.bg-success { background-color: var(--green-deep) !important; }
.btn-success {
  background-color: var(--green-deep) !important;
  border-color: var(--green-deep) !important;
  color: #fff !important;
}

.btn-success:hover {
  background-color: #0a5a22 !important;
  border-color: #0a5a22 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 110, 43, 0.35);
}

.btn-outline-success {
  color: var(--green-deep) !important;
  border-color: var(--green-deep) !important;
}

.btn-outline-success:hover {
  background-color: var(--green-deep) !important;
  color: #fff !important;
}

::selection {
  background: var(--green-deep);
  color: #fff;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--green-deep); border-radius: 4px; }

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}
#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Buttons ***/
.btn {
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--green-deep);
  border-color: var(--green-deep);
}
.btn-primary:hover {
  background: #0a5a22;
  border-color: #0a5a22;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 110, 43, 0.35);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
}

.btn-square {
  width: 38px; height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-lg-square {
  width: 48px; height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*** Navbar ***/
.navbar.sticky-top {
  top: -100px;
  transition: 0.4s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92) !important;
  z-index: 1030;
}

.navbar .navbar-nav .nav-link {
  margin-right: 24px;
  padding: 22px 0;
  color: var(--dark-soft);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  outline: none;
  position: relative;
  transition: color 0.3s;
}

.navbar .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-deep);
  transition: width 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--green-deep);
}

@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 10px 0;
  }
  .navbar .navbar-nav {
    border-top: 1px solid #e2e8f0;
  }
}

/*** Top Bar ***/
.top-bar {
  background: var(--dark);
  color: #cbd5e1;
  font-size: 0.85rem;
}

.top-bar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s;
}

.top-bar a:hover {
  color: var(--gold);
}

/*** Hero ***/
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(15, 23, 42, 0.4) 50%,
    rgba(13, 110, 43, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  color: #fff;
}

.hero-amount {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-decoration {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 110, 43, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-decoration-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  pointer-events: none;
}

/*** Facts ***/
.facts-section {
  position: relative;
  background: linear-gradient(135deg, var(--green-deep), #0a5a22);
  overflow: hidden;
}

.facts-section::before {
  content: "";
  position: absolute;
  inset: 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.05'%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;
}

.fact-item {
  position: relative;
  z-index: 1;
}

.fact-item .fact-number {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3rem;
  font-weight: 800;
}

/*** Section Titles ***/
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 40px;
}

.section-tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 2px;
  background: var(--green-deep);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

/*** Cards ***/
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-deep), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.service-icon-wrap {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-light);
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  color: var(--green-deep);
  font-size: 2rem;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon-wrap {
  background: var(--green-deep);
  color: #fff;
  border-radius: 50%;
  transform: rotateY(180deg);
}

/*** Feature Cards ***/
.feature-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(13, 110, 43, 0.04);
  transform: translateX(4px);
}

.feature-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-deep);
  color: #fff;
  border-radius: 14px;
  font-size: 1.3rem;
}

/*** Team ***/
.team-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

/*** Project Cards ***/
.project-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.project-card img {
  height: 240px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

/*** Testimonial ***/
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 6rem;
  color: var(--green-light);
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

/*** FAQ ***/
.accordion-item {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.accordion-button {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  background: #fff;
  padding: 1.25rem 1.5rem;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--green-deep);
  background: #fff;
}

.accordion-button::after {
  background-size: 1rem;
}

/*** Footer ***/
.footer {
  background: var(--dark);
  color: #94a3b8;
}

.footer h3, .footer h5 {
  color: #fff;
}

.footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--gold);
}

.footer .btn-social {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  border-radius: 50%;
  color: #94a3b8;
  transition: all 0.3s;
}

.footer .btn-social:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/*** Page Header ***/
.page-header {
  background: linear-gradient(135deg, var(--green-deep), #0a5a22);
  padding: 3rem 0;
}

.page-header h1 {
  color: #fff;
  font-size: 2.5rem;
}

/*** Back to Top ***/
.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(13, 110, 43, 0.3);
  transition: all 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  background: #0a5a22;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 110, 43, 0.4);
}

/*** Chatbot Refinements ***/
.chat-launcher .launcher-btn {
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4) !important;
}

.chat-header {
  background: var(--green-deep) !important;
}

#chat-popup {
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

/*** Utility ***/
.gradient-text {
  background: linear-gradient(135deg, var(--green-deep), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 110, 43, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(13, 110, 43, 0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/*** Responsive ***/
@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
  }

  .team-card img {
    height: 200px;
  }

  .project-card img {
    height: 180px;
  }

  .back-to-top {
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }
}
