@font-face {
    font-family: 'iransansDN'; 
    src: url('../assets/fonts/iransansdn.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}

/* --- Base & Variables --- */
:root {
    --primary: #6a1b9a;
    --primary-dark: #4a148c;
    --primary-light: #8e24aa;
    --accent: #ce93d8;
    --bg-light: #F8F9FA;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 8px 32px rgba(106, 27, 154, 0.1);
    --shadow-hover: 0 16px 48px rgba(106, 27, 154, 0.2);
}

body {
    font-family: 'iransansDN', 'Vazirmatn', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    background-color: #ffffff;
    color: var(--text-dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1), opacity 800ms ease;
    will-change: transform, opacity;
}

.reveal--up    { transform: translate3d(0, 40px, 0); }
.reveal--down  { transform: translate3d(0, -40px, 0); }
.reveal--left  { transform: translate3d(40px, 0, 0); }
.reveal--right { transform: translate3d(-40px, 0, 0); }
.reveal--zoom  { transform: scale(0.9); }

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* --- Header (Glassmorphism) --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo img { height: 4rem; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.05); }

.main-nav { display: flex; gap: 20px; }
.main-nav a {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.main-nav a:hover {
    background: rgba(106, 27, 154, 0.1);
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 50px 80px;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

/* Decorative Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 8s ease-in-out infinite alternate;
}
.blob-1 { width: 400px; height: 400px; background: rgba(142, 36, 170, 0.15); top: -100px; right: -100px; }
.blob-2 { width: 300px; height: 300px; background: rgba(74, 20, 140, 0.1); bottom: -50px; left: -50px; animation-delay: 4s; }

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.1); }
}

.hero-content {
    max-width: 550px;
    margin-left: 80px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 15px 0 25px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-light);
}

.hero-image {
    z-index: 1;
    position: relative;
}

.phone-mockup {
    animation: float 6s ease-in-out infinite alternate;
    filter: drop-shadow(0 25px 50px rgba(106, 27, 154, 0.3));
}

.hero-image img {
    max-width: 100%;
    height: 38rem;
    border-radius: 25px;
}

/* Buttons */
.download-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.download-buttons a {
    text-decoration: none;
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.download-buttons a i { margin-left: 8px; }

.btn-maiket { background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.btn-bazar { background: linear-gradient(135deg, var(--primary-dark), #2c003e); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.download-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(106, 27, 154, 0.4);
}

/* --- Features Section --- */
.features-section { 
    padding: 100px 50px;
    background-color: var(--bg-light);
    text-align: center;
    position: relative;
}

.features-section h2 {
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 900;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 60px;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: #fff;
    border-color: var(--accent);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.1), rgba(142, 36, 170, 0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: rotate(5deg) scale(1.1);
}

.feature-card:hover .icon-box img {
    filter: brightness(0) invert(1); /* Change icon to white on hover */
}

.feature-card img {
    height: 40px;
    width: 40px;
    transition: filter 0.3s ease;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 0 0 15px;
}

.feature-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 80px 0 60px;
    background-color: #fff;
    overflow: hidden;
}

.gallery-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 20px 0;
}

.gallery::-webkit-scrollbar { display: none; }

.gallery img {
    width: 220px;
    height: auto;
    border-radius: 20px;
    flex-shrink: 0;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.gallery img:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 35px rgba(106, 27, 154, 0.2);
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    color: var(--primary-dark);
    border: 1px solid rgba(255,255,255,0.5);
    width: 45px;
    height: 45px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-btn:hover { background: var(--primary); color: #fff; }
.gallery-btn i { font-size: 16px; }
.gallery-btn.prev { right: 15px; }
.gallery-btn.next { left: 15px; }

.gallery-indicators { display: none; justify-content: center; gap: 8px; margin-top: 15px; }
.gallery-indicators span { width: 8px; height: 8px; background: #ddd; border-radius: 50px; transition: all 0.3s ease; }
.gallery-indicators span.active { background: var(--primary); width: 24px; }

/* --- Statistics Section --- */
.statistics-section {
    padding: 80px 50px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.statistics-section .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat-item { margin: 20px; }
.stat-item h3 { font-size: 3.5rem; margin: 0; font-weight: 900; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.stat-item p { font-size: 1.2rem; margin: 10px 0 0; opacity: 0.9; }

/* --- Reviews Section --- */
.reviews-section {
    padding: 100px 50px;
    background-color: var(--bg-light);
    text-align: center;
}

.reviews-section h2 { font-size: 2.8rem; color: var(--primary-dark); margin-bottom: 15px; font-weight: 900; }

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

.review-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.review-card:hover {
    transform: translateY(-8px);
    border-top: 4px solid var(--primary-light);
    box-shadow: var(--shadow-hover);
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.review-card p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.8;
}

.review-card h4 { color: var(--primary); font-size: 1.1rem; margin: 0; }

/* --- CTA Section --- */
.cta-section {
    background: #fff;
    padding: 100px 50px;
    text-align: center;
}

.cta-section .container {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(106, 27, 154, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-section h2 { font-size: 2.5rem; color: #fff; margin-bottom: 15px; }
.cta-section p { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 40px; }

.cta-section .btn-maiket { background: #fff; color: var(--primary-dark); }
.cta-section .btn-bazar { background: rgba(255,255,255,0.15); color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.cta-section .btn-bazar:hover { background: #fff; color: var(--primary-dark); }

/* --- SEO & Footer --- */
.seo-section {
    background-color: #fff;
    padding: 50px;
    margin: 50px auto;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: right;
}

.seo-section h2 { text-align: center; font-size: 1.8rem; color: var(--primary-dark); margin-bottom: 20px; }
.seo-section p { text-align: center; font-size: 1.1rem; line-height: 2; color: var(--text-light); }
.seo-section strong { color: var(--primary); }

.main-footer {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 40px 50px;
}

.main-footer .container { display: flex; justify-content: space-between; align-items: center; }
.footer-text { display: flex; flex-direction: column; }
.designer-text { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); margin-top: 8px; }
.designer-text a { color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: color 0.3s; }
.designer-text a:hover { color: #fff; }

.social-links a {
    color: #fff;
    text-decoration: none;
    margin-right: 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.social-links a:hover { color: var(--accent); transform: translateY(-2px); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .main-header { padding: 15px 20px; }
    .main-nav a span { display: none; }
    .main-nav a i { font-size: 1.2rem; }

    .hero-section { flex-direction: column; text-align: center; padding: 60px 20px; }
    .hero-content { margin-left: 0; margin-bottom: 40px; order: 2; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content h2 { font-size: 1.4rem; }
    .hero-image { order: 1; }
    .hero-image img { width: 100%; height: auto; max-height: 300px; }
    .download-buttons { justify-content: center; }
    .download-buttons a { padding: 12px 25px; font-size: 1rem; }

    .features-section, .reviews-section { padding: 60px 20px; }
    .features-grid, .reviews-grid { grid-template-columns: 1fr; }
    
    .gallery-indicators { display: flex; }
    
    .statistics-section { padding: 60px 20px; }
    .stat-item h3 { font-size: 2.5rem; }

    .cta-section { padding: 60px 20px; }
    .cta-section .container { padding: 40px 20px; }

    .seo-section { padding: 30px 20px; margin: 30px 15px; }

    .main-footer .container { flex-direction: column; text-align: center; }
    .footer-text { align-items: center; margin-bottom: 20px; }
    .social-links { margin-top: 0; }
}

@media (min-width: 769px) {
    .gallery-btn { display: block; }
}