:root {
    --primary: #3c8773;
    --primary-dark: #2d6557;
    --secondary: #22252A;
    --light: #F8F9FA;
    --dark: #111111;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
    
    --bg-color: var(--light);
    --text-color: var(--text-primary);
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
    --heading-color: var(--secondary);
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --text-primary: #f0f0f0;
    --text-secondary: #aaaaaa;
    --card-bg: #2a2a2a;
    --card-border: #444444;
    --heading-color: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.map-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: grayscale(100%) contrast(80%) brightness(110%);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

body.dark-mode .map-background {
    filter: grayscale(100%) contrast(70%) brightness(40%) invert(0.8);
    opacity: 0.4;
}

.bg-surface { 
    background: #fefefe !important; 
}

.social-icon {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    border: none;
    outline: none;
}

@keyframes moveTruck {
    0% {
        left: -60px;
        transform: translateX(0) scale(1);
    }
    100% {
        left: calc(100% + 60px);
        transform: translateX(0) scale(1);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 0;
}

.main-centered {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo-container {
    margin-bottom: 40px;
    transform: translateY(-20px);
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(-20px);
    }
    50% {
        transform: translateY(0px);
    }
}

.logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--light);
    box-shadow: 0 10px 30px rgba(60, 135, 115, 0.35);
    transition: background-color 0.3s ease;
}

body.dark-mode .logo {
    background-color: var(--dark);
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(60, 135, 115, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

body.dark-mode .badge {
    background-color: rgba(60, 135, 115, 0.2);
}

h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--heading-color);
    line-height: 1.2;
}

h1 span {
    color: var(--primary);
    transition: color 0.3s ease;
}

body.dark-mode h1 span {
    color: #4ca892;
}

.description {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.cta-container {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
}

.feature {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 240px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(60, 135, 115, 0.1);
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

body.dark-mode .feature-icon {
    background-color: rgba(60, 135, 115, 0.25);
}

.feature-icon i {
    font-size: 24px;
    color: var(--primary);
    transition: color 0.3s ease;
}

body.dark-mode .feature-icon i {
    color: #4ca892; /* Lighter version of primary for better visibility */
}

.feature h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--heading-color);
    width: 100%;
    text-align: center;
}

.feature p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.newsletter {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.newsletter h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.newsletter p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(60, 135, 115, 0.2);
}

.countdown-container {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    transition: color 0.3s ease;
}

body.dark-mode .countdown-value {
    color: #4ca892; /* Lighter version of primary for better visibility */
}

.countdown-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.page-content {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.page-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.page-content h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.page-content h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.page-content h4 {
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.page-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.page-content ul {
    margin-bottom: 15px;
    margin-left: 20px;
}

.page-content li {
    margin-bottom: 5px;
    line-height: 1.6;
}

.page-content a {
    color: var(--primary);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

footer {
    background-color: var(--secondary);
    color: var(--light);
    padding: 60px 0 30px;
    transition: background-color 0.3s ease;
}

body.dark-mode footer {
    background-color: #111111;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-download {
    margin-bottom: 30px;
}

.app-download p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.store-button img {
    height: 40px;
    transition: var(--transition);
}

.store-button:hover img {
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icon {
    display: block;
    transition: var(--transition);
}

.social-icon img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: rgba(60, 135, 115, 0.1);
}

.social-icon:hover {
    transform: translateY(-3px);
}

.footer-text {
    max-width: 600px;
    margin: 0 auto;
}

.footer-text p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.copyright {
    margin-top: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    
    .description {
        font-size: 16px;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature {
        width: 100%;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-value {
        font-size: 28px;
    }
    
    .page-content {
        padding: 30px;
    }
    
    .page-content h1 {
        font-size: 28px;
    }
    
    .page-content h2 {
        font-size: 22px;
    }
    
    .page-content h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 150px;
        height: 150px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .badge {
        font-size: 12px;
    }
    
    .countdown-container {
        gap: 8px;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-value {
        font-size: 24px;
    }
    
    .countdown-label {
        font-size: 12px;
    }
    
    .store-buttons {
        flex-direction: row;
        align-items: center;
    }
    
    .page-content {
        padding: 20px;
    }
    
    .page-content h1 {
        font-size: 24px;
    }
    
    .page-content h2 {
        font-size: 20px;
    }
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    border: 1px solid #e0e0e0;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-auth:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-auth i {
    font-size: 20px;
}

.google-icon {
    width: 18px;
    height: 18px;
    margin-right: -2px;
}

.btn-google {
    background: white;
    color: #757575;
    border: 1px solid #ddd;
}

.btn-google:hover {
    background: #f8f8f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

body.dark-mode .btn-google {
    background: white;
    color: #757575;
    border: 1px solid #ddd;
}

body.dark-mode .btn-google:hover {
    background: #f8f8f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.btn-apple {
    background: black;
    color: white;
    border: 1px solid black;
}

.btn-apple:hover {
    background: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.lang-toggle {
    position: fixed;
    top: 20px;
    right: 80px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.lang-toggle i {
    font-size: 20px;
    color: #4285F4; /* Google blue color */
}

.theme-toggle:hover, .lang-toggle:hover {
    transform: scale(1.05);
}

.theme-toggle i {
    font-size: 18px;
}

/* RTL Support for Arabic */
html[lang="ar"] {
    direction: rtl;
}

html[lang="ar"] .social-links,
html[lang="ar"] .store-buttons,
html[lang="ar"] .countdown-container {
    flex-direction: row-reverse;
}

html[lang="ar"] .btn-auth {
    flex-direction: row-reverse;
}

html[lang="ar"] .feature-icon {
    margin-left: 0;
}

/* Language-specific adjustments */
html[lang="ar"] .btn {
    font-family: 'Tajawal', sans-serif;
}

html[lang="ar"] *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-brands) {
    font-family: 'Tajawal', sans-serif;
}

/* Preserve Font Awesome icons in RTL */
html[lang="ar"] .fas,
html[lang="ar"] .fa-brands,
html[lang="ar"] .fa-solid,
html[lang="ar"] .fa-regular,
html[lang="ar"] .fa,
html[lang="ar"] .fab,
html[lang="ar"] .far {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'Font Awesome 6 Solid', 'Font Awesome 5 Free', 'Font Awesome 5 Brands' !important;
} 