/* ============================================
   الرائد لاستيراد معدات الطاقة الشمسية والمتجددة
   ملف التصميم الرئيسي
   ============================================ */

:root {
    --primary-color: #f39c12;
    --secondary-color: #2c3e50;
    --accent-color: #e67e22;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, h1, h2, h3, h4, h5, h6, p, a, span, div, li, ul, ol, button, input, textarea, select {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 76px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    padding: 0;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    white-space: nowrap;
    line-height: 1.2;
}

@media (max-width: 992px) {
    .logo-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 0.8rem;
    }
    
    .navbar-brand {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .logo-img {
        margin-bottom: 0.25rem !important;
        margin-right: 0 !important;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    position: relative;
    min-height: 90vh;
    background-image: url('../../cover.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(243, 156, 18, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-section p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    position: relative;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    margin-top: 76px;
}

.page-header h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* ============================================
   Sections
   ============================================ */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* ============================================
   Features Section
   ============================================ */

.features-section {
    background-color: var(--white);
}

.feature-card {
    background: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   Services Preview
   ============================================ */

.service-preview-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-preview-img {
    height: 250px;
    overflow: hidden;
}

.service-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-preview-card:hover .service-preview-img img {
    transform: scale(1.1);
}

.service-preview-content h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-preview-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
    background-color: var(--white);
}

.service-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.service-image-wrapper img {
    transition: transform 0.3s ease;
}

.service-image-wrapper:hover img {
    transform: scale(1.05);
}

.service-content h2 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.service-content .lead {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.service-features li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.service-features i {
    font-size: 1.2rem;
}

/* ============================================
   About Section
   ============================================ */

.about-section {
    background-color: var(--white);
}

.about-card {
    background: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.about-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-card h3 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.goal-item {
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.goal-item:hover {
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.goal-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.goal-item h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.goal-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   Values Section
   ============================================ */

.values-section {
    background-color: var(--bg-light);
}

.value-card {
    background: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-card h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
    background-color: var(--white);
}

.contact-card {
    background: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h5 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-light);
    margin: 0;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--accent-color);
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.cta-section h2 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--secondary-color) !important;
    margin-top: 3rem;
}

.footer h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        background-attachment: scroll;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header {
        padding: 100px 0 40px;
    }

    .logo-img {
        height: 50px;
    }

    .service-content h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-icon,
    .about-icon,
    .contact-icon,
    .value-icon {
        font-size: 2.5rem;
    }
}

/* ============================================
   Utilities
   ============================================ */

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.rounded {
    border-radius: 0.5rem !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

