/* Import Vazir Font */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark: #1f2937;
    --dark-light: #374151;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --gray-lighter: #f9fafb;
    --white: #ffffff;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--white);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-brand i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.2);
}

.btn-login {
    background: var(--white);
    color: var(--primary-color) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 25px;
    font-weight: bold;
}

.btn-login:hover {
    background: var(--gray-lighter) !important;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(30, 64, 175, 0.95) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    position: relative;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23ffffff" opacity="0.03"/><circle cx="50" cy="50" r="30" fill="%23ffffff" opacity="0.05"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-features {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.feature-item i {
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

/* Platforms Section */
.platforms {
    background: var(--gray-lighter);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.platform-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.platform-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
}

.platform-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.platform-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* Products Section */
.products {
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.product-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0.03), var(--white));
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.product-badge.special {
    background: linear-gradient(135deg, var(--warning-color), #dc2626);
}

.product-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark);
    text-align: center;
}

.product-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    text-align: center;
    min-height: 60px;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-features li {
    padding: 0.6rem 0;
    color: var(--dark-light);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--gray-light);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features li i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 1rem;
    background: var(--gray-lighter);
    border-radius: 8px;
}

.product-price.secondary {
    background: var(--white);
    border: 1px solid var(--gray-light);
}

.price-label {
    font-weight: 600;
    color: var(--gray);
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Features Section */
.features-section {
    background: var(--gray-lighter);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-box .feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.feature-box p {
    color: var(--gray);
}

/* Guarantee Section */
.guarantee {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    color: var(--white);
    padding: 50px 0;
}

.guarantee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.guarantee-icon {
    font-size: 4rem;
}

.guarantee-text h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.guarantee-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta .btn {
    background: var(--white);
    color: var(--primary-color);
}

.cta .btn:hover {
    background: var(--gray-lighter);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-right: 5px;
}

.contact-info li i {
    color: var(--primary-light);
    margin-left: 5px;
}

/* Enamad Logo Styling */
.footer-col a[href*="enamad.ir"] {
    display: inline-block;
    transition: var(--transition);
}

.footer-col a[href*="enamad.ir"]:hover {
    transform: scale(1.05);
}

.footer-col a[href*="enamad.ir"] img {
    max-width: 100px;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.modal-header i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-header h3 {
    font-size: 1.8rem;
    color: var(--dark);
}

.modal-body {
    padding: 1rem 2rem;
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    text-align: center;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

/* Detail Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 100px 0 50px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumb a,
.breadcrumb span {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.product-detail {
    background: var(--white);
    border-radius: 15px;
    padding: 3rem;
    margin-top: -30px;
    box-shadow: var(--shadow-xl);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-light);
}

.detail-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    flex-shrink: 0;
}

.detail-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.detail-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    background: var(--gray-lighter);
    color: var(--dark-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.tag.primary {
    background: var(--primary-color);
    color: var(--white);
}

.detail-section {
    margin-bottom: 2.5rem;
}

.detail-section h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section h3 i {
    color: var(--primary-color);
}

.detail-section p,
.detail-section ul {
    color: var(--dark-light);
    line-height: 1.9;
    font-size: 1.05rem;
}

.detail-section ul {
    list-style: none;
    padding-right: 0;
}

.detail-section ul li {
    padding: 0.7rem 0;
    padding-right: 1.5rem;
    position: relative;
}

.detail-section ul li:before {
    content: "◀";
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.price-box {
    background: var(--gray-lighter);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.price-row:last-child {
    border-bottom: none;
}

.price-row h4 {
    font-size: 1.2rem;
    color: var(--dark);
}

.price-row .amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.info-box {
    background: #dbeafe;
    border-right: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.info-box.warning {
    background: #fef3c7;
    border-right-color: var(--warning-color);
}

.info-box.success {
    background: #d1fae5;
    border-right-color: var(--secondary-color);
}

.info-box p {
    margin: 0;
    color: var(--dark);
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-box {
    background: var(--gray-lighter);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.contact-info-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--dark);
}

.contact-info-box h3 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-family: 'Vazir', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-features {
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid,
    .platforms-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .guarantee-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .detail-header {
        flex-direction: column;
        text-align: center;
    }

    .price-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .product-card,
    .platform-card,
    .feature-box {
        padding: 1.5rem;
    }
}
