@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap");

:root {
    --primary-color: #2caa9e;
    --secondary-color: #123984;
    --accent-color: #1c679e;
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-main: linear-gradient(135deg, #2caa9e 0%, #1c679e 100%);
    --gradient-hover: linear-gradient(135deg, #25958a 0%, #165582 100%);
}

body {
    font-family: "Cairo", sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    direction: rtl; /* For Arabic */
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light) !important;
}
.nav-link {
    color: var(--text-muted) !important;
    font-weight: 600;
    margin-left: 1rem;
    transition: color 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}
.btn-primary-custom {
    background: var(--gradient-main);
    border: none;
    color: white;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    background: var(--gradient-hover);
    color: white;
}
.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    padding: 0.6rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(15, 23, 42, 0) 70%
    );
    top: -100px;
    left: -200px;
    z-index: -1;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
.hero-img-container {
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}
.hero-img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}
.hero-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

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

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: #0b1120;
}
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}
.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}
.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
}
.pricing-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.pricing-card.popular {
    background: linear-gradient(145deg, #1e293b 0%, #123984 100%);
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
}
.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--gradient-main);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
}
.price-tag {
    margin: 2rem 0;
}
.price-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-light);
}
.price-period {
    color: var(--text-muted);
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
    text-align: right;
}
.pricing-features li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
}
.pricing-features li i {
    color: var(--accent-color);
    margin-left: 10px;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #020617;
    padding: 5rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: block;
    color: white;
    text-decoration: none;
}
.footer-desc {
    color: var(--text-muted);
    line-height: 1.8;
}
.footer-links h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary-color);
}
.copyright {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile & Layout Fixes */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 991px) {
    .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding-top: 140px;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-bg-glow {
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        opacity: 0.3;
    }

    .hero-img-container {
        margin-top: 40px;
    }

    .hero-img {
        transform: none;
        margin-top: 20px;
    }

    .pricing-card.popular {
        transform: scale(1);
        z-index: 1;
        margin: 10px 0;
    }

    .d-flex.gap-3 {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-section .btn-lg,
    .navbar .btn-primary-custom,
    .navbar .btn-outline-custom {
        padding: 10px 10px !important;
        font-size: 15px !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex: 1;
        width: 100% !important;
        line-height: 1.2 !important;
        border-radius: 50px !important;
        height: 42px !important; /* Fixed height for consistency */
    }

    .hero-section .d-flex.gap-3,
    .navbar .d-flex.gap-2 {
        gap: 10px !important;
        flex-wrap: nowrap !important;
        width: 100%;
        max-width: 320px; /* Prevent them from becoming too wide on some mobiles */
        margin: 0 auto;
    }
}
