/* =========================================================
   Bilal Decor Studio - Luxury Light & Royal Gold Stylesheet
   Modern Bridal, Event Decor & Marquee Manufacturer Aesthetic
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Nastaliq+Urdu:wght@400;600;700&display=swap');

:root {
    --bg-main: #FDFBF8;
    --bg-surface: #FFFFFF;
    --bg-ivory: #F8F4EC;
    --bg-subtle: #F1ECE1;
    --gold-primary: #C59A3F;
    --gold-dark: #8E6B1E;
    --gold-light: #F9F2E2;
    --gold-border: rgba(197, 154, 63, 0.28);
    --gold-glow: rgba(197, 154, 63, 0.18);
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --emerald-primary: #065F46;
    --emerald-light: #ECFDF5;
    --border-subtle: #E2E8F0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

.font-urdu {
    font-family: 'Noto Nastaliq Urdu', serif;
    line-height: 2;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F8F4EC;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C59A3F;
}

/* Luxury Gold Foil Gradients */
.bg-gold-metallic {
    background: linear-gradient(135deg, #DFB96C 0%, #C59A3F 50%, #9B7223 100%);
}

.bg-gold-soft {
    background: linear-gradient(135deg, #FBF8F1 0%, #F5ECDA 100%);
}

.text-gold-gradient {
    background: linear-gradient(135deg, #996E25 0%, #C59A3F 45%, #E5C37A 75%, #8B631B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card Surfaces */
.luxury-card {
    background: #FFFFFF;
    border: 1px solid rgba(197, 154, 63, 0.22);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 0 1px 1px rgba(197, 154, 63, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-card:hover {
    border-color: rgba(197, 154, 63, 0.5);
    box-shadow: 0 16px 32px -4px rgba(197, 154, 63, 0.14), 0 0 1px 1px rgba(197, 154, 63, 0.3);
    transform: translateY(-2px);
}

.luxury-card-flat {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Subtle pattern for marquee hero section */
.marquee-pattern-bg {
    background-color: #FDFBF8;
    background-image: radial-gradient(rgba(197, 154, 63, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Product Card Image Zoom */
.product-card-img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.product-card:hover .product-card-img {
    transform: scale(1.06);
}

/* Clean Form inputs */
.luxury-input {
    background-color: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    color: #0F172A;
    transition: all 0.2s ease;
}
.luxury-input:focus {
    border-color: #C59A3F;
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 154, 63, 0.15);
}

/* Custom Number Input spinner removal */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type=number] {
    -moz-appearance: textfield;
}

/* =========================================================
   3D DEPTH, PERSPECTIVE & TACTILE ELEVATIONS
   ========================================================= */

/* 3D Perspective Card Wrapper */
.card-3d-container {
    perspective: 1200px;
}

.card-3d {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.card-3d:hover {
    transform: translateY(-8px) rotateX(3deg) scale(1.015);
    box-shadow: 0 20px 40px -10px rgba(197, 154, 63, 0.28), 0 0 1px 1px rgba(197, 154, 63, 0.4);
}

/* 3D Tactile Buttons (Gold & Emerald) */
.btn-3d-gold {
    background: linear-gradient(180deg, #DDB65D 0%, #C59A3F 100%);
    box-shadow: 0 4px 0 #8E6B1E, 0 10px 18px rgba(142, 107, 30, 0.28);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    position: relative;
    top: 0;
}
.btn-3d-gold:hover {
    background: linear-gradient(180deg, #E5C37A 0%, #C59A3F 100%);
    box-shadow: 0 5px 0 #8E6B1E, 0 12px 22px rgba(142, 107, 30, 0.35);
}
.btn-3d-gold:active {
    top: 3px;
    box-shadow: 0 1px 0 #8E6B1E, 0 3px 6px rgba(142, 107, 30, 0.2);
}

.btn-3d-emerald {
    background: linear-gradient(180deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 0 #047857, 0 10px 18px rgba(5, 150, 105, 0.25);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    position: relative;
    top: 0;
}
.btn-3d-emerald:hover {
    background: linear-gradient(180deg, #34D399 0%, #059669 100%);
    box-shadow: 0 5px 0 #047857, 0 12px 22px rgba(5, 150, 105, 0.32);
}
.btn-3d-emerald:active {
    top: 3px;
    box-shadow: 0 1px 0 #047857, 0 3px 6px rgba(5, 150, 105, 0.2);
}

.btn-3d-dark {
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
    box-shadow: 0 4px 0 #020617, 0 8px 16px rgba(15, 23, 42, 0.3);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    position: relative;
    top: 0;
}
.btn-3d-dark:active {
    top: 3px;
    box-shadow: 0 1px 0 #020617, 0 2px 4px rgba(15, 23, 42, 0.2);
}

/* 3D Floating Levitation Animation */
@keyframes float3D {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(0.8deg);
    }
}
.animate-float-3d {
    animation: float3D 5s ease-in-out infinite;
}

/* 3D Marquee Ceiling Visualizer Box */
.marquee-3d-stage {
    perspective: 900px;
    transform-style: preserve-3d;
}

.marquee-3d-tent {
    transform: rotateX(20deg) rotateY(-12deg) rotateZ(3deg);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.marquee-3d-tent:hover {
    transform: rotateX(15deg) rotateY(-5deg) rotateZ(1deg) scale(1.03);
}

/* Custom 3D Popup Alert & Toast Styles */
@keyframes popup3DIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px) rotateX(12deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0deg);
    }
}

.custom-popup-card {
    animation: popup3DIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(197, 154, 63, 0.4);
    transform-style: preserve-3d;
}

/* Toast Notification (Top-Right) */
@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
.toast-slide-in {
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* AI Estimator Box Animation & Styling */
.ai-estimator-box {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 154, 63, 0.45);
}
.ai-estimator-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #10B981 0%, #C59A3F 100%);
}

/* Thermal receipt print view */
@media print {
    body * {
        visibility: hidden;
    }
    #printableSlip, #printableSlip * {
        visibility: visible;
    }
    #printableSlip {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #fff !important;
        color: #000 !important;
    }
}
