/* ==========================================================================
   GEOGOLF PROFESSIONAL STYLES - PREMIUM GOLF MAPPING DESIGN
   Mobile Performance Optimized
   ========================================================================== */

/* Professional Color Palette */
:root {
  --golf-green-900: #0a2e0a;
  --golf-green-800: #1a4a1a;
  --golf-green-700: #2d5a2d;
  --golf-green-600: #3d6a3d;
  --golf-green-500: #4d7a4d;
  --golf-gold-500: #d4af37;
  --golf-gold-400: #e6c547;
  --golf-gold-300: #f0d666;
  --golf-cream-100: #fdfcf8;
  --golf-cream-200: #f8f5ed;
  --golf-slate-700: #334155;
  --golf-slate-600: #475569;
  --golf-slate-500: #64748b;
  --premium-shadow: 0 8px 32px rgba(10, 46, 10, 0.12);
  --premium-shadow-lg: 0 16px 48px rgba(10, 46, 10, 0.15);
  --premium-shadow-xl: 0 24px 64px rgba(10, 46, 10, 0.2);
}

/* ==========================================================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* GPU acceleration hints for smooth animations */
.will-change-transform {
  will-change: transform;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Mobile-first optimizations */
@media (max-width: 768px) {
  /* Performance optimizations for mobile */
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  body.mobile-optimized {
    --animation-speed: 0.3s;
  }
  
  /* Only clamp animations when JS has detected a device that needs it */
  body.mobile-optimized *:not(.preserve-animation),
  body.mobile-optimized *:not(.preserve-animation)::before,
  body.mobile-optimized *:not(.preserve-animation)::after {
    animation-duration: var(--animation-speed) !important;
    animation-delay: 0s !important;
    transition-duration: var(--animation-speed) !important;
  }

  /* Preserve decorative hero particles even in mobile-optimized mode */
  body.mobile-optimized .particle-float {
    animation-duration: var(--particle-duration, 15s) !important;
    animation-delay: var(--particle-delay, 0s) !important;
  }
  
  /* Disable complex animations on mobile when explicitly requested */
  .mobile-no-animation {
    animation: none !important;
    transition: none !important;
  }
  
  /* Mobile typography improvements */
  h1 { font-size: clamp(1.875rem, 8vw, 3rem) !important; }
  h2 { font-size: clamp(1.5rem, 6vw, 2.25rem) !important; }
  h3 { font-size: clamp(1.25rem, 5vw, 1.875rem) !important; }
  
  /* Better mobile spacing */
  .mobile-tight-spacing {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* Mobile touch targets */
  button, a, [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Mobile-specific layout improvements */
  .mobile-container {
    padding: 0.75rem;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Better text rendering on mobile */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  
  /* Reduce motion for better performance */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* Mobile viewport fixes */
  .mobile-viewport-fix {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
}

/* ==========================================================================
   ENHANCED ANIMATIONS (ADDITIVE - DON'T OVERRIDE TAILWIND)
   ========================================================================== */

/* Animation keyframes */
@keyframes gentle-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes bounce-in {
  0% { transform: scale(0.3) translateY(100px); opacity: 0; }
  50% { transform: scale(1.05) translateY(-20px); }
  70% { transform: scale(0.9) translateY(0); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
  50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.4); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Utilities moved from inline styles */
.rotate-180 { transform: rotate(180deg) !important; }
.grid-overlay-squares{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,0.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.06) 1px,transparent 1px);background-size:20px 20px;}

/* Reliable hero text animations */
.animate-fade-in-up {
  animation: fade-in-up 1s ease-out forwards;
}

.animate-fade-in-up-delay {
  animation: fade-in-up 1s ease-out 0.3s forwards;
  opacity: 0;
}

/* Ensure text never disappears */
.hero-text-permanent {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Hero sections should always show text immediately */
section[x-data] h1,
section[x-data] .hero-text-permanent {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Force hero buttons and stats to always be visible */
.hero-text-permanent .flex,
.hero-text-permanent .grid,
.hero-text-permanent .relative {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
}

.hero-text-permanent .grid {
  display: grid !important;
}

.hero-text-permanent .relative {
  display: block !important;
}

/* ==========================================================================
   LAZY LOADING & IMAGE OPTIMIZATION
   ========================================================================== */

/* Lazy background image loading */
.lazy-bg {
  background-color: #f3f4f6;
  background-size: cover;
  background-position: center;
  transition: opacity 0.3s ease-in-out;
}

.lazy-bg[data-bg] {
  opacity: 0.8;
}

.lazy-bg.loaded {
  opacity: 1;
}

/* Image loading placeholder */
.image-placeholder {
  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; }
}

/* ==========================================================================
   CAROUSEL MOBILE FIXES - PREVENT OVERLAP ISSUES
   ========================================================================== */

/* Featured Projects Carousel Mobile Layout */
@media (max-width: 768px) {
  /* Ensure proper spacing for mobile CTA button in carousel */
  .floating-cta {
    z-index: 15 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  }
  
  /* Slide indicators positioning on mobile */
  .carousel-indicators {
  bottom: 0.5rem !important;
  z-index: 30 !important; /* ensure above slide content on mobile */
    pointer-events: none; /* do not block CTA except on the actual dots */
  }
  
  /* Smaller visual dots but maintain a comfortable tap target */
  .carousel-indicators button {
  pointer-events: auto; /* clickable even though parent ignores events */
  min-width: 0 !important;  /* override 44px mobile default for buttons */
  min-height: 0 !important; /* override 44px mobile default for buttons */
  padding: 0 !important;    /* keep visual dot size from Tailwind classes */
  background-clip: border-box !important;
  border-radius: 9999px !important;
  }
  
  /* Ensure text content has proper spacing on mobile */
  .carousel-content {
    min-height: calc(100% - 5rem) !important;
  }
}

/* Indicators should never block interactions; content centered on desktop */
.carousel-indicators { pointer-events: none; }
.carousel-indicators button { 
  pointer-events: auto; 
  width: 8px !important;   /* consistent small size on all devices */
  height: 8px !important;  /* consistent small size on all devices */
  border-radius: 9999px !important;
  padding: 0 !important;
}
@media (min-width: 768px) {
  .carousel-content {
    justify-content: center !important;
    padding-top: 0 !important;
  }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes rotate-in {
  from { opacity: 0; transform: rotate(-5deg) scale(0.9); }
  to { opacity: 1; transform: rotate(0deg) scale(1); }
}

/* Enhanced animation classes - ONLY ADDITIVE */
.animate-gentle-float { 
  animation: gentle-float 3s ease-in-out infinite; 
}

.animate-pulse-glow { 
  animation: pulse-glow 2s ease-in-out infinite; 
}

/* Enhanced hover effects - NON-CONFLICTING */
.hover-lift:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.hover-scale:hover {
  transform: scale(1.05) !important;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4) !important;
}

/* Mobile-optimized touch interactions */
.touch-active {
  transform: scale(0.98) !important;
  transition: transform 0.1s ease !important;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Animation observer setup - ONLY ANIMATION, NO COLORS */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

/* Touch and Mobile Interaction Styles */
.touch-active {
  transform: scale(0.98) !important;
  transition: transform 0.1s ease !important;
}

.pressed {
  transform: scale(0.95) !important;
  transition: transform 0.1s ease !important;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.3);
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  animation: ripple 0.6s ease-out;
  pointer-events: none;
  z-index: 1;
}

/* Enhanced Progress Bar */
.ultra-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #16a34a, #d4af37);
  z-index: 9999;
  transition: width 0.3s ease;
}

.ultra-progress-bar.pulse {
  animation: pulse-glow 1s ease-in-out infinite;
}

/* ==========================================================================
   FLOATING QUOTE BUTTON - ULTIMATE FIX
   Maximum specificity to override any conflicting styles
   ========================================================================== */

/* Ultra-specific selectors to ensure positioning works */
body #floatingQuote,
html body #floatingQuote,
div#floatingQuote {
  position: fixed !important;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px)) !important;
  right: 1.5rem !important;
  z-index: 999999 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  /* relax contain to avoid clipping glow shadows */
  contain: layout style !important;
  isolation: isolate !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  /* Additional overrides */
  top: auto !important;
  left: auto !important;
  inset: auto !important;
  /* Prevent any parent from affecting positioning */
  clip: unset !important;
  clip-path: none !important;
  overflow: visible !important;
}

/* CRITICAL: Mobile/Tablet positioning - covers all hamburger menu breakpoints */
@media (max-width: 1200px) {
  body #floatingQuote,
  html body #floatingQuote,
  div#floatingQuote {
    position: fixed !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem) !important;
    right: calc(env(safe-area-inset-right, 0px) + 1.5rem) !important;
    z-index: 999999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
}

/* Tablet-specific positioning */
@media (max-width: 1024px) {
  body #floatingQuote,
  html body #floatingQuote,
  div#floatingQuote {
    position: fixed !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem) !important;
    right: calc(env(safe-area-inset-right, 0px) + 1.5rem) !important;
    z-index: 999999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
}

/* Mobile-specific positioning with safe area insets */
@media (max-width: 767px) {
  body #floatingQuote,
  html body #floatingQuote,
  div#floatingQuote {
    position: fixed !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem) !important;
    right: calc(env(safe-area-inset-right, 0px) + 1.5rem) !important;
    z-index: 999999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  /* Calm animations on mobile for performance */
  #floatingQuote .fq-badge,
  #floatingQuote .animate-bounce {
    animation: none !important;
  }
}

/* Desktop positioning with more space from edge */
@media (min-width: 768px) {
  body #floatingQuote,
  html body #floatingQuote,
  div#floatingQuote {
  bottom: max(2rem, env(safe-area-inset-bottom, 0px)) !important;
  right: max(2rem, env(safe-area-inset-right, 0px)) !important;
  }
}

/* Large desktop positioning */
@media (min-width: 1024px) {
  body #floatingQuote,
  html body #floatingQuote,
  div#floatingQuote {
    bottom: max(2.5rem, env(safe-area-inset-bottom, 0px)) !important;
    right: max(2.5rem, env(safe-area-inset-right, 0px)) !important;
  }
}

/* Guard against containment issues on ancestor elements */
body, html, main, #app, .site-wrapper {
  transform: none !important;
  perspective: none !important;
}

/* Remove conflicting classes that might interfere */
.floating-quote-container,
.mobile-quote-position {
  /* These classes are now handled by the #floatingQuote selector above */
  position: static !important;
  bottom: auto !important;
  right: auto !important;
}

/* Enhanced Back to Top Button - repositioned to avoid collision at ALL breakpoints */
.btp {
  position: fixed !important;
  bottom: 2rem !important;
  right: 7rem !important; /* Moved further left to avoid quote button */
  width: 50px !important;
  height: 50px !important;
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  z-index: 999998 !important; /* Slightly lower than quote button */
  transform: translateY(100px) !important;
  opacity: 0 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.3) !important;
}

/* --- Floating Quote: Force animation timing/disable with higher specificity --- */
#floatingQuote .animate-pulse { animation: floating-pulse 2.8s infinite !important; }
@media (max-width: 1023px) {
  #floatingQuote .animate-pulse { animation: floating-pulse 5.8s infinite !important; }
}
@media (max-width: 480px) {
  #floatingQuote .animate-pulse { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  #floatingQuote .animate-pulse { animation: none !important; }
}

/* Back to top tablet positioning (hamburger menu breakpoint) */
@media (max-width: 1200px) {
  .btp {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 7rem) !important; /* Stack above quote button */
    right: calc(env(safe-area-inset-right, 0px) + 1.5rem) !important; /* Align with quote button */
  }
}

/* Tablet and below: disable bouncing badge to avoid perceived fast motion */
@media (max-width: 1023px) {
  #floatingQuote .animate-bounce,
  #floatingQuote .fq-badge { animation: none !important; }
}

/* XS devices: disable any animation utility under the floating button */
@media (max-width: 480px) {
  #floatingQuote [class*="animate-"] { animation: none !important; }
}

/* Back to top tablet positioning */
@media (max-width: 1024px) {
  .btp {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 7rem) !important; /* Stack above quote button */
    right: calc(env(safe-area-inset-right, 0px) + 1.5rem) !important; /* Align with quote button */
  }
}

/* Back to top mobile positioning */
@media (max-width: 767px) {
  .btp {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 7rem) !important; /* Stack well above quote button */
    right: calc(env(safe-area-inset-right, 0px) + 1.5rem) !important; /* Align with quote button */
  }
}

/* Desktop back to top positioning */
@media (min-width: 768px) and (min-width: 1025px) {
  .btp {
    bottom: 2rem !important; /* Same level as quote button */
    right: 8rem !important; /* Well left of quote button with spacing */
  }
}

@media (min-width: 1200px) {
  .btp {
    bottom: 2.5rem !important; /* Same level as quote button */
    right: 10rem !important; /* Even more space on larger screens */
  }
}

/* ==========================================================================
   MOBILE NAVIGATION FIX - Prevent interference with floating elements
   ========================================================================== */

/* Mobile hamburger menu positioning fix */
button[aria-label="Toggle Mobile Menu"] {
  z-index: 10000 !important;
  position: relative !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

.btp.show {
  transform: translateY(0);
  opacity: 1;
}

.btp.bounce-in { animation: bounce-in 0.5s ease; }

/* Slow down any residual bouncing on small screens */
@media (max-width: 767px) {
  .animate-bounce { animation-duration: 2.5s !important; animation-timing-function: ease-in-out !important; }
}

.btp.clicked {
  transform: scale(0.9);
  background: linear-gradient(135deg, #15803d, #166534);
}

.btp:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(22, 163, 74, 0.4);
}

/* Mobile-Optimized Card Animations */
.card, .service-card, .feature-card, [class*="card"] {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:active, .service-card:active, .feature-card:active {
  transform: translateY(2px);
}

/* Staggered Animation Classes */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Smooth Section Reveals */
.section-reveal {
  animation: fade-in 0.8s ease forwards;
}

/* Enhanced Button Animations */
button[class*="gold"], button[class*="emerald"], .cta-button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button[class*="gold"]:active, button[class*="emerald"]:active, .cta-button:active {
  transform: scale(0.98);
}

/* Floating Action Button Effects */
.floating-cta {
  animation: gentle-float 3s ease-in-out infinite;
}

.floating-cta:hover {
  animation-play-state: paused;
  transform: translateY(-12px);
}

/* Mobile-Safe Hover Effects */
@media (hover: hover) and (pointer: fine) {
  .hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--premium-shadow-lg);
  }
  
  .hover-scale:hover {
    transform: scale(1.05);
  }
  
  .hover-glow:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  }
}

/* Touch-Friendly Spacing */
@media (max-width: 768px) {
  button, .btn, [role="button"] {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
  }
  
  .touch-target {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Professional Typography */
.pro-heading-xl {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--golf-green-900);
  letter-spacing: -0.02em;
}

.pro-heading-lg {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--golf-green-800);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Brand Hue Overrides (no-build fallback)
   Ensures Signage/Marketing/Yardage heroes use on-brand emerald/gold hues
   even if Tailwind utilities are missing from the compiled CSS.
   ========================================================================== */

/* Branded emerald hero gradient (matches golf-emerald 900/800 scale) */
.brand-emerald-hero {
  /* 135deg gradient aligned with site branding */
  background-image: linear-gradient(135deg, #14532d 0%, #166534 50%, #14532d 100%) !important;
}

/* Primary tint overlay (from 900/60 via 800/45 to 900/35) */
.brand-emerald-tint {
  background: linear-gradient(135deg,
    rgba(20, 83, 45, 0.60) 0%,   /* 900 @ 60% */
    rgba(22, 101, 52, 0.45) 50%, /* 800 @ 45% */
    rgba(20, 83, 45, 0.35) 100%  /* 900 @ 35% */
  ) !important;
}

/* Top fade overlay (from 950/45 via 900/20 to transparent) */
.brand-emerald-topfade {
  background: linear-gradient(to top,
    rgba(5, 46, 22, 0.45) 0%,     /* 950 @ 45% */
    rgba(20, 83, 45, 0.20) 40%,   /* 900 @ 20% */
    rgba(20, 83, 45, 0.00) 100%   /* transparent */
  ) !important;
}

/* Optional: subtle gold glow helper if needed elsewhere */
.brand-gold-glow {
  background: radial-gradient(60% 50% at 50% 35%, rgba(230,197,71,0.18) 0%, rgba(230,197,71,0.08) 35%, transparent 65%) !important;
}

.pro-heading-md {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--golf-green-700);
}

.pro-text-premium {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--golf-slate-600);
  font-weight: 500;
}

/* Professional Header Components */
.premium-header {
  background: linear-gradient(135deg, var(--golf-cream-100) 0%, #ffffff 100%);
  box-shadow: var(--premium-shadow);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo-container {
  background: linear-gradient(135deg, var(--golf-green-800), var(--golf-green-700));
  border: 2px solid var(--golf-gold-500);
  border-radius: 8px;
  padding: 16px 32px;
  box-shadow: var(--premium-shadow);
  transform: perspective(1000px) rotateX(2deg);
}

.logo-text {
  background: linear-gradient(135deg, var(--golf-gold-400), var(--golf-gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.guarantee-badge {
  background: conic-gradient(from 180deg, var(--golf-gold-500), var(--golf-gold-400), var(--golf-gold-500));
  color: var(--golf-green-900);
  padding: 12px 16px;
  border-radius: 50% 20% 50% 20%;
  transform: rotate(-12deg);
  box-shadow: var(--premium-shadow);
  border: 2px solid var(--golf-gold-400);
  font-weight: 800;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.2;
}

.quote-box {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 2px solid var(--golf-gold-500);
  border-radius: 12px;
  padding: 16px;
  color: white;
  box-shadow: var(--premium-shadow);
  text-align: center;
}

.news-box {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: 2px solid var(--golf-gold-500);
  border-radius: 12px;
  padding: 16px;
  color: white;
  box-shadow: var(--premium-shadow);
  text-align: center;
}

/* Professional Navigation */
.nav-container {
  background: linear-gradient(90deg, var(--golf-green-800), var(--golf-green-700));
  border-bottom: 3px solid var(--golf-gold-500);
}

.nav-link-pro {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  padding: 16px 20px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  line-height: 1.2;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  margin: 0 2px;
  position: relative;
  overflow: hidden;
}

.nav-link-pro::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--golf-gold-500);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-pro:hover::before {
  width: 100%;
}

.nav-link-pro:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--golf-gold-400);
  transform: translateY(-2px);
}

.nav-link-pro.active {
  background: var(--golf-gold-500);
  color: var(--golf-green-900);
  font-weight: 700;
}

/* Professional Content Cards */
.premium-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--golf-cream-100) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--premium-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--golf-gold-500), var(--golf-gold-400));
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--premium-shadow-lg);
  border-color: var(--golf-gold-500);
}

.service-box {
  background: linear-gradient(145deg, #ffffff, var(--golf-cream-200));
  border: 2px solid var(--golf-green-800);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--premium-shadow);
  transition: all 0.3s ease;
  position: relative;
}

.service-box::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--golf-gold-500), var(--golf-green-800), var(--golf-gold-500));
  border-radius: 12px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-box:hover::after {
  opacity: 1;
}

.service-box:hover {
  transform: translateY(-4px);
  border-color: var(--golf-gold-500);
}

/* Professional Carousel */
.carousel-pro {
  border: 3px solid var(--golf-green-800);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--premium-shadow-lg);
  position: relative;
  background: linear-gradient(135deg, var(--golf-green-900), var(--golf-green-800));
}

.carousel-slide-pro {
  position: relative;
  overflow: hidden;
}

.carousel-overlay {
  background: linear-gradient(0deg, rgba(10, 46, 10, 0.8) 0%, transparent 60%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: white;
}

.carousel-text {
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--golf-gold-500);
  border-color: var(--golf-gold-500);
  transform: scale(1.2);
}

/* Professional Section Headers */
.section-header-pro {
  text-align: center;
  padding: 48px 0 32px;
  position: relative;
}

.section-title-pro {
  background: linear-gradient(135deg, var(--golf-green-900), var(--golf-green-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-title-pro::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--golf-gold-500), var(--golf-gold-400));
  border-radius: 2px;
}

/* Professional CTA Elements */
.cta-premium {
  background: linear-gradient(135deg, var(--golf-gold-500), var(--golf-gold-400));
  color: var(--golf-green-900);
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--premium-shadow);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.cta-premium:hover::before {
  left: 100%;
}

.cta-premium:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--premium-shadow-xl);
}

.bundle-price-banner {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: 3px solid var(--golf-gold-500);
  border-radius: 12px;
  padding: 16px 24px;
  color: white;
  box-shadow: var(--premium-shadow-lg);
  transform: rotate(-1deg);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--premium-shadow-lg); }
  50% { box-shadow: 0 0 20px rgba(220, 38, 38, 0.4), var(--premium-shadow-lg); }
}

/* Professional Responsive Utilities */
.container-pro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.grid-pro-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.spacing-pro-lg {
  padding: 64px 0;
}

.spacing-pro-md {
  padding: 48px 0;
}

.spacing-pro-sm {
  padding: 32px 0;
}

/* Professional Background Patterns */
.bg-pattern-golf {
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(10, 46, 10, 0.05) 0%, transparent 50%);
}

/* Legacy Compatibility */
.reveal{opacity:0;transform:translateY(12px);transition:all .5s ease}
.reveal.active{opacity:1;transform:translateY(0)}
.progress-bar{position:fixed;top:0;left:0;width:0%;height:3px;background:var(--golf-gold-500);z-index:100;transition:width .1s}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .logo-container {
    padding: 12px 24px;
    margin-bottom: 16px;
  }
  
  .nav-link-pro {
    padding: 12px 16px;
    font-size: 11px;
  }
  
  .premium-card {
    padding: 24px;
  }
  
  .container-pro {
    padding: 0 16px;
  }
}
.mi-title{font-weight:700;color:#064e3b;margin-bottom:.25rem}
.mega-item p{color:#64748b;font-size:.9rem}
.mnav{color:#475569;font-weight:600;padding:.75rem;text-decoration:none;border-radius:.5rem;transition:all .2s}
.mnav:hover{background:#f1f5f9;color:#065f46}
.icon-btn{background:none;border:none;color:#475569;cursor:pointer}

/* Hero Stack/Carousel */
.hero-stack{position:relative;width:100%;max-width:500px;margin:0 auto}
.hs-track{display:flex;transition:transform .5s ease;border-radius:1rem;overflow:hidden}
.hs-slide{min-width:100%;position:relative;flex-shrink:0}
.hs-slide img{width:100%;height:400px;object-fit:cover;display:block}
.hs-prev,.hs-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.7);color:#fff;border:none;border-radius:50%;width:40px;height:40px;z-index:10;cursor:pointer;font-size:18px;font-weight:bold}
.hs-prev{left:10px}
.hs-next{right:10px}
.hs-prev:hover,.hs-next:hover{background:rgba(0,0,0,.9)}
.hs-dots{display:flex;justify-content:center;gap:.5rem;margin-top:1rem}
.hs-dot{width:12px;height:12px;border-radius:50%;background:rgba(255,255,255,.5);border:none;cursor:pointer;transition:all .3s}
.hs-dot.active,.hs-dot:hover{background:#fde047}

/* Lightbox Gallery */
.lb{display:block;border-radius:1rem;overflow:hidden;transition:transform .3s}
.lb:hover{transform:scale(1.02)}
.lb img{width:100%;height:200px;object-fit:cover}

/* Progress Bar */
.progress-bar{position:fixed;top:0;left:0;width:0%;height:3px;background:#fde047;z-index:100;transition:width .1s}


/* Process */
.process{display:grid;gap:14px;margin-top:1rem}
.process li{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;background:#fff;border:1px solid #e2e8f0;border-radius:1rem;padding:1rem}
.process li span{font-weight:800;color:#065f46}


/* Before/After */
.ba{position:relative;border-radius:1rem;overflow:hidden;box-shadow:0 20px 50px rgba(2,44,34,.15)}
.ba img{display:block;width:100%;height:auto}
.ba-after{position:absolute;inset:0;overflow:hidden}
.ba-after img{width:100%}
.ba input[type=range]{position:absolute;inset:auto 0 0 0;width:100%;appearance:none;background:rgba(0,0,0,.2);height:4px}
.ba input[type=range]::-webkit-slider-thumb{appearance:none;width:20px;height:20px;border-radius:50%;background:#fff;border:2px solid #065f46}


/* Testimonial slider */
.ts{position:relative}
.ts-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px}
.ts-card{scroll-snap-align:center;min-width:min(560px,100%);background:#fff;border:1px solid #e2e8f0;border-radius:1rem;padding:1.2rem;box-shadow:0 10px 30px rgba(2,44,34,.06)}
.ts-card blockquote{font-size:1.05rem}
.ts-nav{position:absolute;top:50%;transform:translateY(-50%);background:#111;color:#fff;border:none;border-radius:9999px;width:38px;height:38px}
.ts .prev{left:-10px}.ts .next{right:-10px}


/* FAQ */
.acc{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:.8rem;padding:1rem;margin-top:.6rem;font-weight:600;cursor:pointer;transition:all 0.3s ease}
.acc:hover{border-color:#065f46;box-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1)}
.acc span{width:20px;height:20px;border:2px solid #0f172a;border-radius:9999px;position:relative;display:flex;align-items:center;justify-content:center;transition:all 0.3s ease}
.acc span:after{content:"";position:absolute;width:6px;height:6px;border-right:2px solid #0f172a;border-bottom:2px solid #0f172a;transform:rotate(-45deg);top:50%;left:50%;margin-top:-3px;margin-left:-2px;transition:transform 0.3s ease}
.acc.active span:after{transform:rotate(135deg)}
.acc:hover span{border-color:#065f46}
.acc:hover span:after{border-color:#065f46}
.ap{padding:1rem;border-left:3px solid #065f46;background:#f8fafc;border-radius:0 0 .8rem .8rem}


/* Subhero */
.subhero{background:linear-gradient(180deg,#f0fdf4,transparent);padding:2rem 0}
.subhero h1{font-size:clamp(1.8rem,3vw,2.6rem);font-weight:800;color:#064e3b;margin-bottom:.5rem}
.subhero p{color:#334155;margin-top:.5rem;font-size:1.1rem}
.crumbs{margin-bottom:1rem;font-size:.9rem;color:#64748b}
.crumbs a{color:#065f46;text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.crumbs span{margin:0 .5rem;color:#cbd5e1}
.tags{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px}
.tags span{background:#e2f9f1;color:#065f46;border:1px solid #bff1df;border-radius:9999px;padding:.35rem .7rem;font-weight:700;font-size:.85rem}


/* Service cards */
.svc{background:#fff;border:1px solid #e2e8f0;border-radius:1rem;overflow:hidden;box-shadow:0 12px 30px rgba(2,44,34,.06)}
.svc img{height:180px;width:100%;object-fit:cover}
.svc h3{font-weight:800;color:#064e3b;padding:1rem 1rem 0}
.svc p{padding:0 1rem;color:#475569}
.svc ul{padding:0 1rem 1rem 1.25rem;list-style:disc;color:#334155}


/* News */
.news{background:#fff;border:1px solid #e2e8f0;border-radius:1rem;padding:1.1rem;box-shadow:0 10px 30px rgba(2,44,34,.06)}
.news h2{font-weight:800;color:#064e3b;margin-top:.3rem}
.news-date{font-size:.75rem;color:#64748b}
.news-link{display:inline-block;margin-top:.6rem;color:#065f46;font-weight:700}


/* Case studies */
.cs{background:#fff;border:1px solid #e2e8f0;border-radius:1rem;overflow:hidden;transition:transform .3s,box-shadow .3s}
.cs:hover{box-shadow:0 10px 30px rgba(2,44,34,.12)}
.cs img{width:100%;height:200px;object-fit:cover}
.cs-body{padding:1rem}
.cs-body h2{font-weight:800;color:#064e3b;margin-bottom:.5rem}
.cs-body p{color:#475569;margin-bottom:1rem}
.cs-details{margin-top:.6rem}
.cs-details summary{color:#065f46;font-weight:600;cursor:pointer;padding:.5rem 0}
.cs-details summary:hover{color:#047857}
.cs-details div{padding:.5rem 0;color:#64748b;font-size:.9rem;line-height:1.5}


/* Logo marquee */
.marquee{overflow:hidden;mask-image:linear-gradient(90deg,transparent,black 10%,black 90%,transparent)}
.marquee-track{display:flex;gap:36px;animation:scroll 30s linear infinite}
.marquee img{height:36px;filter:grayscale(100%);opacity:.8}
@keyframes scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}


/* CTA strip */
.cta-strip{background:linear-gradient(90deg,#065f46,#064e3b)}


/* Inputs */
.input{width:100%;border-radius:.75rem;border:1px solid #cbd5e1;padding:.5rem .75rem}
.input:focus{outline:none;box-shadow:0 0 0 3px rgba(5,150,105,.35);border-color:#065f46}
.lbl{display:grid;font-size:.9rem;color:#334155}


/* Navigation Fix */
#main-navigation {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 9999 !important;
}

/* Ensure navigation is always on top */
nav[id="main-navigation"] {
  position: fixed !important;
  top: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9999 !important;
}

/* Header Collision Fix - Add proper spacing for fixed navigation */
body {
  padding-top: 0;
}

/* Main content offset to prevent header collision */
main {
  min-height: 100vh;
}

/* Hero sections should start from top but account for header */
section:first-child {
  padding-top: 140px; /* Header height + extra space */
}

@media (max-width: 1024px) {
  section:first-child {
    padding-top: 160px;
  }
}

@media (max-width: 768px) {
  section:first-child {
    padding-top: 130px;
  }
}

/* Specific adjustments for different section types */
.hero-section {
  padding-top: 140px !important;
}

.page-header {
  padding-top: 140px !important;
}

/* Force proper spacing for any hero-type containers */
section:first-child > div[class*="max-w-7xl"]:first-child {
  padding-top: 2rem !important; /* 32px on mobile */
}

@media (min-width: 1024px) {
  section:first-child > div[class*="max-w-7xl"]:first-child {
    padding-top: 2.5rem !important; /* 40px on desktop */
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero-section,
  .page-header {
    padding-top: 120px !important;
  }
  
  section:first-child > div[class*="max-w-7xl"]:first-child {
    padding-top: 2rem !important;
  }
}

/* Ensure minimum height for full-screen sections */
.min-h-screen {
  min-height: calc(100vh - 80px);
}

/* Additional spacing for content that starts immediately */
.content-spacing {
  padding-top: 140px;
}

@media (max-width: 768px) {
  .content-spacing {
    padding-top: 120px;
  }
}

/* Fix for sections with background images */
section[class*="bg-gradient-to"] {
  position: relative;
}

/* Ensure text doesn't get hidden behind header */
h1, h2, h3 {
  scroll-margin-top: 120px;
}

/* Additional safety for any missed hero containers */
section:first-child .pt-32 {
  padding-top: 8rem !important; /* Ensure proper 32 spacing */
}

section:first-child .lg\:pt-40 {
  padding-top: 10rem !important; /* Ensure proper 40 spacing on large screens */
}

/* Footer */
.f-link{color:#334155}
.f-link:hover{color:#065f46}
.badge.star{background:conic-gradient(from 180deg at 50% 50%,#fde047,#facc15,#fde047)}


/* Back to top */
.btp{position:fixed;right:16px;bottom:16px;background:#111;color:#fff;border:none;border-radius:9999px;width:42px;height:42px;display:none;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(0,0,0,.25);z-index:60}
.btp.show{display:flex}

/* ==========================================================================
   INDICATOR DOTS - ELITE TRACK RECORD & FEATURED PROJECTS
   Professional responsive design for carousel and testimonial indicators
   ========================================================================== */

/* Base indicator dot styles */
.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  background-clip: padding-box;
}

/* Medium screens - slightly larger */
/* Removed responsive up-sizing to keep dot size constant across breakpoints */
/* @media (min-width: 640px) {
  .indicator-dot { width: 9px; height: 9px; }
} */

/* Large screens - professional size */
/* @media (min-width: 1024px) {
  .indicator-dot { width: 10px; height: 10px; }
} */

/* Active state scaling - responsive to prevent oversized appearance */
/* Disable transform scaling to prevent vertical jitter/size changes */
.indicator-dot.scale-105,
.indicator-dot.scale-110 {
  transform: none !important;
}

/* Enhanced shadow for active state */
.indicator-dot.shadow-md {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15), 0 0 8px rgba(212, 165, 116, 0.3);
}

/* Mobile-specific optimizations */
@media (max-width: 639px) {
  /* Keep the same visual size on mobile */
  .indicator-dot { width: 8px; height: 8px; }

  /* Reduced scaling on mobile to prevent oversized appearance */
  .indicator-dot.scale-110 { transform: none !important; }

  /* Subtle shadow on mobile */
  .indicator-dot.shadow-md { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important; }
}

/* Touch-friendly tap targets while keeping visual size small */
.indicator-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
}

/* Hover effects for desktop */
@media (hover: hover) and (pointer: fine) {
  .indicator-dot:hover {
    transform: none !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .indicator-dot:hover:not(.scale-105):not(.scale-110) {
    background-color: rgba(255, 255, 255, 0.7) !important;
  }
}

/* Focus states for accessibility */
.indicator-dot:focus {
  outline: 2px solid rgba(212, 165, 116, 0.8);
  outline-offset: 2px;
}

/* Smooth transitions for all states */
.indicator-dot {
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.3s ease;
}

/* Animation prevention for first indicator on load */
.indicator-dot.animate-none {
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

/* =====================================================================
   About page (company.php) testimonial pager – no scale/bounce
   ===================================================================== */
[role="tablist"][aria-label="Testimonials pagination"] button {
  width: 8px !important;
  height: 8px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 9999px !important;
  transform: none !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
  position: relative;
}
[role="tablist"][aria-label="Testimonials pagination"] button:hover,
[role="tablist"][aria-label="Testimonials pagination"] button:active,
[role="tablist"][aria-label="Testimonials pagination"] button:focus {
  transform: none !important;
}

[role="tablist"][aria-label="Testimonials pagination"] button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: transparent;
  pointer-events: auto;
}

/* =====================================================================
   Elite Track Record (hero) testimonial indicators – no animation
   ===================================================================== */
.hero-indicators .indicator-dot {
  width: 8px !important;
  height: 8px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 9999px !important;
  transform: none !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}
.hero-indicators .indicator-dot:hover,
.hero-indicators .indicator-dot:active,
.hero-indicators .indicator-dot:focus {
  transform: none !important;
}

/* =====================================================================
   Home (Hero) – Counter animations
   ===================================================================== */
.counter-glow { position: relative; }
.counter-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #d4a574, #10b981, #d4a574);
  border-radius: inherit;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease;
  z-index: -1;
}
.counter-glow.animating::before { opacity: 0.4; animation: pulse-glow 2s ease-in-out infinite; }
@keyframes pulse-glow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}
.counter-bounce { animation: counter-bounce 0.6s ease-out; }
@keyframes counter-bounce { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
.stat-completion-flash { animation: completion-flash 0.8s ease-out; }
@keyframes completion-flash { 0%{background-color:transparent;}50%{background-color:rgba(212,165,116,0.2);}100%{background-color:transparent;} }

/* =====================================================================
   Home (Hero) – Floating decorative elements keyframes
   ===================================================================== */
@keyframes float-slow { 0%,100%{transform:translateY(0) rotate(0)} 33%{transform:translateY(-20px) rotate(5deg)} 66%{transform:translateY(-10px) rotate(-3deg)} }
@keyframes float-medium { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-15px) rotate(10deg)} }
@keyframes float-fast { 0%,100%{transform:translateY(0) rotate(0)} 25%{transform:translateY(-10px) rotate(3deg)} 75%{transform:translateY(-5px) rotate(-5deg)} }

/* Positioning classes for hero decorative elements */
.hero-deco-1{top:20%;left:10%;animation:float-slow 20s infinite ease-in-out}
.hero-deco-2{top:15%;right:20%;animation:float-medium 15s infinite ease-in-out 2s}
.hero-deco-3{top:60%;left:85%;animation:float-fast 12s infinite ease-in-out 1s}
.hero-deco-4{top:40%;left:5%;animation:float-slow 18s infinite ease-in-out 3s}
.hero-deco-5{top:75%;right:15%;animation:float-medium 16s infinite ease-in-out 4s}
.hero-deco-6{top:30%;right:30%;animation:float-fast 14s infinite ease-in-out 5s}
.hero-deco-7{top:85%;left:25%;animation:float-slow 22s infinite ease-in-out 6s}
.hero-deco-8{top:10%;left:60%;animation:float-medium 19s infinite ease-in-out 7s}
.hero-deco-9{top:25%;left:40%;animation:float-fast 10s infinite ease-in-out 8s}
.hero-deco-10{top:70%;left:70%;animation:float-slow 25s infinite ease-in-out 9s}
.hero-deco-11{top:50%;right:5%;animation:float-medium 17s infinite ease-in-out 10s}

/* =====================================================================
   Home – Particle animation
   ===================================================================== */
@keyframes particle-float {
  0% { transform: translateY(0); opacity: 0.6; }
  10% { opacity: 0.8; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

/* Optimized animation for better mobile performance */
@keyframes particle-float-optimized {
  0% { transform: translateY(0) translateZ(0); opacity: 0.6; }
  10% { opacity: 0.8; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-100vh) translateZ(0); opacity: 0; }
}

.particle-float { 
  animation: particle-float linear infinite;
  will-change: transform, opacity;
}

.particle-float-optimized { 
  animation: particle-float-optimized linear infinite;
  will-change: transform, opacity;
  transform: translateZ(0); /* Force hardware acceleration */
  backface-visibility: hidden; /* Improve performance */
}

/* Mobile-optimized timing */
@media (max-width: 767px) { 
  .particle-float, .particle-float-optimized { 
    animation-duration: 15s !important; /* Faster on mobile for better performance */
  }
}
@media (min-width: 768px) { 
  .particle-float, .particle-float-optimized { 
    animation-duration: 10s !important; 
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .particle-float, .particle-float-optimized {
    animation: none;
    opacity: 0.3;
  }
}

/* Performance modes for low-end devices */
.disable-particles .particle-float,
.disable-particles .particle-float-optimized {
  display: none !important;
}

.low-performance-mode .particle-float,
.low-performance-mode .particle-float-optimized {
  animation-duration: 30s !important;
  opacity: 0.1 !important;
}

/* Emergency performance override */
.disable-all-animations * {
  animation: none !important;
  transition: none !important;
}

/* =====================================================================
   Home – Overlays and utilities
   ===================================================================== */
.grid-overlay-squares{
  background-image: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}
.flip-vertical{ transform: rotate(180deg); }

/* Give mobile-safe bottom margin to carousels using this class name */
.carousel-indicators{ margin-bottom: env(safe-area-inset-bottom, 0px); }

/* ==========================================================================
   CLEAN BULLET STYLING - No longer needed, using individual flex divs
   ========================================================================== */

/* This section removed - using working pattern from home.php and as-builts.php */