/* RayanNaghsh Ultra-Premium Light Theme Styling (React-grade UX) */

/* Vazirmatn / Vazir Official Font Faces */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Alias for Vazir */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-sans: 'Vazirmatn', 'Vazir', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --primary-blue: #0284c7;
    --primary-navy: #0f172a;
    --accent-emerald: #059669;
    --accent-gold: #d97706;
}

/* Force Vazir font across ALL text elements and box internals */
html, body, button, input, select, textarea, p, h1, h2, h3, h4, h5, h6, strong, b, a, li, ul, label, table, th, td, blockquote, figcaption {
    font-family: 'Vazirmatn', 'Vazir', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

div:not([class*="fa-"]), span:not([class*="fa"]):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
    font-family: 'Vazirmatn', 'Vazir', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Bulletproof FontAwesome Icon Font Protection - MUST NEVER BE OVERRIDDEN */
.fa,
.fas,
.far,
.fal,
.fad,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
.fa-light,
.fa-thin,
.fa-duotone,
[class^="fa-"],
[class*=" fa-"],
[class^="fa-"]::before,
[class*=" fa-"]::before {
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    display: inline-block;
}

.fa-brands,
.fab,
[class^="fa-brands"],
[class*=" fa-brands"],
[class^="fa-brands"]::before,
[class*=" fa-brands"]::before {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

.fa-regular,
.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

.fa-solid,
.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

body {
    font-family: var(--font-sans);
    direction: rtl;
    text-align: right;
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

/* Custom Scrollbar - Light Luxurious */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Subtle Geometric Carpet Grid Background (Light Mode) */
.bg-carpet-grid {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 10% 20%, rgba(224, 242, 254, 0.6) 0px, transparent 50%),
        radial-gradient(at 90% 10%, rgba(238, 242, 255, 0.7) 0px, transparent 50%),
        radial-gradient(at 50% 80%, rgba(240, 253, 244, 0.5) 0px, transparent 50%),
        linear-gradient(to right, rgba(226, 232, 240, 0.45) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226, 232, 240, 0.45) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

/* Light Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
}

.glass-card-hover {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(2, 132, 199, 0.4);
    box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
}

/* Gradient Text */
.text-gradient-primary {
    background: linear-gradient(135deg, #0f172a 0%, #0369a1 60%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-gold {
    background: linear-gradient(135deg, #b45309 0%, #d97706 60%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-emerald {
    background: linear-gradient(135deg, #065f46 0%, #059669 60%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3D Exploded Carpet Stage */
.carpet-3d-stage {
    perspective: 1400px;
    perspective-origin: 50% 45%;
    transform-style: preserve-3d;
}

.carpet-3d-assembly {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 480px;
    margin: 0 auto;
    transform: rotateX(24deg) rotateY(-18deg) rotateZ(8deg);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.carpet-3d-assembly:hover {
    transform: rotateX(20deg) rotateY(-12deg) rotateZ(5deg);
}

/* Floating Animation Keyframes */
@keyframes floatLayerSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes floatLayerFast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(-0.5deg); }
}

.animate-float-layer-1 {
    animation: floatLayerSlow 6s ease-in-out infinite;
}
.animate-float-layer-2 {
    animation: floatLayerFast 4.5s ease-in-out infinite;
}
.animate-float-layer-3 {
    animation: floatLayerSlow 5s ease-in-out 1s infinite;
}

/* Before / After Slider Styling (Light Mode) */
.comparison-slider-light {
    position: relative;
    overflow: hidden;
    user-select: none;
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
    background: #ffffff;
}
.comparison-slider-light img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}
.comparison-slider-light .img-after {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
    border-left: 2px solid #0284c7;
    background: #f8fafc;
}
.comparison-slider-light .slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #0284c7;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 25;
}
.comparison-slider-light .slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #0284c7;
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.comparison-slider-light .slider-button:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.6);
}

/* Mobile Sticky Footer */
.mobile-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 -10px 25px -5px rgba(15, 23, 42, 0.08);
}
