/* ========================================
   Elhady Landing Page - Style
   Theme: Charcoal (#1A1A1A) + Gold (#E89612)
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #E89612;
    --primary-light: #f0a832;
    --primary-dark: #81510C;
    --charcoal: #1A1A1A;
    --bg: #111111;
    --card: #222222;
    --card-hover: #2a2a2a;
    --border: #333333;
    --text: #f5f5f5;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --white: #ffffff;
    --success: #4ade80;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
}

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

body {
    font-family: 'Cairo', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.gold {
    color: var(--primary);
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.navbar.scrolled {
    background: rgba(17, 17, 17, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    position: relative;
}

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

.lang-btn {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
    background: var(--primary);
    color: var(--charcoal);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    background: rgba(17, 17, 17, 0.98);
    border-top: 1px solid var(--border);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    font-size: 1.05rem;
    color: var(--text-muted);
    padding: 8px 0;
}

.mobile-menu a:hover {
    color: var(--primary);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 150, 18, 0.12) 0%, transparent 70%);
    top: 10%;
    right: -10%;
    pointer-events: none;
}

[dir="ltr"] .hero-glow {
    right: auto;
    left: -10%;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(232, 150, 18, 0.1);
    border: 1px solid rgba(232, 150, 18, 0.25);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--charcoal);
    box-shadow: 0 4px 24px rgba(232, 150, 18, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(232, 150, 18, 0.4);
}

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

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Phone Mockup */
.hero-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatPhone 4s ease-in-out infinite;
}

.phone-mockup {
    perspective: 1000px;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: var(--charcoal);
    border-radius: 40px;
    border: 3px solid #333;
    padding: 12px;
    position: relative;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.05),
        inset 0 0 0 1px rgba(255,255,255,0.05);
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: var(--charcoal);
    border-radius: 0 0 20px 20px;
    margin: 0 auto 8px;
    position: relative;
    z-index: 5;
}

.phone-screen {
    width: 100%;
    height: calc(100% - 36px);
    background: var(--bg);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mock-header {
    padding: 16px 14px 10px;
}

.mock-logo-text {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.mock-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.mock-banner {
    margin: 10px 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    padding: 16px;
    color: var(--charcoal);
}

.mock-banner span {
    font-weight: 800;
    font-size: 0.9rem;
    display: block;
}

.mock-banner small {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.8;
}

.mock-categories {
    display: flex;
    gap: 8px;
    padding: 8px 14px;
    direction: rtl;
}

.mock-cat {
    background: var(--card);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.mock-cat:first-child {
    background: rgba(232, 150, 18, 0.15);
    color: var(--primary);
}

.mock-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 14px;
    flex: 1;
    direction: rtl;
}

.mock-product {
    background: var(--card);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid var(--border);
}

.mock-product-img {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #2a2a2a, #333);
    border-radius: 8px;
    margin-bottom: 8px;
}

.mock-product-name {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.mock-product-price {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
}

.mock-tabbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 8px;
    background: var(--charcoal);
    border-top: 1px solid var(--border);
}

.mock-tab {
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.mock-tab.active {
    color: var(--primary);
}

.mock-tab.cart-tab {
    background: var(--primary);
    color: var(--charcoal);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    margin-top: -16px;
    box-shadow: 0 4px 12px rgba(232, 150, 18, 0.3);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.6;
}

/* ========================================
   Sections Common
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Features
   ======================================== */
.features {
    padding: 100px 0;
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(232, 150, 18, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(232, 150, 18, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

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

/* ========================================
   Brands
   ======================================== */
.brands {
    padding: 100px 0;
    background: var(--charcoal);
    overflow: hidden;
}

.brands-scroll {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brands-track {
    display: flex;
    gap: 32px;
    animation: scrollBrands 25s linear infinite;
    width: max-content;
}

[dir="ltr"] .brands-track {
    animation: scrollBrandsLTR 25s linear infinite;
}

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo-placeholder {
    width: 100px;
    height: 100px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.brand-item:hover .brand-logo-placeholder {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(232, 150, 18, 0.15);
}

.brand-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ========================================
   Offers
   ======================================== */
.offers {
    padding: 100px 0;
    background: var(--bg);
}

.offers-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.offers-text .section-tag {
    display: inline-block;
    margin-bottom: 12px;
}

.offers-text h2 {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.offers-text > p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.offers-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.offers-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text);
}

.offers-list li svg {
    flex-shrink: 0;
}

.offers-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-card {
    position: absolute;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    box-shadow: 0 20px 60px rgba(232, 150, 18, 0.2);
}

.offer-card-1 {
    width: 180px;
    height: 180px;
    z-index: 3;
    animation: floatCard1 5s ease-in-out infinite;
}

.offer-card-2 {
    width: 140px;
    height: 140px;
    top: 20px;
    left: 20px;
    z-index: 2;
    opacity: 0.8;
    animation: floatCard2 5s ease-in-out infinite 0.5s;
}

[dir="ltr"] .offer-card-2 {
    left: auto;
    right: 20px;
}

.offer-card-3 {
    width: 120px;
    height: 120px;
    bottom: 20px;
    right: 20px;
    z-index: 1;
    opacity: 0.6;
    animation: floatCard3 5s ease-in-out infinite 1s;
}

[dir="ltr"] .offer-card-3 {
    right: auto;
    left: 20px;
}

.offer-discount {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
}

.offer-card-2 .offer-discount {
    font-size: 2rem;
}

.offer-card-3 .offer-discount {
    font-size: 1.6rem;
}

.offer-label {
    font-size: 1rem;
    font-weight: 700;
}

/* ========================================
   How It Works
   ======================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--charcoal);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.step {
    text-align: center;
    max-width: 280px;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--charcoal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.step p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 18px;
}

[dir="rtl"] .step-arrow svg {
    transform: rotate(180deg);
}

/* ========================================
   Download
   ======================================== */
.download {
    padding: 100px 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 150, 18, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.download-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.download-text h2 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.download-text > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 40px;
}

.store-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 14px 28px;
    border-radius: 14px;
    transition: all 0.3s;
}

.store-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.store-btn small {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: start;
}

.store-btn strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--charcoal);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

@keyframes scrollBrandsLTR {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

/* ========================================
   Scroll Reveal
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ========================================
   Legal Pages
   ======================================== */
.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.legal-page h1 {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.legal-page .legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 48px;
}

.legal-page h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 40px 0 16px;
    color: var(--primary);
}

.legal-page p,
.legal-page li {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-page ul {
    padding-right: 24px;
    margin-bottom: 16px;
}

[dir="ltr"] .legal-page ul {
    padding-right: 0;
    padding-left: 24px;
}

.legal-page li {
    margin-bottom: 8px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 32px;
    transition: opacity 0.2s;
}

.legal-back:hover {
    opacity: 0.8;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

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

    .hero-desc {
        margin: 0 auto 36px;
    }

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

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offers-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .offers-visual {
        height: 300px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

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

    .hero-desc {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
    }

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

    .section-header h2 {
        font-size: 1.8rem;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding-top: 0;
    }

    [dir="rtl"] .step-arrow svg {
        transform: rotate(90deg);
    }

    .download-text h2 {
        font-size: 2rem;
    }

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

    .offers-text h2 {
        font-size: 1.8rem;
    }

    .legal-page h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.7rem;
    }

    .phone-frame {
        width: 220px;
        height: 460px;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
}
