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

:root {
    --bg-color: #0D1B2A;
    /* Deep Blue from Ayaat Theme */
    --text-primary: #E0E1DD;
    --text-secondary: #778DA9;
    --accent-color: #F4D35E;
    /* Gold-ish accent */
    --accent-secondary: #1A237E;
    --card-bg: #1B263B;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-arabic: 'Amiri', serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
}

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

/* Header */
.header {
    padding: 20px 40px;
    display: flex;
    justify-content: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.dot {
    color: var(--accent-color);
}

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

.github-nav-link {
    color: var(--text-secondary);
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.github-nav-link:hover {
    color: var(--text-primary);
    transform: rotate(360deg);
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.badge {
    background: rgba(244, 211, 94, 0.1);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #F4D35E 0%, #FFAB00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
}

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

.btn-store {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.btn-store:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: var(--text-primary);
}

.btn-store svg {
    width: 24px;
    height: 24px;
}

/* Visual Mockup */
.hero-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    position: relative;
}

.app-mockup-container {
    position: relative;
    width: 320px;
    height: 650px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.app-screenshot {
    position: absolute;
    width: 280px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 8px solid #2b2b2b;
    transition: 0.5s ease;
}

.main-shot {
    z-index: 10;
    left: 20px;
    top: 0;
}

.secondary-shot {
    z-index: 5;
    left: 80px;
    top: 60px;
    opacity: 0.6;
    transform: scale(0.9);
}

/* Hover effect only for devices that support hover AND consist of a fine pointer (mouse) */
@media (hover: hover) and (pointer: fine) {
    .app-mockup-container:hover .secondary-shot {
        left: 140px;
        opacity: 1;
        transform: scale(1) rotate(5deg);
        z-index: 11;
    }

    .app-mockup-container:hover .main-shot {
        transform: scale(0.95) rotate(-5deg);
        opacity: 0.8;
    }
}

/* Active class for click/tap interaction (Mobile) */
.app-mockup-container.active .secondary-shot {
    left: 140px;
    opacity: 1;
    transform: scale(1) rotate(5deg);
    z-index: 11;
}

.app-mockup-container.active .main-shot {
    transform: scale(0.95) rotate(-5deg);
    opacity: 0.8;
}

/* Features */
.section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 211, 94, 0.3);
}

.icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Tech Stack */
.tech-stack {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.tech-item:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
}

/* FAQ Section */
.faq-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    flex: 0 1 350px;
    /* flex-grow: 0 (don't stretch), flex-shrink: 1 (allow shrink), flex-basis: 350px */
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(244, 211, 94, 0.2);
}

.faq-question {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    background: linear-gradient(to top, rgba(13, 27, 42, 1), rgba(13, 27, 42, 0.8));
}

.footer a {
    color: var(--accent-color);
    transition: 0.3s;
}

.footer a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(244, 211, 94, 0.5);
}

.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.big-socials a {
    font-size: 0.95rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid transparent;
}

.big-socials a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

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

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

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

    .section {
        padding: 30px 15px;
    }

    .app-mockup-container {
        transform: scale(0.8);
        margin-top: -50px;
    }
}

/* Language Switcher */
.lang-select {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    text-transform: uppercase;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23778DA9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0px center;
    background-size: 14px;
    padding-right: 20px;
}

.lang-select:hover,
.lang-select:focus {
    color: var(--text-primary);
    outline: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0E1DD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.lang-select option {
    background: var(--bg-color);
    color: var(--text-primary);
    padding: 10px;
}

/* RTL Support */
[dir="rtl"] {
    font-family: 'Amiri', serif;
}

[dir="rtl"] .hero-title,
[dir="rtl"] .section-title,
[dir="rtl"] h3 {
    font-family: 'Amiri', serif;
}

[dir="rtl"] .hero-title {
    line-height: 1.3;
}