/* assets/css/style.css */

:root {
    --brand-yellow: #FFF200;
    --brand-black: #000000;
    --brand-grey: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: var(--brand-grey);
}

/* --- 1. BRANDING UTILITIES --- */
.text-brand-yellow { color: var(--brand-yellow) !important; }
.bg-brand-black { background-color: var(--brand-black) !important; }

/* LOGO HANDLING */
.navbar-brand img, footer img {
    max-height: 50px;
    width: auto;
}

/* --- 2. INDUSTRIAL BUTTONS (Square) --- */
.btn-brand {
    background-color: var(--brand-yellow);
    color: var(--brand-black);
    font-weight: 800;
    border: 3px solid var(--brand-black); /* Thicker border */
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: 0px; /* SHARP EDGES */
    transition: all 0.2s ease;
}

.btn-brand:hover {
    background-color: var(--brand-black);
    color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    transform: translateY(-2px);
}

.btn-outline-dark, .btn-outline-light {
    border-radius: 0px; /* SHARP EDGES */
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    border-width: 2px;
}

/* --- 3. THE ROAD DIVIDER --- */
.road-divider {
    height: 16px;
    background-color: var(--brand-yellow);
    background-image: linear-gradient(90deg, var(--brand-black) 50%, transparent 50%);
    background-size: 60px 100%;
    width: 100%;
    margin: 0;
    border-top: 3px solid var(--brand-black);
    border-bottom: 3px solid var(--brand-black);
    position: relative;
    z-index: 10;
}

/* --- 4. HERO SECTION --- */
.hero-section {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 140px 0;
    min-height: 600px;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; }

/* --- 5. INDUSTRIAL ACTION CARDS (Square) --- */
.action-card {
    border: 1px solid #e0e0e0;
    border-bottom: 6px solid var(--brand-black);
    border-radius: 0px; /* SHARP EDGES */
    transition: transform 0.3s, border-color 0.3s;
    background: #fff;
}
.action-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--brand-yellow);
}
.icon-circle {
    width: 90px; height: 90px;
    background-color: var(--brand-yellow);
    color: var(--brand-black);
    border-radius: 50%; /* Circle remains okay for icons */
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px auto;
    border: 3px solid var(--brand-black);
}


/* --- 7. INDUSTRIAL SHADOWS (For About Us Image) --- */
.img-industrial-shadow {
    box-shadow: 15px 15px 0px var(--brand-black) !important; /* Hard, black shadow */
    border: 3px solid var(--brand-black) !important;
}

/* --- 8. FOOTER --- */
footer {
    border-top: 8px solid var(--brand-yellow);
}
/* Import Google Font: Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;700;900&display=swap');

body {
    /* Cairo is excellent for Arabic & English UI */
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; 
    background-color: #ffffff;
    color: var(--brand-grey);
}
/* --- 8. LOGO MARQUEE (New Rotating Section) --- */
.logo-slider {
    overflow: hidden;
    padding: 60px 0;
    background: white;
    white-space: nowrap;
    position: relative;
}

.logo-slider:before,
.logo-slider:after {
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    content: "";
    z-index: 2;
}

.logo-slider:before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.logo-slider:after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.logo-track {
    display: inline-block;
    animation: 35s slide-logos infinite linear;
}

.partner-logo {
    height: 60px; /* Controls logo size */
    margin: 0 50px;
    opacity: 0.5;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

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

/* Animation Keyframes */
@keyframes slide-logos {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* RTL Support for Arabic (Reverses direction) */
html[dir="rtl"] .logo-track {
    animation: 35s slide-logos-rtl infinite linear;
}

@keyframes slide-logos-rtl {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
/* --- 8. STATIC PARTNER CAROUSEL --- */
.partner-logo-static {
    height: 60px; /* Consistent height */
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Customizing the "Dots" (Bootstrap Indicators) */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%; /* Make them dots, not lines */
    background-color: var(--brand-black);
    border-top: none;
    border-bottom: none;
    opacity: 0.3;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: var(--brand-yellow); /* Yellow dot for active page */
    opacity: 1;
    transform: scale(1.2);
}

/* Add spacing so dots don't overlap logos */
.carousel-indicators {
    position: relative; /* Moves them below the logos */
    margin-top: 30px;
}
/* --- 9. NEWSROOM SECTION --- */
.news-card {
    background: #fff;
    border: 1px solid #ddd; /* Light grey border like Lynden */
    transition: all 0.3s ease;
    height: 100%; /* Ensures all cards are same height */
    text-decoration: none; /* Removes underline from links */
    display: block;
}

.news-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--brand-yellow); /* Yellow border on hover */
    transform: translateY(-5px);
}

.news-img-container {
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
    position: relative;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers area without stretching */
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.news-body {
    padding: 20px;
    color: var(--brand-grey);
}

.news-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}
/* --- 10. ABOUT PAGE STYLES --- */

.about-summary-card,
.about-objective-card,
.about-goal-card,
.about-sector-card,
.about-highlight {
    border: 1px solid #ddd;
    border-radius: 0;
}

.about-summary-card {
    border-left: 8px solid var(--brand-yellow);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.06);
}

html[dir="rtl"] .about-summary-card {
    border-left: 1px solid #ddd;
    border-right: 8px solid var(--brand-yellow);
}

.about-summary-card p:last-child,
.about-sector-card li:last-child {
    margin-bottom: 0 !important;
}

.about-stat-card {
    background: var(--brand-black);
    border-bottom: 5px solid var(--brand-yellow);
}

.about-objective-card {
    border-bottom: 6px solid var(--brand-black);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.about-objective-icon,
.about-goal-icon {
    width: 64px;
    height: 64px;
    background: var(--brand-yellow);
    color: var(--brand-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    border: 2px solid var(--brand-black);
}

.about-goal-card {
    border-bottom: 5px solid var(--brand-black);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-goal-card:hover {
    transform: translateY(-4px);
    border-bottom-color: var(--brand-yellow);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.about-sector-card {
    border-left: 6px solid var(--brand-yellow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

html[dir="rtl"] .about-sector-card {
    border-left: 1px solid #ddd;
    border-right: 6px solid var(--brand-yellow);
}

.about-highlight {
    background: linear-gradient(135deg, #111111 0%, #2b2b2b 100%);
    border-left: 8px solid var(--brand-yellow);
    color: #ffffff;
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.08);
}

html[dir="rtl"] .about-highlight {
    border-left: 1px solid #ddd;
    border-right: 8px solid var(--brand-yellow);
}

.about-highlight .fs-2 {
    color: #ffffff;
}

/* The Wide Mission Buttons */
.mission-btn-group .btn {
    border-radius: 0;
    font-size: 1.2rem;
    padding: 15px 0;
    font-weight: 800;
    text-transform: uppercase;
}

/* The Story Section (Parallax with White Box) */
.story-section {
    background-image: url('../img/about-story-bg.jpg'); /* You need this image */
    background-attachment: fixed; /* Creates the parallax effect */
    background-position: center;
    background-size: cover;
    padding: 120px 0;
    position: relative;
}

.story-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-left: 10px solid var(--brand-yellow); /* The yellow accent line */
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* RTL Support for Story Card Border */
html[dir="rtl"] .story-card {
    border-left: none;
    border-right: 10px solid var(--brand-yellow);
}

/* Team Section (Industrial Grid) */
.team-card {
    border: 1px solid #ddd;
    background: #fff;
    transition: all 0.3s;
}

.team-card:hover {
    border-color: var(--brand-black);
    box-shadow: 10px 10px 0 var(--brand-yellow); /* Hard yellow shadow */
    transform: translateY(-5px);
}

.team-img-container {
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.team-card:hover .team-img {
    filter: grayscale(0%);
}

.team-role {
    color: var(--brand-grey);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 2px solid var(--brand-yellow);
    display: inline-block;
    padding-top: 5px;
    margin-top: 5px;
}

/* --- 11. SOLUTIONS PAGES STYLES --- */

/* Feature Cards */
.feature-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-bottom: 4px solid var(--brand-black);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--brand-yellow);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--brand-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-black);
    border: 2px solid var(--brand-black);
}

/* CTA Section Overlay */
.cta-section {
    position: relative;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* Process Steps (How it works) */
.process-step {
    padding: 30px;
}

.process-number {
    width: 70px;
    height: 70px;
    background: var(--brand-yellow);
    color: var(--brand-black);
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid var(--brand-black);
}

/* Driver Type Cards */
.driver-type-card {
    border: 2px solid transparent;
    border-bottom: 5px solid var(--brand-black);
    transition: all 0.3s ease;
}

.driver-type-card:hover {
    border-color: var(--brand-yellow);
    transform: translateY(-3px);
}

.driver-type-icon {
    width: 60px;
    height: 60px;
    background: var(--brand-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--brand-black);
    border: 2px solid var(--brand-black);
}

/* Benefit Cards (Dark Background) */
.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: rgba(255, 242, 0, 0.1);
    border-color: var(--brand-yellow);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--brand-black);
}

/* Testimonial Cards */
.testimonial-card {
    border: 1px solid #e0e0e0;
    border-left: 5px solid var(--brand-yellow);
    transition: all 0.3s ease;
}

html[dir="rtl"] .testimonial-card {
    border-left: 1px solid #e0e0e0;
    border-right: 5px solid var(--brand-yellow);
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid var(--brand-yellow);
}

/* Dashed Border Utility */
.border-dashed {
    border-style: dashed !important;
}

/* Stats Section */
.stat-number {
    line-height: 1;
}

.stat-label {
    letter-spacing: 1px;
}

/* Dropdown Menu Dark Theme */
.dropdown-menu-dark {
    background-color: var(--brand-black);
    border: 1px solid var(--brand-yellow);
    border-radius: 0;
}

.dropdown-menu-dark .dropdown-item {
    color: #fff;
    padding: 10px 20px;
}

.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
    background-color: var(--brand-yellow);
    color: var(--brand-black);
}

.dropdown-menu-dark .dropdown-item.active {
    background-color: var(--brand-yellow);
    color: var(--brand-black);
}

/* --- 12. CONTACT PAGE STYLES --- */

/* Contact Form Card */
.contact-form-card {
    border-bottom: 5px solid var(--brand-black) !important;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border-radius: 0;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--brand-yellow);
    box-shadow: none;
}

/* Contact Info Card */
.contact-info-card {
    border: 3px solid var(--brand-yellow) !important;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--brand-yellow);
    color: var(--brand-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Social Links */
.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--brand-yellow);
    color: var(--brand-black);
}

/* Map Container */
.map-container {
    border: 3px solid var(--brand-black);
}

.map-container iframe {
    display: block;
}
