/* DS LANKA Exports (Pvt) Ltd - World-Class Modern Styling */

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

:root {
  --primary-deep: #062817;
  --primary-forest: #0b4f2c;
  --emerald-brand: #059669;
  --emerald-light: #10b981;
  --accent-gold: #c68a4c;
  --bg-sand: #fbfbf9;
}

html {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #0f172a;
  background-color: #fbfdfb;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative;
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

/* Strict clipping on sections so no blur, SVG, or absolute element leaks outside */
section {
  overflow-x: hidden !important;
  contain: paint;
}

.overflow-x-hidden {
  overflow-x: hidden !important;
}

.max-w-full {
  max-width: 100% !important;
}

.overflow-x-auto {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .hidden-mobile,
  [class*="hidden md:block"],
  [class*="hidden sm:block"] {
    display: none !important;
  }
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* ============================================================
   TAILWIND UTILITY POLYFILLS (shadow-xs, shadow-2xs, backdrop-blur-xs)
   These are Tailwind v4 tokens; we patch them for Tailwind CDN v3
   ============================================================ */
.shadow-xs  { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-2xs { box-shadow: 0 1px 1px 0 rgb(0 0 0 / 0.04); }
.backdrop-blur-xs { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }

/* aspect-ratio polyfill for Tailwind CDN 3 */
.aspect-\[4\/3\]    { aspect-ratio: 4 / 3; }
.aspect-\[4\/4\.3\] { aspect-ratio: 4 / 4.3; }
.aspect-\[4\/4\.8\] { aspect-ratio: 4 / 4.8; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #059669;
}

/* Hide scrollbar for clean touch swipe on mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Luxury Glassmorphism */
.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px -15px rgba(11, 79, 44, 0.08);
}

.glass-dark {
  background: rgba(6, 40, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Modern Clean Hero Background */
.hero-gradient {
  background: radial-gradient(120% 120% at 50% 0%, #ffffff 0%, #f4faf6 55%, #e9f5ee 100%);
}

.hero-mesh-dark {
  background: radial-gradient(circle at top right, #0f3d24 0%, #062817 60%, #03140c 100%);
}

/* Subtle Card Glow */
.card-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 40px -12px rgba(6, 40, 23, 0.12);
}

/* Subtle Shimmer */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: shimmer 3s infinite;
}

/* Custom Text Gradients */
.text-gradient-forest {
  background: linear-gradient(135deg, #062817 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Palm Tree Tropical Breeze Swaying Animations */
@keyframes palmSwayLeft {
  0%, 100% {
    transform: rotate(0deg) skewX(0deg);
  }
  35% {
    transform: rotate(-3deg) skewX(0.8deg);
  }
  70% {
    transform: rotate(1.2deg) skewX(-0.5deg);
  }
}

@keyframes palmSwayRight {
  0%, 100% {
    transform: rotate(0deg) skewX(0deg);
  }
  40% {
    transform: rotate(3.2deg) skewX(-1deg);
  }
  75% {
    transform: rotate(-1.4deg) skewX(0.6deg);
  }
}

@keyframes frondWave {
  0%, 100% {
    transform: rotate(0deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-3px);
  }
}

.animate-palm-left {
  transform-origin: 15% 100%;
  animation: palmSwayLeft 10s ease-in-out infinite;
  will-change: transform;
}

.animate-palm-right {
  transform-origin: 85% 100%;
  animation: palmSwayRight 12s ease-in-out infinite;
  will-change: transform;
}

.animate-frond-flutter {
  animation: frondWave 5s ease-in-out infinite;
}

