/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --light-blue: #60a5fa;
    --dark-blue: #1e40af;
    --accent-blue: #2563eb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-gray: #f3f4f6;
    --border-color: #e5e7eb;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    direction: rtl;
}

html[dir="ltr"] body,
body[dir="ltr"] {
    direction: ltr;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html[dir="rtl"] body,
body[dir="rtl"] {
    direction: rtl;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

html[dir="ltr"] .nav-wrapper,
body[dir="ltr"] .nav-wrapper {
    flex-direction: row;
}

html[dir="rtl"] .nav-wrapper,
body[dir="rtl"] .nav-wrapper {
    flex-direction: row;
}

.logo h1 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--white);
    color: var(--primary-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Hero Section with Slideshow */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
    animation: fadeIn 1s;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(30, 64, 175, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    color: var(--white);
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.slideshow-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.prev, .next {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
}

.prev:hover, .next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active,
.dot:hover {
    background: var(--white);
}

@keyframes fadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Section Styles */
section {
    padding: 0 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* About Preview */
.about-preview {
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.text-center {
    text-align: center;
    margin-top: 2rem;
}

/* Products Preview */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.product-card p {
    color: var(--text-light);
}

/* Contact Preview */
.contact-preview {
    background: var(--light-gray);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.contact-item h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 3rem 0;
    color: var(--white);
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-breadcrumb {
    font-size: 1rem;
}

.page-breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

/* About Page */
.about-page {
    padding: 4rem 0;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.about-section .about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.vision-mission-goals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.vm-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.vm-card:hover {
    transform: translateY(-5px);
}

.vm-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.vm-icon i {
    font-size: 2rem;
    color: var(--white);
}

.vm-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.vm-card p,
.vm-card ul {
    color: var(--text-light);
    line-height: 1.8;
}

.vm-card ul {
    list-style: none;
    text-align: right;
}

body[dir="ltr"] .vm-card ul {
    text-align: left;
}

.vm-card ul li {
    margin-bottom: 0.5rem;
    padding-right: 1.5rem;
    position: relative;
}

body[dir="ltr"] .vm-card ul li {
    padding-right: 0;
    padding-left: 1.5rem;
}

.vm-card ul li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--secondary-blue);
    font-weight: bold;
}

body[dir="ltr"] .vm-card ul li:before {
    right: auto;
    left: 0;
}

.why-choose-us {
    margin-top: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-light);
}

/* Products Page */
.products-page {
    padding: 4rem 0;
}

.products-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.products-grid-detailed {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

.product-card-detailed {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card-detailed:hover {
    transform: translateY(-5px);
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.product-info h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.product-age {
    color: var(--secondary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-description {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
}

.product-features li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.product-features li i {
    color: var(--secondary-blue);
    margin-left: 0.5rem;
}

body[dir="ltr"] .product-features li i {
    margin-left: 0;
    margin-right: 0.5rem;
}

.products-benefits {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
}

.benefits-title {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: var(--primary-blue);
}

/* Contact Page */
.contact-page {
    padding: 4rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info-section h2,
.contact-form-section h2 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--white);
    font-size: 1.5rem;
}

.contact-details h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: var(--primary-blue);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
}

.form-group textarea {
    resize: vertical;
}

/* Map Section */
.map-section {
    margin-top: 4rem;
}

.map-section h2 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-align: center;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.map-link {
    text-align: center;
    margin-top: 1.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.social-link.whatsapp:hover {
    background: #25D366;
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
    text-decoration: none;
}

html[dir="ltr"] .whatsapp-btn,
body[dir="ltr"] .whatsapp-btn {
    left: auto;
    right: 2rem;
}

html[dir="rtl"] .whatsapp-btn,
body[dir="rtl"] .whatsapp-btn {
    left: 2rem;
    right: auto;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lang-switcher {
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-content,
    .about-section {
        grid-template-columns: 1fr;
    }

    .products-grid,
    .contact-info-grid,
    .vision-mission-goals,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .product-card-detailed {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 1rem;
        left: 1rem;
    }

    html[dir="ltr"] .whatsapp-btn,
    body[dir="ltr"] .whatsapp-btn {
        left: auto;
        right: 1rem;
    }
    
    html[dir="rtl"] .whatsapp-btn,
    body[dir="rtl"] .whatsapp-btn {
        left: 1rem;
        right: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.8rem;
    }
}

