/* Fonts */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Cairo', sans-serif;
    /* For Arabic */

    /* Colors - Light Mode */
    --primary-color: #101828;
    /* Navy */
    --primary-light: #1A2436;
    --accent-color: #D32F2F;
    /* Red */
    --accent-hover: #B71C1C;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-alt: #F8F9FA;
    --card-bg: #FFFFFF;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --border-color: #E5E7EB;

    /* Status Colors */
    --color-food: #E57373;
    --color-grocery: #81C784;
    --color-med: #64B5F6;
    --color-parcel: #FFB74D;
}

[data-bs-theme="dark"] {
    /* Colors - Dark Mode */
    --primary-color: #3b82f6;
    /* Lighter blue for dark mode contrast */
    --primary-light: #60a5fa;
    --accent-color: #ef4444;
    --accent-hover: #dc2626;
    --text-color: #f3f4f6;
    --text-light: #9ca3af;
    --bg-color: #0B1120;
    --bg-alt: #111827;
    --card-bg: #1F2937;
    --nav-bg: rgba(11, 17, 32, 0.95);
    --border-color: #374151;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Arabic Support */
body.rtl {
    direction: rtl;
    text-align: right;
    font-family: var(--font-secondary);
}

body.rtl .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

body.rtl .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Navbar */
.navbar {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-outline-primary {
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-outline-primary:hover {
    background-color: var(--bg-alt);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-color) 100%);
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: linear-gradient(45deg, var(--accent-color), #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-img {
    border: 5px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

/* Services */
.bg-light-alt {
    background-color: var(--bg-alt);
}

.section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 320px;
    /* Increased height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 90px;
    /* Larger icons */
    height: 90px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
}

.bg-red-soft {
    background-color: rgba(229, 115, 115, 0.1);
}

.text-red {
    color: #E53935;
}

.bg-green-soft {
    background-color: rgba(129, 199, 132, 0.1);
}

.text-green {
    color: #43A047;
}

.bg-blue-soft {
    background-color: rgba(100, 181, 246, 0.1);
}

.text-blue {
    color: #1E88E5;
}

.bg-orange-soft {
    background-color: rgba(255, 183, 77, 0.1);
}

.text-orange {
    color: #FB8C00;
}

/* Feature Highlight */
.feature-highlight {
    background: linear-gradient(135deg, #101828, #1A2436);
    position: relative;
    z-index: 1;
    padding: 3rem !important;
}

/* Ensure text in the dark box is always white regardless of theme */
[data-bs-theme="dark"] .feature-highlight .text-white,
[data-bs-theme="light"] .feature-highlight .text-white {
    color: #fff !important;
}

.overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

/* Contact Form */
.form-control {
    background-color: var(--bg-alt);
    border-color: var(--border-color);
    color: var(--text-color);
    padding: 1rem;
}

.form-control:focus {
    background-color: var(--bg-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.15);
    color: var(--text-color);
}

/* Footer */
.footer-custom {
    background-color: #05080f;
    /* Always dark */
}

.footer-logo-container {
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

.footer-logo {
    transition: opacity 0.3s;
    max-height: 60px;
    /* Removed filter to show original logo colors on white bg */
}

.hover-white:hover {
    color: #fff !important;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--bg-color);
        padding: 1rem;
        border-radius: 0 0 1rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

    .hero-img {
        margin-top: 3rem;
    }
}