/* 
   MARBLE ELITE - Ultra Premium Luxury Theme
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Tajawal:wght@300;400;500;700&display=swap');

/* Promo Bar Styles */
.promo-bar {
    background: linear-gradient(90deg, var(--primary-gold), #8a6d3b);
    color: var(--dark-bg);
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    position: relative;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    animation: slideDown 0.5s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

:root {
    --primary-gold: #c5a059;
    --primary-gold-light: #dfc282;
    --dark-bg: #0a0a0a;
    --dark-gray: #1a1a1a;
    --medium-gray: #888888;
    --light-bg: #fdfdfd;
    --off-white: #141414; /* Slightly lighter than pure black for contrast in dark mode */
    --text-dark: #111111;
    --text-body: #b3b3b3;
    --text-light: #ffffff;
    --whatsapp-color: #25D366;
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-med: 0.4s ease-in-out;
    
    font-size: 16px;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Light Theme Variables */
[data-theme="light"] {
    --dark-bg: #fdfdfd; /* Main background becomes white */
    --dark-gray: #f5f5f5; /* Cards and elements become light gray */
    --medium-gray: #666666;
    --text-light: #111111; /* Main text (headings) becomes dark */
    --text-body: #4a4a4a; /* Body text becomes dark grey */
    --text-dark: #ffffff; /* Invert dark text usages */
    --off-white: #f0f0f0;
}

[data-theme="light"] body {
    background-color: var(--dark-bg);
    color: var(--text-body);
}

[data-theme="light"] .bg-dark {
    background-color: #f7f7f7;
}

[data-theme="light"] .hero-bg {
    opacity: 0.1;
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.7) 100%);
}

[data-theme="light"] .navbar {
    background: rgba(255,255,255,0.3);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255,255,255,0.95);
    border-color: rgba(0,0,0,0.05);
}

[data-theme="light"] .nav-link, 
[data-theme="light"] .navbar.scrolled .logo,
[data-theme="light"] .navbar.scrolled .nav-link,
[data-theme="light"] .navbar.scrolled .mobile-menu-btn {
    color: var(--text-light);
}

/* Reading Progress Bar */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-gold);
    z-index: 999999;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold-light);
}

/* Custom Text Selection */
::selection {
    background-color: var(--primary-gold);
    color: var(--dark-bg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Optional: Hide default cursor globally, but only for desktop */
}

@media (pointer: fine) {
    body {
        cursor: none;
    }
}

a, button, .lightbox-trigger {
    cursor: none !important; /* Will use custom cursor */
}

/* Custom Cursor Elements */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-ring.hovering {
    width: 60px;
    height: 60px;
    background-color: rgba(197, 160, 89, 0.1);
    border-color: transparent;
}

/* --- 2027 Premium UI Elements --- */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04; /* Very subtle analog film grit */
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    animation: drift 20s infinite alternate ease-in-out;
}
.orb-1 {
    top: -10%; left: -10%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
}
.orb-2 {
    bottom: -10%; right: -10%;
    background: radial-gradient(circle, rgba(100, 100, 100, 0.08) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

.marquee-bg {
    position: fixed;
    top: 50%; left: 0; width: 100%;
    transform: translateY(-50%) rotate(-5deg) scale(1.2);
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    opacity: 0.02;
}
.marquee-content {
    display: flex;
    white-space: nowrap;
    font-size: 15vw;
    font-weight: 900;
    font-family: inherit;
    color: transparent;
    -webkit-text-stroke: 2px var(--primary-gold);
    animation: marqueeBack 40s linear infinite;
}
@keyframes marqueeBack {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Luxury Pre-Loader --- */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--dark-bg);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

#preloader .logo {
    font-size: 2.5rem;
    letter-spacing: 5px;
    opacity: 0;
    animation: fadeInLogo 1s ease forwards 0.3s;
}

#preloader .loading-line {
    width: 0;
    height: 1px;
    background: var(--primary-gold);
    margin: 15px auto 0;
    animation: loadLine 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards 0.5s;
}

@keyframes fadeInLogo {
    to { opacity: 1; }
}

@keyframes loadLine {
    0% { width: 0; }
    100% { width: 100%; }
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Ensure sections float above ambient background */
section {
    position: relative;
    z-index: 2;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-body);
    font-family: 'Tajawal', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    color: var(--text-light); /* White in dark mode */
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-med);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 85%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Typography Elements */
.gold-text {
    color: var(--primary-gold);
}

.subtitle {
    display: inline-block;
    color: var(--primary-gold);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    background: rgba(197, 160, 89, 0.08);
    padding: 8px 20px;
    border-radius: 40px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* Sections & Layout */
.section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.bg-dark h2 {
    color: var(--text-light);
}

.bg-offwhite {
    background-color: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 20px;
    position: relative;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--medium-gray);
    font-weight: 300;
}

/* Elegant Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-med);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--text-light);
    color: var(--dark-bg);
    border: 1px solid var(--text-light);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-gold);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-slow);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    border-color: var(--primary-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--dark-bg);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
}

.btn-outline-gold:hover {
    background-color: var(--primary-gold);
    color: var(--dark-bg);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: #fff;
    border: 1px solid var(--whatsapp-color);
}

.btn-whatsapp:hover {
    background-color: transparent;
    color: var(--whatsapp-color);
}

/* Navigation - Ultra Modern Pill */
.navbar {
    position: fixed;
    top: 25px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    padding: 15px 40px;
    z-index: 1000;
    transition: all var(--transition-med);
    background: rgba(15, 15, 15, 0.2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 60px;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(35px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    top: 15px;
    width: 95%;
    padding: 12px 40px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 3px;
    font-family: 'Cairo', sans-serif;
    color: var(--text-light);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-link,
.navbar.scrolled .mobile-menu-btn {
    color: var(--text-light);
}

.logo span {
    font-weight: 700;
    color: var(--primary-gold);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-gold);
    transition: width var(--transition-med);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--dark-bg);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/hero_marble_bg.png') center/cover no-repeat;
    animation: kenBurns 25s infinite alternate linear;
    z-index: 0;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); } /* Smooth cinematic zoom */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--dark-bg) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-top: 50px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-light);
    letter-spacing: -2px;
}

.hero h1 strong {
    font-weight: 700;
    display: block;
    background: linear-gradient(to left, #c5a059, #fff6dd, #c5a059);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShine 6s linear infinite;
}

@keyframes goldShine {
    to { background-position: -200% center; }
}

.hero p {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-body);
    margin-bottom: 50px;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 80px;
}

.about-text-content {
    flex: 1;
    padding: 20px 0;
}

.about-text-content h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.about-text-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-body);
}

.about-image-content {
    flex: 1;
    position: relative;
}

.about-image-content img {
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Portfolio / Gallery - High End Slider */
.portfolio-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 5px; /* Padding to prevent shadow clipping */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    scrollbar-width: none;    /* Hide scrollbar Firefox */
    scroll-snap-type: x mandatory; /* Snapping behavior */
    
    /* Pull out of container for edge-to-edge touch on mobile if needed, but safe bounds here */
}

.portfolio-grid::-webkit-scrollbar {
    display: none;
}

/* Portfolio Category Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.filter-btn {
    background-color: rgba(255, 255, 255, 0.05); /* Frosty */
    backdrop-filter: blur(10px);
    color: var(--text-light);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 12px 30px;
    border-radius: 40px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-med);
    /* Avoid cursor ring expanding unnecessarily on simple tabs, or keep it */
}

/* On dark mode backgrounds, filter text should be light */
.bg-light .filter-btn {
    border: 1px solid rgba(0,0,0,0.1);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-gold);
    color: #fff;
    border-color: var(--primary-gold);
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.3);
    transform: translateY(-3px);
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    
    /* Slider Item Properties */
    flex: 0 0 350px; /* Fixed width on desktop */
    height: 400px;
    scroll-snap-align: start; /* Snap to beginning */
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-slow);
    transform: scale(0.95);
}

.portfolio-overlay span {
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: all var(--transition-slow);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: scale(1);
    inset: 15px;
}

.portfolio-item:hover .portfolio-overlay span {
    transform: translateY(0);
}

/* TikTok / Videos Section */
.videos-section {
    position: relative;
}

.videos-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}

.videos-info {
    flex: 1;
}

.videos-info h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.videos-embed {
    flex: 1.5;
    background: #111;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* Slider Wrapper */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.reviews-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    width: 100%;
    /* Hide scrollbar */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-snap-type: x mandatory; /* Snap behavior */
}

.reviews-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.review-image-card {
    min-width: calc(33.333% - 20px);
    flex-shrink: 0;
    background-color: #fff;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: all var(--transition-med);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
    overflow: hidden;
    height: auto; /* Removed fixed height to let full screenshots show */
    scroll-snap-align: center; /* Ensures the card stops exactly in the middle */
}

/* Slider Controls */
.slider-btn {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all var(--transition-med);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--text-light);
    color: var(--dark-bg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.prev-btn { right: -25px; } /* RTL Next */
.next-btn { left: -25px; } /* RTL Prev */

.review-image-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    transform: translateY(-8px);
    border-color: rgba(197, 160, 89, 0.2);
}

.review-img-wrapper {
    overflow: hidden;
    border-radius: 8px;
    height: 400px; /* Constrained height to keep it proportional and visible */
    background-color: #f4f4f4; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-image-card img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents any cropping whatsoever */
    display: block;
    transition: transform var(--transition-slow);
}

.review-image-card:hover img {
    transform: scale(1.05); /* Slight luxurious zoom */
}



/* Contact Elegance */
.contact-grid {
    display: flex;
    gap: 80px;
}

.contact-details {
    flex: 1;
}

.contact-action {
    flex: 1;
    background: var(--dark-bg);
    padding: 60px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    margin-bottom: 40px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-body);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-light);
}

.social-links a:hover {
    background-color: var(--text-light);
    color: var(--dark-bg);
    border-color: var(--text-light);
}

.contact-action h3 {
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.contact-action p {
    color: var(--text-body);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Footer Minimal */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-logo {
    font-family: 'Cairo', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-logo span {
    color: var(--primary-gold);
}

.footer-cr {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* Floating Actions Container */
.floating-actions {
    position: fixed;
    bottom: 40px;
    left: 40px; /* Arabic RTL */
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

/* Delicate WhatsApp Floating Button */
.floating-whatsapp {
    width: 55px;
    height: 55px;
    background-color: #fff;
    color: var(--whatsapp-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all var(--transition-med);
    border: 1px solid rgba(0,0,0,0.05);
}

.floating-whatsapp:hover {
    background-color: var(--whatsapp-color);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.2);
}

/* Scroll to Top Button */
.scroll-top-btn {
    width: 55px;
    height: 55px;
    background-color: var(--text-light); /* Will be White in dark mode, Black in light mode */
    color: var(--dark-bg); /* Inverse of background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-med);
    border: 1px solid rgba(255,255,255,0.1);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--primary-gold);
    color: #fff;
    transform: translateY(-5px);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Lightbox Refinement */
.lightbox {
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.close-lightbox {
    font-weight: 300;
    font-size: 50px;
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-auto-rows: 250px;
    }
}

@media (max-width: 992px) {
    .about-wrapper, .videos-flex, .contact-grid {
        flex-direction: column;
        gap: 50px;
    }
    
    .review-image-card {
        min-width: calc(50% - 15px);
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        background-color: rgba(255, 255, 255, 0.98);
        padding: 15px 0;
    }
    
    .navbar .logo,
    .navbar .mobile-menu-btn {
        color: var(--text-light);
    }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 65px;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.4s;
        box-shadow: 0 15px 30px rgba(0,0,0,0.05);
        padding: 40px 0;
        gap: 25px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--text-light);
        font-size: 1.2rem;
    }
    
    /* Convert Portfolio into a Mobile Edge-to-Edge Slider */
    .portfolio-grid {
        margin: 0 -20px;
        padding: 20px;
        width: calc(100% + 40px);
    }

    .portfolio-item {
        flex: 0 0 85vw; /* Show edges of next items */
        height: 400px;
        scroll-snap-align: center; /* Snap to center on mobile */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .review-image-card {
        min-width: 85vw; /* 85% of screen width to show edges of next cards */
        scroll-snap-align: center;
    }
    
    .slider-wrapper {
        margin: 0 -20px; /* Pulls slider out of the safe area so it touches edges */
        width: calc(100% + 40px);
    }
    
    .reviews-slider {
        padding: 20px; /* Add internal padding so cards don't touch screen edges when snapped */
    }
    
    .slider-btn {
        display: none; /* Hide buttons on mobile, allow swiping natively */
    }

    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .ar-flex {
        flex-direction: column;
        gap: 40px;
    }
    .ar-viewer {
        width: 100%;
        height: 350px;
    }
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--dark-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.1);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: right;
    padding: 20px 25px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-med);
    font-family: inherit;
}
.faq-question:hover {
    color: var(--primary-gold);
}
.faq-question i {
    color: var(--primary-gold);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 25px;
}
.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 200px;
}
.faq-answer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.8;
}

[data-theme="light"] .faq-question {
    color: var(--text-light);
}
[data-theme="light"] .faq-answer p {
    color: var(--text-body);
}

/* --- Smart WhatsApp Widget --- */
.whatsapp-widget-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.wa-trigger {
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
    z-index: 2;
}
.wa-trigger:hover {
    transform: scale(1.1);
}
.whatsapp-dialog {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 320px;
    background: var(--dark-gray);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transform-origin: bottom left;
    transition: all 0.4s ease;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.whatsapp-dialog.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
[data-theme="light"] .whatsapp-dialog {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.wa-header {
    background: var(--whatsapp-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}
.wa-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
}
.wa-header button:hover { opacity: 1; }
.wa-body {
    padding: 20px;
    background-color: #E5DDD5;
}
.wa-body p {
    background: white;
    color: #333;
    padding: 12px 15px;
    border-radius: 0 10px 10px 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 0;
    display: inline-block;
    position: relative;
    font-family: inherit;
}
.wa-body p::before {
    content: '';
    position: absolute;
    top: 0; right: -8px;
    width: 0; height: 0;
    border-left: 10px solid white;
    border-bottom: 10px solid transparent;
}
.wa-footer {
    padding: 15px;
    background: #f0f0f0;
    text-align: center;
}
[data-theme="light"] .wa-footer {
    background: #fafafa;
}
.wa-btn {
    display: block;
    width: 100%;
    background: var(--whatsapp-color);
    color: white;
    padding: 10px 0;
    border-radius: 20px;
    font-weight: 600;
    transition: background 0.3s;
}
.wa-btn:hover {
    background: #128C7E;
    color: white;
}

/* ===== PWA Install Banner ===== */
#pwa-install-banner {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: min(420px, 95vw);
}
#pwa-install-banner.show {
    bottom: 20px;
}
.pwa-banner-content {
    background: linear-gradient(135deg, #1a1605, #1a1a1a);
    border: 1px solid rgba(197, 160, 89, 0.5);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(197,160,89,0.15);
}
.pwa-banner-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #0a0a0a;
    flex-shrink: 0;
}
.pwa-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pwa-banner-text strong {
    font-size: 0.95rem;
    color: #fff;
    font-family: 'Cairo', sans-serif;
}
.pwa-banner-text span {
    font-size: 0.8rem;
    color: #888;
}
#pwa-install-btn {
    background: var(--primary-gold);
    color: #0a0a0a;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
    flex-shrink: 0;
}
#pwa-install-btn:hover { background: #dfc282; }
#pwa-install-dismiss {
    background: transparent;
    border: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
    transition: color 0.2s;
}
#pwa-install-dismiss:hover { color: #fff; }
