/* ===================================
   شركة مروة النقاء - ملف التصميم
   الألوان المستخدمة من الشعار:
   - البنفسجي: #6A3AB7
   - الأصفر: #FBC02D
   - الرمادي الداكن: #424242
   =================================== */

:root {
    --primary-purple: #6A3AB7;
    --primary-yellow: #FBC02D;
    --dark-gray: #424242;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ========== Navigation ========== */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0066cc !important;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-left: 10px;
}

.brand-text {
    color: #0066cc;
    text-shadow: none;
}

.navbar-nav .nav-link {
    color: #0066cc !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(0, 102, 204, 0.1);
    color: #0052a3 !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: calc(100% - 30px);
}

.navbar-toggler {
    border-color: #0066cc;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 102, 204, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-gray) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1920&h=1080&fit=crop') center/cover;
    opacity: 0.15;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(106, 58, 183, 0.9) 0%, rgba(66, 66, 66, 0.9) 100%);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--primary-yellow);
    font-weight: 600;
    margin-bottom: 1rem;
    animation: fadeInUp 1.2s ease;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1.4s ease;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    animation: fadeInRight 1s ease;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 1.6s ease;
}

.btn-primary {
    background: var(--primary-yellow);
    border: none;
    color: var(--dark-gray);
}

.btn-primary:hover {
    background: #F9A825;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(251, 192, 45, 0.4);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-purple);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255,255,255,0.3);
}

/* ========== Section Titles ========== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    position: relative;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-yellow));
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* ========== About Section ========== */
.about-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.about-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.about-content .lead {
    font-size: 1.3rem;
    color: var(--primary-purple);
    font-weight: 600;
}

.company-info {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-gray));
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.info-item {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--primary-yellow);
    margin-left: 15px;
    font-size: 1.3rem;
}

.info-item strong {
    margin-left: 10px;
}

.about-image img {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ========== Vision Section ========== */
.vision-section {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-gray) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1920&h=1080&fit=crop') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.vision-section .container {
    position: relative;
    z-index: 2;
}

.vision-card {
    background: rgba(255,255,255,0.95);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(106, 58, 183, 0.3);
}

.vision-card h3 {
    color: var(--primary-purple);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.vision-card p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ========== Products Section ========== */
.products-section {
    background: var(--white);
    padding: 80px 0;
}

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 300px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(106, 58, 183, 0.3);
}

.product-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(106, 58, 183, 0.95), transparent);
    padding: 2rem;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .product-overlay {
    transform: translateY(0);
}

.product-overlay h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-yellow);
}

/* ========== Contact Section ========== */
.contact-section {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--primary-purple) 100%);
    padding: 80px 0;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1920&h=1080&fit=crop') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-card {
    background: rgba(255,255,255,0.95);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(251, 192, 45, 0.3);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-yellow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(106, 58, 183, 0.3);
}

.contact-card h4 {
    color: var(--primary-purple);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #555;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.contact-card a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary-yellow);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877F2, #0d5dbf);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* ========== Footer ========== */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        padding: 1.5rem;
    }
    
    .vision-card,
    .contact-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .product-card {
        min-height: 250px;
    }
}

/* ========== Smooth Scroll ========== */
html {
    scroll-behavior: smooth;
}

/* ========== Loading Animation ========== */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

