/* CSS Variables */
:root {
    /* Colors - Premium Dark & Gold Theme */
    --primary-color: #D4AF37; /* Gold */
    --primary-dark: #aa8a29;
    --secondary-color: #1A1A1A; /* Deep Dark */
    --bg-color: #0d0d0d;
    --bg-light: #1c1c1c;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --white: #ffffff;
    --border-color: #333333;
    
    /* Typography */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
    
    /* Spacing & Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease;
    --section-padding: 5rem 0;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* LTR override for English */
html[dir="ltr"] body {
    font-family: var(--font-en);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Typography Classes */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

html[dir="ltr"] .section-title {
    font-weight: 600;
}

.center {
    text-align: center;
}

.light-text {
    color: var(--white);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo img {
    height: 70px;
    width: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: var(--bg-light);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    transition: var(--transition-fast);
}

.logo img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-fast);
}

html[dir="rtl"] .nav-links a::after {
    right: 0;
    left: auto;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13, 13, 13, 0.9), rgba(13, 13, 13, 0.4));
}

html[dir="rtl"] .hero-overlay {
    background: linear-gradient(to left, rgba(13, 13, 13, 0.9), rgba(13, 13, 13, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* Sections General */
.section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--secondary-color);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    gap: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
}

.about-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1579298495034-4b533db04193?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
    border-radius: 8px;
    box-shadow: 20px 20px 0 var(--primary-color);
}

html[dir="rtl"] .about-image .image-placeholder {
    box-shadow: -20px 20px 0 var(--primary-color);
}

/* Products Section */
.product-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
    font-size: 1rem;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--primary-color);
}

.product-img {
    height: 250px;
    background-position: center;
    background-size: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* Placeholder backgrounds for products */
.marble-bg-1 { background-image: url('https://images.unsplash.com/photo-1616428741362-736021ba096a?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80'); }
.marble-bg-2 { background-image: url('https://images.unsplash.com/photo-1600121848594-d8644e57abab?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80'); }
.granite-bg-1 { background-image: url('https://images.unsplash.com/photo-1598587127732-c61262da3c6d?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80'); }
.granite-bg-2 { background-image: url('https://images.unsplash.com/photo-1598587396695-1e35fc4a80ce?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80'); }

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    color: var(--white);
}

/* RTL icon flipping */
html[dir="rtl"] .rtl-flip {
    transform: scaleX(-1);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border-top: 3px solid transparent;
    transition: var(--transition-fast);
}

.service-card:hover {
    background-color: var(--secondary-color);
    border-top-color: var(--primary-color);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-methods {
    margin-top: 30px;
}

.method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.method i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.method h4 {
    margin-bottom: 5px;
}

.method p {
    color: var(--text-muted);
}

.contact-form-container {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.w-100 {
    width: 100%;
}

/* Footer */
.footer {
    background-color: #050505;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 100px;
    width: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: var(--bg-light);
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4, .footer-social h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-inline-start: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border-radius: 50%;
    color: var(--white);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
.animate-up, .animate-left, .animate-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate-up { transform: translateY(30px); }
.animate-left { transform: translateX(-30px); }
.animate-right { transform: translateX(30px); }

/* RTL corrections for animations */
html[dir="rtl"] .animate-left { transform: translateX(30px); }
html[dir="rtl"] .animate-right { transform: translateX(-30px); }

.in-view {
    opacity: 1;
    transform: translate(0) !important;
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }


/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .about-image .image-placeholder {
        height: 300px;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 { font-size: 2.2rem; }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition-fast);
}

.floating-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}

html[dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 30px;
}
