/* =========================================
   1. Variables & Global Styles
   ========================================= */
:root {
    --primary-color: #4facfe;
    --secondary-color: #00f2fe;
    --accent-color: #a18cd1;
    --purple-color: #fbc2eb;
    --dark-bg: #0a0e17;
    --darker-bg: #05080d;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #ffffff;
    --text-muted: #b3b3b3;
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-main: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-text: linear-gradient(to right, #4facfe, #00f2fe, #a18cd1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glow Effects */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.top-right {
    top: -200px;
    right: -200px;
    background: var(--primary-color);
}

.bottom-left {
    bottom: -200px;
    left: -200px;
    background: var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography Utility */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
    border: none;
    outline: none;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background: rgba(79, 172, 254, 0.1);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.btn-full {
    width: 100%;
}

/* =========================================
   2. Preloader
   ========================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loader-logo i {
    color: var(--primary-color);
    animation: rotate 2s linear infinite;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--gradient-main);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* =========================================
   3. Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.logo-text {
    background: linear-gradient(to right, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    position: relative;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   4. Hero Section
   ========================================= */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.8;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Image/Mockup */
.hero-image {
    position: relative;
    z-index: 1;
}

.dashboard-mockup {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.main-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image:hover .main-img {
    transform: rotateY(-2deg) rotateX(2deg);
}

.floating-card {
    position: absolute;
    background: rgba(20, 25, 38, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    right: -30px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 10%;
    left: -20px;
    animation-delay: 2s;
}

.floating-card i {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.card-1 i {
    color: #00f2fe;
}

.card-2 i {
    color: #a18cd1;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-info strong {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
}

/* =========================================
   5. Brands Section
   ========================================= */
.brands {
    padding: 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brands-title {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.brands-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    opacity: 0.6;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.brand-item:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* =========================================
   6. Features Section
   ========================================= */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.05);
}

.icon-blue i {
    color: #4facfe;
}

.icon-purple i {
    color: #a18cd1;
}

.icon-pink i {
    color: #fbc2eb;
}

.icon-orange i {
    color: #ff9a9e;
}

.icon-green i {
    color: #5ee7df;
}

.icon-cyan i {
    color: #00f2fe;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =========================================
   7. How It Works
   ========================================= */
.how-it-works {
    padding: 100px 0;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
    position: relative;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--darker-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.2);
}

.step-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0 20px;
}

.step-line {
    position: absolute;
    top: 40px;
    right: 15%;
    /* RTL specific */
    left: 15%;
    height: 2px;
    background: linear-gradient(to left, var(--dark-bg), var(--primary-color), var(--dark-bg));
    z-index: 1;
}

/* =========================================
   8. Pricing
   ========================================= */
.pricing {
    padding: 100px 0;
    position: relative;
}

.pricing-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.1) 0%, rgba(10, 14, 23, 0) 70%);
    z-index: -1;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 3px;
    background: var(--gradient-main);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider:before {
    transform: translateX(30px);
}

.discount-badge {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-right: 5px;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.pricing-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
}

.pricing-card.featured {
    background: var(--glass-bg);
    border: 1px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.15);
    position: relative;
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.price-box {
    margin: 20px 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
}

.period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.features-list {
    margin: 30px 0;
    text-align: right;
    /* RTL styling */
}

.features-list li {
    margin-bottom: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    color: var(--secondary-color);
}

.features-list li.disabled {
    color: rgba(255, 255, 255, 0.3);
}

.features-list li.disabled i {
    color: rgba(255, 255, 255, 0.3);
}

/* =========================================
   9. Testimonials
   ========================================= */
.testimonials {
    padding: 100px 0;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    position: relative;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.client-info h4 {
    margin-bottom: 5px;
}

.client-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.client-review {
    color: #dfdfdf;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.stars {
    color: #ffd700;
}

/* =========================================
   10. CTA Section
   ========================================= */
.cta-section {
    padding: 0 0 100px;
}

.cta-card {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(0, 242, 254, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('feature-pattern.png') repeat;
    /* Optional pattern */
    opacity: 0.1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* =========================================
   11. Footer
   ========================================= */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--darker-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    /* RTL shift */
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   12. Animations
   ========================================= */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(79, 172, 254, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

/* =========================================
   13. Responsive Design
   ========================================= */
@media (max-width: 991px) {

    .navbar .nav-links,
    .navbar .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .step-line {
        display: none;
    }

    .steps-container {
        flex-direction: column;
        gap: 40px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 50px 20px;
    }
}