:root {
    --primary-gold: #D4AF37;
    --dark-gold: #B8941D;
    --light-gold: #F4E4BC;
    --dark-bg: #1a1a1a;
    --text-dark: #333;
    --text-light: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 0;
}

body[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* Navigation */
.navbar {
    background-color: var(--dark-bg) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.brand-text {
    color: var(--primary-gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-nav .nav-link {
    color: #fff !important;
    margin: 0 10px;
    transition: color 0.3s;
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-gold) !important;
}

/* Hero Slideshow */
.hero-slider {
    margin-top: 76px;
}

.carousel-item {
    height: 600px;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    background: rgba(0,0,0,0.5);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.carousel-caption h2 {
    font-size: 3rem;
    color: var(--primary-gold);
    font-weight: bold;
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 1.3rem;
    color: #fff;
}

.carousel-indicators button {
    background-color: var(--primary-gold);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    color: var(--dark-bg);
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--dark-gold));
    margin: 0 auto 30px;
    border-radius: 2px;
}

.page-title {
    font-size: 3rem;
    color: var(--dark-bg);
    font-weight: bold;
    margin-bottom: 20px;
}

/* About Section */
#about {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.about-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-content .lead {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 500;
}

.vision-card,
.mission-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-box i {
    font-size: 2rem;
    color: white;
}

.vision-card h3,
.mission-card h3 {
    color: var(--dark-bg);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.vision-card p,
.mission-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Partners Section */
.partner-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.partner-card img {
    max-height: 150px;
    width: auto;
    object-fit: contain;
}

/* Contact Section */
.contact-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon i {
    font-size: 2rem;
    color: white;
}

.contact-card h4 {
    color: var(--dark-bg);
    font-weight: bold;
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-card a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--dark-gold);
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.email {
    background: var(--primary-gold);
}

.social-link:hover {
    transform: scale(1.1);
    color: white;
}

.social-link.email:hover {
    background: var(--dark-gold);
}

/* Products Section */
.products-header {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: white;
}

.products-header .page-title {
    color: white;
}

.products-header .title-underline {
    background: white;
}

.product-section {
    padding: 60px 0;
}

.product-gallery img {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-img {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.product-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    z-index: 1;
    position: relative;
}

/* Modal Styles */
.modal-content {
    background: transparent;
    border: none;
}

.modal-header {
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 10px 10px 0 0;
}

.modal-body {
    background: rgba(0,0,0,0.7);
    border-radius: 0 0 10px 10px;
    padding: 0;
}

.modal-body .carousel {
    border-radius: 0 0 10px 10px;
}

.modal-body .carousel img {
    border-radius: 0 0 10px 10px;
    max-height: 70vh;
    object-fit: contain;
}

.btn-close {
    filter: invert(1);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 2.5rem;
    color: var(--dark-bg);
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--dark-gold));
    border-radius: 2px;
}

body[dir="ltr"] .product-title::after {
    right: auto;
    left: 0;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: var(--dark-bg) !important;
    color: #fff;
}

footer p {
    margin: 0;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-item {
        height: 400px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .about-content {
        padding: 20px;
    }
}

/* Language Toggle */
#langToggle {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

#langToggle:hover {
    background-color: var(--primary-gold);
    color: white;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #2a2a2a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 150px;
    height: 150px;
    animation: pulse 2s ease-in-out infinite;
    margin-bottom: 30px;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

