@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn-font@v33.003/vazirmatn-font-face.css');
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

* {
    font-family: "Vazirmatn", sans-serif;
}

:root {
    --primary: #e61c23;
    --primary-hover: #b81016;
    --bg-white: #ffffff;
    --bg-light: #f5f5f7;
    --bg-card: #ffffff;
    --text-dark: #1d1d1f;
    --text-muted: #86868b;
    --border-color: #d2d2d7;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* هدر پرچمی بالا */
.top-flag-bar {
    background: #1d1d1f;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 12px;
}

.flags-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.flags-container img {
    width: 28px;
    height: 18px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(255,255,255,0.1);
    transition: var(--transition);
    cursor: pointer;
}

.flags-container img:hover {
    transform: scale(1.3) translateY(-2px);
}

/* ناف‌بار اصلی شیشه‌ای */
.main-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 900;
    font-size: 20px;
}

.logo-area img {
    height: 50px;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 28, 35, 0.3);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

/* هیرو سکشن با موشن گرافیک اختصاصی ۸ ثانیه‌ای */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.motion-graphics-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f11 0%, #8a171c 50%, #701116 100%);
    z-index: -2;
}

/* المیان‌های شناور موشن گرافیک */
.floating-word {
    position: absolute;
    color: rgba(255, 255, 255, 0.08);
    font-weight: 900;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    direction: ltr;
    animation: floatMotion 8s infinite linear;
}

@keyframes floatMotion {
    0% {
        transform: translateY(90vh) translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    15% {
        opacity: 0.7;
    }
    85% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-15vh) translateX(100px) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 30%, rgba(15,15,17,0.8) 90%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* استایل‌های عمومی بخش‌ها */
.section-padding {
    padding: 80px 10%;
}

.bg-light-section {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* کارت‌ها */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.modern-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* کارت‌های شیشه‌ای لوکس برای نظرات جدید */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* فرم‌ها */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(230, 28, 35, 0.1);
}

/* فوتر */
.main-footer {
    background-color: #1d1d1f;
    color: white;
    padding: 50px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    border-bottom: 1px solid #3a3a3c;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aeaeaf;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 13px;
    color: #86868b;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* مخفی کردن نوار زشت و متحرک بالای گوگل ترنسلیت */
.goog-te-banner-frame.skiptranslate, 
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0px !important;
    position: static !important;
    overflow-x: hidden;
}

/* مخفی کردن تولتیپ‌ها و پاپ‌آپ‌های آزاردهنده گوگل */
.goog-tooltip, 
.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* مخفی‌سازی کامل ویجت گوگل */
#google_translate_element {
    display: none !important;
}


.logo-area img {
    border-radius: 0 !important; /* تبدیل لوگو به مربع کامل */
}

.logo-area img {
    width: 80px !important;  /* عرض دلخواه (مثلاً ۶۵ پیکسل) */
    height: 70px !important; /* ارتفاع دلخواه */
    object-fit: contain;     /* جلوگیری از کشیده شدن و دفرمه شدن لوگو */
}

/* 🍔 استایل دکمه همبرگری */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: #1d1d1f; /* یا متغیر var(--text-dark) شما */
    border-radius: 2px;
    transition: all 0.3s ease;
}


/* ==========================================================================
   📱📱📱 کدهای ریسپانسیو (Media Queries) 📱📱📱
   ========================================================================== */

/* ۱. تبلت‌ها و لپ‌تاپ‌های کوچک (کمتر از 992px) */
@media (max-width: 992px) {
    .main-navbar {
        padding: 12px 4%;
        position: relative;
    }

    /* نمایش دکمه همبرگری */
    .hamburger-btn {
        display: flex;
    }

    /* منوی کشویی موبایل */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        border-bottom: 1px solid #d2d2d7;
        display: none; /* در حالت عادی مخفی است */
    }

    /* کلاسی که با کلیک جاوااسکریپت اضافه می‌شود */
    .nav-links.active {
        display: flex;
        animation: fadeInDown 0.3s ease;
    }

    .hero-content h1 {
        font-size: 32px;
    }
}

/* ۲. تبلت‌های کوچک و گوشی‌های بزرگ (کمتر از 768px) */
@media (max-width: 768px) {
    .top-flag-bar {
        justify-content: center;
        text-align: center;
    }

    .section-padding {
        padding: 40px 4%;
    }

    .section-title {
        font-size: 24px;
    }

    .form-container {
        padding: 20px 15px;
    }

    .nav-btns {
        gap: 6px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ۳. گوشی‌های هوشمند معمولی و کوچک (کمتر از 576px) */
@media (max-width: 576px) {
    .logo-area span {
        font-size: 14px;
    }

    .logo-area img {
        width: 45px !important;
        height: 40px !important;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* تک‌ستونی کردن شبکه کارت‌ها و فرم‌ها */
    .grid-container,
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    /* تمام‌عرض شدن دکمه‌ها در موبایل */
    .nav-btns {
        flex-direction: column;
        width: 100%;
    }

    .nav-btns .btn {
        width: 100%;
    }

    /* ریسپانسیوسازی جداول در موبایل */
    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px 5px !important;
    }
}

/* انیمیشن باز شدن منوی موبایل */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
