/* ============================
   CSS Custom Properties
============================= */
:root {
    --primary: #FFC107;
    --primary-dark: #FF6F00;
    --dark: #121212;
    --dark-accent: #1e1e1e;
    --accent: #0D47A1;
    --white: #ffffff;
    --text-muted: #b0b0b0;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --glass: rgba(30, 30, 30, 0.85);
    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    background-color: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

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

/* ============================
   Navbar
============================= */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    height: var(--nav-height);
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    background: rgba(18, 18, 18, 0.97);
    height: 72px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 28px;
}

/* Logo */
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    cursor: pointer;
    user-select: none;
    color: var(--white);
}

.logo-text .accent {
    color: var(--primary); /* Yellow #FFC107 */
}

/* Desktop Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

[dir="rtl"] .nav-links a::after {
    left: auto;
    right: 0;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.nav-links a.nav-vendor-btn {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10B981;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-links a.nav-vendor-btn:hover {
    background: #10B981;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.nav-links a.nav-vendor-btn::after {
    display: none !important;
}

/* Nav Left Container (Hamburger + Lang switch) */
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Nav Actions (right side) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switch Button */
.lang-switch button {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 7px 18px;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}

.lang-switch button:hover {
    background: var(--primary-dark);
    transform: scale(1.04);
}

/* ============================
   Hamburger Button — HIDDEN on desktop
============================= */
.hamburger-btn {
    display: none;
    /* Hidden by default on large screens */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    gap: 5px;
    transition: border-color 0.3s, background 0.3s;
    flex-shrink: 0;
    padding: 0;
}

.hamburger-btn:hover {
    border-color: var(--primary);
    background: rgba(255, 193, 7, 0.08);
}

.hamburger-btn .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease, width 0.35s ease;
    transform-origin: center;
}

/* Animated X state */
.hamburger-btn.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open .bar:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger-btn.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================
   Mobile Menu Overlay
============================= */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================
   Mobile Menu Panel (Modern Side Drawer)
============================= */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px, 85vw);
    height: 100dvh;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: right 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

[dir="rtl"] .mobile-menu {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    right: 0;
}

[dir="rtl"] .mobile-menu.active {
    left: 0;
    right: auto;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-close-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-close-btn:hover {
    background: var(--primary);
    color: var(--dark);
    transform: rotate(90deg);
}

/* Mobile Nav Links */
.mobile-nav {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateX(20px);
}

[dir="rtl"] .mobile-nav-link {
    transform: translateX(-20px);
}

.mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation */
.mobile-menu.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-link:nth-child(4) { transition-delay: 0.4s; }

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
    color: var(--primary);
}

.mnl-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover .mnl-icon,
.mobile-nav-link.active .mnl-icon {
    background: var(--primary);
    color: var(--dark);
}

.mnl-text {
    flex-grow: 1;
}

.mnl-arrow {
    font-size: 0.8rem;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover .mnl-arrow {
    opacity: 1;
    transform: translateX(5px);
}

[dir="rtl"] .mobile-nav-link:hover .mnl-arrow {
    transform: translateX(-5px) rotate(180deg);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 30px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.mobile-store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--primary);
    color: var(--dark);
    padding: 15px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.mobile-store-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.mobile-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.mobile-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-social a:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* ============================
   Hero Section
============================= */
.hero {
    padding: 180px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 520px;
    line-height: 1.75;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    align-items: center;
}

.store-badge img {
    height: 46px;
    transition: 0.3s;
}

.store-badge:hover img {
    transform: translateY(-3px);
}

.store-badge.disabled {
    opacity: 0.4;
    filter: grayscale(1);
    cursor: not-allowed;
    pointer-events: none;
}

.coming-soon-wrapper {
    position: relative;
    display: inline-block;
}

.badge-soon {
    position: absolute;
    top: -10px;
    right: 0;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
}

.web-app-cta {
    margin-top: 8px;
}

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
}

.hero-image {
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-mockup {
    width: 240px;
    height: 490px;
    background: #000;
    border: 10px solid #2a2a2a;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.phone-mockup img,
.phone-mockup .screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blob-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.15), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: blobPulse 4s ease-in-out infinite;
}

@keyframes blobPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* ============================
   Sections General
============================= */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 60px;
    font-weight: 700;
}

/* ============================
   About Section
============================= */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: block;
}

.split-text h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
    margin-bottom: 18px;
    font-weight: 700;
}

.split-text p {
    color: var(--text-muted);
    line-height: 1.8;
}

.quote-box {
    margin-top: 30px;
    padding: 25px;
    background: var(--dark-accent);
    border-left: 4px solid var(--primary);
    border-radius: 0 15px 15px 0;
}

[dir="rtl"] .quote-box {
    border-left: none;
    border-right: 4px solid var(--primary);
    border-radius: 15px 0 0 15px;
}

.quote-box p {
    color: var(--text-muted);
    font-style: italic;
}

.quote-box span {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-top: 10px;
}

/* ============================
   Features Section
============================= */
.features {
    background: var(--dark-accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--dark);
    padding: 35px 28px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.feature-card h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.icon-box {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.4rem;
    color: var(--white);
}

/* ============================
   Contact Section
============================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    background: var(--dark-accent);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card i {
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-card h4 {
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.contact-form-container {
    background: var(--dark-accent);
    padding: 35px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
}

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

/* ============================
   Footer
============================= */
.footer {
    padding: 60px 0 20px;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.7;
    max-width: 280px;
}

.footer h4 {
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 14px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: background 0.3s, color 0.3s, transform 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============================
   Reveal Animations
============================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   Animations for hero
============================= */
.animate-left {
    animation: fadeInLeft 0.9s ease forwards;
}

.animate-right {
    animation: fadeInRight 0.9s ease 0.2s forwards;
    opacity: 0;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================
   RESPONSIVE: Tablet (max 992px)
============================= */
@media (max-width: 992px) {

    /* Show hamburger, hide desktop nav links */
    .hamburger-btn {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    /* Completely hidden — mobile menu takes over */

    .navbar {
        width: calc(100% - 32px);
        top: 10px;
        border-radius: 18px;
    }

    .navbar.scrolled {
        width: 100%;
        border-radius: 0;
    }

    /* Mobile Overlay becomes usable */
    .mobile-menu-overlay {
        display: block;
    }

    /* Hero stacks vertically */
    .hero {
        padding: 140px 0 80px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    .web-app-cta {
        display: flex;
        justify-content: center;
    }

    /* About layout */
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .split-image {
        order: -1;
    }

    /* Contact layout */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Footer layout */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ============================
   RESPONSIVE: Mobile (max 600px)
============================= */
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        width: calc(100% - 20px);
        height: 58px;
        top: 10px;
        border-radius: 14px;
    }

    .navbar.scrolled {
        height: 60px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .lang-switch button {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .nav-left {
        gap: 10px;
    }

    .logo-text {
        font-size: 1.35rem;
    }

    .hero {
        padding: 120px 0 70px;
        min-height: auto;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .phone-mockup {
        width: 190px;
        height: 385px;
    }

    .blob-bg {
        width: 220px;
        height: 220px;
    }

    section {
        padding: 70px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 24px 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: unset;
    }

    /* Mobile menu full width on very small screens */
    .mobile-menu {
        width: 100%;
        border-left: none;
        border-right: none;
    }

    [dir="rtl"] .mobile-menu {
        border-left: none;
        border-right: none;
    }

    .store-badge img {
        height: 38px;
    }

    /* Small improvements for very small screens */
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .mobile-menu-header {
        padding: 20px;
    }

    .mobile-nav {
        padding: 20px 15px;
    }
}

/* ============================
   RESPONSIVE: Large Screens (min 1200px)
============================= */
@media (min-width: 1200px) {

    /* Ensure hamburger is NEVER shown on large screens */
    .hamburger-btn {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
    }
}