/* ============================================
   شركة الاتحاد الدولية - ملف التصميم
   Al-Ittihad International Company - Stylesheet
   ============================================ */

/* Color Variables - Based on Logo Colors */
:root {
    --primary-color: #1a4d5c;      /* Deep Teal/Blue */
    --secondary-color: #c45a2a;    /* Rust Orange */
    --accent-color: #2d7a8f;       /* Lighter Teal */
    --dark-color: #0f2e38;         /* Dark Blue */
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(26, 77, 92, 0.9) 0%, rgba(196, 90, 42, 0.9) 100%);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: 'Arial', sans-serif;
}

/* Navigation */
.navbar {
    background: var(--white) !important;
    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;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-dark) !important;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-left: 10px;
}

.brand-text {
    color: var(--text-dark);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--light-bg);
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border-color: var(--text-dark);
}

.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%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.lang-switch {
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Hero Carousel */
.carousel {
    margin-top: 76px;
    position: relative;
}

.carousel-item {
    height: 600px;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    text-align: center;
    z-index: 10;
    background: var(--gradient-overlay);
    padding: 3rem;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    margin: 0;
}

.carousel-caption h1 {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.carousel-caption p {
    color: var(--white);
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    right: 20px;
    left: auto;
}

.carousel-control-next {
    left: 20px;
    right: auto;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1;
    background: var(--secondary-color);
    transform: scale(1.3);
}

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--white);
    margin-top: 76px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    background: var(--light-bg);
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto 3rem;
    border-radius: 2px;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* About Company Section */
.about-company-section {
    background: var(--white);
    padding: 80px 0;
}

.about-content {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.about-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content h3 i {
    margin-left: 10px;
}

.about-content p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.company-fields {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-fields li {
    padding: 1rem 0;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.company-fields li:last-child {
    border-bottom: none;
}

.company-fields li i {
    font-size: 1.2rem;
    margin-left: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.company-fields li span {
    color: var(--text-dark);
    line-height: 1.8;
}

.vision-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.vision-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
}

.vision-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.vision-card p {
    color: var(--text-dark);
    line-height: 1.8;
    margin: 0;
}

/* Quick Info Section */
.quick-info-section {
    background: var(--light-bg);
    padding: 60px 0;
}

.info-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    border-right: 5px solid var(--secondary-color);
    height: 100%;
}

.info-card h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.info-card p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-card i {
    color: var(--secondary-color);
    margin-left: 10px;
    width: 20px;
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--secondary-color);
}

/* About Section */
.about-section {
    background: var(--white);
    padding: 80px 0;
}

.content-card {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.content-card h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.content-card h2 i {
    color: var(--secondary-color);
    margin-left: 10px;
}

.content-card h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.content-card p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.field-item {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-right: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.field-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.field-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.field-item h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.field-item p {
    color: var(--text-light);
    margin: 0;
}

.vision-mission-card {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.vision-mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.vm-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.vision-mission-card h3 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

.vision-mission-card p {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin: 0;
}

.value-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 1rem;
    border-right: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.value-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-left: 1rem;
}

.value-item span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Products Section */
.products-section {
    background: var(--light-bg);
    padding: 80px 0;
}

.product-image-only {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-image-only:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image-only img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image-only:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .product-image-only {
        height: 200px;
    }
}

@media (min-width: 992px) {
    .product-image-only {
        height: 280px;
    }
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--light-bg);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li::before {
    content: "✓";
    color: var(--secondary-color);
    font-weight: bold;
    margin-left: 10px;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 60px 0;
}

.cta-section h2 {
    color: var(--white);
    font-weight: 700;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
}

/* Contact Section */
.contact-section {
    background: var(--white);
    padding: 80px 0;
}

.contact-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.contact-card h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: var(--secondary-color);
    margin-left: 10px;
    width: 20px;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.map-container {
    margin-top: 1.5rem;
}

.map-container {
    position: relative;
    width: 100%;
}

.map-container iframe {
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    min-height: 300px;
}

.map-placeholder {
    background: var(--light-bg);
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.map-placeholder p {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
}

.contact-form-card {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-card h2 {
    color: var(--primary-color);
    font-weight: 700;
}

.form-label {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 77, 92, 0.25);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: var(--gradient-primary);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    margin-top: 60px;
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        padding: 1.5rem;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .content-card,
    .contact-form-card {
        padding: 1.5rem;
    }
}

/* RTL/LTR Support */
[dir="ltr"] .navbar-nav .nav-link {
    margin: 0 0.5rem;
}

[dir="ltr"] .logo-img {
    margin-right: 10px;
    margin-left: 0;
}

[dir="ltr"] .info-card,
[dir="ltr"] .field-item,
[dir="ltr"] .value-item {
    border-right: none;
    border-left: 4px solid var(--secondary-color);
}

[dir="ltr"] .field-item:hover,
[dir="ltr"] .value-item:hover {
    transform: translateX(5px);
}

[dir="ltr"] .info-card i,
[dir="ltr"] .contact-info i,
[dir="ltr"] .value-item i {
    margin-right: 10px;
    margin-left: 0;
}

[dir="ltr"] .content-card h2 i {
    margin-right: 10px;
    margin-left: 0;
}

[dir="ltr"] .about-content h3 i {
    margin-right: 10px;
    margin-left: 0;
}

[dir="ltr"] .company-fields li i {
    margin-right: 1rem;
    margin-left: 0;
}

[dir="ltr"] .product-features li::before {
    margin-right: 10px;
    margin-left: 0;
}

[dir="ltr"] .carousel-control-prev {
    left: 20px;
    right: auto;
}

[dir="ltr"] .carousel-control-next {
    right: 20px;
    left: auto;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card,
.feature-card,
.product-card,
.contact-card {
    animation: fadeIn 0.6s ease-out;
}

