/* ============================================
   مكمداس للخدمات اللوجستية - تصميم احترافي
   ============================================ */

/* Google Fonts - Arabic */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

/* ========== Variables - ألوان البحر ========== */
:root {
    --primary-blue: #0066cc;
    --deep-blue: #004d99;
    --ocean-blue: #0088cc;
    --light-blue: #3399ff;
    --sky-blue: #66b3ff;
    --navy-blue: #003366;
    --teal-blue: #0099cc;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --text-gray: #666666;
}

/* ========== Global Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--dark-gray);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ========== Navigation Bar - Navbar أبيض ========== */
.navbar {
    background-color: var(--white) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 51, 102, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.15);
}

.navbar-brand {
    padding: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--navy-blue) !important;
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--ocean-blue));
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

.navbar-toggler {
    border: 2px solid var(--primary-blue);
    border-radius: 5px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* ========== Hero Section / Cover ========== */
.hero-section {
    margin-top: 76px;
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-section .carousel {
    height: 100%;
}

.hero-section .carousel-inner {
    height: 100%;
}

.hero-section .carousel-item {
    height: 100%;
    position: relative;
}

.hero-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-section .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.hero-section .carousel-caption h1 {
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-section .carousel-caption .lead {
    color: var(--sky-blue);
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    animation: fadeInUp 1.2s ease;
}

.hero-section .carousel-caption .h5 {
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.4s ease;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 102, 204, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    opacity: 1;
    background-color: var(--primary-blue);
}

.hero-section .carousel-control-prev {
    left: 30px;
}

.hero-section .carousel-control-next {
    right: 30px;
}

/* ========== Section Titles ========== */
.section-title {
    color: var(--navy-blue);
    font-weight: 700;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--ocean-blue));
    border-radius: 2px;
}

.section-title.text-center::after {
    right: 50%;
    transform: translateX(50%);
}

/* ========== About Section ========== */
#about {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    padding: 80px 0;
}

#about .about-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.2);
    transition: transform 0.3s ease;
}

#about .about-image img:hover {
    transform: scale(1.05);
}

#about p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

#about .lead {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ========== Vision, Mission, Goals Section ========== */
#vision {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--primary-blue) 100%);
    padding: 80px 0;
    color: var(--white);
}

#vision .section-title {
    color: var(--white);
}

#vision .section-title::after {
    background: var(--white);
}

.vision-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: var(--dark-gray);
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.vision-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.vision-card h3 {
    color: var(--navy-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.vision-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========== Activity Section ========== */
#activity {
    padding: 80px 0;
    background: var(--white);
}

#activity img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.2);
    transition: transform 0.3s ease;
}

#activity img:hover {
    transform: scale(1.05);
}

.activity-list {
    list-style: none;
    padding: 0;
}

.activity-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.activity-list li:hover {
    padding-right: 1rem;
    color: var(--primary-blue);
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-list li i {
    font-size: 1.5rem;
    margin-left: 1rem;
}

.activity-list li strong {
    color: var(--navy-blue);
    font-weight: 700;
}

/* ========== Services Section ========== */
#services {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 80px 0;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 51, 102, 0.1);
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.2);
    border-color: var(--primary-blue);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
}

.service-card h4 {
    color: var(--navy-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========== Contact Section ========== */
#contact {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--deep-blue) 100%);
    padding: 80px 0;
    color: var(--white);
}

#contact .section-title {
    color: var(--white);
}

#contact .section-title::after {
    background: var(--white);
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    transition: all 0.3s ease;
    color: var(--dark-gray);
    height: 100%;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.contact-item h5 {
    color: var(--navy-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-item p {
    color: var(--text-gray);
    margin: 0;
}

.contact-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--ocean-blue);
    text-decoration: underline;
}

/* ========== Footer ========== */
.footer {
    background: var(--navy-blue);
    color: var(--white);
    padding: 2rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    color: var(--white);
}

/* ========== Contact Form ========== */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-top: 3rem;
}

.contact-form-title {
    color: var(--white) !important;
    font-weight: 700;
    font-size: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: var(--navy-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1rem;
}

.form-label i {
    color: var(--primary-blue);
}

.form-control {
    border: 2px solid rgba(0, 102, 204, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--dark-gray);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: #999;
    opacity: 0.7;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
    color: var(--white);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit i {
    margin-left: 0.5rem;
}

/* Loading State */
.btn-submit.loading {
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* ========== Animations ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Smooth Scroll ========== */
html {
    scroll-behavior: smooth;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-section .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .hero-section .carousel-caption .lead {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .vision-card,
    .service-card {
        margin-bottom: 2rem;
    }
    
    .contact-info {
        padding: 2rem 1rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-section .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .carousel-caption .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .vision-card,
    .service-card {
        padding: 1.5rem;
    }
}

