/* Tailwind CSS Custom Configuration and Utilities */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
  --primary-green: #7aba42;
  --primary-pink: #ef3976;
  --accent-gold: #e5a642;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --text-dark: #333333;
  --text-light: #666666;
}

/* Prevent horizontal scroll on all pages */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce-smooth {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-slide-down {
  animation: slideInDown 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
  animation: slideInUp 0.6s ease-out;
}

.animate-bounce-smooth {
  animation: bounce-smooth 2s ease-in-out infinite;
}

/* Gradient backgrounds */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-green) 0%, #6ba040 100%);
}

.bg-gradient-accent {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d68c3c 100%);
}

/* Custom button styles */
.btn-primary {
  background-color: var(--primary-green);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-green);
}

.btn-primary:hover {
  background-color: #6ba040;
  border-color: #6ba040;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(122, 186, 66, 0.3);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--primary-pink);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-pink);
}

.btn-secondary:hover {
  background-color: #d6356c;
  border-color: #d6356c;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(239, 57, 118, 0.3);
  color: white;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-green);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: 2px solid var(--primary-green);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--primary-green);
  color: white;
  box-shadow: 0 10px 25px rgba(122, 186, 66, 0.3);
}

/* Text utilities */
.text-primary-green {
  color: var(--primary-green);
}

.text-primary-pink {
  color: var(--primary-pink);
}

.text-accent-gold {
  color: var(--accent-gold);
}

/* Box shadow utilities */
.shadow-lg-custom {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.shadow-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Card styles */
.card-hover {
  transition: all 0.3s ease;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Navigation enhancements */
.navbar-enhanced {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-enhanced.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.nav-link-custom {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 0.5rem;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-pink));
  transition: width 0.3s ease;
}

.nav-link-custom:hover {
  color: var(--primary-green);
}

.nav-link-custom:hover::after {
  width: 100%;
}

/* Badge styles */
.badge-new {
  background: linear-gradient(135deg, var(--primary-pink), #d6356c);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
}

/* Divider styles */
.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
  margin: 2rem 0;
}

/* Hero section */
.hero-overlay {
  position: relative;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(122, 186, 66, 0.1);
  z-index: 1;
}

/* Footer enhancements */
.footer-enhanced {
  background-color: var(--dark-bg);
  color: #f0f0f0;
}

.footer-link {
  color: #f0f0f0;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--primary-green);
}

/* Responsive typography */
@media (max-width: 768px) {
  .text-responsive-lg {
    font-size: 1.5rem;
  }
  
  .text-responsive-md {
    font-size: 1.25rem;
  }
}

/* Form enhancements */
.form-control-enhanced {
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* ============================================
   GLASSMORPHISM EFFECTS - Modern Glass Design
   ============================================ */

/* Main glass effect class */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  border-radius: 0.75rem;
  transition: all 0.4s ease;
}

.glass-effect:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Glass effect for dark backgrounds */
.glass-effect-dark {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  border-radius: 0.75rem;
  transition: all 0.4s ease;
}

.glass-effect-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Glass effect with enhanced blur */
.glass-effect-strong {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 40px 0 rgba(31, 38, 135, 0.2);
  border-radius: 1rem;
  transition: all 0.4s ease;
}

.glass-effect-strong:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 15px 50px 0 rgba(31, 38, 135, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-4px);
}

/* Glass effect with color tint */
.glass-effect-tinted {
  background: rgba(122, 186, 66, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(122, 186, 66, 0.3);
  box-shadow: 0 8px 32px 0 rgba(122, 186, 66, 0.15);
  border-radius: 0.75rem;
  transition: all 0.4s ease;
}

.glass-effect-tinted:hover {
  background: rgba(122, 186, 66, 0.15);
  box-shadow: 0 12px 40px 0 rgba(122, 186, 66, 0.2);
  border-color: rgba(122, 186, 66, 0.4);
  transform: translateY(-3px);
}

/* Glass effect for form fields */
.form-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.form-glass:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(122, 186, 66, 0.5);
  box-shadow: 0 0 0 3px rgba(122, 186, 66, 0.1);
}

.form-glass::placeholder {
  color: rgba(102, 102, 102, 0.6);
}

/* Glass effect for buttons */
.btn-glass {
  background: rgba(122, 186, 66, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(122, 186, 66, 0.5);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-glass:hover {
  background: rgba(122, 186, 66, 1);
  box-shadow: 0 10px 30px rgba(122, 186, 66, 0.4);
  transform: translateY(-2px);
  border-color: rgba(122, 186, 66, 0.8);
}

/* Glassmorphic card designs */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 15px 45px 0 rgba(31, 38, 135, 0.25);
  transform: translateY(-6px);
}

/* Glassmorphic section backgrounds */
.glass-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Enhanced feature card with glass effect */
.feature-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.feature-glass:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 15px 45px 0 rgba(31, 38, 135, 0.2);
  transform: translateY(-8px) scale(1.02);
}

/* Glass effect for review cards */
.review-glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  transition: all 0.4s ease;
}

.review-glass:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
  transform: translateY(-4px);
}

/* Glassmorphic overlay */
.glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: inherit;
  pointer-events: none;
}

/* Smooth blur transitions */
@supports (backdrop-filter: blur(10px)) {
  .glass-effect,
  .glass-effect-dark,
  .glass-effect-strong,
  .glass-effect-tinted,
  .glass-card,
  .feature-glass,
  .review-glass {
    /* Ensures glass effects are applied in compatible browsers */
  }
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(10px)) {
  .glass-effect,
  .glass-effect-dark,
  .glass-effect-strong,
  .glass-effect-tinted,
  .glass-card,
  .feature-glass,
  .review-glass {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
}

.form-control-enhanced:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(122, 186, 66, 0.1);
  outline: none;
}

/* Input focus styles */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(122, 186, 66, 0.1);
  border-color: var(--primary-green);
}

/* Social icons */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-bg);
  color: var(--primary-green);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--primary-green);
  color: white;
  transform: translateY(-3px);
}

/* Loading animation */
.spinner-custom {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--light-bg);
  border-top-color: var(--primary-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Utility classes for common patterns */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-cols-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.transition-all {
  transition: all 0.3s ease;
}

.cursor-pointer {
  cursor: pointer;
}

/* Placeholder text color */
::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}
/* ============ GLOBAL LINK STYLING ============ */

/* Remove underlines from all anchor tags */
a {
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  text-decoration: none;
}

/* Add underline only on hover if needed */
.link-underline:hover {
  text-decoration: underline;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ BUTTON STYLING ============ */

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

button:active {
  transform: scale(0.98);
}

/* ============ FORM ELEMENTS ============ */

input,
textarea,
select {
  cursor: pointer;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* ============ UNIVERSAL SPACING & PADDING ============ */

/* Container padding consistency */
.container,
.max-w-7xl,
.max-w-6xl,
.max-w-5xl {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container,
  .max-w-7xl,
  .max-w-6xl,
  .max-w-5xl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container,
  .max-w-7xl,
  .max-w-6xl,
  .max-w-5xl {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Section padding mobile-first */
section {
  padding: 2rem 1rem;
}

@media (min-width: 640px) {
  section {
    padding: 3rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 4rem 2rem;
  }
}

/* Card padding consistency */
.card,
.card-hover,
[class*="rounded-lg"][class*="shadow"] {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .card,
  .card-hover,
  [class*="rounded-lg"][class*="shadow"] {
    padding: 2rem;
  }
}

/* ============ RESPONSIVE TEXT SIZING ============ */

/* Headings scale properly */
h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.375rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.125rem;
}

@media (min-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.875rem; }
  h4 { font-size: 1.5rem; }
}

/* ============ IMPROVED CARD STYLING ============ */

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ============ IMPROVED BUTTON STYLING ============ */

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background-color: var(--primary-green);
  color: white;
}

.btn-primary:hover {
  background-color: #6ba438;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(122, 186, 66, 0.3);
}

.btn-secondary {
  background-color: var(--primary-pink);
  color: white;
}

.btn-secondary:hover {
  background-color: #dd2e67;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(239, 57, 118, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
}

.btn-outline:hover {
  background-color: var(--primary-green);
  color: white;
}



/* Lazy Loading - Image optimization */
img[loading="lazy"] {
  /* 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; }
}

/* Will-change optimization for animations */
.animate-on-scroll {
  will-change: transform, opacity;
}

/* GPU acceleration for smooth transitions */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimize button interactions */
button, a {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active, a:active {
  transform: scale(0.98);
}

/* Remove focus outline for better UX, use custom focus states */
button:focus, a:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Custom focus visible for accessibility */
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* Performance: Reduce animations on slow devices */
@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;
  }
}

/* Optimize font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Container queries for responsive performance */
@supports (container-type: inline-size) {
  .container-optimized {
    container-type: inline-size;
  }
}

/* Dark mode optimization */
@media (prefers-color-scheme: dark) {
  /* Reduce strain on dark backgrounds */
  img {
    opacity: 0.9;
  }
}

/* Print optimization */
@media print {
  /* Hide interactive elements when printing */
  button, .floating-buttons, .sticky, nav {
    display: none !important;
  }
  
  /* Optimize layout for printing */
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
}