@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    background: #f4f7fc;
    color: #1e2a3a;
    line-height: 1.8;
    padding-top: 75px;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 999;
    background: rgba(10, 38, 71, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 12px 0;
    border-bottom: 3px solid #d4a747;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.logo .brand-en {
    font-size: 1.8rem;
    font-weight: 800;
    color: #d4a747;
    letter-spacing: 1px;
}
.logo .brand-fa {
    font-size: 1rem;
    color: #dce6f2;
    font-weight: 400;
}
.logo .brand-type {
    font-size: 0.7rem;
    color: #aabddb;
    background: rgba(255,255,255,0.08);
    padding: 2px 12px;
    border-radius: 20px;
    margin-right: 5px;
}
.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    font-weight: 500;
    align-items: center;
}
.nav-links a {
    color: #dce6f2;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}
.nav-links a:hover {
    color: #d4a747;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: #d4a747;
    transition: 0.3s;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-cta-btn {
    background: #d4a747;
    color: #0a2647 !important;
    padding: 6px 22px !important;
    border-radius: 40px;
    font-weight: 700 !important;
}
.nav-cta-btn:hover {
    background: #fff !important;
    color: #0a2647 !important;
}
.nav-cta-btn::after {
    display: none !important;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 4px;
    transition: 0.3s;
}

/* ===== SECTIONS ===== */
section {
    padding: 70px 0;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0a2647;
    margin-bottom: 30px;
    position: relative;
    padding-right: 20px;
}
.section-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 6px;
    width: 6px;
    height: 36px;
    background: #d4a747;
    border-radius: 8px;
}
.section-title i {
    color: #d4a747;
    margin-left: 15px;
}

/* ===== HERO ===== */
#home {
    background: linear-gradient(135deg, #0a2647 0%, #1a3b5c 100%);
    color: #fff;
    padding: 100px 0 90px;
    margin-top: -20px;
    text-align: center;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 0;
}
.hero-content h1 .gold {
    color: #d4a747;
}
.hero-sub-brand {
    font-size: 1.8rem;
    font-weight: 300;
    color: #d4a747;
    margin-top: -8px;
}
.hero-tagline {
    font-size: 1.2rem;
    font-weight: 400;
    color: #cbd9ed;
    font-style: italic;
    border-top: 2px solid #d4a747;
    padding-top: 15px;
    display: inline-block;
    margin-top: 5px;
}
.hero-content p {
    max-width: 650px;
    color: #b8cbdf;
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 30px;
}
.btn-gold {
    display: inline-block;
    background: #d4a747;
    color: #0a2647;
    font-weight: 700;
    padding: 14px 45px;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 8px 25px rgba(212, 167, 71, 0.3);
}
.btn-gold:hover {
    background: transparent;
    color: #d4a747;
    border-color: #d4a747;
    transform: translateY(-3px);
}

/* ===== STATS (جدید) ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.stat-item {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e9f0f6;
}
.stat-item span {
    font-size: 2.2rem;
    font-weight: 800;
    color: #d4a747;
    display: block;
}
.stat-item p {
    color: #1e2a3a;
    font-weight: 500;
    margin-top: 5px;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.about-text p {
    margin-bottom: 15px;
    color: #2d4059;
}
.about-badge {
    background: #f0f5fd;
    padding: 20px 25px;
    border-radius: 16px;
    border-right: 4px solid #d4a747;
}
.about-badge p {
    margin: 6px 0;
    font-size: 0.95rem;
}
.about-badge i {
    color: #d4a747;
    width: 24px;
    margin-left: 8px;
}

/* ===== CAPABILITIES ===== */
.caps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}
.cap-card {
    background: #fff;
    padding: 28px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    transition: 0.4s;
    border: 1px solid #e9f0f6;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
}
.cap-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
.cap-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(10, 38, 71, 0.08);
    border-color: #d4a747;
}
.cap-card i {
    font-size: 2.8rem;
    color: #d4a747;
    margin-bottom: 15px;
}
.cap-card h4 {
    color: #0a2647;
    font-size: 1.1rem;
}

/* ===== PRODUCTS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.product-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: 0.4s;
    border: 1px solid #edf2f9;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s;
}
.product-card.revealed {
    opacity: 1;
    transform: translateY(0);
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: #d4a747;
    box-shadow: 0 15px 45px rgba(10, 38, 71, 0.08);
}
.product-icon {
    font-size: 2.5rem;
    color: #d4a747;
    margin-bottom: 10px;
}
.product-card h3 {
    color: #0a2647;
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.product-card p {
    color: #4a5f7a;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 18px;
}
.btn-modal {
    background: #0a2647;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    align-self: flex-start;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}
.btn-modal:hover {
    background: #d4a747;
    color: #0a2647;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: #fff;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 28px;
    padding: 40px 45px;
    position: relative;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-close {
    position: sticky;
    top: 0;
    float: left;
    background: #f0f4fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    color: #1e2a3a;
    transition: 0.3s;
    margin-bottom: 15px;
}
.modal-close:hover {
    background: #d4a747;
    color: #fff;
}
.modal-box h2 {
    color: #0a2647;
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.modal-box h2 i {
    color: #d4a747;
    margin-left: 12px;
}
.modal-box h4 {
    color: #0a2647;
    margin: 20px 0 10px;
    font-size: 1.2rem;
}
.modal-box h4 i {
    color: #d4a747;
    margin-left: 10px;
}
.modal-box p, .modal-box li {
    color: #2d4059;
    font-size: 0.98rem;
}
.modal-box ul {
    list-style: none;
    padding-right: 5px;
}
.modal-box ul li {
    padding: 6px 0;
    border-bottom: 1px dashed #eaf0f6;
}
.modal-box ul li i {
    color: #d4a747;
    margin-left: 12px;
    width: 20px;
}
.feature-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.95rem;
}
.feature-table th {
    background: #0a2647;
    color: #fff;
    padding: 10px 15px;
    text-align: right;
}
.feature-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e9f0f6;
    background: #fafcff;
}
.feature-table tr:last-child td {
    border-bottom: none;
}
.benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 25px;
}
.benefit-grid span {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8faff;
    padding: 8px 15px;
    border-radius: 40px;
    font-size: 0.9rem;
}
.benefit-grid span i {
    color: #d4a747;
    width: 22px;
}
.modal-cta {
    background: #f0f5fd;
    padding: 20px 25px;
    border-radius: 16px;
    margin-top: 25px;
    border-right: 4px solid #d4a747;
}
.modal-cta a {
    color: #d4a747;
    font-weight: 700;
}
.modal-img-placeholder {
    background: #eef3f9;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 2px dashed #b6cee5;
    color: #4a6a8a;
    margin: 15px 0;
}
.modal-img-placeholder i {
    font-size: 2rem;
    color: #d4a747;
    margin-left: 10px;
}

/* ===== CONTACT ===== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.contact-info p {
    margin: 15px 0;
}
.contact-info i {
    color: #d4a747;
    width: 28px;
    margin-left: 10px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #dce6f0;
    border-radius: 12px;
    margin-bottom: 16px;
    font-family: 'Vazir', 'Tahoma', sans-serif;
    background: #fafdff;
    transition: 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #d4a747;
    box-shadow: 0 0 0 3px rgba(212, 167, 71, 0.2);
}
.contact-form textarea {
    height: 140px;
    resize: vertical;
}
.contact-form button {
    background: #0a2647;
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}
.contact-form button:hover {
    background: #d4a747;
    color: #0a2647;
}
.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== FOOTER ===== */
footer {
    background: #0a2647;
    color: #b8cbdf;
    padding: 25px 0;
    text-align: center;
    border-top: 3px solid #d4a747;
    margin-top: 30px;
}
footer .footer-brand {
    color: #d4a747;
    font-weight: 700;
    font-size: 1.2rem;
}
footer .footer-tagline {
    color: #d4a747;
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 5px;
}
footer i {
    color: #d4a747;
}
.footer-links a {
    color: #aabddb;
    margin: 0 10px;
    font-size: 0.85rem;
}
.footer-links a:hover {
    color: #d4a747;
}

/* ===== BACK TO TOP BUTTON ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #d4a747;
    color: #0a2647;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(212, 167, 71, 0.4);
    display: none;
    transition: 0.3s;
    z-index: 999;
}
#backToTop:hover {
    transform: scale(1.1);
    background: #fff;
}

/* ===== TOAST ===== */
.toast-message {
    position: fixed;
    top: 85px;
    right: 20px;
    z-index: 9999;
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-weight: 500;
    max-width: 400px;
    direction: rtl;
    border-right: 5px solid #d4a747;
    transform: translateX(120%);
    transition: transform 0.5s ease;
    color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .about-grid, .contact-wrap {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    body { padding-top: 65px; }
    .nav-links {
        display: none;
        flex-direction: column;
        background: #0a2647;
        width: 100%;
        padding: 20px 0;
        gap: 15px;
        border-top: 1px solid #264a6e;
        margin-top: 15px;
    }
    .nav-links.open {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-sub-brand {
        font-size: 1.4rem;
    }
    .hero-tagline {
        font-size: 1rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .benefit-grid {
        grid-template-columns: 1fr;
    }
    .modal-box {
        padding: 25px;
    }
    .feature-table {
        font-size: 0.8rem;
    }
    .feature-table th, .feature-table td {
        padding: 6px 10px;
    }
    .logo .brand-en {
        font-size: 1.4rem;
    }
    .logo .brand-fa {
        font-size: 0.8rem;
    }
}
@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.5rem; }
    .logo .brand-type {
        display: none;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}