/* 
=========================================
VANITY CALLS - MOBILE STYLES
Mobile-First Responsive Design
=========================================
*/

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px 40px;
        gap: 25px;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #000000 transparent;
    }

    /* Force scrollbar visibility */
    .nav-menu::-webkit-scrollbar {
        width: 4px;
    }

    .nav-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 2px;
    }

    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.5);
    }


    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-logo .logo {
        height: 60px;
        max-height: 60px;
        max-width: 320px;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 12px 30px;
        width: 100%;
        max-width: 280px;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }        
        
    .nav-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 20px;
        margin-bottom: 10px;
    }

    .social-sidebar {
        display: none;
    }
}

/* Specific adjustments for Samsung Galaxy Z Flip and similar foldable devices */
@media (max-width: 768px) and (max-height: 900px) {
    .nav-menu {
        padding: 30px 20px 30px;
        gap: 20px;
    }
    
    .nav-link {
        padding: 10px 30px;
        font-size: 1rem;
    }
}

/* Extra small screens (Galaxy Z Flip closed, etc.) */
@media (max-width: 480px) and (max-height: 700px) {
    .nav-menu {
        padding: 20px 15px 20px;
        gap: 15px;
    }
    
    .nav-link {
        padding: 8px 20px;
        font-size: 0.95rem;
    }
    
    .nav-menu::after {
        font-size: 0.7rem;
        padding: 8px;
    }
}

/* Mobile Hero Section */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-content {
        padding-right: 0;
        max-width: 100%;
        margin-top: 40px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        justify-content: center;
        gap: 15px;
    }

    .hero-image {
        max-width: 100%;
        width: 100%;
    }

    .hero-img {
        height: fit-content;
        width: 100%;
        box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.1);
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        min-width: 120px;
    }
}

/* Mobile Sections */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* Mobile About Section */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-img {
        height: fit-content;
        order: -1;
    }

    .credentials {
        justify-content: center;
    }

    .credential-item {
        justify-content: center;
        text-align: left;
    }
}

/* Mobile Extensions Grid */
@media (max-width: 768px) {
    .extensions-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .extension-card {
        padding: 30px 20px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }

    .quiz-section {
        padding: 40px 25px;
        margin: 0 10px;
    }
}

/* Mobile Services Grid */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-content {
        padding: 25px 20px;
    }

    .service-details {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Mobile Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    .gallery-item {
        padding: 15px;
    }

    .before-after-slider {
        min-height: 250px;
        aspect-ratio: 3/4; /* Taller aspect ratio for mobile */
    }

    .slider-button {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .slider-labels {
        bottom: 15px;
        left: 15px;
        right: 15px;
    }

    .before-label,
    .after-label {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .gallery-cta {
        padding: 40px 25px;
        margin: 0 10px;
    }
}

/* Mobile Reviews */
@media (max-width: 768px) {
    .reviews-slider {
        margin-bottom: 30px;
    }

    .review-card {
        padding: 30px 15px;
    }

    .review-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .reviewer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .reviewer-img {
        width: 50px;
        height: 50px;
    }

    .review-navigation {
        gap: 15px;
    }

    .review-prev,
    .review-next {
        width: 35px;
        height: 35px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Mobile Training Section */
@media (max-width: 768px) {
    .training-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .training-img {
        height: fit-content;
        order: -1;
        border: 5px solid #ffffff;
    }

    .training-features {
        justify-content: center;
    }

    .feature-item {
        justify-content: center;
        text-align: left;
    }

    .training-details {
        padding: 20px;
        text-align: left;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Mobile Contact Section */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-item {
        align-items: flex-start;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 30px 25px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .footer-social {
        gap: 15px;
    }

    .footer-social .social-link {
        width: 40px;
        height: 40px;
    }

    .footer-logo-img {
        height: 40px;
        max-height: 40px;
        max-width: 140px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        gap: 20px;
    }
}

/* Touch-Friendly Interactions */
@media (max-width: 768px) {
    .btn {
        min-height: 48px;
        touch-action: manipulation;
    }

    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .social-link {
        min-height: 48px;
        min-width: 48px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero {
        padding: 90px 15px 50px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .extension-card,
    .service-card {
        margin: 0 5px;
    }

    .quiz-section,
    .gallery-cta {
        margin: 0 5px;
        padding: 30px 20px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .review-card {
        padding: 25px 10px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-img {
        height: fit-content;
    }

    .about-img {
        height: fit-content;
    }

    .training-img {
        height: fit-content;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 120px 20px 40px;
    }

    .hero-img {
        height: fit-content;
    }

    section {
        padding: 40px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-img,
    .about-img,
    .service-image img,
    .training-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}