/* Mobile Responsive Design Enhancements */
@media (max-width: 992px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Layout adjustments */
    #hero {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        flex: none;
        width: 100%;
    }
    
    .hero-image {
        margin-top: 1.5rem;
    }
    
    /* Experience cards */
    .experience-card, .experience-card.reverse {
        flex-direction: column;
    }
    
    .experience-image {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Dr. profile */
    .dr-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .dr-image {
        margin: 0 auto 1.5rem;
    }
    
    /* CTA section */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav li {
        margin: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    .mobile-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--dark-color);
        cursor: pointer;
        padding: 1rem;
    }
    
    /* Social posts */
    .social-post {
        flex-direction: column;
    }
    
    .post-image {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-section {
        width: 100%;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    /* Container */
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    /* Header */
    header {
        padding: 1.5rem 0;
    }
    
    /* Sections */
    section {
        padding: 1.25rem;
        margin: 2rem 0;
    }
    
    /* Stats */
    .stats-container {
        flex-direction: column;
    }
    
    .stat-box {
        width: 100%;
    }
    
    /* Quiz */
    .quiz-container {
        padding: 1.25rem;
    }
    
    .quiz-options label {
        padding: 0.5rem;
    }
    
    /* Contact */
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form-container {
        width: 100%;
    }
    
    /* CTA section */
    .cta-section {
        padding: 2rem 1rem;
    }
    
    /* Testimonials */
    .testimonial-controls {
        margin-top: 1rem;
    }
}

/* Fix for mobile toggle button */
.mobile-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    /* Larger touch targets */
    nav a, 
    .btn,
    .cta-btn,
    .quiz-options label,
    .contact-submit,
    .newsletter-btn {
        padding: 0.8rem 1.2rem;
    }
    
    /* More space between touch elements */
    .quiz-options label {
        margin-bottom: 0.5rem;
    }
    
    /* Larger form elements */
    input, select, textarea, button {
        min-height: 44px;
    }
}

/* Animation for mobile */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
