/* Reset and Base Styles */
:root {
    --primary-color: #1773FC;
    --install-color: #01875F;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-light: #e9ecef;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
        url('assets/mandala_bg.svg');
    background-repeat: repeat;
    background-size: 200px 200px;
    background-attachment: fixed;
    direction: rtl;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/mandala_bg.svg');
    background-repeat: repeat;
    background-size: 200px 200px;
    background-position: 0 0;
    opacity: 0.08;
    filter: hue-rotate(210deg) saturate(2) brightness(0.4) contrast(1.5);
    pointer-events: none;
    z-index: -1;
    animation: patternMove 120s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 300px 300px; }
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none;
    }
}

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

/* App Icon Top Section */
.app-icon-top {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(23, 115, 252, 0.05) 100%);
    text-align: center;
}

.app-icon-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(23, 115, 252, 0.25);
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.app-icon-large:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 80px rgba(23, 115, 252, 0.35);
}

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

@media (prefers-reduced-motion: reduce) {
    .app-icon-large {
        animation: none;
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

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

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    opacity: 0.08;
    object-fit: cover;
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.badge-link {
    display: block;
    transition: var(--transition);
}

.badge-link:not(.badge-disabled):hover {
    transform: translateY(-4px);
    filter: brightness(1.05);
}

.badge-link.badge-disabled {
    opacity: 0.5;
    filter: grayscale(100%);
    cursor: not-allowed;
}

.store-badge {
    height: 60px;
    width: auto;
}

.hero-note {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

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

.hero-img {
    max-width: 120%;
    width: 120%;
    height: auto;
    filter: drop-shadow(0 20px 40px var(--shadow-medium));
    transform: scale(1.1);
}

.hero-marquee {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    opacity: 0.6;
}

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

@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
        transform: translateX(0);
    }
}


/* Screenshots Gallery */
.screenshots-gallery {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(23, 115, 252, 0.03) 100%);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.screenshot-item {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-light);
    transition: var(--transition);
    aspect-ratio: 1320/2868; /* Real mobile aspect ratio */
}

.screenshot-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px var(--shadow-medium);
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
    transform: translateY(0);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.screenshot-overlay h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.screenshot-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    margin: 0;
}

/* Gallery CTA */
.gallery-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 0 2rem;
}

.gallery-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), #1461d3);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(23, 115, 252, 0.25);
    font-family: inherit;
}

.gallery-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(23, 115, 252, 0.35);
    background: linear-gradient(135deg, #1461d3, var(--primary-color));
}

.gallery-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.gallery-btn i {
    font-size: 1.25rem;
}

/* Responsive Design */
@media (max-width: 480px) {
    .screenshots-gallery {
        padding: 3rem 0;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .screenshot-item {
        width: 280px;
        max-width: 90vw;
        margin: 0 auto;
    }
    
    .gallery-cta {
        margin-top: 3rem;
    }
    
    .gallery-subtitle {
        font-size: 1.25rem;
    }
    
    .gallery-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .screenshot-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .screenshot-overlay h4 {
        font-size: 1.125rem;
    }
    
    .screenshot-overlay p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.75rem;
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 1200px) {
    .gallery-container {
        grid-template-columns: repeat(3, 300px);
        justify-content: center;
        gap: 3rem;
    }
    
    .screenshot-item {
        width: 300px;
    }
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Why Choose Section */
.why-choose {
    padding: 6rem 0;
}

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

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px var(--shadow-medium);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--install-color));
    border-radius: 0 0 20px 20px;
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* App Features Section */
.app-features {
    padding: 6rem 0;
    background: var(--bg-light);
}

.keywords-marquee {
    margin: 2rem 0 4rem;
    overflow: hidden;
}

.keywords-marquee .marquee-content {
    font-size: 1.2rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

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

.feature-card-large {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-right: 4px solid transparent;
}

.feature-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--shadow-medium);
    border-right-color: var(--primary-color);
}

.feature-card-large .feature-title {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
}

/* Brief Features Section */
.brief-features {
    padding: 6rem 0;
}

.features-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.features-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 1.125rem;
    line-height: 1.6;
    position: relative;
    padding-right: 2rem;
}

.features-list li:before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 1.5rem;
    color: var(--install-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.features-list li:last-child {
    border-bottom: none;
}

/* Stores Section */
.stores {
    padding: 6rem 0;
    background: var(--bg-light);
    text-align: center;
}

.stores .cta-badges {
    justify-content: center;
    margin-bottom: 2rem;
}

.stores-note {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* Subscribe Section */
.subscribe {
    padding: 6rem 0;
    background: var(--primary-color);
    color: white;
}

.subscribe .container {
    max-width: 600px;
}

.subscribe-form {
    text-align: center;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.email-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    direction: rtl;
}

.email-input:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.submit-btn {
    background: var(--install-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.submit-btn:hover {
    background: #016547;
}

.submit-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

.form-status {
    min-height: 1.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    padding: 0.5rem;
    transition: var(--transition);
}

.form-status.success {
    background: rgba(1, 135, 95, 0.1);
    border: 1px solid rgba(1, 135, 95, 0.3);
}

.form-status.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.privacy-note {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Social Section */
.social {
    padding: 4rem 0;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-4px);
}

.social-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-light);
}

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

.team-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px var(--shadow-medium);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--install-color));
    transform: translateX(-100%);
    transition: var(--transition);
}

.team-card:hover::before {
    transform: translateX(0);
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.team-role {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.team-email,
.team-link {
    color: var(--install-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.team-email:hover,
.team-link:hover {
    text-decoration: underline;
}

.team-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-copy {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Additional styling enhancements */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer {
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .app-icon-top {
        padding: 100px 0 30px;
    }
    
    .app-icon-large {
        width: 100px;
        height: 100px;
        border-radius: 24px;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-illustration {
        order: 1;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-img {
        max-width: 110%;
        width: 110%;
        transform: scale(1.05);
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    
    .form-group {
        flex-direction: column;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .cta-badges {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .features-grid-large {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .app-icon-top {
        padding: 90px 0 20px;
    }
    
    .app-icon-large {
        width: 85px;
        height: 85px;
        border-radius: 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-img {
        max-width: 105%;
        width: 105%;
        transform: scale(1.02);
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .store-badge {
        height: 50px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}
