@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
    --primary-color: #0B6B3A;
    --primary-dark: #074525;
    --primary-light: #e8f5e9;
    --accent-color: #D4AF37;
    --accent-dark: #b89220;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-color: #e9ecef;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Global Styles */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--dark-color);
    background-color: #ffffff;
    overflow-x: hidden;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.75rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 107, 58, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.75rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.75rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Header & Sticky Navbar */
.top-bar {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
}

.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    z-index: 1000;
}

.navbar.sticky {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
}

.navbar-brand-text {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-link {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: var(--dark-color) !important;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(7, 69, 37, 0.9) 0%, rgba(17, 17, 17, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-accent {
    color: var(--accent-color);
}

/* Sections General */
.section-padding {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.25rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards & Hover Effects */
.custom-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.custom-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

/* Features Cards */
.feature-card {
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: rotateY(180deg);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #ffffff;
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-right::after {
    left: -8px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: #ffffff;
    position: relative;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

/* Quality Badges */
.badge-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background-color: #ffffff;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.badge-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.badge-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Animated Counters */
.counter-section {
    background: linear-gradient(rgba(11, 107, 58, 0.9), rgba(7, 69, 37, 0.95)), url('../img/hero_cargo.jpg') center/cover fixed;
    color: #ffffff;
    padding: 80px 0;
}

.counter-item {
    text-align: center;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: 'Cairo', sans-serif;
}

.counter-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonial Slider */
.testimonial-section {
    background-color: var(--light-color);
}

.testimonial-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.testimonial-user {
    display: flex;
    align-items: center;
}

.testimonial-user img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-user-rtl img {
    margin-right: 0 !important;
    margin-left: 15px !important;
}

.testimonial-name {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.testimonial-company {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Partner Logos */
.partner-logo {
    opacity: 0.5;
    filter: grayscale(100%);
    transition: var(--transition);
    max-height: 60px;
    object-fit: contain;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Accordion Customization */
.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.accordion-button {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: var(--primary-dark);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(11, 107, 58, 0.1);
}

/* Footer */
.footer {
    background-color: #111111;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 20px;
    border-top: 4px solid var(--accent-color);
}

.footer-title {
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    width: 45px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.footer-title-rtl::after {
    left: auto;
    right: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-links-rtl a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--accent-color);
    margin-right: 10px;
    margin-top: 4px;
}

.footer-contact-rtl i {
    margin-right: 0;
    margin-left: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    right: 30px;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-5px);
}

/* Page Header */
.page-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: #ffffff;
    text-align: center;
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(7, 69, 37, 0.85), rgba(17, 17, 17, 0.85));
    z-index: 1;
}

.page-banner-content {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.breadcrumb {
    justify-content: center;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.active {
    color: var(--accent-color);
}

/* Contact Info Box */
.contact-info-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    height: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-item-rtl .info-icon {
    margin-right: 0 !important;
    margin-left: 15px !important;
}

.info-content h5 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--primary-dark);
}

.info-content p {
    margin: 0;
    color: var(--gray-color);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(11, 107, 58, 0.15);
}

/* Product Detail Gallery */
.product-gallery {
    margin-bottom: 2rem;
}

.product-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
    height: 400px;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
}

.product-thumb {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    height: 80px;
    transition: var(--transition);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb.active, .product-thumb:hover {
    border-color: var(--primary-color);
    opacity: 0.8;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-light);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll reveal helper */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* PWA App Promo Bar */
.pwa-install-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--primary-dark);
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 998;
    display: none;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 40px);
    max-width: 400px;
}

.pwa-install-banner button {
    margin-left: 10px;
}

/* Media Queries */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .timeline::after {
        left: 31px;
    }
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-container::after {
        left: 20px;
        right: auto;
    }
    .timeline-right {
        left: 0%;
    }
    .timeline-right::after {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
    .hero-section {
        height: auto;
        padding: 120px 0 80px;
    }
}
