/* Responsive CSS */

/* Tablet & Smaller Laptops (max-width: 991px) */
@media (max-width: 991px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
    }

    .hero-content {
        order: 2;
    }

    .hero-visuals {
        order: 1;
        margin-bottom: 50px;
    }

    .hero-cta {
        justify-content: center;
    }

    .blob {
        opacity: 0.4;
    }

    .about-grid, .contact-wrapper, .tech-grid, .tab-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tech-grid {
        text-align: center;
    }
    
    .tech-stack {
        justify-content: center;
    }
    
    /* Disable aggressive 3D on tablet for layout safety */
    .mockup-box, .mockup-box-image {
        transform: none !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* In production, use JS to toggle class 'active' */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }

    .cta-buttons {
        display: none; /* Hide Desktop CTA on mobile */
    }
    
    .hamburger-menu {
        display: block;
        color: var(--primary-color);
        font-size: 1.5rem;
    }

    /* Typography Checks */
    .hero-title {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
        perspective: none; /* Disable perspective on mobile for performance/layout */
    }
    
    .feature-card:hover {
        transform: translateY(-5px); /* Simple lift on touch/mobile */
    }

    .tabs-header {
        flex-direction: column;
    }

    .tab-btn {
        border-bottom: 1px solid #dee2e6;
        border-top: none;
        padding: 15px;
    }

    .tab-btn.active {
        border-left: 3px solid var(--primary-color);
        border-top: none;
        border-bottom: 1px solid #dee2e6;
    }

    /* Adjust list grid for mobile */
    .tab-text ul li {
        display: grid;
        grid-template-columns: 20px auto;
        gap: 10px;
        align-items: start;
        margin-bottom: 10px;
    }
    
    .tab-text ul li i {
        color: var(--primary-color);
        margin-top: 5px;
    }
    
    .tab-text ul li span {
        font-size: 0.95rem;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
    }
    
    .contact-info, .contact-form-card {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .mockup-box, .mockup-box-image {
        height: auto;
        min-height: 200px;
        transform: none !important; /* Ensure flat on mobile */
    }
    
    .teeth-grid {
        font-size: 1.5rem;
    }
}
