/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Variables */
    --primary-gold: #d4af37;
    --primary-platinum: #e5e4e2;
    --dark-bg: #121212;
    --dark-secondary: #1e1e1e;
    --text-light: #ffffff;
    --text-dark: #121212;
    --text-muted: #888888;
    --accent-gold-light: #f5e7a3;
    --accent-platinum-light: #f5f5f5;
    --gradient-dark: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f5e7a3 100%);
    --gradient-platinum: linear-gradient(135deg, #e5e4e2 0%, #ffffff 100%);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.5);
    
    /* Spacing Variables */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Animation Speed */
    --transition-fast: 0.2s;
    --transition-medium: 0.3s;
    --transition-slow: 0.5s;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

body.ar {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast) ease;
}

a:hover {
    color: var(--primary-gold);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary-gold);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-secondary {
    background: var(--primary-platinum);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--accent-platinum-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: var(--text-dark);
}

/* Language Switch Button */
.lang-btn {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--primary-gold);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    font-weight: 500;
}

.lang-btn:hover {
    background: var(--primary-gold);
    color: var(--text-dark);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition-medium) ease;
}

header.scrolled {
    box-shadow: var(--shadow-dark);
}

nav {
    padding: var(--spacing-sm) 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
}

.logo img {
    height: 130%;
    width: auto;
}

.nav-items ul {
    display: flex;
    gap: var(--spacing-md);
}

.nav-items a {
    font-weight: 500;
    position: relative;
    padding: var(--spacing-xs) 0;
}

.nav-items a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: width var(--transition-medium) ease;
}

body.ar .nav-items a::after {
    left: auto;
    right: 0;
}

.nav-items a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-light);
    transition: all var(--transition-fast) ease;
}

/* Hero Section */
.hero-section {
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-md);
}

.app-download {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.app-btn {
    height: 50px;
    transition: transform var(--transition-fast) ease;
}

.app-btn:hover {
    transform: translateY(-3px);
}

.app-btn img {
    height: 100%;
    width: auto;
}

.abstract-shape {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    z-index: 1;
}

body.ar .abstract-shape {
    right: auto;
    left: -200px;
}

.app-showcase {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup {
    max-height: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-slow) ease;
}

.mockup:hover {
    transform: translateY(-10px);
}

/* Services Section */
.services-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--dark-secondary);
    position: relative;
    overflow: hidden;
}

.services-section.business {
    background-color: var(--dark-bg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-sm);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-gold);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.service-item {
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    transition: all var(--transition-medium) ease;
    border: 1px solid rgba(229, 228, 226, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-icon {
    margin-bottom: var(--spacing-sm);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.service-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.service-item p {
    color: var(--text-muted);
}

.service-showcase {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

/* About Section */
.about-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--dark-bg);
    position: relative;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.value-item {
    text-align: center;
    padding: var(--spacing-md);
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-medium) ease;
    border: 1px solid rgba(229, 228, 226, 0.1);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
    border-color: rgba(212, 175, 55, 0.3);
}

.value-icon {
    margin: 0 auto var(--spacing-sm);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
}

.value-icon i {
    font-size: 1.8rem;
    color: var(--primary-gold);
}

.value-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.value-item p {
    color: var(--text-muted);
}

/* How It Works Section */
.how-it-works-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--dark-secondary);
    position: relative;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 var(--spacing-sm);
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 35px;
    right: -30px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-gold), rgba(212, 175, 55, 0.3));
}

body.ar .step:not(:last-child)::after {
    right: auto;
    left: -30px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.3), var(--primary-gold));
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-gold);
    color: var(--text-dark);
    border-radius: 50%;
    font-weight: 700;
    margin: 0 auto var(--spacing-sm);
}

.step-icon {
    margin: 0 auto var(--spacing-sm);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
}

.step-icon i {
    font-size: 1.8rem;
    color: var(--primary-gold);
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.step p {
    color: var(--text-muted);
}

.how-it-works-showcase {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-lg);
}

/* Features Section */
.features-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--dark-bg);
    position: relative;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature {
    padding: var(--spacing-md);
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-medium) ease;
    border: 1px solid rgba(229, 228, 226, 0.1);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
    border-color: rgba(212, 175, 55, 0.3);
}

.feature-icon {
    margin-bottom: var(--spacing-sm);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.feature h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.feature p {
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.8)), url('../assets/images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
}

.cta-section .app-download {
    justify-content: center;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--dark-secondary);
    position: relative;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
}

.contact-item {
    text-align: center;
    padding: var(--spacing-md);
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-medium) ease;
    border: 1px solid rgba(229, 228, 226, 0.1);
    min-width: 250px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
    border-color: rgba(212, 175, 55, 0.3);
}

.contact-icon {
    margin: 0 auto var(--spacing-sm);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.contact-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.contact-item a {
    color: var(--text-muted);
    transition: color var(--transition-fast) ease;
}

.contact-item a:hover {
    color: var(--primary-gold);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    padding-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(229, 228, 226, 0.1);
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.footer-logo img {
    max-width: 110px;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
}

.footer-column h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-column a {
    color: var(--text-muted);
    transition: color var(--transition-fast) ease;
}

.footer-column a:hover {
    color: var(--primary-gold);
}

.footer-cta {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.footer-cta .app-download {
    margin-top: var(--spacing-sm);
}

.footer-cta .app-btn img {
    height: 35px; /* Slightly smaller in footer */
}

.footer-bottom {
    padding: var(--spacing-md) 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content, .hero-image {
        flex: none;
        width: 100%;
    }
    
    .app-download {
        justify-content: center;
    }
    
    .app-showcase {
        height: 400px;
    }
    
    .steps-container {
        flex-wrap: wrap;
        gap: var(--spacing-lg);
    }
    
    .step {
        flex: 1 1 45%;
        min-width: 250px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .contact-info {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-items {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .services-container, 
    .about-values, 
    .features-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        width: 100%;
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-cta {
        align-items: center;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .app-download {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .app-btn img {
        height: 45px; /* Slightly larger on mobile for better touch targets */
    }
    
    .step {
        flex: 1 1 100%;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Utility Classes for Animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    animation: fadeInUp 0.8s ease forwards;
}

.shimmer-effect {
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0.1), 
        rgba(212, 175, 55, 0.2), 
        rgba(212, 175, 55, 0.1)
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

/* Enhanced Elements Animation */
.hero-content h1 {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.2s;
}

.hero-content p {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.4s;
}

.hero-content .tagline {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-content .app-download {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

/* App Download Buttons */
.app-download {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.app-btn {
    display: inline-block;
}

.app-btn img {
    height: 40px;
    width: auto;
    transition: transform var(--transition-fast) ease;
    object-fit: contain; /* Ensures aspect ratio is maintained */
}

/* Ensure Arabic badges have the same size */
body.ar .app-btn img {
    height: 40px;
}

.app-btn:hover img {
    transform: scale(1.05);
}

.btn:hover {
    animation: pulse 1s ease infinite;
}
