/* ==================================================
   Green Lab Soft - Main Stylesheet (RTL)
   ================================================== */

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

:root {
    --green-dark:  #1a7f4b;
    --green-mid:   #22a05a;
    --green-light: #e8f8ef;
    --blue-main:   #0d6efd;
    --blue-light:  #e7f1ff;
    --red-main:    #dc3545;
    --red-light:   #fde8ea;
    --yellow:      #ffc107;
    --white:       #ffffff;
    --gray-bg:     #f8f9fa;
    --text-dark:   #1e2a38;
    --text-muted:  #6c757d;
    --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
    --shadow-md:   0 4px 20px rgba(0,0,0,.12);
    --radius:      12px;
    --radius-lg:   18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--green-dark); border-radius: 3px; }

/* ============ NAVBAR ============ */
.navbar-green {
    background: linear-gradient(135deg, #0d2414 0%, #1a7f4b 60%, #22a05a 100%);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 15px rgba(0,0,0,.25);
}
.navbar-green .navbar-brand {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -.5px;
}
.navbar-green .navbar-brand span { color: var(--yellow); }
.navbar-green .nav-link {
    color: rgba(255,255,255,.88) !important;
    font-weight: 600;
    padding: 6px 14px !important;
    border-radius: 6px;
    transition: background .2s, color .2s;
}
.navbar-green .nav-link:hover,
.navbar-green .nav-link.active {
    background: rgba(255,255,255,.18);
    color: #fff !important;
}
.navbar-green .btn-trial {
    background: var(--yellow);
    color: #1e2a38;
    font-weight: 700;
    border-radius: 8px;
    padding: 7px 20px;
    border: none;
    transition: transform .2s, box-shadow .2s;
}
.navbar-green .btn-trial:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,193,7,.5);
}

/* ============ HERO ============ */
.hero-section {
    background: linear-gradient(135deg, #0d2414 0%, #1a7f4b 55%, #22a05a 100%);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -60px; left: -60px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
}
.hero-title .brand-name { color: var(--yellow); }
.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    margin: 12px 0 24px;
}
.hero-badges .badge {
    font-size: .85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 4px;
}
.hero-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.hero-stat {
    text-align: center;
    background: rgba(255,255,255,.12);
    padding: 14px 22px;
    border-radius: var(--radius);
    backdrop-filter: blur(4px);
}
.hero-stat .num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--yellow);
    display: block;
}
.hero-stat .lbl {
    font-size: .8rem;
    color: rgba(255,255,255,.85);
}
.hero-img-wrap {
    position: relative;
    z-index: 1;
}
.hero-img-wrap img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    max-width: 100%;
}
.hero-mockup {
    background: rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    text-align: center;
}
.hero-mockup i { font-size: 5rem; color: var(--yellow); margin-bottom: 16px; }
.hero-mockup p { color: rgba(255,255,255,.9); font-weight: 600; }

/* ============ BANNER ============ */
.banner-section {
    background: var(--red-main);
    color: #fff;
    padding: 28px 0;
}
.banner-section p {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.8;
    margin: 0;
}

/* ============ SECTION TITLES ============ */
.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.section-title span { color: var(--green-dark); }
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--green-dark), var(--blue-main));
    border-radius: 2px;
    margin: 0 auto 40px;
}

/* ============ FEATURE CARDS ============ */
.features-section { background: var(--gray-bg); padding: 70px 0; }
.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    height: 100%;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--green-dark);
    transition: transform .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.feature-card-number {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 14px;
    flex-shrink: 0;
}
.feature-card-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
}
.feature-card h5 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 14px;
}
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
    font-size: .88rem;
    color: #444;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--green-dark);
    font-size: .8rem;
    flex-shrink: 0;
}

/* ============ PORTAL SECTION ============ */
.portal-section {
    background: linear-gradient(135deg, #0d2414 0%, #1a7f4b 100%);
    padding: 70px 0;
    color: #fff;
}
.portal-card {
    background: rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    text-align: center;
    height: 100%;
}
.portal-card i { font-size: 3rem; color: var(--yellow); margin-bottom: 16px; }
.portal-card h5 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.portal-card p { font-size: .9rem; color: rgba(255,255,255,.85); }
.portal-steps { list-style: none; padding: 0; margin: 20px 0 0; text-align: right; }
.portal-steps li {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0;
    font-size: .9rem;
    color: rgba(255,255,255,.9);
}
.portal-steps li i { color: var(--yellow); width: 20px; }

/* ============ PRICING SECTION ============ */
.pricing-section { padding: 70px 0; background: #fff; }
.pricing-card {
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform .3s;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.pricing-card:hover { transform: translateY(-8px); }
.pricing-card.featured {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    color: #fff;
}
.pricing-card.featured .pricing-price { color: var(--yellow); }
.pricing-card:not(.featured) { background: #fff; border: 2px solid #e9ecef; }
.pricing-badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--yellow); color: #000;
    font-size: .75rem; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
}
.pricing-icon { font-size: 3rem; margin-bottom: 16px; }
.pricing-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.pricing-price { font-size: 2.8rem; font-weight: 900; line-height: 1; }
.pricing-price small { font-size: 1rem; font-weight: 600; }
.pricing-desc { font-size: .9rem; margin-top: 14px; opacity: .85; }

/* ============ DEVICES SECTION ============ */
.devices-section { background: var(--gray-bg); padding: 70px 0; }
.device-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
}
.device-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.device-card i { font-size: 2.8rem; color: var(--green-dark); margin-bottom: 14px; }
.device-card p { font-weight: 700; font-size: .95rem; margin: 0; }

/* ============ GENERAL FEATURES ============ */
.gen-features-section { padding: 70px 0; background: #fff; }
.gen-feature-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 20px;
    background: var(--green-light);
    border-radius: var(--radius);
    border-right: 4px solid var(--green-dark);
    margin-bottom: 16px;
    transition: transform .2s;
}
.gen-feature-item:hover { transform: translateX(-4px); }
.gen-feature-item .icon-wrap {
    width: 50px; height: 50px;
    background: var(--green-dark);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.3rem;
    flex-shrink: 0;
}
.gen-feature-item h6 { font-weight: 800; font-size: 1rem; margin: 0; }

/* ============ FOOTER ============ */
.footer-section {
    background: #0d2414;
    color: rgba(255,255,255,.85);
    padding: 50px 0 24px;
}
.footer-section h5 {
    color: var(--yellow);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 18px;
}
.footer-section a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.footer-section a:hover { color: var(--yellow); }
.footer-contact-item {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px; font-size: .9rem;
}
.footer-contact-item i { color: var(--yellow); width: 20px; }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 28px 0 20px; }
.footer-bottom { font-size: .82rem; color: rgba(255,255,255,.5); }
.social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    color: #fff !important;
    margin: 0 4px;
    transition: background .2s, transform .2s;
}
.social-link:hover { background: var(--green-dark); transform: translateY(-3px); }

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    background: #25d366;
    color: #fff;
    width: 58px; height: 58px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 20px rgba(37,211,102,.5);
    z-index: 9999;
    text-decoration: none;
    animation: pulse 2.5s infinite;
    transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse {
    0%  { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============ SCROLL TO TOP ============ */
#scrollTop {
    position: fixed; bottom: 100px; left: 28px;
    background: var(--green-dark); color: #fff;
    width: 42px; height: 42px;
    border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    font-size: 1rem; z-index: 999; cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background .2s;
}
#scrollTop:hover { background: var(--green-mid); }
#scrollTop.show { display: flex; }

/* ============ UTILITIES ============ */
.section-py { padding: 70px 0; }
.bg-green-light { background: var(--green-light); }
.text-green { color: var(--green-dark); }
.text-yellow { color: var(--yellow); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero-section { padding: 50px 0 40px; }
    .hero-title { font-size: 1.9rem; }
    .hero-stats { gap: 12px; }
    .hero-stat { padding: 10px 14px; }
    .hero-stat .num { font-size: 1.5rem; }
    .section-title { font-size: 1.5rem; }
    .feature-card { padding: 20px 16px; }
    .pricing-card { margin-bottom: 20px; }
    .whatsapp-float { bottom: 18px; left: 18px; width: 50px; height: 50px; font-size: 1.4rem; }
}
