@font-face {
    font-family: 'JF Flat';
    src: url('fonts/JF-Flat.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'JF Flat';
    src: url('fonts/JF-Flat-Bold.ttf') format('truetype');
    font-weight: bold;
}

:root {
    --primary-color: #433392;
    --secondary-color: #FF8A00;
    --white: #ffffff;
    --black: #333333;
    scroll-behavior: smooth;
}

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

body {
    direction: rtl;
    line-height: 1.6;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.logo {
    display: flex;
}

.logo img {
    height: 40px;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--white);
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-links a {
        margin: 0;
        padding: 0.5rem 0;
    }

    .hamburger, 
    .hamburger::before,
    .hamburger::after {
        background: var(--primary-color);
    }
}

/* Add margin to main content to prevent it from being hidden under fixed nav */
main {
    margin-top: 72px; /* height of nav (40px) + vertical padding (2 * 1rem) */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a1f6d 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 2rem 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    color: var(--white);
    z-index: 1;
}

.hero h1 {
    margin-bottom: 1rem;
    font-size: 4rem;
    font-weight: bold;
}

.hero-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.app-stores {
    display: flex;
    gap: 1rem;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.store-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.store-icon {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.button-subtitle {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .app-stores {
        flex-direction: column;
        align-items: stretch;
    }

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

/* Features Section */
.features {
    padding: 5rem 5%;
    background-color: #f5f5f5;
}

.features h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 6rem 5%;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color) 0%, transparent 70%);
    opacity: 0.03;
    pointer-events: none;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-divider {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--black);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.about-highlights {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    min-width: 180px;
}

.highlight:hover {
    transform: translateY(-5px);
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.highlight-text {
    font-size: 1.1rem;
    color: var(--black);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .about {
        padding: 4rem 5%;
    }

    .about h2 {
        font-size: 2rem;
    }

    .about-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .about-highlights {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .highlight {
        width: 100%;
        max-width: 280px;
        padding: 1.5rem;
    }
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a1f6d 100%);
    color: var(--white);
    padding: 4rem 5%;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

.contact-container {
    position: relative;
    z-index: 1;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 300px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon {
    font-size: 1.8rem;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--white);
    opacity: 0.9;
}

.contact-text a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .contact {
        padding: 4rem 5%;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact-info {
        gap: 2rem;
    }

    .contact-item {
        width: 100%;
        min-width: unset;
        padding: 1.5rem;
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

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

.social-icon {
    width: 24px;
    height: 24px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-text {
        font-size: 1.2rem;
    }

    .app-stores {
        justify-content: center;
    }
}
