@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Premium Palette */
    --gold-primary: #d4af37;
    --gold-secondary: #f9e29c;
    --gold-dark: #b8860b;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f9e29c 50%, #b8860b 100%);
    --gold-glow: rgba(212, 175, 55, 0.4);
    
    --obsidian: #0a0a0c;
    --obsidian-light: #121216;
    --obsidian-card: rgba(18, 18, 22, 0.8);
    
    --text-primary: #f8f9fa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(212, 175, 55, 0.1);
    
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Almarai', 'Outfit', sans-serif;
}

body {
    background-color: var(--obsidian);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
.glass-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at top left, var(--obsidian-light) 0%, transparent 50%),
                radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    background-image: url('https://www.transparenttextures.com/patterns/clean-gray-paper.png');
    filter: invert(1);
}

/* RTL Helpers */
[dir="rtl"] {
    text-align: right;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 10, 12, 0.75);
    transition: var(--transition-smooth);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

/* Gallery Section Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}


.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.cta-button {
    background: var(--gold-gradient);
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--obsidian);
}

#hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    transform: translate(50%, -50%);
    z-index: 1;
    opacity: 0.3;
    animation: drift 20s infinite alternate;
}

@keyframes drift {
    from { transform: translate(50%, -50%) scale(1); }
    to { transform: translate(55%, -45%) scale(1.1); }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 1s forwards var(--transition-smooth);
}

@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 5.5rem;
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 900;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

/* Product Grid Improvements */
.product-card {
    background: var(--obsidian-card);
    border-radius: 28px;
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.product-image-container {
    width: 100%;
    aspect-ratio: 1;
    background: #1a1a20;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image-container img {
    transform: scale(1.1);
}

.product-info {
    padding: 0.5rem;
}

.product-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gold-primary);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    z-index: 5;
}

/* Form Styles */
.repair-form {
    background: var(--dark-surface);
    padding: 4rem;
    border-radius: 15px;
    max-width: 700px;
    margin: 3rem auto;
    border: 1px solid var(--dark-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 5px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    border-color: var(--gold-primary);
}

/* Footer */
footer {
    background: #050505;
    padding: 80px 0 40px;
    border-top: 1px solid var(--dark-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.text-secondary {
    color: var(--text-secondary);
}

/* Utility Classes for Refactoring */
.logo-img {
    height: 60px;
}

.relative {
    position: relative;
}

.cart-icon {
    font-size: 1.5rem;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--gold-primary);
    color: #000;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 800;
}

.mt-2-5 {
    margin-top: 2.5rem;
}

.flex-gap-1 {
    display: flex;
    gap: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.fs-3 {
    font-size: 3rem;
}

.mt-1 {
    margin-top: 1rem;
}

.w-100 {
    width: 100%;
}

.pt-2 {
    padding-top: 2rem;
}

.border-top-subtle {
    border-top: 1px solid rgba(255,255,255,0.1);
}
