:root {
    --bg-dark: #0f172a;
    --primary: #10b981;
    --primary-dark: #059669;
    --accent: #2dd4bf;
    /* Neon Teal */
    --accent-glow: rgba(45, 212, 191, 0.4);
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-radius: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html,
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
}

/* Background Glow Effects */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    max-width: 100%;
    /* Prevent it from expanding the page width */
}

.bg-glow-1 {
    top: -100px;
    right: -100px;
}

.bg-glow-2 {
    bottom: 20%;
    left: -200px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
}

/* Typography Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.shine-effect:hover::after {
    left: 100%;
    transition: 0.7s;
}

/* Glassmorphism Components */
.glass-nav {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 20px;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.pulse-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.badge-new {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--primary);
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

.trust-indicators {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.trust-indicators i {
    color: var(--primary);
    margin-left: 5px;
}

/* Chat Simulator Widget */
.chat-simulator {
    width: 350px;
    height: 500px;
    margin: 0 auto;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 24px 24px 0 0;
}

.doctor-avatar {
    width: 45px;
    height: 45px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.header-info h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.status {
    font-size: 0.8rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--primary);
}

.chat-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.message.user {
    background: var(--glass-bg);
    align-self: flex-start;
    border-bottom-right-radius: 2px;
    border: 1px solid var(--glass-border);
}

.message.bot {
    background: rgba(16, 185, 129, 0.2);
    align-self: flex-end;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #fff;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
    align-items: center;
}

.fake-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.send-btn {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Specialties */
.specialties-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.specialty-card {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: default;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 10px;
    transition: var(--transition);
}

.specialty-card:hover .icon-box {
    background: var(--primary);
    color: #fff;
    transform: rotateY(180deg);
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    position: relative;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    text-align: center;
    padding: 40px;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
    color: #e2e8f0;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-details {
    text-align: right;
}

.user-details h4 {
    color: var(--primary);
    margin-bottom: 2px;
}

.user-details span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.5);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-contact h4 {
    margin-bottom: 20px;
    color: var(--text-light);
}

.contact-link {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Floating Action Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   UPDATED MOBILE & TABLET RESPONSIVENESS
   ========================================= */

/* Hero Section Responsiveness Fixes */
@media (max-width: 1024px) {
    .hero-container {
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

/* Tablets (Max 992px) */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .trust-indicators {
        justify-content: center;
    }

    .specialties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* How it Works */
.how-it-works {
    padding: 80px 0;
    background: rgba(15, 23, 42, 0.3);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    position: relative;
    text-align: center;
    padding: 40px 20px;
}

.step-num {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.step-card h3 {
    margin: 15px 0 10px;
    color: var(--primary);
}

.step-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
}

.pricing-container {
    display: flex;
    justify-content: center;
    max-width: 450px;
    margin: 0 auto;
}

.pricing-card {
    text-align: center;
    padding: 50px 30px;
    width: 100%;
    border: 2px solid var(--primary);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
}

.price-badge {
    position: absolute;
    top: 20px;
    left: -35px;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 900;
    transform: rotate(-45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pricing-header .plan-name {
    display: block;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.pricing-header .price {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.pricing-header .price span {
    font-size: 1.5rem;
    font-weight: 700;
}

.pricing-header .period {
    display: block;
    color: var(--text-dim);
    margin-top: 10px;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    text-align: right;
    margin-bottom: 40px;
}

.features-list li {
    margin-bottom: 15px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.features-list li i {
    color: var(--primary);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 1rem;
}

/* Footer Disclaimer */
.disclaimer {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
    border-right: 3px solid var(--primary);
}

.disclaimer strong {
    color: var(--primary);
}

/* Mobile Phones (Max 768px) */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .nav-container {
        flex-direction: row;
        gap: 10px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .chat-simulator {
        width: 100%;
        max-width: 100%;
        /* Ensure it fits tiny screens */
        height: 450px;
    }

    .main-footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .contact-link {
        justify-content: center;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 40px 20px;
    }

    .pricing-header .price {
        font-size: 3rem;
    }

    .faq-item h3 {
        font-size: 1rem;
    }
}

/* Small Mobile (Max 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn-lg {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .specialty-card {
        padding: 20px 10px;
    }

    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .specialty-card h3 {
        font-size: 0.9rem;
    }

    .testimonial-card p {
        font-size: 0.95rem;
    }

    .floating-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 1.5rem;
    }
}

/* Extra Small (Max 360px) */
@media (max-width: 360px) {
    .logo span {
        display: none;
        /* Only show icon on very small widths if needed, or just shrink more */
    }

    .logo::after {
        content: 'طبيبك';
        /* Shorter text for tiny screens */
        font-size: 1.1rem;
    }
}