/* Responsive Styles for VandaHost */

@media (max-width: 992px) {

    /* تبلت و لپ‌تاپ‌های کوچک */
    .container {
        padding: 0 15px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 20px;
    }

    .hero-text {
        max-width: 100%;
        margin-top: 40px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    .logo {
        width: 140px;
    }

    /* مخفی کردن منوی اصلی و دکمه‌ها در تبلت (برای تبدیل به منوی موبایلی) */
    .main-nav,
    .header-action {
        display: none;
    }

    .mobile-toggle {
        display: block;
        color: #fff;
    }
}

@media (max-width: 768px) {

    /* موبایل */
    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* اضافه شده برای باز شدن منوی موبایل */
@media (max-width: 992px) {
    .main-nav.active,
    .header-action.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface);
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        z-index: 999;
        animation: slideDown 0.3s ease forwards;
    }

    .header-action.active {
        top: auto; /* بعد از منو قرار بگیره */
        position: relative; 
        border-top: 1px solid rgba(255,255,255,0.05);
        margin-top: 0;
    }

    .main-nav.active ul {
        flex-direction: column;
        width: 100%;
    }

    .dropdown {
        position: static; /* در موبایل زیر هم باز بشن */
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding-right: 20px;
        display: none; /* پیش‌فرض بسته */
    }

    .has-dropdown:hover .dropdown {
        display: block;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}