/* ================================================================ */
/* RESPONSIVE - استایل‌های واکنش‌گرا
/* ================================================================ */

/* ========================================================== */
/* TABLET - 768px تا 992px
/* ========================================================== */
@media (max-width: 991.98px) {
    /* Navbar */
    .navbar-glass {
        padding: 0.625rem 1.25rem;
        border-radius: 1.5rem;
    }

    .brand-link {
        font-size: 1.375rem;
    }

    .brand-icon {
        width: 2.375rem;
        height: 2.375rem;
        font-size: 1.375rem;
    }

    .brand-name {
        font-size: 1.375rem;
    }

    .btn-menu {
        display: flex;
    }

    .btn-login span {
        display: none;
    }

    .btn-login {
        padding: 0.75rem 1rem;
        height: 3rem;
    }

    .navbar-search {
        max-width: 280px;
        margin: 0 1rem;
    }

    .search-box input {
        height: 2.75rem;
        font-size: 0.8125rem;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* CTA */
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .cta-desc {
        max-width: 100%;
    }

    .btn-cta {
        white-space: normal;
        width: 100%;
        justify-content: center;
    }

    /* Dropdown */
    .dropdown-menu-services {
        width: 300px;
        right: -50px;
    }

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

    /* Team Detail */
    .team-detail-avatar-wrapper {
        max-width: 280px;
    }

    .team-detail-avatar-glow {
        inset: -1rem;
    }

    .team-detail-name {
        font-size: 2rem;
    }

    /* Service Detail */
    .service-detail-google-mockup {
        position: static;
        margin-top: 1.5rem;
    }

    .service-detail-hero-title {
        font-size: 1.5rem;
    }
}

/* ========================================================== */
/* MOBILE - تا 768px
/* ========================================================== */
@media (max-width: 767.98px) {
    /* Hero */
    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-image {
        max-height: 350px;
    }

    .hero-image-glass {
        inset: -0.5rem;
        border-radius: 2.5rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .step-card {
        border-radius: 1rem;
    }

    .step-top {
        padding: 0.75rem 0.75rem 0.5rem 0.75rem;
    }

    .step-number {
        font-size: 1.5rem;
    }

    .step-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .step-body {
        padding: 0.25rem 0.75rem 0.75rem 0.75rem;
    }

    .step-title {
        font-size: 0.875rem;
    }

    .step-desc {
        font-size: 0.75rem;
    }

    /* Project Cards */
    /*.project-front-inner {*/
    /*    padding: 1rem;*/
    /*    min-height: 120px;*/
    /*}*/

/*    .project-title {
        font-size: 0.95rem;
    }

    .project-desc {
        font-size: 0.7rem;
    }*/
/*
    .project-stack-2 {
        height: 5rem;
    }

    .project-stack-1 {
        height: 7rem;
    }*/

   /* .project-front {
        margin-top: 4.5rem;
    }
*/
    /* Testimonials */
    .testimonial-text {
        font-size: 0.9375rem;
    }

    .testimonials-section {
        padding: 3rem 0;
    }

    /* Blog Cards */
    .blog-image-wrapper {
        height: 18px;
        padding:  0.75rem;
    }

    .blog-title {
        font-size: 1rem;
    }

    .blog-excerpt {
        font-size: 0.75rem;
    }

    /* Blog Detail */
    .blog-detail-title {
        font-size: 1.5rem;
    }

    .blog-detail-nav {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .blog-detail-meta {
        justify-content: center;
    }

    .blog-detail-excerpt p {
        font-size: 1rem;
    }

    .blog-detail-author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .blog-detail-image {
        border-radius: 1.5rem;
        border-width: 4px;
    }

    /* Blog Comments */
    .blog-comment-item {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .blog-comments-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-comment-form-wrapper {
        padding: 1.25rem;
    }

    .btn-comment-submit {
        width: 100%;
        justify-content: center;
    }

    .blog-comment-reply-nested {
        margin-right: 0.75rem;
        padding-right: 0.75rem;
        border-right: 2px solid var(--gray-200);
        border-top: none;
        padding-top: 0;
        margin-top: 0.5rem;
    }

    .blog-comment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-comment-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .blog-comment-reply {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Footer */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-desc {
        max-width: 100%;
    }

    /* Dropdown */
    .dropdown-menu-services {
        width: 280px;
        right: -20px;
        padding: 1rem;
    }

    /* Auth */
    .auth-card {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.25rem;
    }

    /* Terms */
    .terms-content-wrapper {
        padding: 1.25rem;
    }

    .terms-bullets ul {
        grid-template-columns: 1fr;
    }

    .terms-bottom-banner-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem;
    }

    /* Services */
    .service-card {
        padding: 1.25rem;
    }

    .service-card-title {
        font-size: 1rem;
    }

    /* Service Detail */
    .service-detail-hero-title {
        font-size: 1.25rem;
    }

    .service-detail-media-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        bottom: 0.75rem;
    }

    .service-detail-media-hint {
        font-size: 0.5rem;
    }

    .service-detail-title {
        font-size: 1.5rem;
    }

    /* Contact FAQ */
    .contact-faq-section {
        padding: 2rem 0 3rem 0;
    }

    .contact-faq-header {
        margin-bottom: 2rem;
    }

    .contact-faq-header-title {
        font-size: 1.5rem;
    }

    .contact-faq-header-desc {
        font-size: 0.75rem;
    }

    .contact-faq-item {
        padding: 1rem 1.125rem;
        gap: 0.75rem;
        border-radius: 1rem;
    }

    .contact-faq-item-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9375rem;
        border-radius: 0.75rem;
    }

    .contact-faq-item-title {
        font-size: 0.8125rem;
    }

    .contact-faq-item-desc {
        font-size: 0.75rem;
    }
}

/* ========================================================== */
/* MOBILE SMALL - تا 576px
/* ========================================================== */
@media (max-width: 575.98px) {
    /* Navbar */
    .navbar-glass {
        padding: 0.5rem 1rem;
        border-radius: 1.25rem;
    }

    .brand-link {
        font-size: 1.125rem;
    }

    .brand-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1.125rem;
        border-radius: 0.75rem;
    }

    .brand-name {
        font-size: 1.125rem;
    }

    .btn-theme {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1rem;
    }

    .btn-login {
        padding: 0.625rem 0.875rem;
        height: 2.75rem;
        font-size: 0.875rem;
    }

    .btn-login i {
        font-size: 0.875rem;
    }

    .btn-menu {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.125rem;
    }

    /* Hero */
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .step-number {
        font-size: 1.25rem;
    }

    .step-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }

    .step-title {
        font-size: 0.8125rem;
    }

    .step-desc {
        font-size: 0.6875rem;
    }

    .step-card {
        border-radius: 0.75rem;
    }

    .step-top {
        padding: 0.5rem 0.5rem 0.25rem 0.5rem;
    }

    .step-body {
        padding: 0.125rem 0.5rem 0.5rem 0.5rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.25rem;
    }

    .section-subtitle {
        font-size: 0.8125rem;
    }

    /* Project Cards */
/*    .project-stack-2 {
        height: 3.5rem;
        left: 8%;
        right: 8%;
    }

    .project-stack-1 {
        height: 5rem;
        left: 4%;
        right: 4%;
    }*/

/*    .project-front {
        margin-top: 3.5rem;
        border-radius: 1.5rem;
    }*/

/*    .project-front-inner {
        padding: 0.75rem;
        min-height: 100px;
        border-radius: calc(1.5rem - 2px);
    }*/

   /* .project-title {
        font-size: 0.8125rem;
    }

    .project-desc {
        font-size: 0.625rem;
    }*/

    .project-tag {
        font-size: 0.5rem;
        padding: 0.125rem 0.5rem;
    }

    .project-arrow {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.625rem;
    }

    /* Blog Cards */
    .blog-image-wrapper {
        height: 15rem;
        padding: 0.5rem;
    }

    .blog-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;    /* ← اطمینان از کاور شدن عکس */
    }

    .blog-card {
        padding: 0.5rem;
        border-radius: 1.5rem;
    }

    .blog-body {
        padding: 0.75rem 0.5rem 0.25rem 0.5rem;
    }

    .blog-title {
        font-size: 0.875rem;
    }

    .blog-excerpt {
        font-size: 0.6875rem;
    }

    .blog-date {
        font-size: 0.5625rem;
        padding: 0.125rem 0.5rem;
    }

    .blog-arrow {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.625rem;
    }

    /* Testimonials */
    .testimonial-text {
        font-size: 0.8125rem;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .testimonial-author img {
        width: 2.75rem;
        height: 2.75rem;
    }

    .author-name {
        font-size: 0.875rem;
    }

    .author-company {
        font-size: 0.75rem;
    }

    /* Pagination */
    .blog-pagination .page-item .page-link {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
        padding: 0 0.5rem;
        border-radius: 0.5rem;
    }

    /* Team Detail */
    .team-detail-avatar-wrapper {
        max-width: 200px;
    }

    .team-detail-name {
        font-size: 1.5rem;
    }

    .team-detail-role {
        font-size: 0.875rem;
    }

    .skill-badge-lg {
        font-size: 0.75rem;
        padding: 0.4rem 0.9rem;
    }

    .team-member-avatar {
        width: 6rem;
        height: 6rem;
    }

    .team-member-name {
        font-size: 1rem;
    }

    .team-member-role {
        font-size: 0.75rem;
    }

    /* Auth */
    .auth-card {
        padding: 1.25rem;
        border-radius: 1.5rem;
    }

    .auth-icon {
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 1rem;
    }

    .auth-icon-emoji {
        font-size: 1.5rem;
    }

    .auth-title {
        font-size: 1.125rem;
    }

    .auth-form-input {
        font-size: 0.8125rem;
        padding: 0.625rem 0.875rem;
    }

    .auth-submit-btn {
        font-size: 0.8125rem;
        padding: 0.75rem;
    }

    /* CTA */
    .cta-banner {
        padding: 1.25rem;
        border-radius: 1.5rem;
    }

    .cta-title {
        font-size: 1rem;
    }

    .cta-desc {
        font-size: 0.75rem;
    }

    .btn-cta {
        font-size: 0.75rem;
        padding: 0.625rem 1.25rem;
    }

    /* Footer */
    .footer {
        padding-top: 2.5rem;
        margin-top: 3rem;
    }

    .footer-brand .brand-name {
        font-size: 1.375rem;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-links a,
    .footer-contact li,
    .footer-desc {
        font-size: 0.8125rem;
    }

    /* Services */
    .service-card {
        padding: 1rem;
        border-radius: 1.25rem;
    }

    .service-card-icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1rem;
    }

    .service-card-title {
        font-size: 0.9375rem;
    }

    .service-card-desc {
        font-size: 0.75rem;
    }

    /* Filter Sidebar */
    .filter-sidebar {
        padding: 1rem;
        border-radius: 1.25rem;
    }

    .filter-btn {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }

    /* Terms */
    .terms-sidebar {
        padding: 1rem;
        border-radius: 1.5rem;
    }

    .terms-tab-btn {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }

    .terms-content-wrapper {
        padding: 1rem;
        border-radius: 1.5rem;
    }

    .terms-content-title {
        font-size: 1rem;
    }

    .terms-content-body p {
        font-size: 0.875rem;
    }

    .terms-bullets ul li {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ========================================================== */
/* VERY SMALL - تا 400px
/* ========================================================== */
@media (max-width: 399.98px) {
    .brand-link {
        font-size: 0.9375rem;
    }

    .brand-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.9375rem;
    }

    .brand-name {
        font-size: 0.9375rem;
    }

    .btn-theme {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.8125rem;
    }

    .btn-login {
        padding: 0.5rem 0.625rem;
        height: 2.25rem;
        font-size: 0.75rem;
    }

    .btn-login i {
        font-size: 0.75rem;
    }

    .btn-menu {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9375rem;
    }

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

    .hero-desc {
        font-size: 0.875rem;
    }

    .btn-hero {
        font-size: 0.8125rem;
        padding: 0.75rem 1.25rem;
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.375rem;
    }

    .step-number {
        font-size: 1rem;
    }

    .step-title {
        font-size: 0.6875rem;
    }

    .step-desc {
        font-size: 0.5625rem;
    }

    .step-icon {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.625rem;
    }

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

    .section-subtitle {
        font-size: 0.75rem;
    }
}
/* ================================================================ */
/* SUPPORT MODAL - RESPONSIVE
/* ================================================================ */

@media (max-width: 768px) {
    .support-overlay {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .support-modal {
        border-radius: 1.75rem 1.75rem 1.25rem 1.25rem;
        max-height: 94vh;
        max-width: 100%;
        margin-bottom: 0;
    }

    .support-header {
        padding: 1.25rem;
        border-radius: 1.75rem 1.75rem 0 0;
    }

    .support-body {
        padding: 1.25rem;
    }

    .support-footer {
        padding: 0.875rem 1.25rem;
        flex-direction: column;
        text-align: center;
        border-radius: 0 0 1.25rem 1.25rem;
    }

    .support-platforms {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .support-avatars {
        display: none;
    }

    .support-title {
        font-size: 1rem;
    }

    .support-call {
        flex-direction: column;
        text-align: center;
        padding: 0.875rem 1rem;
    }

    .support-call-btn {
        margin-right: 0;
        width: 100%;
        justify-content: center;
    }

    .support-actions {
        flex-direction: column;
    }

    .support-btn {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }

    .floating-support {
        bottom: 1.25rem;
        right: 1.25rem;
        gap: 0.625rem;
    }

    .floating-btn {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.25rem;
        border-radius: 1rem;
    }

    .floating-tooltip {
        font-size: 0.6875rem;
        padding: 0.5rem 0.875rem;
        max-width: 180px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .support-overlay {
        padding: 0.5rem;
    }

    .support-modal {
        border-radius: 1.25rem 1.25rem 1rem 1rem;
        max-height: 96vh;
    }

    .support-header {
        padding: 1rem;
        border-radius: 1.25rem 1.25rem 0 0;
    }

    .support-body {
        padding: 1rem;
    }

    .support-footer {
        padding: 0.75rem 1rem;
        border-radius: 0 0 1rem 1rem;
    }

    .support-platform {
        padding: 0.625rem 0.375rem;
    }

    .support-platform-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }

    .support-platform-name {
        font-size: 0.6875rem;
    }

    .support-platform-desc {
        font-size: 0.5rem;
    }

    .support-greeting {
        flex-direction: column;
        align-items: flex-start;
    }

    .support-textarea {
        min-height: 3.5rem;
        font-size: 0.75rem;
    }

    .support-input {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    .support-chat-box {
        padding: 0.875rem;
    }

    .support-section-title {
        font-size: 0.8125rem;
    }

    .support-section-desc {
        font-size: 0.6875rem;
    }

    .support-call-title {
        font-size: 0.75rem;
    }

    .support-call-btn {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }

    .support-footer-text {
        font-size: 0.625rem;
    }

    .support-footer-link {
        font-size: 0.625rem;
    }

    .floating-support {
        bottom: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }

    .floating-btn {
        width: 3rem;
        height: 3rem;
        font-size: 1.125rem;
        border-radius: 0.875rem;
    }

    .floating-tooltip {
        display: none !important;
    }

    .floating-ring {
        inset: -0.375rem;
        border-radius: 1.125rem;
    }

    .floating-ring-2 {
        inset: -0.75rem;
        border-radius: 1.375rem;
    }
}
/* ================================================================ */
/* CATEGORY DESCRIPTION - RESPONSIVE
/* ================================================================ */
@media (max-width: 768px) {
    .category-description-wrapper {
        margin-top: 2rem;
        padding: 0;
    }

    .category-description-card {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1.25rem;
        gap: 0.75rem;
        border-radius: 1.25rem;
    }

    .category-description-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.9375rem;
        border-radius: 0.75rem;
        align-self: flex-start;
    }

    .category-description-text {
        font-size: 0.875rem;
        padding-left: 0;
    }

    .category-description-decor {
        display: none;
    }

    .category-description-card::after {
        width: 3px;
    }
}

@media (max-width: 480px) {
    .category-description-card {
        padding: 1rem 1rem;
        border-radius: 1rem;
        gap: 0.625rem;
    }

    .category-description-text {
        font-size: 0.8125rem;
    }

    .category-description-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.8125rem;
    }
}
