/* ============================================
   Responsive Design - با بهینه‌سازی فونت‌های فارسی
   ============================================ */

/* Desktop - Reset Mobile Menu Styles */
@media (min-width: 769px) {
    /* Reset استایل‌های ::before و ::after برای دسکتاپ */
    .nav-menu .nav-link::before {
        display: none !important;
    }
    
    .nav-menu .nav-link::after {
        display: none !important;
    }
    
    .nav-menu::before {
        display: none !important;
    }
    
    .nav-menu::after {
        display: none !important;
    }
    
    /* مخفی کردن footer منوی موبایل */
    .mobile-menu-footer {
        display: none !important;
    }
    
    /* مخفی کردن لوگو در دسکتاپ */
    .nav-menu .mobile-menu-logo {
        display: none !important;
    }
    
    /* Reset overlay */
    .menu-overlay {
        display: none !important;
    }
    
    /* Reset انیمیشن‌های موبایل */
    .nav-menu li {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    /* بهینه‌سازی فونت‌ها برای دسکتاپ */
    .banner-title {
        font-size: 3rem;
        letter-spacing: -1px;
    }
    
    .section-title {
        font-size: 2.5rem;
        letter-spacing: -0.8px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-image {
        margin-top: var(--spacing-lg);
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .package-popular {
        transform: scale(1);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .why-choose-us-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .before-after-wrapper {
        height: 350px;
    }
    
    /* Patient Videos - Tablet */
    .videos-carousel-wrapper {
        padding: 15px 0;
    }
    
    .video-card {
        flex: 0 0 calc(50% - (var(--spacing-lg) / 2));
        min-width: calc(50% - (var(--spacing-lg) / 2));
    }
    
    .videos-nav {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Testimonials Carousel - Tablet */
    .testimonials-wrapper {
        padding: 50px 40px;
    }
    
    .testimonials-slider {
        clip-path: inset(-40px -40px -40px -40px);
        margin: -40px;
        padding: 40px;
    }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 0.75rem); /* نمایش 2 کارت در تبلت */
        min-width: calc(50% - 0.75rem);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices (< 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Contact Form */
    .contact-form-wrapper {
        padding: var(--spacing-md);
        overflow: visible; /* اجازه نمایش dropdown */
    }
    
    .contact-form .form-group {
        overflow: visible; /* اجازه نمایش dropdown */
    }
    
    .contact-form label {
        font-size: 0.9rem;
    }
    
    .contact-form input[type="text"],
    .contact-form input[type="tel"],
    .contact-form input[type="email"],
    .contact-form textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    /* Country Code Selector - Mobile Responsive */
    .phone-input-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        align-items: stretch;
    }
    
    .country-code-selector {
        flex-shrink: 0;
        flex-grow: 0;
        width: auto;
    }
    
    .selected-country {
        min-width: 85px;
        max-width: 95px;
        padding: 10px 6px;
        white-space: nowrap;
    }
    
    .selected-country .country-flag {
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    .selected-country .country-code {
        font-size: 0.8rem;
        font-weight: var(--font-weight-medium);
    }
    
    .selected-country i {
        font-size: 0.7rem;
        margin-right: 4px;
    }
    
    .country-dropdown {
        width: calc(100vw - 40px);
        max-width: 320px;
        max-height: 280px;
        left: 0;
        right: auto;
        z-index: 9999;
    }
    
    .phone-input-wrapper input[type="tel"] {
        flex: 1 1 auto;
        min-width: 0;
        width: 0; /* ترفند flex برای responsive */
    }
    
    .contact-form .btn-submit {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Header */
    .header {
        border-bottom: 2px solid #064477;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .nav-wrapper {
        gap: 8px;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 55px;
        padding: 0;
        width: 100%;
    }
    
    .logo {
        order: 2;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        width: auto;
        max-width: calc(100vw - 180px);
        pointer-events: auto;
    }
    
    .logo a {
        gap: 6px;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    .logo-image {
        height: 45px;
        min-width: 100px;
        max-width: 180px;
        display: block;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-text i {
        font-size: 1.5rem;
    }
    
    /* منوی کشویی مدرن و زیبا */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        background: linear-gradient(165deg, 
            rgba(255, 255, 255, 0.98) 0%, 
            rgba(248, 249, 252, 0.98) 50%,
            rgba(255, 245, 245, 0.98) 100%);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        padding: 0;
        box-shadow: -8px 0 40px rgba(6, 68, 119, 0.15), -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .nav-menu.active {
        right: 0;
        animation: slideInRight 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    @keyframes slideInRight {
        from {
            right: -100%;
            opacity: 0;
        }
        to {
            right: 0;
            opacity: 1;
        }
    }
    
    /* هدر زیبای منوی کشویی */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: linear-gradient(135deg, #064477 0%, #064477 100%);
        box-shadow: 0 4px 20px rgba(6, 68, 119, 0.3);
        overflow: hidden;
    }
    
    /* افکت برف در هدر منو */
    .nav-menu.active::before {
        background: 
            linear-gradient(135deg, #064477 0%, #064477 100%),
            radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.25) 0%, transparent 45%);
        animation: shimmer 5s ease-in-out infinite;
    }
    
    @keyframes shimmer {
        0%, 100% {
            background-position: 0% 50%, 0% 50%, 100% 50%, 50% 100%;
        }
        50% {
            background-position: 100% 50%, 50% 0%, 0% 50%, 100% 0%;
        }
    }
    
    /* لوگو در هدر منوی موبایل */
    .nav-menu .mobile-menu-logo {
        position: absolute;
        top: 15px;
        right: 60px;
        left: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.6s ease;
    }
    
    .nav-menu.active .mobile-menu-logo {
        opacity: 1;
        transform: translateY(0);
        animation: logoSlideIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.4s both;
    }
    
    @keyframes logoSlideIn {
        from {
            opacity: 0;
            transform: translateY(-10px) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    .mobile-menu-logo img {
        height: 35px;
        max-width: 140px;
        object-fit: contain;
        filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    }
    
    .mobile-menu-logo .logo-text {
        display: flex;
        align-items: center;
        gap: 8px;
        color: white;
        font-size: 1.1rem;
        font-weight: var(--font-weight-bold);
        text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    }
    
    .mobile-menu-logo .logo-text i {
        font-size: 1.3rem;
    }
    
    /* دکمه بستن زیبا */
    .nav-menu::after {
        content: '✕';
        position: absolute;
        top: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: white;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1000;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .nav-menu::after:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    }
    
    .nav-menu.active::after {
        animation: rotateIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both,
                   pulse 3s ease-in-out 1.5s infinite;
    }
    
    @keyframes pulse {
        0%, 100% {
            box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
        }
        50% {
            box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
        }
    }
    
    /* اسکرولبار سفارشی برای منو */
    .nav-menu::-webkit-scrollbar {
        width: 6px;
    }
    
    .nav-menu::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #064477, #064477);
        border-radius: 10px;
    }
    
    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #064477, #064477);
    }
    
    @keyframes rotateIn {
        from {
            transform: rotate(-180deg) scale(0);
            opacity: 0;
        }
        to {
            transform: rotate(0) scale(1);
            opacity: 1;
        }
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: none;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.5s ease;
        list-style: none;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* انیمیشن متوالی آیتم‌ها - با استفاده از nth-of-type به جای nth-child */
    .nav-menu.active li:nth-of-type(1) { animation: slideInItem 0.6s ease 0.2s forwards; }
    .nav-menu.active li:nth-of-type(2) { animation: slideInItem 0.6s ease 0.35s forwards; }
    .nav-menu.active li:nth-of-type(3) { animation: slideInItem 0.6s ease 0.5s forwards; }
    .nav-menu.active li:nth-of-type(4) { animation: slideInItem 0.6s ease 0.65s forwards; }
    .nav-menu.active li:nth-of-type(5) { animation: slideInItem 0.6s ease 0.8s forwards; }
    .nav-menu.active li:nth-of-type(6) { animation: slideInItem 0.6s ease 0.95s forwards; }
    
    @keyframes slideInItem {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-menu li:first-of-type {
        margin-top: 100px;
    }
    
    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 18px 25px;
        font-size: 1.15rem;
        font-weight: var(--font-weight-medium);
        color: var(--text-dark);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    /* آیکون‌های زیبا برای هر لینک */
    .nav-menu .nav-link::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(6, 68, 119, 0.1), rgba(6, 68, 119, 0.05));
        border-radius: 12px;
        font-size: 1.2rem;
        color: #064477;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
    }
    
    /* آیکون‌ها برای هر لینک با استفاده از nth-of-type */
    .nav-menu li:nth-of-type(1) .nav-link::before { content: '\f015'; } /* خانه */
    .nav-menu li:nth-of-type(2) .nav-link::before { content: '\f0f0'; } /* خدمات */
    .nav-menu li:nth-of-type(3) .nav-link::before { content: '\f53a'; } /* پکیج‌ها */
    .nav-menu li:nth-of-type(4) .nav-link::before { content: '\f03e'; } /* گالری */
    .nav-menu li:nth-of-type(5) .nav-link::before { content: '\f05a'; } /* درباره ما */
    .nav-menu li:nth-of-type(6) .nav-link::before { content: '\f095'; } /* تماس */
    
    /* افکت پس‌زمینه هاور */
    .nav-menu .nav-link::after {
        content: '';
        position: absolute;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, 
            rgba(6, 68, 119, 0.08), 
            rgba(6, 68, 119, 0.03));
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: -1;
        display: block;
    }
    
    .nav-menu .nav-link:hover {
        color: #064477;
        padding-right: 30px;
        transform: scale(1.02);
    }
    
    .nav-menu .nav-link:hover::before {
        background: linear-gradient(135deg, #064477, #064477);
        color: white;
        transform: rotate(360deg) scale(1.1);
        box-shadow: 0 5px 15px rgba(6, 68, 119, 0.3);
        transition: all 0.6s ease;
    }
    
    .nav-menu .nav-link:hover::after {
        right: 0;
    }
    
    /* جداکننده زیبا */
    .nav-menu li:not(:last-child) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    /* Overlay زیبا برای منوی موبایل */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(6, 68, 119, 0.2) 100%
        );
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .menu-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    /* انیمیشن برای دکمه همبرگر */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background: white;
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background: white;
    }
    
    /* هنگامی که منو باز است، دکمه همبرگر به حالت fixed می‌رود */
    .mobile-menu-toggle.active {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        background: rgba(6, 68, 119, 0.9);
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(6, 68, 119, 0.4);
    }
    
    /* بخش Footer منوی موبایل */
    .mobile-menu-footer {
        margin-top: 0;
        padding: 20px 0;
        background: linear-gradient(180deg, 
            rgba(6, 68, 119, 0.05) 0%,
            rgba(6, 68, 119, 0.1) 100%);
        border-top: 2px solid rgba(6, 68, 119, 0.2);
        backdrop-filter: blur(10px);
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.4s ease;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .nav-menu.active .mobile-menu-footer {
        opacity: 1;
        transform: translateY(0);
        animation: slideUpFooter 0.7s ease 1.1s both;
    }
    
    @keyframes slideUpFooter {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .mobile-cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
        padding: 0 20px;
    }
    
    .mobile-cta-btn {
        width: 100%;
        padding: 18px 25px;
        font-size: 1.15rem;
        font-weight: var(--font-weight-bold);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        text-decoration: none;
        border: none;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-cta-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.6s ease;
    }
    
    .mobile-cta-btn:hover::before {
        left: 100%;
    }
    
    .mobile-cta-btn.btn-primary {
        background: linear-gradient(135deg, #064477 0%, #064477 50%, #064477 100%);
        background-size: 200% 100%;
        color: white;
        box-shadow: 0 6px 25px rgba(6, 68, 119, 0.4), 
                    0 2px 10px rgba(6, 68, 119, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        animation: gradientShift 3s ease infinite;
    }
    
    @keyframes gradientShift {
        0%, 100% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
    }
    
    .mobile-cta-btn.btn-primary:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 30px rgba(6, 68, 119, 0.5), 
                    0 4px 15px rgba(6, 68, 119, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .mobile-cta-btn.btn-primary:active {
        transform: translateY(-1px) scale(1);
    }
    
    .mobile-cta-btn i {
        font-size: 1.3rem;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    }
    
    .mobile-menu-contact {
        display: none; /* حذف شد */
    }
    
    .contact-item {
        display: none; /* حذف شد */
    }
    
    .contact-item i {
        display: none; /* حذف شد */
    }
    
    .mobile-menu-social {
        display: flex;
        justify-content: center;
        gap: 15px;
        padding: 0 20px;
    }
    
    .mobile-menu-social .social-link {
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(6, 68, 119, 0.1), rgba(6, 68, 119, 0.05));
        border-radius: 50%;
        color: #064477;
        font-size: 1.2rem;
        transition: all 0.3s ease;
        text-decoration: none;
    }
    
    .mobile-menu-social .social-link:hover {
        background: linear-gradient(135deg, #064477, #064477);
        color: white;
        transform: translateY(-3px) rotate(360deg);
        box-shadow: 0 5px 15px rgba(6, 68, 119, 0.3);
        transition: all 0.6s ease;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: 0;
        z-index: 1001;
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        order: 1;
    }
    
    .mobile-menu-toggle span {
        width: 26px;
        height: 3px;
        background: #064477;
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
    }
    
    .mobile-menu-toggle:hover span {
        background: #064477;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
        background: #064477;
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(9px, -9px);
        background: #064477;
    }
    
    .nav-cta {
        display: flex;
        flex-direction: row;
        gap: 6px;
        align-items: center;
        flex: 0 0 auto;
        z-index: 2;
        order: 3;
    }
    
    .nav-cta .btn {
        font-size: 0.8rem;
        padding: 8px 14px;
        white-space: nowrap;
    }
    
    .nav-cta .btn-outline {
        padding: 8px 12px;
    }
    
    .nav-cta .btn-outline i {
        font-size: 1rem;
    }
    
    .christmas-badge {
        display: none;
    }
    
    /* Overlay برای منوی موبایل */
    body.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 998;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* بهبود نمایش لوگو در موبایل */
    .logo a {
        align-items: center;
    }
    
    /* بهبود فاصله‌های هدر */
    .header .container {
        padding: 0 15px;
    }
    
    .footer-logo-image {
        height: 40px;
    }
    
    /* Christmas Banner */
    .christmas-banner {
        min-height: 400px;
        padding: var(--spacing-lg) 0;
        background-attachment: scroll;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-subtitle {
        font-size: 1.2rem;
    }
    
    .discount-text {
        font-size: 1.4rem;
    }
    
    .discount-text strong {
        font-size: 1.8rem;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .timer-item {
        min-width: 80px;
        padding: var(--spacing-sm);
    }
    
    .timer-number {
        font-size: 2rem;
    }
    
    .timer-label {
        font-size: 0.8rem;
    }
    
    /* Hero */
    .hero {
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero .container {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-content {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        overflow-x: hidden;
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        min-width: 0;
    }
    
    .hero-title {
        font-size: 1.4rem;
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        line-height: 1.4;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .feature-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        min-width: 0;
        flex-wrap: nowrap;
    }
    
    .feature-item span {
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        flex: 1;
        min-width: 0;
    }
    
    .feature-item i {
        flex-shrink: 0;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        gap: var(--spacing-xs);
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: center;
        overflow-wrap: break-word;
        word-break: break-word;
        white-space: normal;
        padding: 12px 16px;
        text-align: center;
    }
    
    .hero-cta .btn i {
        flex-shrink: 0;
    }
    
    .hero-image {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        margin-top: var(--spacing-md);
    }
    
    .hero-image .hero-img,
    .hero-image video.hero-video,
    .hero-video-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        height: auto;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Packages */
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    /* Portfolio Section - Mobile Fix */
    .portfolio {
        overflow: visible !important;
    }
    
    .portfolio .container {
        overflow: visible !important;
    }
    
    .portfolio-item:not(.hidden) {
        display: block !important;
        visibility: visible !important;
    }
    
    .portfolio-grid {
        overflow: visible !important;
    }
    
    .why-choose-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Payment Methods - Mobile */
    .payment-methods {
        padding: var(--spacing-lg) 0;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .payment-method-card {
        padding: var(--spacing-lg);
        max-width: 100%;
        overflow: hidden;
        position: relative;
        word-wrap: break-word;
    }
    
    .payment-method-card::before {
        height: 3px;
    }
    
    .payment-method-featured {
        grid-column: auto;
        transform: scale(1);
        border-width: 3px;
    }
    
    .featured-badge {
        top: -14px;
        right: 15px;
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    
    .payment-icon {
        width: 75px;
        height: 75px;
        font-size: 1.9rem;
        margin-bottom: var(--spacing-sm);
        box-shadow: 0 6px 20px rgba(6, 68, 119, 0.25);
    }
    
    .payment-title {
        font-size: 1.15rem;
        min-height: auto;
        line-height: 1.5;
        margin-bottom: var(--spacing-sm);
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .payment-description {
        font-size: 0.95rem;
        min-height: auto;
        line-height: 1.7;
        margin-bottom: var(--spacing-sm);
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .payment-note {
        padding: var(--spacing-sm);
        display: flex;
        flex-direction: column;
        gap: 8px;
        text-align: right;
        border-right-width: 3px;
        margin-top: var(--spacing-sm);
        overflow: hidden;
        word-wrap: break-word;
    }
    
    .payment-note i {
        font-size: 1rem;
        margin-top: 0;
        align-self: flex-start;
        flex-shrink: 0;
    }
    
    .payment-note span {
        font-size: 0.88rem;
        line-height: 1.6;
        text-align: right;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .payment-cta {
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-md);
    }
    
    .payment-cta .btn {
        width: 100%;
        font-size: 1rem;
        padding: 15px 30px;
        justify-content: center;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-filters {
        justify-content: center;
        overflow-x: auto;
        padding-bottom: var(--spacing-xs);
    }
    
    .filter-btn {
        white-space: nowrap;
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    /* Before/After Slider */
    .slider-container {
        grid-template-columns: 1fr;
    }
    
    .before-after-wrapper {
        height: 300px;
    }
    
    /* Patient Videos - Mobile */
    .videos-carousel-wrapper {
        padding: 10px 0;
        gap: var(--spacing-xs);
    }
    
    .videos-carousel {
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    .videos-track {
        gap: var(--spacing-md);
    }
    
    .video-card {
        flex: 0 0 100%;
        min-width: 100%;
        margin: 10px 0;
    }
    
    .video-thumbnail {
        padding-bottom: 56.25%; /* نسبت 16:9 حفظ می‌شود */
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 1.5rem;
    }
    
    .video-duration {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .videos-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .video-indicator {
        width: 10px;
        height: 10px;
    }
    
    .video-indicator.active {
        width: 24px;
    }
    
    /* Video Modal - Mobile */
    .video-modal-content {
        width: 95%;
    }
    
    .video-modal-close {
        top: -45px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .slider-button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .label {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    /* Testimonials Carousel - موبایل */
    .testimonials-wrapper {
        padding: 0 50px;
    }
    
    .testimonials-slider {
        padding: 40px 0;
        overflow: hidden;
    }
    
    .testimonials-track {
        padding: 0;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
        min-width: 100%;
        padding: var(--spacing-md);
    }
    
    .testimonials-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .testimonials-nav.prev {
        left: 0;
    }
    
    .testimonials-nav.next {
        right: 0;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .testimonial-name {
        font-size: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .testimonial-date {
        font-size: 0.85rem;
    }
    
    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    /* FAQ */
    .faq-question h3 {
        font-size: 1rem;
    }
    
    /* CTA */
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Floating Buttons */
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .whatsapp-btn {
        bottom: 70px;
        right: 15px;
    }
    
    .whatsapp-btn.whatsapp-btn-bottom {
        bottom: 15px;
    }
    
    .phone-btn {
        bottom: 15px;
        right: 15px;
    }
    
    .scroll-top {
        bottom: 15px;
        left: 15px;
    }
    
    .btn-tooltip {
        display: none;
    }
}

/* Small Mobile Devices (< 480px) */
@media (max-width: 480px) {
    .banner-title {
        font-size: 1.5rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .countdown-timer {
        gap: var(--spacing-xs);
    }
    
    .timer-item {
        min-width: 70px;
        padding: var(--spacing-xs);
    }
    
    .timer-number {
        font-size: 1.5rem;
    }
    
    .timer-label {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 1.1rem;
    }
    
    .logo-image {
        height: 38px;
        min-width: 90px;
        max-width: 150px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-text i {
        font-size: 1.3rem;
    }
    
    /* Phone Input - Extra Small Screens */
    .phone-input-wrapper {
        gap: 4px;
    }
    
    .selected-country {
        min-width: 75px;
        max-width: 85px;
        padding: 10px 4px;
    }
    
    .selected-country .country-flag {
        font-size: 1rem;
    }
    
    .selected-country .country-code {
        font-size: 0.75rem;
    }
    
    .selected-country i {
        font-size: 0.65rem;
        margin-right: 2px;
    }
    
    .phone-input-wrapper input[type="tel"] {
        font-size: 0.9rem;
        padding: 10px 10px;
    }
    
    .nav-cta .btn {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .nav-cta .btn-outline {
        padding: 6px 8px;
    }
    
    .mobile-menu-toggle {
        padding: 6px;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
    }
    
    .footer-logo-image {
        height: 35px;
    }
    
    .why-choose-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Payment Methods - Tablet */
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-method-featured {
        grid-column: auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .package-price {
        text-align: center;
    }
    
    .price-new {
        font-size: 1.8rem;
    }
    
    /* بهبود نمایش تومان در موبایل */
    .price-currency {
        font-size: 0.65em;
        margin-left: 3px; /* فاصله از سمت چپ در RTL */
        top: -1px;
    }
    
    .price-amount {
        letter-spacing: -0.3px;
    }
    
    /* Payment Methods - Small Mobile */
    .payment-methods {
        padding: var(--spacing-md) 0;
    }
    
    .payment-methods-grid {
        gap: var(--spacing-md);
    }
    
    .payment-method-card {
        padding: var(--spacing-md);
        overflow: hidden;
    }
    
    .payment-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }
    
    .payment-title {
        font-size: 1.05rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .payment-description {
        font-size: 0.88rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .payment-note {
        padding: 10px;
        overflow: hidden;
    }
    
    .payment-note i {
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    .payment-note span {
        font-size: 0.82rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .featured-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    /* Testimonials - Small Mobile */
    .testimonials-wrapper {
        padding: 30px 10px;
    }
    
    .testimonials-slider {
        clip-path: inset(-20px -10px -20px -10px);
        margin: -20px -10px;
        padding: 20px 10px;
    }
    
    .testimonial-card {
        padding: var(--spacing-sm);
    }
    
    .testimonials-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .testimonials-nav.prev {
        left: -5px;
    }
    
    .testimonials-nav.next {
        right: -5px;
    }
    
    .testimonial-avatar {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .testimonial-name {
        font-size: 0.95rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .testimonial-rating {
        font-size: 0.9rem;
    }
    
    /* Patient Videos - Small Mobile */
    .videos-carousel-wrapper {
        padding: 5px 0;
    }
    
    .videos-carousel {
        margin: 0 -5px;
        padding: 0 5px;
    }
    
    .video-card {
        margin: 5px 0;
        border-radius: var(--radius-md);
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button i {
        font-size: 1.3rem;
    }
    
    .videos-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .video-indicator {
        width: 8px;
        height: 8px;
    }
    
    .video-indicator.active {
        width: 20px;
    }
}

/* Landscape Orientation Adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .christmas-banner {
        min-height: 250px;
        background-attachment: scroll;
    }
    
    .nav-menu {
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

