/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette from Logo */
    --primary-dark: #0B132B;
    --secondary-blue: #2D9CDB;
    --accent-orange: #F2994A;
    --off-white: #F9FAFB;
    --light-gray: #E0E0E0;
    --text-gray: #4F4F4F;
    /* Typography */
    --heading-font: 'Poppins', 'Cairo', sans-serif;
    --body-font: 'Cairo', 'Inter', 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--off-white);
    color: var(--text-gray);
    line-height: 1.6;
    direction: rtl;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--secondary-blue);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: var(--heading-font);
}

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

.btn-primary:hover {
    background-color: #e6893a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(242, 153, 74, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

.btn-secondary:hover {
    background-color: var(--secondary-blue);
    color: white;
}

.btn-login {
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--light-gray);
}

.btn-login:hover {
    border-color: var(--secondary-blue);
    color: var(--secondary-blue);
}

.btn-signup {
    background-color: var(--accent-orange);
    color: white;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ===== Navigation Bar ===== */
.navbar {
    background-color: white;
    box-shadow: 0 4px 12px rgba(11, 19, 43, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.logo i {
    color: var(--secondary-blue);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-dark);
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-blue);
    border-radius: 2px;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    padding: 5rem 1rem;
    background: linear-gradient(135deg, #f9fafb 0%, #edf2f7 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

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

.hero-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(11, 19, 43, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    border: 8px solid white;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--primary-dark);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    color: var(--secondary-blue);
    font-size: 1.5rem;
}

.floating-card .price {
    color: var(--accent-orange);
    margin-right: auto;
}

.card1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card2 {
    bottom: 20%;
    right: -5%;
    animation-delay: 2s;
}

.card3 {
    bottom: 5%;
    left: 5%;
    animation-delay: 4s;
}

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

/* ===== Features Section ===== */
.features {
    padding: 6rem 1rem;
    background-color: white;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background-color: var(--off-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--light-gray);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(45, 156, 219, 0.1);
    border-color: var(--secondary-blue);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(45, 156, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--secondary-blue);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ===== CTA Section ===== */
.cta {
    padding: 6rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #162544 100%);
    color: white;
}

.cta h2 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

.cta .btn-primary:hover {
    box-shadow: 0 10px 30px rgba(242, 153, 74, 0.4);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-dark);
    color: var(--light-gray);
    padding: 4rem 1rem 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a:hover {
    color: var(--secondary-blue);
}

.footer-about {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--secondary-blue);
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

.footer-bottom i.fa-heart {
    color: var(--accent-orange);
    margin: 0 5px;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .stats {
        justify-content: center;
    }
    .hero-image img {
        max-width: 90%;
    }
    .floating-card {
        display: none; /* لإخفاءها على الشاشات الصغيرة */
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
        z-index: 999;
    }
    .nav-menu.show {
        right: 0;
    }
    .nav-link {
        padding: 1.5rem;
        display: block;
    }
    .nav-buttons {
        display: none; /* يمكن إظهارها في القائمة المنسدلة إذا أردت */
    }
    .hamburger {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .cta h2 {
        font-size: 2.2rem;
    }
}
