/* ===== CSS Variables ===== */
:root {
    --gold: #C9A96E;
    --gold-light: #E8D5B0;
    --gold-dark: #A07D3F;
    --dark: #0A0A0A;
    --dark-2: #141414;
    --dark-3: #1E1E1E;
    --white: #FFFFFF;
    --off-white: #F5F0EB;
    --gray: #8A8A8A;
    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Cairo', sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ===== Selection ===== */
::selection { background: var(--gold); color: var(--dark); }

/* ===== Preloader ===== */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--dark);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
    width: 250px; height: auto; object-fit: contain;
    animation: pulse-glow 1.5s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(201,169,110,0.3)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 40px rgba(201,169,110,0.6)); }
}

/* ===== Cursor Follower ===== */
.cursor-follower {
    width: 30px; height: 30px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, opacity 0.3s ease;
    opacity: 0;
}
.cursor-follower.visible { opacity: 0.6; }

/* ===== Navigation ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1.2rem 3rem;
    display: flex; align-items: center; justify-content: space-between;
    transition: all 0.5s var(--transition);
}
.navbar.scrolled {
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    padding: 0.8rem 3rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-logo {
    display: flex; align-items: center; gap: 1rem;
    text-decoration: none;
}
.nav-logo img { height: 82px; transition: height 0.3s ease; }
.navbar.scrolled .nav-logo img { height: 65px; }
.nav-logo-text {
    font-family: 'Cairo', sans-serif;
    font-size: 1.15rem; font-weight: 700; line-height: 1.3;
    color: var(--gold);
}
.nav-logo-sub {
    display: block;
    font-size: 0.82rem; font-weight: 400;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
}

.nav-links {
    display: flex; gap: 2.5rem; list-style: none;
}
.nav-links a {
    color: var(--white); text-decoration: none;
    font-size: 0.95rem; font-weight: 500;
    position: relative; padding-bottom: 4px;
    transition: color 0.3s ease;
}
.nav-links a::after {
    content: ''; position: absolute;
    bottom: 0; right: 0; width: 0; height: 2px;
    background: var(--gold);
    transition: width 0.4s var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

/* Mobile Menu */
.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 5px;
}
.menu-toggle span {
    width: 28px; height: 2px; background: var(--gold);
    transition: all 0.3s ease;
}
/* Hamburger → X animation */
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute; top: 100%; right: 0; left: 0;
        background: rgba(10,10,10,0.98);
        backdrop-filter: blur(20px);
        padding: 1rem 0; gap: 0;
        border-top: 1px solid rgba(201,169,110,0.2);
    }
    .nav-links.mobile-open { display: flex; }
    .nav-links li { border-bottom: 1px solid rgba(201,169,110,0.08); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a {
        display: block; padding: 1rem 2rem; font-size: 1.05rem;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    transform: scale(1.1);
    animation: hero-zoom 20s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
    from { transform: scale(1.1) translate(0,0); }
    to { transform: scale(1.15) translate(-1%,-1%); }
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0.9) 100%);
}

.hero-content {
    position: relative; z-index: 10;
    text-align: center; max-width: 900px; padding: 0 2rem;
}
.hero-brand {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800; color: var(--white);
    margin-bottom: 0.5rem; letter-spacing: 2px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(201,169,110,0.15);
    border: 1px solid rgba(201,169,110,0.3);
    padding: 0.5rem 1.5rem; border-radius: 50px;
    font-size: 0.85rem; color: var(--gold-light);
    margin-bottom: 2rem; letter-spacing: 3px; text-transform: uppercase;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900; line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-title .gold { color: var(--gold); }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
}
.btn-luxury {
    padding: 1rem 2.5rem; border-radius: 0;
    font-weight: 700; font-size: 0.95rem;
    text-decoration: none; letter-spacing: 2px; text-transform: uppercase;
    transition: all 0.4s var(--transition);
    position: relative; overflow: hidden;
}
.btn-gold {
    background: var(--gold); color: var(--dark);
}
.btn-gold:hover {
    background: var(--white); transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201,169,110,0.3);
}
.btn-outline {
    border: 2px solid var(--gold); color: var(--gold);
}
.btn-outline:hover {
    background: var(--gold); color: var(--dark);
    transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 3rem; left: 50%;
    transform: translateX(-50%); z-index: 10;
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-indicator span {
    font-size: 0.75rem; color: var(--gray); letter-spacing: 3px; text-transform: uppercase;
}
.scroll-line {
    width: 1px; height: 60px; background: var(--gold);
    position: relative; overflow: hidden;
}
.scroll-line::after {
    content: ''; position: absolute; top: -100%; left: 0;
    width: 100%; height: 100%; background: var(--white);
    animation: scroll-down 2s ease-in-out infinite;
}
@keyframes scroll-down {
    0% { top: -100%; } 100% { top: 100%; }
}

/* ===== Section Common ===== */
.section { padding: 8rem 2rem; position: relative; }
.section-dark { background: var(--dark); }
.section-darker { background: var(--dark-2); }
.container { max-width: 1400px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 5rem; }
.section-label {
    font-size: 0.8rem; color: var(--gold); letter-spacing: 5px;
    text-transform: uppercase; margin-bottom: 1rem; display: block;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700; margin-bottom: 1rem;
}
.section-line {
    width: 80px; height: 3px; background: var(--gold);
    margin: 1.5rem auto 0;
}

/* ===== Marquee Strip ===== */
.marquee-strip {
    background: var(--gold);
    padding: 1rem 0; overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: inline-flex; gap: 4rem;
    animation: marquee 30s linear infinite;
}
.marquee-item {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; color: var(--dark); font-weight: 600;
    display: inline-flex; align-items: center; gap: 1rem;
}
.marquee-item::after {
    content: '◆'; font-size: 0.6rem; opacity: 0.5;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== About Section ===== */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-image {
    position: relative; border-radius: 0; overflow: hidden;
    height: 600px;
}
.about-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s var(--transition);
}
.about-image:hover img { transform: scale(1.05); }
.about-image::after {
    content: ''; position: absolute; inset: 0;
    border: 2px solid var(--gold); margin: 20px;
    pointer-events: none;
}

.about-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.3;
}
.about-text p { color: var(--gray); margin-bottom: 1.5rem; font-size: 1.05rem; }

.about-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem; font-weight: 700; color: var(--gold);
    line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--gray); margin-top: 0.5rem; }

/* ===== Products Section ===== */
.products-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.product-card {
    position: relative; overflow: hidden; height: 500px;
    cursor: pointer;
}
.product-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s var(--transition);
}
.product-card:hover img { transform: scale(1.1); }
.product-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.2) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 2rem; transition: background 0.4s ease;
}
.product-card:hover .product-overlay {
    background: linear-gradient(to top, rgba(10,10,10,0.98) 0%, rgba(10,10,10,0.5) 60%, rgba(10,10,10,0.3) 100%);
}
.product-tag {
    font-size: 0.7rem; color: var(--gold); letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 0.5rem;
}
.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem;
}
.product-desc {
    color: var(--gray); font-size: 0.9rem;
    max-height: 0; overflow: hidden;
    transition: max-height 0.5s var(--transition), opacity 0.3s ease;
    opacity: 0;
}
.product-card:hover .product-desc {
    max-height: 100px; opacity: 1;
}
.product-arrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--gold); font-size: 0.85rem; margin-top: 1rem;
    transform: translateY(10px); opacity: 0;
    transition: all 0.4s ease;
}
.product-card:hover .product-arrow { transform: translateY(0); opacity: 1; }

/* ===== Features Strip ===== */
.features-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.feature-item {
    padding: 4rem 2rem; text-align: center;
    border-left: 1px solid rgba(201,169,110,0.1);
    transition: background 0.3s ease;
}
.feature-item:first-child { border-left: none; }
.feature-item:hover { background: rgba(201,169,110,0.05); }
.feature-icon-box {
    width: 70px; height: 70px; margin: 0 auto 1.5rem;
    border: 1px solid var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    transition: all 0.4s ease;
}
.feature-icon-box svg { width: 32px; height: 32px; }
.feature-item:hover .feature-icon-box {
    background: var(--gold); color: var(--dark);
    transform: rotate(360deg);
}
.feature-item h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-item p { color: var(--gray); font-size: 0.9rem; }

/* ===== Gallery Section ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1rem;
}
.gallery-item {
    position: relative; overflow: hidden; cursor: pointer;
}
.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--transition);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::before {
    content: '+'; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem; color: var(--gold); z-index: 2;
    transition: transform 0.4s ease;
}
.gallery-item:hover::before { transform: translate(-50%, -50%) scale(1); }
.gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(10,10,10,0.4); opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* ===== Testimonials ===== */
.testimonial-card {
    background: var(--dark-3); padding: 3rem;
    border: 1px solid rgba(201,169,110,0.1);
    position: relative; max-width: 800px; margin: 0 auto; text-align: center;
}
.testimonial-card::before {
    content: '"'; font-family: 'Playfair Display', serif;
    font-size: 8rem; color: var(--gold); opacity: 0.2;
    position: absolute; top: -20px; right: 30px; line-height: 1;
}
.testimonial-text {
    font-size: 1.2rem; line-height: 2; color: var(--off-white);
    margin-bottom: 2rem; font-style: italic;
}
.testimonial-author { font-weight: 700; color: var(--gold); }
.testimonial-role { font-size: 0.85rem; color: var(--gray); }

/* ===== Contact Section ===== */
.contact-section { background: var(--dark-2); }
.contact-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.contact-info-list { display: contents; }
.contact-item {
    display: flex; gap: 1.5rem; align-items: flex-start;
    padding: 2rem; background: var(--dark-3);
    border: 1px solid rgba(201,169,110,0.1);
    transition: all 0.3s ease;
}
.contact-item:hover {
    border-color: var(--gold); transform: translateX(-5px);
}
.contact-icon {
    width: 50px; height: 50px; flex-shrink: 0;
    background: rgba(201,169,110,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-item h4 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.contact-item p, .contact-item a { color: var(--gray); text-decoration: none; transition: color 0.3s; }
.contact-item a:hover { color: var(--gold); }

/* ===== Footer ===== */
.footer {
    background: var(--dark); padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(201,169,110,0.1);
}
.footer-content {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1400px; margin: 0 auto;
}
.footer-logo img { height: 80px; }
.footer-text { color: var(--gray); font-size: 0.9rem; }
.footer-socials {
    display: flex; gap: 1rem;
}
.footer-socials a {
    width: 45px; height: 45px; border: 1px solid rgba(201,169,110,0.3);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--gold); text-decoration: none; font-size: 1.1rem;
    transition: all 0.3s ease;
}
.footer-socials a:hover {
    background: var(--gold); color: var(--dark);
    transform: translateY(-3px);
}

/* ===== Floating Buttons ===== */
.floating-buttons {
    position: fixed; bottom: 2rem; left: 2rem;
    z-index: 1000; display: flex; flex-direction: column; gap: 1rem;
}
.float-btn {
    width: 55px; height: 55px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease; text-decoration: none;
}
.float-btn:hover { transform: scale(1.15) translateY(-3px); }
.float-whatsapp { background: #25D366; }
.float-phone { background: var(--gold); }
.float-delivery { background: #2196F3; }
.float-btn svg { width: 28px; height: 28px; color: white; }

/* ===== Animations ===== */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s var(--transition);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .features-strip { grid-template-columns: repeat(2, 1fr); }
    .feature-item { border-left: none; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { height: 400px; }
}

@media (max-width: 768px) {
    .navbar { padding: 0.8rem 1.2rem; }
    .nav-logo img { height: 55px; }
    .nav-logo-text { font-size: 0.95rem; }
    .nav-logo-sub { font-size: 0.7rem; }
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .products-grid { grid-template-columns: 1fr; }
    .features-strip { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gallery-item:nth-child(1) { grid-row: span 1; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .stat-number { font-size: 2rem; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
    .section { padding: 5rem 1.5rem; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .navbar { padding: 0.6rem 0.8rem; }
    .nav-logo { gap: 0.5rem; }
    .nav-logo img { height: 42px; }
    .nav-logo-text { font-size: 0.8rem; }
    .nav-logo-sub { display: none; } /* إخفاء "للسراميك والرخام" على الشاشات الصغيرة */
    .products-grid { grid-template-columns: 1fr; }
    .product-card { height: 350px; }
}

/* ===== Contact Map ===== */
.contact-map {
    margin-top: 3rem;
    border: 2px solid rgba(201,169,110,0.3);
    overflow: hidden;
}
.contact-map iframe {
    filter: grayscale(40%) contrast(1.1) brightness(0.85);
    transition: filter 0.4s ease;
}
.contact-map:hover iframe {
    filter: grayscale(20%) contrast(1) brightness(0.95);
}

/* ===== Utility Classes ===== */
.text-gold { color: var(--gold); }
.mt-sm { margin-top: 0.5rem; }
.driver-contact-label { color: var(--gold); font-weight: 700; }
.driver-phone { font-size: 1.2rem; font-weight: 700; color: var(--gold); text-decoration: none; display: inline-block; }
.driver-wa-link { color: var(--gold); text-decoration: none; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.3rem; }




/* ===== Support Section - Card Style ===== */
.support-section {
    padding: 5rem 2rem;
}
.support-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.support-item {
    position: relative;
    overflow: hidden;
    width: 280px;
    height: 320px;
    background: linear-gradient(180deg, rgba(30,30,30,0.8) 0%, rgba(10,10,10,0.95) 100%);
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
}
.support-item:hover {
    border-color: rgba(201,169,110,0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    background: linear-gradient(180deg, rgba(40,40,40,0.9) 0%, rgba(15,15,15,0.98) 100%);
}
.support-icon {
    width: 70px;
    height: 70px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--gold);
    transition: all 0.4s ease;
}
.support-item:hover .support-icon {
    background: var(--gold);
    color: var(--dark);
    transform: scale(1.1) rotate(5deg);
}
.support-icon svg {
    width: 32px;
    height: 32px;
}
.support-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.6rem;
}
.support-content p {
    font-size: 1rem;
    color: #ddd;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}
.support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-size: 0.85rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}
.support-item:hover .support-link {
    border-bottom-color: var(--gold);
}
@media (max-width: 768px) {
    .support-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .support-item {
        width: 100%;
        max-width: 300px;
    }
}
