/* ===== Global Styles ===== */
:root {
    --primary-red: #C8102E;
    --dark-red: #A00D25;
    --light-red: #E31E3C;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #333333;
}

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

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    color: var(--dark-gray);
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

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

.preloader-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ===== Navigation ===== */
#mainNav {
    background: rgb(162 32 30) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#mainNav.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.1);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    margin: 0 10px;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    transform: translateX(50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
}


.hero-slide:first-child {
    opacity: 1;
}

.hero-slide:not(:first-child) {
    display: none;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.75) 0%, rgba(160, 13, 37, 0.85) 100%);
    z-index: 1;
}

/* Hero Section Text Shadow Enhancement */
.hero-section .hero-title,
.hero-section .hero-subtitle,
.hero-section .hero-description {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-logo {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    display: none;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
}

/* ===== Section Styles ===== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1rem;
    position: relative;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* ===== About Section ===== */
.about-section {
    background: var(--white);
    padding-top: 120px;
    margin-top: 0;
}

/* White Gap between Hero and About */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--white);
    z-index: 2;
}

.about-section img {
    transition: transform 0.3s ease;
}

.about-section img:hover {
    transform: scale(1.05);
}

/* ===== Mission & Vision ===== */
.mission-vision-section {
    background: var(--white);
}

.mission-vision-section .card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.mission-vision-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.2) !important;
}

.mission-vision-section .card-body {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

/* ===== Services Section ===== */
.services-section {
    background: var(--light-gray);
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(200, 16, 46, 0.3);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.service-content {
    padding: 2rem;
    text-align: center;
}

.service-content i {
    color: var(--primary-red);
}

.service-content h4 {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ===== Team Section ===== */
.team-section {
    background: var(--light-gray);
}

.team-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.team-content {
    padding: 3rem 2rem;
}

.team-content i {
    color: var(--primary-red);
}

.team-content .lead {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* ===== Products Section ===== */
.products-section {
    background: var(--white);
}

.product-info-card {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 15px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-info-card h3 {
    color: var(--primary-red);
    font-weight: 700;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.product-features li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
}

.product-features li i {
    color: var(--primary-red);
    margin-left: 10px;
}

.product-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.product-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--light-gray);
}

.contact-info {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

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

.contact-item i {
    color: var(--primary-red);
}

.contact-item h5 {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-red);
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.25);
}

.btn-danger {
    background: var(--primary-red);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 16, 46, 0.4);
}

.btn-light {
    background: var(--white);
    color: var(--primary-red);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-red);
    color: var(--white);
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.footer-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.05);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-red);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-logo {
        height: 40px;
    }
    
    .preloader-logo {
        width: 150px;
    }
    
    .hero-slide {
        background-position: center center;
        background-size: cover;
    }
    
    .footer-image-wrapper {
        max-width: 150px;
        margin: 1rem auto;
    }
    
    .team-content {
        padding: 2rem 1.5rem;
    }
    
    .team-content .lead {
        font-size: 1rem;
    }
}

/* ===== Smooth Scroll ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Image Zoom Effect ===== */
.product-img {
    cursor: pointer;
}

/* ===== Loading Animation ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

