/* 1. CSS Custom Properties for brand colors */
:root {
  --color-primary: #00B833;
  --color-primary-hover: #00C853;
  --color-text-dark: #0F172A;
  --color-text-body: #334155;
  --color-bg-light: #F8FAFC;
  --color-white: #FFFFFF;
}

/* 2. Smooth scroll behavior on html */
html {
  scroll-behavior: smooth;
}

/* 3. Body base font: Inter, fallback to system fonts */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text-body);
  background-color: var(--color-bg-light);
}

/* 4. Headings font: Plus Jakarta Sans */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--color-text-dark);
}

/* 5. .nav-link active state styling (green underline/border) */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-primary);
  transition: width 0.3s ease;
}

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

/* 6. Mobile hamburger drawer menu styles */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%; /* Hidden off-screen by default */
  width: 280px;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: transform 300ms ease;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(-100%);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.5); /* dark overlay */
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 7. Scroll-reveal animation classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 8. Card hover tilt effect */
.tilt-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  perspective: 1000px;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

.tilt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* 9. Hero canvas styling */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* 10. Custom scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-primary-hover);
}

/* 11. Button styles: .btn-primary */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem; /* px-6 py-3 */
  border-radius: 0.5rem; /* rounded-lg */
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 184, 51, 0.2);
}

/* 12. .btn-outline */
.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

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

/* 13. Newsletter form input focus ring styling */
.newsletter-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 184, 51, 0.3);
  border-color: var(--color-primary);
}

/* 14. Section padding helpers */
.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* 15. Smooth fade-in keyframe animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease-in-out forwards;
}

/* 16. Footer link hover effects */
.footer-link {
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--color-primary);
}

/* 17. WhatsApp floating button style */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25D366; /* Standard WhatsApp green */
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 900;
  font-size: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: white;
}

/* 18. Page banner/hero overlay gradient */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(15, 23, 42, 0.3) 100%
  );
  z-index: 0;
}

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

.translate-x-0 { transform: translateX(0) !important; }

