@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn[wght].woff2') format('woff2 supports variations'),
         url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn[wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #1a56db;
    --primary-dark: #1e429f;
    --secondary-color: #4b5563;
    --accent-color: #2563eb;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --card-background: #ffffff;
    --spacing-unit: 2rem;
    --border-radius: 8px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    position: relative;
}

/* Header Styles */
.header {
    background-color: var(--card-background);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

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

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    padding: 2rem 0;
}

.hero-text {
    padding-right: 0;
    padding-left: 2rem;
    color: white;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
}

.hero-text .intro-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.btn {
    padding: 0.875rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-image {
    position: relative;
    z-index: 1;
    margin-right: -4rem;
}

.hero-visual {
    position: relative;
    min-height: 600px;
    margin-right: -6rem;
    margin-left: -2rem;
}

.mobile-app {
    position: relative;
    z-index: 2;
    animation: floatUpDown 6s ease-in-out infinite;
    margin: 0 auto;
    transform: translateX(-20%);
}

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

.mobile-frame {
    width: 300px;
    height: 600px;
    background: white;
    border-radius: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.mobile-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8fafc;
    padding: 1rem;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.app-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.app-header span {
    font-weight: 600;
    color: var(--text-color);
}

.app-content {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.app-stat {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.app-stat i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.stat-label {
    color: var(--secondary-color);
    font-size: 0.875rem;
    text-align: center;
}

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

.app-chart {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.chart-bar {
    width: 18%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: height 1s ease;
    opacity: 0.8;
}

.chart-bar:hover {
    opacity: 1;
}

.floating-invoices {
    position: absolute;
    top: -20%;
    left: -20%;
    right: -20%;
    bottom: -20%;
    pointer-events: none;
    z-index: 1;
}

.invoice-mini {
    position: absolute;
    width: 220px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateX(50px) scale(0.8);
    transition: all 0.5s ease;
    backdrop-filter: blur(5px);
}

.invoice-mini.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.invoice-mini-header {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
}

.invoice-mini-header i {
    color: var(--primary-color);
}

.invoice-mini-header span {
    font-size: 0.875rem;
    color: var(--text-color);
}

.invoice-mini-content {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
}

.invoice-mini-row {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.invoice-1 {
    top: 10%;
    left: 20%;
    transform: rotate(5deg);
    animation: orbit1 12s linear infinite;
}

.invoice-2 {
    top: 30%;
    right: 10%;
    transform: rotate(-3deg);
    animation: orbit2 15s linear infinite;
}

.invoice-3 {
    bottom: 20%;
    left: 30%;
    transform: rotate(2deg);
    animation: orbit3 18s linear infinite;
}

.invoice-4 {
    top: 50%;
    right: 25%;
    transform: rotate(-4deg);
    animation: orbit4 14s linear infinite;
}

.invoice-5 {
    bottom: 30%;
    right: 15%;
    transform: rotate(3deg);
    animation: orbit5 16s linear infinite;
}

.invoice-6 {
    top: 15%;
    left: 40%;
    transform: rotate(-2deg);
    animation: orbit6 13s linear infinite;
}

@keyframes orbit1 {
    0% { transform: translate(0, 0) scale(1) rotate(5deg); filter: blur(0); }
    25% { transform: translate(100px, 50px) scale(0.8) rotate(5deg); filter: blur(1px); }
    50% { transform: translate(0, 100px) scale(0.9) rotate(5deg); filter: blur(2px); }
    75% { transform: translate(-100px, 50px) scale(0.8) rotate(5deg); filter: blur(1px); }
    100% { transform: translate(0, 0) scale(1) rotate(5deg); filter: blur(0); }
}

@keyframes orbit2 {
    0% { transform: translate(0, 0) scale(0.9) rotate(-3deg); filter: blur(0); }
    25% { transform: translate(-80px, -50px) scale(0.7) rotate(-3deg); filter: blur(2px); }
    50% { transform: translate(-160px, 0) scale(0.8) rotate(-3deg); filter: blur(1px); }
    75% { transform: translate(-80px, 50px) scale(0.7) rotate(-3deg); filter: blur(2px); }
    100% { transform: translate(0, 0) scale(0.9) rotate(-3deg); filter: blur(0); }
}

@keyframes orbit3 {
    0% { transform: translate(0, 0) scale(0.8) rotate(2deg); filter: blur(1px); }
    33% { transform: translate(120px, -60px) scale(1) rotate(2deg); filter: blur(0); }
    66% { transform: translate(-120px, -60px) scale(0.7) rotate(2deg); filter: blur(2px); }
    100% { transform: translate(0, 0) scale(0.8) rotate(2deg); filter: blur(1px); }
}

@keyframes orbit4 {
    0% { transform: translate(0, 0) scale(0.7) rotate(-4deg); filter: blur(2px); }
    50% { transform: translate(-100px, -100px) scale(1) rotate(-4deg); filter: blur(0); }
    100% { transform: translate(0, 0) scale(0.7) rotate(-4deg); filter: blur(2px); }
}

@keyframes orbit5 {
    0% { transform: translate(0, 0) scale(0.9) rotate(3deg); filter: blur(1px); }
    33% { transform: translate(80px, 80px) scale(0.7) rotate(3deg); filter: blur(2px); }
    66% { transform: translate(-80px, 80px) scale(1) rotate(3deg); filter: blur(0); }
    100% { transform: translate(0, 0) scale(0.9) rotate(3deg); filter: blur(1px); }
}

@keyframes orbit6 {
    0% { transform: translate(0, 0) scale(1) rotate(-2deg); filter: blur(0); }
    25% { transform: translate(120px, -30px) scale(0.8) rotate(-2deg); filter: blur(1px); }
    50% { transform: translate(0, -60px) scale(0.7) rotate(-2deg); filter: blur(2px); }
    75% { transform: translate(-120px, -30px) scale(0.8) rotate(-2deg); filter: blur(1px); }
    100% { transform: translate(0, 0) scale(1) rotate(-2deg); filter: blur(0); }
}

/* Add elliptical paths for more natural orbiting */
.floating-invoices::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 300px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    pointer-events: none;
}

.floating-invoices::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 400px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(10deg);
    pointer-events: none;
}

.invoice-preview {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.invoice-header {
    background-color: var(--primary-dark);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invoice-body {
    height: 300px;
    background: repeating-linear-gradient(
        0deg,
        var(--border-color) 0px,
        var(--border-color) 1px,
        transparent 1px,
        transparent 20px
    );
    padding: 1rem;
}

.invoice-footer {
    height: 50px;
    background: var(--background-color);
    border-top: 1px solid var(--border-color);
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background-color: var(--card-background);
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title i {
    color: var(--primary-color);
}

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

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

/* About Section */
.about-section {
    background-color: var(--background-color);
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.1;
}

.about-text {
    max-width: 800px;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--card-background);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(-5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Update map styles */
.map-placeholder {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    height: 100%;
    min-height: 300px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background-color: var(--card-background);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.footer-logo i {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

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

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

    .hero-text {
        padding: 0;
    }

    .hero-visual {
        margin: 0;
        min-height: 500px;
    }

    .mobile-app {
        transform: none;
    }

    .floating-invoices {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-unit: 1.5rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .mobile-frame {
        width: 280px;
        height: 560px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-unit: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    .mobile-frame {
        width: 240px;
        height: 480px;
    }
} 