/* =====================================================
   مراعي الساحل - الألوان والهوية البصرية
   Brand Colors and Identity
   ===================================================== */

:root {
    /* الألوان الأساسية */
    --primary-dark-blue: #003D7A;
    --primary-green: #7BC043;
    --primary-light-blue: #4BB3D6;
    --primary-white: #FFFFFF;
    
    /* ألوان إضافية */
    --secondary-blue: #1565C0;
    --secondary-green: #689F38;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --text-color: #333333;
    --border-color: #E0E0E0;
    
    /* الخطوط */
    --font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* الظلال */
    --box-shadow: 0 2px 10px rgba(0, 61, 122, 0.1);
    --box-shadow-hover: 0 4px 20px rgba(0, 61, 122, 0.15);
}

/* =====================================================
   العناصر الأساسية
   ===================================================== */

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: #FAFAFA;
}

/* =====================================================
   الرأس (Header)
   ===================================================== */

.navbar {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #001F4D 100%);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-green) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: var(--primary-white) !important;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* =====================================================
   الأزرار (Buttons)
   ===================================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, #689F38 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #689F38 0%, var(--primary-green) 100%);
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--primary-light-blue);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #3A9FBF;
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-dark-blue);
    color: var(--primary-dark-blue);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-dark-blue);
    color: white;
}

/* =====================================================
   البطاقات (Cards)
   ===================================================== */

.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--primary-green) 100%);
    color: white;
    border: none;
    padding: 20px;
    font-weight: 600;
}

.card-title {
    color: var(--primary-dark-blue);
    font-weight: 700;
}

/* =====================================================
   الأقسام (Sections)
   ===================================================== */

.section-title {
    color: var(--primary-dark-blue);
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-light-blue));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--primary-light-blue);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
   السلايدر (Slider)
   ===================================================== */

.slider-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow-hover);
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, var(--primary-green) 100%);
}

.slide {
    position: relative;
    display: none;
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
}

.slide.active {
    display: block;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 61, 122, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.slide-content {
    max-width: 600px;
    padding: 30px;
}

.slide-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-description {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-green);
    width: 30px;
    border-radius: 6px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 61, 122, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--primary-green);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
    left: 20px;
}

.slider-arrow-next {
    right: 20px;
}

/* =====================================================
   بطاقات المنتجات (Product Cards)
   ===================================================== */

.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-10px);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    position: relative;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-green);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
}

.product-title {
    color: var(--primary-dark-blue);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.product-price {
    color: var(--primary-green);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* =====================================================
   بطاقات الفريق (Team Cards)
   ===================================================== */

.team-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.team-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-10px);
}

.team-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    position: relative;
}

.team-info {
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 61, 122, 0.05) 0%, rgba(123, 192, 67, 0.05) 100%);
}

.team-name {
    color: var(--primary-dark-blue);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 5px;
}

.team-position {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.team-bio {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-social-link:hover {
    background: var(--primary-dark-blue);
    transform: scale(1.15);
}

/* =====================================================
   نماذج الاتصال (Contact Forms)
   ===================================================== */

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(123, 192, 67, 0.25);
}

.form-label {
    color: var(--primary-dark-blue);
    font-weight: 600;
    margin-bottom: 8px;
}

/* =====================================================
   التذييل (Footer)
   ===================================================== */

footer {
    background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #001F4D 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-title {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.8;
}

.footer-link:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

.footer-divider {
    border-top: 2px solid rgba(123, 192, 67, 0.3);
    margin-top: 30px;
    padding-top: 20px;
}

/* =====================================================
   الحالات الخاصة (Special Cases)
   ===================================================== */

.badge-primary {
    background: var(--primary-green);
}

.badge-secondary {
    background: var(--primary-light-blue);
}

.alert-success {
    background: rgba(123, 192, 67, 0.1);
    border: 2px solid var(--primary-green);
    color: var(--primary-dark-blue);
}

.alert-info {
    background: rgba(75, 179, 214, 0.1);
    border: 2px solid var(--primary-light-blue);
    color: var(--primary-dark-blue);
}

/* =====================================================
   التأثيرات والحركات (Effects and Animations)
   ===================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(123, 192, 67, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(123, 192, 67, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(123, 192, 67, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

/* =====================================================
   الوسائط (Media Queries)
   ===================================================== */

@media (max-width: 768px) {
    .slide-title {
        font-size: 32px;
    }
    
    .slide-description {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .navbar-brand {
        font-size: 20px;
    }
}

/* =====================================================
   مثيرات الاهتمام (Highlights)
   ===================================================== */

.highlight {
    background: linear-gradient(120deg, rgba(123, 192, 67, 0.1), rgba(75, 179, 214, 0.1));
    padding: 20px;
    border-left: 4px solid var(--primary-green);
    border-radius: 8px;
}

.text-primary {
    color: var(--primary-dark-blue) !important;
}

.text-green {
    color: var(--primary-green) !important;
}

.text-light-blue {
    color: var(--primary-light-blue) !important;
}

.bg-light-primary {
    background: rgba(0, 61, 122, 0.05);
}

.bg-light-green {
    background: rgba(123, 192, 67, 0.05);
}

.border-primary {
    border-color: var(--primary-dark-blue) !important;
}

.border-green {
    border-color: var(--primary-green) !important;
}
