/* ===================================
   Variables
=================================== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f97316;
    --dark-blue: #1e1b4b;
    --light-bg: #f8fafc;
    --text-gray: #64748b;
    --success-color: #10b981;
    --white: #ffffff;
}

/* ===================================
   Base Styles
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   Loading Animation
=================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   Buttons
=================================== */
.btn-primary-custom {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    display: inline-block;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
    color: var(--white);
}

.btn-secondary-custom {
    background: transparent;
    color: var(--dark-blue);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--dark-blue);
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary-custom:hover {
    background: var(--dark-blue);
    color: var(--white);
}

.btn-featured {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===================================
   Navbar
=================================== */
.navbar {
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color) !important;
}

.navbar-brand span {
    color: var(--secondary-color);
}

.nav-link {
    color: var(--dark-blue) !important;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-blue);
    cursor: pointer;
}

/* ===================================
   Hero Section
=================================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-content h1 span {
    color: var(--primary-color);
    position: relative;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image svg {
    width: 100%;
    max-width: 600px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* ===================================
   Section Title
=================================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Features Section
=================================== */
.features-section {
    padding: 100px 0;
    background: var(--white);
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--white);
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   How It Works Section
=================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--light-bg);
}

.step-card {
    text-align: center;
    position: relative;
    padding: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 50%;
    width: calc(100% - 60px);
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.step-card:last-child::after {
    display: none;
}

.step-card h4 {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-gray);
}

/* ===================================
   Testimonials Section
=================================== */
.testimonials-section {
    padding: 100px 0;
    background: var(--white);
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.testimonial-text {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-info h5 {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 5px;
}

.author-info span {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #fbbf24;
    margin-top: 10px;
}

/* ===================================
   Pricing Section
=================================== */
.pricing-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-blue) 0%, #312e81 100%);
}

.pricing-section .section-title h2,
.pricing-section .section-title p {
    color: var(--white);
}

.pricing-card {
    background: var(--white);
    border-radius: 25px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.pricing-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-blue);
}

.pricing-card.featured h4 {
    color: var(--white);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.pricing-card.featured .pricing-price {
    color: var(--white);
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: right;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
}

.pricing-card.featured .pricing-features li {
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
}

.pricing-features li i {
    color: var(--success-color);
}

.pricing-card.featured .pricing-features li i {
    color: var(--white);
}

/* ===================================
   CTA Section
=================================== */
.cta-section {
    padding: 100px 0;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.cta-content p {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    opacity: 0.1;
    border-radius: 50%;
}

/* ===================================
   Footer
=================================== */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-brand {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-brand span {
    color: var(--secondary-color);
}

.footer-text {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    padding-right: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    margin-top: 50px;
    text-align: center;
    color: #94a3b8;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
}

.newsletter-form button {
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* ===================================
   Scroll to Top Button
=================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ===================================
   Animations
=================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive Styles
=================================== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-radius: 0 0 20px 20px;
    }

    .hero-section {
        padding-top: 100px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 40px;
    }

    .step-card::after {
        display: none;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .features-section,
    .how-it-works,
    .testimonials-section,
    .pricing-section,
    .cta-section {
        padding: 60px 0;
    }

    .footer {
        padding: 60px 0 30px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .pricing-card {
        padding: 30px 20px;
    }
}