:root {
    --primary-color: #2a7e8a;
    /* Teal from logo */
    --primary-light: #e6f2f4;
    --secondary-color: #f19220;
    /* Gold/Orange from logo */
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

[dir="rtl"] {
    direction: rtl;
}

[dir="ltr"] {
    direction: ltr;
}

[dir="ltr"] * {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Top Header Bar */
.top-header {
    background: #1a2a2c;
    color: #cbd5e0;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links-top {
    display: flex;
    gap: 12px;
}

.social-links-top a:hover {
    color: var(--secondary-color);
}

.lang-link {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-link:hover {
    color: var(--secondary-color);
}

[dir="ltr"] .lang-link {
    margin-right: 0;
    margin-left: 15px;
}

/* Header & Nav */
header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switch {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.lang-switch:hover {
    background: var(--primary-color);
    color: white;
}

.nav-links .lang-switch {
    margin-right: 15px;
    border-radius: 50px;
    padding: 4px 15px;
}

[dir="ltr"] .nav-links .lang-switch {
    margin-right: 0;
    margin-left: 15px;
}

.cta-btn {
    background: var(--secondary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(241, 146, 32, 0.3);
}

/* Hero Section */
.hero.section {
    position: relative;
    padding: 0;
    background: linear-gradient(135deg, rgba(42, 126, 138, 0.95) 0%, rgba(20, 80, 88, 0.85) 100%), url('/images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    overflow: hidden;
    /* Ensure it takes full viewport height minus header if desired, but user just asked to remove padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80vh;
    /* make it look good without padding */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-family: 'Amiri', serif;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 45px;
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-btn-primary {
    background: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
}

.hero-btn-secondary {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: #1a202c;
    /* Black font as requested */
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
}

.hero-btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h2 {
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 600;
}

/* Section Styling */
.section {
    padding: 100px 0;
    opacity: 1;
    transform: none;
    transition: all 0.8s ease-out;
}

.hero.section,
#about.section,
.section.visible {
    opacity: 1;
    transform: none;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--secondary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Objectives Section */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.objective-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    align-items: center;
    box-shadow: var(--shadow);
}

.obj-number {
    background: var(--primary-color);
    color: white;
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* System Section */
.system-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-lg);
}

.system-img {
    flex: 1;
    background: url('/images/banner.jpg');
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.system-content {
    flex: 1.5;
    padding: 60px;
}

.system-item {
    margin-bottom: 30px;
}

.system-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    transition: var(--transition);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0, 1, 0, 1);
    color: var(--text-light);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

.faq-item.active .faq-question {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Testimonials Gallery */
.testimonials-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.testimonial-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Increased from 280px */
    gap: 30px;
    justify-content: center;
}

.video-placeholder {
    background: #2d3748;
    aspect-ratio: 16/9;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder i {
    font-size: 3rem;
    color: #e53e3e;
    margin-bottom: 10px;
}

.video-placeholder:hover {
    transform: scale(1.02);
    background: #1a202c;
}

.chat-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 600px;
    /* Increased from 450px */
    margin: 0 auto;
    width: 100%;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 20px;
}

.video-info h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.video-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.chat-card {
    background: transparent;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.chat-card:hover {
    transform: translateY(-10px);
}

.chat-header {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
    position: relative;
    width: 100%;
}

.chat-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.chat-body {
    width: 280px;
    /* Standard mobile width in UI */
    height: 560px;
    /* 2:1 aspect ratio roughly */
    background: #000;
    border: 12px solid #333;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

/* Mobile top notch */
.chat-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #333;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This makes the screenshot fill the phone screen */
    display: block;
    background: #fff;
    cursor: zoom-in;
}

.chat-body p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(42, 126, 138, 0.9);
    color: white;
    padding: 15px;
    font-size: 0.9rem;
    text-align: center;
    backdrop-filter: blur(5px);
    margin: 0;
}

.chat-body p::before {
    content: '"';
    font-family: 'Amiri', serif;
    font-size: 2rem;
    color: var(--secondary-color);
    position: absolute;
    top: -15px;
    right: -10px;
    opacity: 0.3;
}



/* App Download Section */
.app-section {
    overflow: hidden;
}

.app-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.app-text {
    flex: 1;
}

.app-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.app-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.store-btns {
    display: flex;
    gap: 15px;
}

.store-btn {
    background: black;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.store-btn:hover {
    transform: translateY(-3px);
    background: #2d3748;
}

.store-btn div {
    display: flex;
    flex-direction: column;
}

.store-btn span {
    font-size: 0.7rem;
    opacity: 0.8;
}

.store-btn strong {
    font-size: 1.1rem;
}

.app-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 250px;
    height: 500px;
    background: #1a202c;
    border: 8px solid #2d3748;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.app-logo-mock {
    width: 80%;
    border-radius: 20px;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 999;
    font-weight: bold;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* Footer */
footer {
    background: #1a2a2c;
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    overflow: hidden;
    border-radius: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-family: inherit;
}

.newsletter-form button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #d97e16;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    .system-card {
        flex-direction: column;
    }

    .system-img {
        min-height: 250px;
    }

    .whatsapp-float span {
        display: none;
    }

    .app-flex {
        flex-direction: column;
        text-align: center;
    }

    .store-btns {
        justify-content: center;
    }

    .top-header {
        display: none;
    }
}