@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #3AF24B;
  --primary-dark: #2eb73a;
  --charcoal: #111827;
  --gray-medium: #DDE7E6;
  --gray-light: #F3F4F6;
  --off-white: #F9FAFB;
  --white: #FFFFFF;
  --border-color: #DDE7E6;
  --background: #FFFFFF;
  --foreground: #111827;
  --muted: #F3F4F6;
  --muted-foreground: #6B7280;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   Typography & Utilities
   ========================================= */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.text-foreground { color: var(--foreground) !important; }
.text-muted-foreground { color: var(--muted-foreground) !important; }
.bg-charcoal { background-color: var(--charcoal) !important; }
.text-charcoal { color: var(--charcoal) !important; }
.bg-background { background-color: var(--background) !important; }

.font-light { font-weight: 300 !important; }
.font-medium { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold { font-weight: 700 !important; }
.font-black { font-weight: 900 !important; }

.tracking-tight { letter-spacing: -0.025em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }
.leading-relaxed { line-height: 1.625 !important; }

/* =========================================
   Unified Typography System
   ========================================= */

/* Display / Hero Title */
.heading-hero {
  font-size: clamp(3.75rem, 6vw, 6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

/* Section Heading */
.heading-section {
  font-size: clamp(3rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

/* Small Section Heading */
.heading-section-sm {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

/* Card Title */
.title-card {
  font-size: 1.375rem; /* 22px */
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

/* Body Large */
.text-body-lg {
  font-size: clamp(1.125rem, 2vw, 1.25rem); /* 18px to 20px */
  font-weight: 400;
  line-height: 1.625;
}

/* Body Text */
.text-body-md {
  font-size: 1rem; /* 16px */
  font-weight: 400;
  line-height: 1.7;
}

/* Small Text */
.text-body-sm {
  font-size: 0.875rem; /* 14px */
  font-weight: 400;
}

/* Statistics Numbers */
.stat-value {
  font-size: 2.5rem; /* 40px */
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Statistics Labels */
.stat-label {
  font-size: 0.9375rem; /* 15px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Added for selective typography matching React */
.fw-black {
  font-weight: 900 !important;
}

.text-gradient {
  background: linear-gradient(to right, var(--primary), #059669); /* emerald-600 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   Buttons & Navigation
   ========================================= */
.nav-link {
  font-size: 1rem; /* 16px */
  font-weight: 500;
}

.btn-primary-custom, .btn-secondary-custom, .btn-dark, .btn-light, .btn-outline-light {
  height: 56px !important;
  border-radius: 0.75rem !important; /* 12px */
  padding: 0 2rem !important;
  font-size: 1rem !important; /* 16px */
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}

.btn-primary-custom {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 40px rgba(21, 149, 26, 0.2);
  border: none;
}
.btn-primary-custom:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(21, 149, 26, 0.3);
}

.btn-secondary-custom {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border-color);
}
.btn-secondary-custom:hover {
  background-color: #f9fafb; /* gray-50 */
  color: var(--foreground);
}

/* =========================================
   Glass & Effects
   ========================================= */
.glass-panel {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.bg-dark .glass-panel {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.shadow-premium {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}
.shadow-premium-lg {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
}
.shadow-premium-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
}
.shadow-primary-glow {
  box-shadow: 0 10px 40px rgba(21, 149, 26, 0.2);
}
.shadow-primary-glow:hover {
  box-shadow: 0 15px 50px rgba(21, 149, 26, 0.3);
}

.noise-overlay {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/noise.png');
  opacity: 0.03;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* =========================================
   Animations
   ========================================= */
@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

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

.animate-blob {
  animation: blob 15s infinite;
}

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

.animate-pulse-custom {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* =========================================
   Intersection Observer Reveal Animations (Framer Motion feel)
   ========================================= */
.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}
.reveal-up {
  transform: translateY(40px);
}
.reveal-down {
  transform: translateY(-40px);
}
.reveal-left {
  transform: translateX(-40px);
}
.reveal-right {
  transform: translateX(40px);
}
.reveal-scale {
  transform: scale(0.95);
}
.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }
.reveal-delay-500 { transition-delay: 500ms; }

/* =========================================
   Components (extracted from Tailwind)
   ========================================= */
.section-padding { padding-top: 4rem; padding-bottom: 4rem; }
.pt-128 { padding-top: 4rem !important; }
.pb-128 { padding-bottom: 4rem !important; }
.pt-96 { padding-top: 3rem !important; }
.pb-96 { padding-bottom: 3rem !important; }

@media (min-width: 768px) {
  .section-padding { padding-top: 6rem; padding-bottom: 6rem; }
  .pt-128 { padding-top: 6rem !important; }
  .pb-128 { padding-bottom: 6rem !important; }
  .pt-96 { padding-top: 4.5rem !important; }
  .pb-96 { padding-bottom: 4.5rem !important; }
}

@media (min-width: 992px) {
  .section-padding { padding-top: 8rem; padding-bottom: 8rem; }
  .pt-128 { padding-top: 8rem !important; }
  .pb-128 { padding-bottom: 8rem !important; }
  .pt-96 { padding-top: 6rem !important; }
  .pb-96 { padding-bottom: 6rem !important; }
}

.bento-card {
  background-color: var(--white);
  border-radius: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.5s ease;
  overflow: hidden;
  position: relative;
}
.bento-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.rounded-4xl { border-radius: 2rem !important; }
.rounded-5xl { border-radius: 2.5rem !important; }
.rounded-6xl { border-radius: 3rem !important; }

/* Header / Navbar */
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: transparent !important;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1rem 0;
}
@media (min-width: 992px) {
  .navbar-custom {
    padding: 1.5rem 0;
  }
}
.navbar-custom.scrolled {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
@media (min-width: 992px) {
  .navbar-custom.scrolled {
    padding: 1rem 0;
  }
}

.nav-link-custom {
  color: var(--foreground);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.2px;
  position: relative;
  transition: color 0.25s ease;
}
.nav-link-custom:hover {
  color: var(--primary);
}
.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  transform: scaleX(1);
}
.nav-link-custom.active {
  color: var(--primary);
  font-weight: 600;
}

/* =========================================
   Custom Grids (Tailwind Replication)
   ========================================= */
.d-grid-bento {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
/* Ensure mobile stacks properly */
.bento-col-8, .bento-col-4, .bento-col-2, .bento-col-1 { grid-column: span 1 / span 1; }
.bento-row-2, .bento-row-1 { grid-row: auto; }

@media (min-width: 992px) {
  .d-grid-bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: 750px;
  }
  .bento-col-8 { grid-column: span 8 / span 8; }
  .bento-col-4 { grid-column: span 4 / span 4; }
  .bento-col-2 { grid-column: span 2 / span 2; }
  .bento-col-1 { grid-column: span 1 / span 1; }
  
  .bento-row-2 { grid-row: span 2 / span 2; }
  .bento-row-1 { grid-row: span 1 / span 1; }
}

.d-grid-services {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  grid-auto-rows: 220px;
}
@media (min-width: 768px) {
  .d-grid-services {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .d-grid-services {
    gap: 1.5rem;
    grid-auto-rows: 280px;
  }
}

.timeline-line {
  display: none;
  position: absolute;
  top: 3rem;
  left: 2.5rem;
  right: 2.5rem;
  height: 2px;
  background-color: var(--border-color);
}
@media (min-width: 768px) {
  .timeline-line { display: block; }
}

/* =========================================
   Custom Hover & Animation Utilities
   ========================================= */
.transition-all-300 { transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important; }
.transition-all-500 { transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important; }
.transition-all-700 { transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important; }
.transition-all-1000 { transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) !important; }

.hover-scale:hover { transform: scale(1.02); }
.hover-translate-y:hover { transform: translateY(-8px); }
.hover-shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important; }
.hover-shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; }
.hover-border-primary:hover { border-color: var(--primary) !important; }

/* Group hovers */
.group:hover .group-hover-scale-110 { transform: scale(1.1) !important; }
.group:hover .group-hover-scale-125 { transform: scale(1.25) !important; }
.group:hover .group-hover-scale-150 { transform: scale(1.5) !important; }
.group:hover .group-hover-scale-200 { transform: scale(2) !important; }
.group:hover .group-hover-translate-y-neg { transform: translateY(-8px) !important; }
.group:hover .group-hover-translate-x { transform: translateX(4px) !important; }
.group:hover .group-hover-bg-primary { background-color: var(--primary) !important; }
.group:hover .group-hover-text-white { color: white !important; }
.group:hover .group-hover-text-primary { color: var(--primary) !important; }
.group:hover .group-hover-opacity-100 { opacity: 1 !important; }
.group:hover .group-hover-opacity-50 { opacity: 0.5 !important; }
.group:hover .group-hover-bg-opacity-75 { background-color: rgba(0,0,0,0.75) !important; }
.group:hover .group-hover-text-emerald { color: #6ee7b7 !important; }
.group:hover .group-hover-text-blue { color: #93c5fd !important; }
.group:hover .group-hover-text-purple { color: #d8b4fe !important; }
.group:hover .group-hover-grayscale-0 { filter: grayscale(0%) !important; }

/* Paddings */
.p-custom-lg { padding: 4rem !important; }
.p-custom-md { padding: 2.5rem !important; }

/* Transitions */
.transition-all-300 { transition: all 0.3s ease; }
.transition-all-500 { transition: all 0.5s ease; }
.transition-all-700 { transition: all 0.7s ease; }
.transition-all-1000 { transition: all 1s ease; }

/* =========================================
   Premium Bento Grid (Services Section)
   ========================================= */
.bento-premium-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .bento-premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-featured { grid-column: span 2; }
  .bento-md { grid-column: span 1; }
  .bento-sm { grid-column: span 1; }
}
@media (min-width: 1200px) {
  .bento-premium-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .bento-featured { grid-column: span 6; grid-row: span 2; }
  .bento-md { grid-column: span 3; grid-row: span 1; }
  .bento-sm { grid-column: span 2; grid-row: span 1; }
}

/* Custom Form Focus Rings */
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 4px rgba(21, 149, 26, 0.15) !important; border-color: var(--primary) !important; transition: all 0.2s ease; }
