/* Quiet Luxury & GSAP Utilities */

@tailwind base;
@tailwind components;
@tailwind utilities;

html {
    cursor: none;
    /* Hide default cursor */
    overflow-x: hidden;
}

/* Fallback for touch devices */
@media (hover: none) {
    html {
        cursor: auto;
    }

    #cursor-follower,
    #cursor-text {
        display: none !important;
    }
}

body {
    background-color: #F9F7F2;
    color: #1A1A1A;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F9F7F2;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 10px;
}

/* Glassmorphism Navigation */
.glass-nav {
    background: rgb(255, 255, 255);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-nav.scrolled {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Typography Overrides */
.font-display {
    font-family: 'Cinzel', serif;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-sans {
    font-family: 'Montserrat', sans-serif;
}

/* Split Text Utilities */
.split-text-line {
    display: inline-block;
    transform: translateY(100%);
    filter: blur(10px);
    opacity: 0;
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
    transition: all 0.5s ease;
}

/* Morph Text Container */
.text-morph-container {
    height: 1.2em;
    vertical-align: bottom;
}

/* Before/After Slider specific */
#ba-handle {
    cursor: none;
    /* Handled by custom cursor logic */
}

/* Ingredient Cards */
.ingredient-card:hover {
    transform: translateY(-10px);
}

/* Magnetic Button Area */
.magnetic-btn {
    position: relative;
    z-index: 10;
}

/* Input Styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #F9F7F2 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Video Placeholder */
#video-placeholder {
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#video-placeholder:active {
    transform: scale(0.98);
}

/* Hero Product Composition */
.product-composite-container {
    perspective: 1000px;
}

.hero-hand {
    transform-origin: bottom center;
    will-change: transform, opacity;
}

.hero-cream {
    transform-origin: center center;
    will-change: transform, opacity;
}

/* Premium CTA Button - Balanced Elegance */
.premium-cta-btn {
    background: linear-gradient(135deg,
            rgba(212, 175, 55, 0.12) 0%,
            rgba(255, 255, 255, 0.95) 30%,
            rgba(212, 175, 55, 0.08) 70%,
            rgba(255, 255, 255, 0.95) 100%);
    box-shadow:
        0 4px 20px rgba(212, 175, 55, 0.25),
        0 2px 10px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.premium-cta-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg,
            rgba(212, 175, 55, 0.4),
            rgba(255, 255, 255, 0.2),
            rgba(212, 175, 55, 0.4));
    border-radius: 9999px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.premium-cta-btn:hover::before {
    opacity: 1;
}

.premium-cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 8px 30px rgba(212, 175, 55, 0.35),
        0 4px 20px rgba(212, 175, 55, 0.25),
        0 0 40px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg,
            rgba(212, 175, 55, 0.2) 0%,
            rgba(255, 255, 255, 1) 30%,
            rgba(212, 175, 55, 0.15) 70%,
            rgba(255, 255, 255, 1) 100%);
}

.premium-cta-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 3px 15px rgba(212, 175, 55, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Shopify CTA Button - Corporate Green */
/* Shopify CTA Button - Corporate Green */
.shopify-cta-btn {
    background: linear-gradient(135deg,
            rgba(149, 191, 71, 0.15) 0%,
            rgba(255, 255, 255, 0.95) 30%,
            rgba(149, 191, 71, 0.1) 70%,
            rgba(255, 255, 255, 0.95) 100%);
    box-shadow:
        0 4px 20px rgba(149, 191, 71, 0.25),
        0 2px 10px rgba(149, 191, 71, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(149, 191, 71, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(149, 191, 71, 0.8);
    /* Added Border */
}

.shopify-cta-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg,
            rgba(149, 191, 71, 0.4),
            rgba(255, 255, 255, 0.2),
            rgba(149, 191, 71, 0.4));
    border-radius: 8px;
    /* Fixed Radius */
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.shopify-cta-btn:hover::before {
    opacity: 1;
}

.shopify-cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 8px 30px rgba(149, 191, 71, 0.35),
        0 4px 20px rgba(149, 191, 71, 0.25),
        0 0 40px rgba(149, 191, 71, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(149, 191, 71, 0.3);
    background: linear-gradient(135deg,
            rgba(149, 191, 71, 0.2) 0%,
            rgba(255, 255, 255, 1) 30%,
            rgba(149, 191, 71, 0.15) 70%,
            rgba(255, 255, 255, 1) 100%);
    border-color: #95BF47;
}

.shopify-cta-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 3px 15px rgba(149, 191, 71, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.premium-cta-btn canvas {
    border-radius: 9999px;
}

.shopify-cta-btn canvas {
    border-radius: 8px;
    /* Fixed Radius */
}

/* Solution Images */
.solution-img {
    transition: opacity 0.6s ease-in-out, transform 0.8s ease-out;
}