/* ============================================
   LUXURY SPA - FRESH DESIGN SYSTEM
   Clean, minimal, premium aesthetic
   ============================================ */

/* Typography */
body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Color Tokens */
:root {
    --color-charcoal: #1a1a1a;
    --color-warm-black: #0d0d0d;
    --color-cream: #f8f5f0;
    --color-sand: #e8e2d9;
    --color-bronze: #9d7b5c;
    --color-bronze-light: #c4a882;
    --color-text-muted: #6b6b6b;
    --color-deep-green: #4a7c59;
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }

/* Scroll Triggered Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.slide-in-left {
    transform: translateX(-50px);
}

.scroll-animate.slide-in-right {
    transform: translateX(50px);
}

.scroll-animate.visible.slide-in-left,
.scroll-animate.visible.slide-in-right {
    transform: translateX(0);
}

.scroll-animate.scale-in {
    transform: scale(0.9);
}

.scroll-animate.visible.scale-in {
    transform: scale(1);
}

/* Stagger delays for scroll animations */
.scroll-delay-100 { transition-delay: 0.1s; }
.scroll-delay-200 { transition-delay: 0.2s; }
.scroll-delay-300 { transition-delay: 0.3s; }
.scroll-delay-400 { transition-delay: 0.4s; }
.scroll-delay-500 { transition-delay: 0.5s; }

/* Custom Underline Animation */
.underline-animated {
    position: relative;
    display: inline-block;
}

.underline-animated::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 4px; /* Thick */
    background-color: var(--color-deep-green); /* Dark thick green */
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 2px;
}

.underline-animated.visible::after {
    width: 100%;
}


/* Premium Button */
.btn-premium {
    background: linear-gradient(135deg, var(--color-bronze) 0%, var(--color-bronze-light) 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(157, 123, 92, 0.3);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(157, 123, 92, 0.4);
}

/* Benefit Card */
.benefit-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bronze);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Section divider */
.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-bronze), var(--color-bronze-light));
    margin: 0 auto 2rem;
}

/* Icon styling for duotone */
.icon-bronze {
    --fa-primary-color: #9d7b5c;
    --fa-secondary-color: #c4a882;
    --fa-secondary-opacity: 1;
}

/* ============================================
   STEAM EFFECT - Sauna Atmosphere
   Rising wisps that continuously float upward
   ============================================ */

.steam-container {
    z-index: 1;
    filter: url(#steam-turbulence);
}

/* Main rising animation - continuous upward flow */
@keyframes steamFloat {
    0% {
        transform: translateY(0) translateX(0) scale(0.6);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    25% {
        opacity: 0.6;
        transform: translateY(-25vh) translateX(var(--drift-x, 15px)) scale(0.85);
    }
    50% {
        opacity: 0.45;
        transform: translateY(-50vh) translateX(var(--drift-x2, -10px)) scale(1.1);
    }
    75% {
        opacity: 0.25;
        transform: translateY(-75vh) translateX(var(--drift-x, 20px)) scale(1.35);
    }
    100% {
        transform: translateY(-100vh) translateX(var(--drift-x3, -15px)) scale(1.6);
        opacity: 0;
    }
}

/* Organic wobble for realistic movement */
@keyframes steamWobble {
    0%, 100% { 
        border-radius: 60% 40% 55% 45% / 55% 45% 50% 50%;
    }
    25% { 
        border-radius: 45% 55% 50% 50% / 40% 60% 45% 55%;
    }
    50% { 
        border-radius: 50% 50% 40% 60% / 50% 50% 55% 45%;
    }
    75% { 
        border-radius: 55% 45% 55% 45% / 60% 40% 50% 50%;
    }
}

.steam-wisp {
    position: absolute;
    bottom: -15%;
    width: var(--steam-size, 80px);
    height: var(--steam-size, 80px);
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.4) 25%,
        rgba(200, 200, 200, 0.2) 50%,
        transparent 75%
    );
    border-radius: 50%;
    filter: blur(var(--steam-blur, 15px));
    animation: 
        steamFloat var(--rise-duration, 6s) linear infinite,
        steamWobble 3s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform, opacity;
    pointer-events: none;
}

/* Left edge steam cluster */
.steam-wisp-1 {
    left: 3%;
    --steam-size: 60px;
    --steam-blur: 12px;
    --rise-duration: 5s;
    --delay: 0s;
    --drift-x: 25px;
    --drift-x2: -15px;
    --drift-x3: 30px;
}

.steam-wisp-2 {
    left: 8%;
    --steam-size: 45px;
    --steam-blur: 10px;
    --rise-duration: 4.2s;
    --delay: 1.5s;
    --drift-x: -20px;
    --drift-x2: 25px;
    --drift-x3: -10px;
}

.steam-wisp-3 {
    left: 15%;
    --steam-size: 55px;
    --steam-blur: 14px;
    --rise-duration: 5.5s;
    --delay: 3s;
    --drift-x: 15px;
    --drift-x2: -30px;
    --drift-x3: 20px;
}

/* Center area - very subtle, frames the text */
.steam-wisp-4 {
    left: 35%;
    --steam-size: 90px;
    --steam-blur: 25px;
    --rise-duration: 7s;
    --delay: 0.8s;
    --drift-x: -20px;
    --drift-x2: 15px;
    --drift-x3: -25px;
    opacity: 0.5;
}

.steam-wisp-5 {
    left: 58%;
    --steam-size: 70px;
    --steam-blur: 20px;
    --rise-duration: 6.5s;
    --delay: 4s;
    --drift-x: 25px;
    --drift-x2: -20px;
    --drift-x3: 15px;
    opacity: 0.5;
}

/* Right edge steam cluster */
.steam-wisp-6 {
    right: 12%;
    left: auto;
    --steam-size: 50px;
    --steam-blur: 11px;
    --rise-duration: 4.8s;
    --delay: 2.2s;
    --drift-x: -25px;
    --drift-x2: 20px;
    --drift-x3: -15px;
}

.steam-wisp-7 {
    right: 6%;
    left: auto;
    --steam-size: 65px;
    --steam-blur: 13px;
    --rise-duration: 5.2s;
    --delay: 0.5s;
    --drift-x: 20px;
    --drift-x2: -25px;
    --drift-x3: 30px;
}

.steam-wisp-8 {
    right: 2%;
    left: auto;
    --steam-size: 40px;
    --steam-blur: 9px;
    --rise-duration: 4s;
    --delay: 3.5s;
    --drift-x: -15px;
    --drift-x2: 20px;
    --drift-x3: -20px;
}

/* Extra wisps for density */
.steam-wisp-9 {
    left: 22%;
    --steam-size: 50px;
    --steam-blur: 12px;
    --rise-duration: 4.5s;
    --delay: 1.8s;
    --drift-x: 20px;
    --drift-x2: -15px;
    --drift-x3: 25px;
}

.steam-wisp-10 {
    right: 22%;
    left: auto;
    --steam-size: 55px;
    --steam-blur: 13px;
    --rise-duration: 5s;
    --delay: 2.8s;
    --drift-x: -18px;
    --drift-x2: 22px;
    --drift-x3: -12px;
}

.steam-wisp-11 {
    left: 45%;
    --steam-size: 35px;
    --steam-blur: 8px;
    --rise-duration: 3.8s;
    --delay: 4.5s;
    --drift-x: 12px;
    --drift-x2: -18px;
    --drift-x3: 15px;
    opacity: 0.4;
}

.steam-wisp-12 {
    left: 52%;
    --steam-size: 42px;
    --steam-blur: 10px;
    --rise-duration: 4.3s;
    --delay: 1.2s;
    --drift-x: -15px;
    --drift-x2: 20px;
    --drift-x3: -18px;
    opacity: 0.4;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .steam-wisp {
        animation: none;
        opacity: 0.15;
        bottom: 20%;
        transform: scale(1.2);
    }
    .palm-float,
    .palm-float-reverse {
        animation: none;
    }
    .scroll-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   FLOATING PALM TREE EFFECT
   Gentle swaying tropical atmosphere
   ============================================ */

@keyframes palmFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-8px) rotate(-0.3deg);
    }
    75% {
        transform: translateY(-20px) rotate(0.8deg);
    }
}

@keyframes palmFloatReverse {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scaleX(-1);
    }
    25% {
        transform: translateY(-12px) rotate(-0.4deg) scaleX(-1);
    }
    50% {
        transform: translateY(-18px) rotate(0.5deg) scaleX(-1);
    }
    75% {
        transform: translateY(-6px) rotate(-0.6deg) scaleX(-1);
    }
}

@keyframes frondSway {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(2deg);
    }
}

.palm-float {
    animation: palmFloat 8s ease-in-out infinite;
    will-change: transform;
}

.palm-float-reverse {
    animation: palmFloatReverse 10s ease-in-out infinite;
    animation-delay: -3s;
    will-change: transform;
}

.palm-frond-1 {
    animation: frondSway 4s ease-in-out infinite;
    transform-origin: center bottom;
}

.palm-frond-2 {
    animation: frondSway 5s ease-in-out infinite;
    animation-delay: -1s;
    transform-origin: center bottom;
}

.palm-frond-3 {
    animation: frondSway 6s ease-in-out infinite;
    animation-delay: -2s;
    transform-origin: center bottom;
}

.palm-frond-4 {
    animation: frondSway 7s ease-in-out infinite;
    animation-delay: -0.5s;
    transform-origin: center bottom;
}

.palm-tree-container {
    filter: blur(0.5px);
    transition: opacity 0.5s ease;
}

/* ============================================
   PREMIUM SCROLLBAR
   Custom scrollbar to match luxury aesthetic
   ============================================ */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-bronze-light) var(--color-cream);
}

/* Chrome, Edge, and Safari */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-bronze-light);
    border-radius: 20px;
    border: 3px solid var(--color-cream);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-bronze);
}

/* ============================================
   SPOTLIGHT EFFECT - Corrected
   Directional beam focused on the product
   ============================================ */

.red-light-beam {
    position: absolute;
    top: -50px;
    left: -100px;
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle at center,
        rgba(220, 38, 38, 0.25) 0%,
        rgba(220, 38, 38, 0.05) 40%,
        transparent 70%
    );
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    animation: redBeamPulse 8s ease-in-out infinite;
}

@keyframes redBeamPulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1) translate(0, 0); 
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.1) translate(20px, 20px); 
    }
}

/* Hover glow for list items */
.hover-glow-item {
    transition: all 0.3s ease;
}

.hover-glow-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(5px);
}

.hover-glow-item:hover .icon-box {
    background: rgba(157, 123, 92, 0.2);
    box-shadow: 0 0 15px rgba(157, 123, 92, 0.3);
    color: white;
}

/* ============================================
   FLOATING PALM ICONS
   Large background decor
   ============================================ */

.floating-palm {
    position: absolute;
    font-size: 20rem;
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
    /* Custom duotone colors */
    --fa-primary-color: #4a7c59; /* Green leaves */
    --fa-secondary-color: #9d7b5c; /* Brown trunk */
    --fa-secondary-opacity: 1;
}

.floating-palm-left {
    top: 5%;
    left: -5%;
    transform: rotate(15deg);
}

.floating-palm-right {
    bottom: 5%;
    right: -5%;
    transform: rotate(-15deg);
}

/* ============================================
   NEW PREMIUM CARD STYLES
   Enhanced visuals for "Why Tourists Love This"
   ============================================ */

.premium-card {
    background: linear-gradient(145deg, rgba(21, 21, 21, 0.9) 0%, rgba(30, 30, 30, 0.8) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    isolation: isolate;
}

/* Subtle glass edge highlight */
.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.premium-card:hover,
.group:hover .premium-card {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(196, 168, 130, 0.15), 0 0 20px rgba(0,0,0,0.4);
    border-color: rgba(196, 168, 130, 0.3);
}

/* Internal Glow/Shine - Radiant Center */
.premium-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(196, 168, 130, 0.08) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    z-index: -1;
}

.premium-card:hover::after,
.group:hover .premium-card::after {
    opacity: 1;
    transform: scale(1);
}

/* Icon Container */
.premium-icon-box {
    background: linear-gradient(135deg, rgba(196, 168, 130, 0.1) 0%, rgba(196, 168, 130, 0.02) 100%);
    border: 1px solid rgba(196, 168, 130, 0.15);
    box-shadow: inset 0 0 20px rgba(196, 168, 130, 0.05);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* Icon box shine */
.premium-icon-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(196, 168, 130, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.premium-card:hover .premium-icon-box,
.group:hover .premium-icon-box {
    background: linear-gradient(135deg, rgba(196, 168, 130, 0.2) 0%, rgba(196, 168, 130, 0.05) 100%);
    transform: scale(1.1) rotate(3deg);
    border-color: rgba(196, 168, 130, 0.4);
    box-shadow: 0 10px 25px -5px rgba(196, 168, 130, 0.3);
}

.premium-card:hover .premium-icon-box::before,
.group:hover .premium-icon-box::before {
    opacity: 1;
}

/* Text Enhancements */
.premium-card h3 {
    background: linear-gradient(90deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    transition: all 0.3s ease;
}

.premium-card:hover h3,
.group:hover h3 {
    background: linear-gradient(90deg, var(--color-bronze-light), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   SCAN EFFECT - BioX Scanning Overlay
   ============================================ */
@keyframes scan {
    0% { top: 0%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.animate-scan {
    animation: scan 4s ease-in-out infinite;
}
