/* ===================================================================
   IMPORT FONTS (Ensure this matches the <link> in HTML)
=================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===================================================================
   TAILWIND BASE, COMPONENTS, UTILITIES (Reference)
   (Not strictly needed with CDN, but good practice for build processes)
=================================================================== */
/*
@tailwind base;
@tailwind components;
@tailwind utilities;
*/

/* ===================================================================
   BASE & CUSTOM STYLES
=================================================================== */
html {
  @apply scroll-smooth;
  /* Improve scroll performance on some browsers */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Momentum scrolling on iOS */
  font-size: 16px; /* Ensure consistent base font size */
}

body {
  /* font-family is set via Tailwind config */
  @apply bg-neutral-light text-neutral-darker font-sans antialiased;
  overscroll-behavior-y: contain; /* Prevents body scroll chaining/pull-to-refresh */
  line-height: 1.6; /* Improved readability */
  font-feature-settings: "kern" 1, "liga" 1; /* Better typography */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar - Elegant & Subtle */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  @apply bg-neutral/30; /* Very subtle track */
}
::-webkit-scrollbar-thumb {
  @apply bg-neutral-dark/40 rounded-full border-[2.5px] border-transparent; /* Slightly thinner border */
  background-clip: content-box;
  transition: background-color 0.2s ease-in-out;
}
::-webkit-scrollbar-thumb:hover {
  @apply bg-neutral-dark/60; /* Darker on hover */
}

/* ===================================================================
   LAYOUT & SECTION STYLING
=================================================================== */

/* Hero Background & Overlay */
.hero-bg {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%), 
              url('../assets/images/hero.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed; /* Parallax-like effect */
  @apply relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Enhanced hero overlay with better gradient */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(22, 163, 74, 0.3) 100%
  );
}

/* Animated background particles */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(22, 163, 74, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* Text Shadow for Readability on Images */
.shadow-text {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65); /* Enhanced shadow */
}
.shadow-text-light {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

/* Optional: Subtle Background Pattern for Contact Section */
.pattern-bg {
    /* Example using SVG background - uncomment and customize if desired */
    /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%23ffffff' fill-opacity='0.06' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.99-7.5L26 15v18.5l-13 7.5L0 33.5V15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); */
}

/* ===================================================================
   COMPONENT STYLING
=================================================================== */

/* Card Hover Effect - Enhanced */
.card-hover {
  /* Using a refined cubic-bezier for smoother acceleration/deceleration */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform, box-shadow;
  position: relative;
  overflow: hidden;
}

.card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(22, 163, 74, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.card-hover:hover::before {
  left: 100%;
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02); /* Increased lift */
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(22, 163, 74, 0.1);
}

/* Glass morphism effect for cards */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4);
}

/* Service Card Specific Hover */
.service-card:hover h3 {
    @apply text-primary-dark; /* Ensure heading color changes */
}

/* Modern Button Shine Effect - Refined Easing */
.btn-modern {
  @apply relative overflow-hidden z-[1];
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform, box-shadow;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 
    0 4px 15px 0 rgba(22, 163, 74, 0.3),
    0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.btn-modern::after {
  content: '';
  @apply absolute top-0 w-full h-full bg-gradient-to-r from-transparent via-white/30 to-transparent;
  left: -150%;
  transform: skewX(-25deg);
  transition: left 0.75s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: left;
  z-index: 2;
}

.btn-modern:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 25px 0 rgba(22, 163, 74, 0.4),
    0 4px 10px 0 rgba(0, 0, 0, 0.15);
}

.btn-modern:hover::before {
  opacity: 1;
}

.btn-modern:hover::after {
  left: 150%;
}

.btn-modern:active {
  transform: translateY(0) scale(0.98);
  transition: transform 0.1s ease;
}

/* Mobile Menu Styling & Animation - Smoother Height Transition */
.mobile-menu {
    max-height: 0;
    @apply opacity-0 overflow-hidden;
    /* Smoother easing for height, standard ease for opacity */
    transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease-out;
    will-change: max-height, opacity;
}
.mobile-menu.menu-open {
    @apply opacity-100;
    /* max-height is set dynamically by JS */
}

/* Hamburger Icon Animation - Clean & Crisp */
.hamburger-icon {
  position: relative;
  width: 24px;
  height: 18px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.hamburger-icon span {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.hamburger-icon span:nth-child(1) {
  top: 0;
}

.hamburger-icon span:nth-child(2) {
  top: 8px;
  width: 80%;
}

.hamburger-icon span:nth-child(3) {
  top: 16px;
}

/* Hamburger open state */
.hamburger-icon.open {
  transform: rotate(90deg);
}

.hamburger-icon.open span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger-icon.open span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Hamburger closing animation */
.hamburger-icon.closing span {
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Mobile menu animations */
#mobileMenu {
  transition: max-height 0.4s cubic-bezier(0.19, 1, 0.22, 1), 
              opacity 0.3s ease-in-out;
  overflow: hidden;
}

#mobileMenu.menu-open {
  animation: slideDown 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

#mobileMenu.menu-closing {
  animation: slideUp 0.3s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Menu item animations */
.menu-item-animate {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 500px;
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    max-height: 500px;
    opacity: 1;
  }
  to {
    max-height: 0;
    opacity: 0;
  }
}

/* Mobile menu item hover effects */
#mobileMenu a {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

#mobileMenu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  transition: width 0.3s ease;
}

#mobileMenu a:hover::after,
#mobileMenu a.active::after {
  width: 100%;
}

/* Pulse animation for active menu items */
#mobileMenu a.bg-primary\/10 {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

/* ===================================================================
   FLOATING BUTTONS & ANIMATIONS
=================================================================== */

/* Back-to-Top Button - Enhanced Transition */
#backToTop {
    @apply fixed bottom-20 right-5 md:right-6 z-40 opacity-0 invisible;
    transform: translateY(10px); /* Start slightly lower */
    /* Smoother easing for transform */
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform, visibility;
}
#backToTop.visible { /* Class added by JS */
    @apply opacity-100 visible translate-y-0; /* End at normal position */
}
#backToTop:hover {
    @apply scale-110; /* Keep the scale on hover */
}

/* Floating WhatsApp Button */
.whatsapp-button {
    /* Tailwind handles positioning, z-index, bg, text, dimensions, rounded, shadow, hover, focus, animation */
    /* The 'animate-pulse-slow' class provides the gentle pulse */
    will-change: transform, opacity; /* Hint for the pulse animation */
}

/* Scroll Animation Classes - Enhanced */
.scroll-animate {
    @apply opacity-0 transition-all duration-700; /* Slightly longer duration */
    /* Smoother, slightly anticipating ease-out */
    transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}
.scroll-animate.fade-in-up {
    @apply translate-y-5; /* Slightly less initial translation */
}
/* Add more specific animation starting states if needed */
/* .scroll-animate.fade-in-left { @apply -translate-x-5; } */

.scroll-animate.is-visible { /* Class added by JS */
    @apply opacity-100 translate-y-0; /* Reset to normal position */
}

/* Add delays using inline style in HTML: style="transition-delay: 0.1s;" */
/* Note: Use transition-delay for scroll animations, not animation-delay,
   as we are using the transition property here. */

/* ===================================================================
   INSTAGRAM GALLERY STYLING & ANIMATIONS
=================================================================== */

/* Instagram Gallery Item Styling */
.instagram-gallery-item {
    @apply overflow-hidden relative shadow-custom;
    will-change: transform, box-shadow;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 16px;
    position: relative;
}

.instagram-gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(131, 58, 180, 0.1) 0%,
        rgba(253, 29, 29, 0.1) 50%,
        rgba(252, 175, 69, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.instagram-gallery-item:hover::before {
    opacity: 1;
}

.instagram-gallery-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(131, 58, 180, 0.1);
}

.instagram-gallery-item .overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    backdrop-filter: blur(2px);
}

/* Smooth transition for image zoom effect */
.instagram-gallery-item img {
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Custom easing for smoother animations */
.ease-out-expo {
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Instagram button gradient hover effect */
.instagram-gallery-item .overlay {
    transition: opacity 0.3s ease-in-out;
}

/* Instagram button styling */
a[href*="instagram.com"] {
    position: relative;
    overflow: hidden;
}

/* Enhanced animation for Instagram icon */
a[href*="instagram.com"] svg {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

a[href*="instagram.com"]:hover svg {
    transform: scale(1.15);
}

/* Custom animation for the Instagram follow button */
.from-\[\#833AB4\] {
    position: relative;
    overflow: hidden;
    background-size: 200% 200%;
}

.from-\[\#833AB4\]:hover {
    animation: instagram-pulse 2s infinite;
}

@keyframes instagram-pulse {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Add ripple effect for buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Add scale utility if not already defined in Tailwind config */
.scale-115 {
    transform: scale(1.15);
}

/* ===================================================================
   ENHANCED ANIMATIONS FOR EXISTING ELEMENTS
=================================================================== */

/* Improved fade-in-up animation with staggered delays */
.scroll-animate.fade-in-up {
    animation-fill-mode: both;
}

.scroll-animate.fade-in-up.is-visible {
    animation: enhancedFadeInUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes enhancedFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced hover effects for buttons */
.btn-modern {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-modern:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Improved card hover animations */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-hover:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hover state for touch devices */
.hover-active {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

/* ===================================================================
   MOBILE MENU ANIMATIONS
=================================================================== */

/* 3D button effect */
.btn-3d {
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-3d:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-3d:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Magnetic button effect (requires JS) */
.btn-magnetic {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Gradient border animation */
.gradient-border {
  position: relative;
  border: none;
  z-index: 0;
}

.gradient-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #4CAF50, #FFC107, #4CAF50);
  background-size: 400% 400%;
  z-index: -1;
  border-radius: inherit;
  animation: gradientBorder 3s ease infinite;
}

@keyframes gradientBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Shiny button effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: transform 0.7s;
}

.btn-shine:hover::after {
  transform: rotate(30deg) translate(100%, 100%);
}

/* ===================================================================
   PARTICLE ANIMATIONS & TOUCH EFFECTS
=================================================================== */

/* Menu particle animation */
.menu-particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  opacity: 1;
  z-index: 9999;
  transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1), opacity 1s ease;
}

/* Touch-specific animations */
.touch-device .btn-modern:active,
.touch-device .instagram-gallery-item:active {
  transform: scale(0.97) !important;
  transition: transform 0.2s ease !important;
}

.touch-scale {
  transform: scale(0.95) !important;
  transition: transform 0.2s ease !important;
}

.touch-pulse {
  animation: touchPulse 0.3s ease-out;
}

@keyframes touchPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

.touch-active {
  background-color: rgba(76, 175, 80, 0.1) !important;
  color: var(--color-primary-dark) !important;
}

/* Enhanced Instagram gallery animations */
.instagram-gallery-item.is-visible {
  animation: bounceIn 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

@keyframes bounceIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }
  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }
  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }
  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

/* Pulsing animation for Instagram button */
.pulsing {
  animation: buttonPulse 1s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite alternate;
}

@keyframes buttonPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(131, 58, 180, 0.5);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 0 20px 5px rgba(131, 58, 180, 0.3);
  }
}

/* Define CSS variables for colors */
:root {
  --color-primary: #4CAF50;
  --color-primary-light: #81C784;
  --color-primary-dark: #388E3C;
  --color-primary-darker: #2E7D32;
  --color-secondary: #FFC107;
  --color-secondary-light: #FFD54F;
  --color-secondary-dark: #FFA000;
}

/* Enhanced mobile menu animations */
#mobileMenu a {
  position: relative;
  z-index: 1;
}

#mobileMenu a::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s ease-out;
  border-radius: 0.375rem;
  opacity: 0.1;
}

#mobileMenu a:hover::before {
  transform: scaleX(1);
}

/* Floating animation for important elements */
.floating {
  animation: floating 3s ease-in-out infinite;
}

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

/* Add neon glow effect for emphasis */
.neon-glow {
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5),
              0 0 20px rgba(76, 175, 80, 0.3),
              0 0 30px rgba(76, 175, 80, 0.1);
  transition: box-shadow 0.3s ease;
}

.neon-glow:hover {
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.7),
              0 0 30px rgba(76, 175, 80, 0.5),
              0 0 45px rgba(76, 175, 80, 0.3);
}
/
* ===================================================================
   ENHANCED DESIGN IMPROVEMENTS
=================================================================== */

/* Improved Typography Scale */
.text-display {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.text-subheading {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.3;
    font-weight: 600;
}

.text-body-large {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    font-weight: 400;
}

/* Enhanced Color Palette */
:root {
    --color-primary: #22c55e;
    --color-primary-light: #4ade80;
    --color-primary-dark: #16a34a;
    --color-primary-darker: #15803d;
    --color-secondary: #10b981;
    --color-accent: #f97316;
    --color-neutral-50: #f8fafc;
    --color-neutral-100: #f1f5f9;
    --color-neutral-200: #e2e8f0;
    --color-neutral-500: #64748b;
    --color-neutral-700: #334155;
    --color-neutral-800: #1e293b;
    --color-neutral-900: #0f172a;
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #1ebe5d;
    
    /* Semantic colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, #ea580c 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-colored: 0 10px 25px -5px rgba(22, 163, 74, 0.3);
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
}

/* Modern Card Design System */
.card {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(22, 163, 74, 0.2);
}

.card-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.card-secondary {
    background: var(--gradient-secondary);
    color: white;
    border: none;
}

/* Enhanced Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    outline: none;
    user-select: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(22, 163, 74, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-md);
}

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

.btn-ghost {
    background: transparent;
    color: var(--color-primary-dark);
    border: 1px solid rgba(22, 163, 74, 0.3);
}

.btn-ghost:hover {
    background: rgba(22, 163, 74, 0.1);
    border-color: var(--color-primary);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Improved Form Elements */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-neutral-200);
    border-radius: var(--radius-lg);
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-input::placeholder {
    color: var(--color-neutral-500);
}

/* Enhanced Navigation */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link:hover {
    color: var(--color-primary-dark);
    background: rgba(22, 163, 74, 0.05);
}

/* Modern Section Styling */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-primary {
    background: var(--gradient-primary);
    color: white;
}

.section-secondary {
    background: var(--color-neutral-50);
}

.section-accent {
    background: var(--gradient-accent);
    color: white;
}

/* Enhanced Container System */
.container-fluid {
    width: 100%;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.container-sm {
    max-width: 640px;
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

/* Improved Grid System */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

/* Enhanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation Classes */
.animate-slide-up {
    animation: slideInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

/* Stagger Animation Delays */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* Enhanced Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Improved Focus States */
.focus-ring {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Enhanced Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-neutral-50: #0f172a;
        --color-neutral-100: #1e293b;
        --color-neutral-200: #334155;
        --color-neutral-500: #94a3b8;
        --color-neutral-700: #e2e8f0;
        --color-neutral-800: #f1f5f9;
        --color-neutral-900: #f8fafc;
    }
    
    body {
        background-color: var(--color-neutral-50);
        color: var(--color-neutral-700);
    }
    
    .card {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .card {
        border: 2px solid #000;
    }
}

/* Mobile-First Responsive Utilities */
@media (max-width: 640px) {
    .container {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
    
    .text-display {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.will-change-scroll {
    will-change: scroll-position;
}

/* Remove will-change after animation */
.animation-finished {
    will-change: auto;
}