@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Brand Colors from color 2.pdf */
    --brand-cream: #F5EFE6;
    --brand-tan: #C5B9A9;
    --brand-earth: #806C61;
    --brand-dark: #2C2C2C;
    
    /* Luxury Accents */
    --gold-gradient: linear-gradient(135deg, #C5B9A9 0%, #E2D1C3 50%, #C5B9A9 100%);
    --gold-glow: 0 0 15px rgba(197, 185, 169, 0.3);
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Cairo', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
    
    /* Spacing & Borders */
    --radius-lg: 24px;
    --radius-md: 12px;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--brand-cream);
    color: var(--brand-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../project_images/yellow_qassim_quarry/3.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.05;
    z-index: -1;
    filter: grayscale(100%);
}

[lang="ar"] {
    font-family: var(--font-arabic);
}

h1, h2, h3, .serif {
    font-family: var(--font-serif);
    font-weight: 700;
}

[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 {
    font-family: var(--font-arabic);
}

/* --- Luxury Scroll Progress --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gold-gradient);
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease;
}

/* Luxury Scroller */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--brand-cream);
}
::-webkit-scrollbar-thumb {
    background: var(--brand-tan);
    border-radius: 10px;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

nav.scrolled {
    background: rgba(44, 44, 44, 0.95);
    padding: 1rem 5%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

nav.scrolled .logo img {
    filter: brightness(0) invert(1);
}

.logo img {
    height: 60px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-tan);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.lang-switch {
    background: var(--brand-dark);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--brand-dark);
}

.lang-switch:hover {
    background: transparent;
    color: var(--brand-dark);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
    background: #000;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transform: scale(1.1);
    animation: zoomOut 20s infinite alternate;
}

@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-tan);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-tan);
}

/* --- Section Color Layering --- */
.section-cream {
    background-color: var(--brand-cream);
}

.section-tan {
    background-color: var(--brand-tan);
    color: var(--brand-dark);
}

.section-dark {
    background-color: var(--brand-dark);
    color: var(--brand-cream);
}

.section-dark h2, .section-dark .section-header h2 {
    color: var(--brand-cream);
}

/* --- About Section Refining --- */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    padding: 10rem 10%;
    align-items: center;
}

@media (max-width: 968px) {
    .about-section { grid-template-columns: 1fr; }
}

.about-content h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    line-height: 1;
}

.about-content p {
    font-size: 1.3rem;
    color: var(--brand-earth);
    margin-bottom: 2rem;
}

.about-image {
    position: relative;
    height: 600px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--brand-tan);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--gold-gradient);
    color: var(--brand-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: var(--transition);
    box-shadow: var(--gold-glow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 185, 169, 0.4);
}

/* --- Luxury Grid --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.section-header span {
    color: var(--brand-tan);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Luxury Scroll Revelations --- */
.stone-card, .section-header, .about-content, .client-marquee, .about-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stone-card.active, .section-header.active, .about-content.active, .client-marquee.active, .about-section.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Luxury Staggered Grid --- */
.luxury-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 4rem;
    padding: 4rem 8%;
    align-items: start;
}

.stone-card {
    position: relative;
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--brand-dark);
    transition: box-shadow 0.5s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
    will-change: transform;
}

/* Luxury Stagger effect */
.stone-card:nth-child(even) {
    margin-top: 80px;
}

@media (max-width: 768px) {
    .stone-card:nth-child(even) { margin-top: 0; }
}

.stone-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stone-card:hover img {
    transform: scale(1.15);
    opacity: 0.7;
}

/* Floating Glassmorphism Info */
.stone-info {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    z-index: 4;
    transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stone-card:hover .stone-info {
    bottom: 0;
}

.stone-info h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
    color: #fff;
}

.stone-info p {
    color: var(--brand-tan);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Luxury Gradient Headlines */
.section-header h2 {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-earth) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 1rem;
}

/* --- Footer --- */
footer {
    background: var(--brand-dark);
    color: var(--brand-cream);
    padding: 5rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    color: var(--brand-tan);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.footer-col p, .footer-col a {
    color: rgba(245, 239, 230, 0.7);
    text-decoration: none;
    margin-bottom: 1rem;
    display: block;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--brand-tan);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 239, 230, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(245, 239, 230, 0.4);
}

/* --- Floating WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

[lang="ar"] .whatsapp-float {
    right: auto;
    left: 30px;
}

/* --- Luxury Gallery Modal --- */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(15px);
    display: none;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-modal.active .modal-content img {
    transform: scale(1);
}

.gallery-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: var(--brand-cream);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition);
}

.gallery-close:hover {
    color: var(--brand-tan);
    transform: rotate(90deg);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
    transform: translateY(-50%);
    pointer-events: none;
}

.gallery-btn {
    pointer-events: auto;
    background: rgba(197, 185, 169, 0.1);
    color: white;
    border: 1px solid rgba(197, 185, 169, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem;
}

.gallery-btn:hover {
    background: var(--brand-tan);
    color: var(--brand-dark);
}

.gallery-caption {
    margin-top: 2rem;
    color: var(--brand-tan);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* --- Luxury Client Marquee --- */
.client-marquee {
    background: var(--brand-dark);
    padding: 4rem 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(197, 185, 169, 0.2);
    border-bottom: 1px solid rgba(197, 185, 169, 0.2);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scroll 40s linear infinite;
    gap: 6rem;
    align-items: center;
}

.marquee-content span {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--brand-tan);
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0.7;
    transition: var(--transition);
}

.marquee-content span:hover {
    opacity: 1;
    color: #fff;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

[lang="ar"] .marquee-content {
    animation: scroll-ar 40s linear infinite;
}

@keyframes scroll-ar {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* RTL Support */
[lang="ar"] {
    direction: rtl;
    text-align: right;
}

[lang="ar"] .nav-links a::after {
    left: auto;
    right: 0;
}

