:root {
  --primary: #2E7D32;
  --primary-dark: #1B5E20;
  --primary-light: #4C9A4F;
  --secondary: #81C784;
  --accent: #FF8A65;
  --accent-dark: #E65100;
  --bg: #FFFFFF;
  --bg-2: #F8F5F0;
  --ink: #37474F;
  --ink-soft: #607D8B;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: var(--primary); color: white; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Premium Shadows */
.shadow-soft { box-shadow: 0 4px 24px -8px rgba(46, 125, 50, 0.08), 0 2px 8px -2px rgba(46, 125, 50, 0.04); }
.shadow-premium { box-shadow: 0 12px 48px -12px rgba(46, 125, 50, 0.15), 0 4px 16px -4px rgba(46, 125, 50, 0.06); }
.shadow-glow { box-shadow: 0 24px 64px -16px rgba(46, 125, 50, 0.25); }
.shadow-accent { box-shadow: 0 12px 36px -8px rgba(255, 138, 101, 0.35); }

/* Glass */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.glass-dark {
  background: rgba(46, 125, 50, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Gradients */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-accent-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(4deg); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-12px) translateX(8px); }
  66% { transform: translateY(8px) translateX(-8px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes blob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: floatSlow 10s ease-in-out infinite; }
.animate-blob { animation: blob 14s ease-in-out infinite; }
.animate-pulse-slow { animation: pulse 4s ease-in-out infinite; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Organic shapes */
.organic-shape {
  position: absolute;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

/* Noise texture */
.noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Card hover */
.card-hover {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px -16px rgba(46, 125, 50, 0.2);
}

/* Button effects */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(46, 125, 50, 0.4);
}
.btn-primary > * { position: relative; z-index: 1; }

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(255, 138, 101, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(46, 125, 50, 0.3);
  color: var(--primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(46, 125, 50, 0.3);
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-item.active .accordion-content { max-height: 300px; }
.accordion-item.active .accordion-icon { transform: rotate(45deg); }
.accordion-icon { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

/* Hero image mask */
.hero-image-wrap {
  position: relative;
  border-radius: 200px 200px 32px 32px;
  overflow: hidden;
}

/* Floating scroll indicator */
.scroll-indicator {
  animation: scrollDown 2s ease-in-out infinite;
}

/* Section number */
.section-num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary);
  opacity: 0.6;
}

/* Testimonial track */
.testimonial-track {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Decorative dot grid */
.dot-grid {
  background-image: radial-gradient(circle, rgba(46, 125, 50, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Hero pattern */
.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(129, 199, 132, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 138, 101, 0.08) 0%, transparent 50%);
}

/* Underline animation */
.nav-link {
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

/* Focus states */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Form inputs */
.form-input {
  background: white;
  border: 1.5px solid rgba(46, 125, 50, 0.15);
  border-radius: 14px;
  padding: 14px 18px;
  width: 100%;
  font-family: inherit;
  color: var(--ink);
  transition: all 0.3s;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}
.form-input::placeholder { color: var(--ink-soft); opacity: 0.6; }

/* Header scroll state */
.header-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 24px -8px rgba(46, 125, 50, 0.1);
  border-bottom: 1px solid rgba(46, 125, 50, 0.08);
}

/* Before/After image */
.before-after-bar {
  background: linear-gradient(90deg, #ff6b6b 0%, #ff8a65 50%, #81c784 100%);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
