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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    text-align: right;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-family: 'Tajawal', sans-serif;
}

/* Colors */
:root {
    --primary-blue: #0A74DA;
    --primary-green: #28A745;
    --white: #FFFFFF;
    --light-gray: #F6F8FA;
    --dark-gray: #6B7280;
    --orange: #FF7A18;
    --cyan: #00E6FF;
    --text-dark: #1F2937;
    --text-light: #6B7280;
}

/* Alert Bar */
.alert-bar {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    text-align: center;
    padding: 0.5rem;
    font-size: 14px;
    font-weight: 600;
}

.alert-bar p {
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(10, 116, 218, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 116, 218, 0.4);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
}

/* Fixed WhatsApp Button */
.whatsapp-fixed {
    position: fixed;
    bottom: 90px;

    /* Adjusted to be above the new nav bar */
    left: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

/* Header is removed */
/* Hero Section */
.hero {
    position: relative;
    padding-top: 2rem;

    /* Add padding to compensate for removed header */
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/Y6cJqNsK6VRH.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.feature {
    color: var(--primary-green);
    font-weight: 600;
}

.hero-cta {
    text-align: center;
}

.cta-note {
    margin-top: 1rem;
    font-size: 14px;
    color: var(--orange);
    font-weight: 600;
}

.device-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

/* Pain Points Section */
.pain-points {
    padding: 5rem 0;
    background: var(--light-gray);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.problem-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.problem-card p {
    color: var(--text-light);
}

/* Solution Section */
.solution {
    padding: 5rem 0;
    background: var(--white);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* How it Works Section */
.how-it-works {
    padding: 5rem 0;
    background: var(--light-gray);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Profit Calculation Section */
.profit-calculation {
    padding: 5rem 0;
    background: var(--white);
}

.calculation-card {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.calc-sub-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row.total {
    border-top: 2px solid var(--primary-blue);
    margin-top: 1rem;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-green);
}

.calc-value.highlight {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.3rem;
}

.calc-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 14px;
    color: var(--text-light);
}

/* Offer Section */
.offer {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
}

.offer-card {
    background: var(--white);
    color: var(--text-dark);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.offer-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

.offer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.offer-product {
    width: 100%;
    border-radius: 15px;
}

.offer-list {
    list-style: none;
    margin: 1.5rem 0;
}

.offer-list li {
    padding: 0.5rem 0;
    color: var(--primary-green);
    font-weight: 600;
}

.price-section {
    text-align: center;
    margin: 2rem 0;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.1rem;
}

.new-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-green);
    margin: 0.5rem 0;
}

.savings {
    color: var(--orange);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 5rem 0;
    background: var(--light-gray);
}

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

.reason-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
}

.reason-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-gray);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question h3 {
    margin: 0;
    color: var(--text-dark);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: var(--light-gray);
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    font-size: 1.1rem;
}

.testimonial-author strong {
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 14px;
}

/* Lead Form Section */
.lead-form {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
}

.form-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-title {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.social-links a {
    display: inline-block;
    margin-left: 1rem;
    padding: 8px 16px;
    background: var(--primary-blue);
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: var(--text-light);
}

/* Bottom Navigation Bar Styles */
body {
    padding-bottom: 70px;

    /* Add padding to prevent content from being hidden by the nav bar */
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 70px;
    background-color: var(--white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 12px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-grow: 1;
    height: 100%;
    padding: 8px 4px;
    text-align: center;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    stroke-width: 2;
    transition: stroke 0.3s ease;
}

.bottom-nav-item span {
    line-height: 1;
}

.bottom-nav-item:hover {
    color: var(--primary-blue);
}

.bottom-nav-item.active {
    color: var(--primary-blue);
}

.bottom-nav-item.special-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    border-radius: 12px;
    margin: 6px;
    height: calc(100% - 12px);
    flex-grow: 1.2;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 116, 218, 0.3);
}

.bottom-nav-item.special-cta:hover {
    color: var(--white);
    transform: translateY(-4px);
}

.bottom-nav-item.special-cta.active {
    color: var(--white);
}


/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .offer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .problems-grid,
    .solution-grid,
    .steps-container,
    .reasons-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-fixed {
        bottom: 80px;
        left: 10px;
    }

    .whatsapp-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .whatsapp-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }

    .form-card,
    .offer-card {
        padding: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
