/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Nav logo adjustments */
@media (min-width: 769px) {
    .nav-logo .logo-title {
        white-space: nowrap;
    }
}

/* Tablet Styles (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero {
        padding: 110px 0 70px;
    }
    
    .hero-container {
        padding: 0 var(--spacing-sm);
        gap: var(--spacing-xl);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        gap: var(--spacing-xl);
    }
    
    .services-grid,
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-lg);
    }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    body {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    .container, section, main, .hero, .about, .services, .gallery, .contact, .footer, .navbar {
        max-width: 100%;
        box-sizing: border-box;
    }
    .header {
        left: 0;
        right: 0;
        width: 100%;
        backdrop-filter: none;
    }
    /* Typography Adjustments */
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-title::after {
        width: 50px;
    }
    
    /* Header Mobile - full-height side menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh;
        min-height: 100dvh;
        background: rgba(255, 253, 247, 0.98);
        backdrop-filter: blur(10px);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-backdrop.active {
        display: block;
        opacity: 1;
    }
    .nav-list {
        flex-direction: column;
        gap: var(--spacing-lg);
        margin-top: var(--spacing-xl);
    }
    .nav-link {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1.1rem;
        border-radius: var(--radius-lg);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1002;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-3px, 4px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-3px, -4px);
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 95px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .feature-item {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-image {
        order: 0;
        margin-top: var(--spacing-sm);
    }
    
    .hero-image-card {
        max-width: 320px;
    }

    .header-image {
        max-height: 420px;
    }
    
    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .about-text h3 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .about-image {
        text-align: center;
    }
    
    .about-image img {
        height: 300px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-badge {
        position: static;
        margin: var(--spacing-md) auto 0;
        display: inline-block;
    }
    
    /* Services Section Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-card {
        padding: var(--spacing-lg);
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .services-cta .btn {
        max-width: 280px;
    }
    
    /* Why Choose Us Section Mobile */
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .why-choose-card {
        padding: var(--spacing-lg);
    }
    
    .why-choose-card h3 {
        font-size: 1.3rem;
    }
    
    .why-choose-text-en {
        font-size: 0.95rem;
    }
    
    .why-choose-text-hi {
        font-size: 0.9rem;
    }
    
    .why-choose-badge {
        font-size: 0.8rem;
        padding: 5px 12px;
        top: -10px;
        right: 15px;
    }
    
    /* Reviews Section Mobile */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .review-card {
        padding: var(--spacing-lg);
    }
    
    /* Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .contact-info h3 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .contact-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* FAQ Section Mobile */
    .faq-question h4 {
        font-size: 1rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Back to Top Mobile - lowest button, closer to bottom */
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: max(20px, calc(20px + env(safe-area-inset-bottom, 0px)));
        right: max(14px, env(safe-area-inset-right, 14px));
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
    /* Typography Adjustments */
    html {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Container Adjustments */
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    .nav-container {
        padding: 0 var(--spacing-xs);
    }
    
    .hero-container {
        padding: 0 var(--spacing-xs);
    }
    
    /* Hero Section Small Mobile */
    .hero {
        padding: 92px 0 50px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: var(--spacing-xs) var(--spacing-md);
    }
    
    .hero-image-card {
        max-width: 280px;
    }
    
    .header-image {
        max-height: 360px;
    }
    
    .overlay-text {
        font-size: 1rem;
    }
    
    /* About Section Small Mobile */
    .about-text h3 {
        font-size: 1.6rem;
    }
    
    .about-image img {
        height: 250px;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .highlight-item i {
        margin: 0;
    }
    
    /* Services Section Small Mobile */
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Contact Section Small Mobile */
    .contact-info h3 {
        font-size: 1.6rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .contact-item i {
        margin: 0 auto;
    }
    
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    /* FAQ Section Small Mobile */
    .faq-question {
        padding: var(--spacing-md);
    }
    
    .faq-question h4 {
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        font-size: 0.85rem;
    }
    
    /* Footer Small Mobile */
    .footer-logo h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 3px var(--spacing-xs);
    }
}

/* Large Mobile Styles (min-width: 481px) and (max-width: 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn {
        width: auto;
        max-width: none;
    }
    
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feature-item {
        width: auto;
        max-width: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .contact-actions .btn {
        width: auto;
        max-width: none;
    }
}

/* Tablet Landscape Styles (min-width: 769px) and (max-width: 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Desktop Styles (min-width: 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .nav-container,
    .hero-container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xxl);
    }
    
    .why-choose-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-xl);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xxl);
    }
}

/* Print Styles */
@media print {
    .header,
    .scroll-indicator,
    .back-to-top,
    .whatsapp-float,
    .rate-us-float,
    .hero-features,
    .contact-actions,
    .footer-social {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero,
    .about,
    .services,
    .reviews,
    .contact,
    .faq {
        background: white !important;
        padding: 20px 0 !important;
    }
    
    .btn {
        background: #f0f0f0 !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
}

@media (max-width: 768px) {
    /* WhatsApp mobile - above Back to top (20 + 45 + 12) */
    .whatsapp-float {
        bottom: max(76px, calc(76px + env(safe-area-inset-bottom, 0px)));
        right: max(14px, env(safe-area-inset-right, 14px));
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        border-radius: 50%;
    }
    .whatsapp-float i {
        font-size: 1.65rem;
    }
    .whatsapp-float-text {
        display: none;
    }
    
    /* Rate us mobile - above WhatsApp (76 + 44 + 12) */
    .rate-us-float {
        bottom: max(132px, calc(132px + env(safe-area-inset-bottom, 0px)));
        right: max(14px, env(safe-area-inset-right, 14px));
        width: 44px;
        height: 44px;
    }
    .rate-us-float i {
        font-size: 1.65rem;
    }
    
    /* Mobile gallery improvements */
    .gallery {
        padding: 40px 10px;
    }
    
    .gallery-header h2 {
        font-size: 1.6rem;
    }
    
    .gallery-header p {
        font-size: 0.9rem;
    }
    
    .gallery-row {
        gap: 12px;
        padding-bottom: 15px;
    }
    
    .gallery-item {
        width: 180px;
        height: 180px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .gallery-item-horizontal {
        width: 200px;
        height: 160px;
        border-radius: 12px;
    }
    
    .gallery-scroll {
        position: relative;
        padding: 0 5px;
        margin: 0 -5px;
    }
    
    .gallery-scroll::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 100%;
        background: linear-gradient(to left, rgba(255, 248, 239, 1), transparent);
        pointer-events: none;
        z-index: 1;
    }
    
    /* Mobile gallery: swipe hint */
    .gallery-swipe-hint {
        display: block;
        text-align: center;
        margin-top: 8px;
        margin-bottom: 16px;
        font-size: 0.85rem;
        color: var(--text-light);
        font-weight: 500;
    }
    .gallery-swipe-hint i {
        margin-right: 6px;
        color: var(--primary-saffron);
        animation: pulse-horizontal 2s ease-in-out infinite;
    }
    
    @keyframes pulse-horizontal {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(5px); }
    }
    
    .gallery-overlay h4 {
        font-size: 0.8rem;
        padding: 8px;
    }
    
    /* Better scrollbar visibility on mobile */
    .gallery-scroll::-webkit-scrollbar {
        height: 6px;
    }
    
    .gallery-scroll::-webkit-scrollbar-thumb {
        background: var(--primary-saffron);
        border-radius: 10px;
    }
    
    /* Prevent text selection while swiping */
    .gallery-item {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}