/* ===================================
   Responsive Styles for Maxview Consult
   Mobile-First Approach
   =================================== */

/* Tablet Landscape and Below (1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .slide-title {
        font-size: 2.8rem;
    }
    
    .slide-text {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .customers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

/* Tablet Portrait and Below (768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .header .container {
        padding: 12px 15px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 75px);
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-list li a {
        display: block;
        padding: 15px 10px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 500px;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-text {
        font-size: 1rem;
    }
    
    .slide-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .slider-control {
        width: 40px;
        height: 40px;
    }
    
    .slider-control.prev {
        left: 15px;
    }
    
    .slider-control.next {
        right: 15px;
    }
    
    /* Sections */
    .section-padding {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Logo Slider */
    .logo-slider {
        gap: 40px;
    }
    
    .logo-slide {
        width: 120px;
        height: 60px;
    }
    
    /* Customers Grid */
    .customers-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-main {
        padding: 40px 0 30px;
    }
    
    /* Chat Widget */
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-button {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    
    .chat-box {
        width: 300px;
        bottom: 70px;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 90px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Google Translate */
    .translate-widget {
        top: 5px;
        right: 10px;
        padding: 3px 8px;
        font-size: 12px;
    }
}

/* Mobile Landscape and Below (576px) */
@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 450px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-text {
        font-size: 0.95rem;
    }
    
    .slide-buttons .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Section Header */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Service Card */
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    /* Feature Item */
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .feature-icon {
        margin: 0 auto;
    }
    
    /* Customer Card */
    .customer-card {
        padding: 30px 20px;
    }
    
    .customer-logo {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .customer-name {
        font-size: 1.1rem;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-title {
        font-size: 1.2rem;
    }
    
    .footer-text {
        font-size: 0.95rem;
    }
    
    /* Chat Box */
    .chat-box {
        width: calc(100vw - 40px);
        max-width: 280px;
        right: -10px;
    }
    
    .chat-body {
        max-height: 300px;
    }
}

/* Small Mobile (400px) */
@media (max-width: 400px) {
    .hero-slider {
        height: 400px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-text {
        font-size: 0.9rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .logo-slider {
        gap: 30px;
    }
    
    .logo-slide {
        width: 100px;
        height: 50px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .customer-logo {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .slider-control {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .slider-control.prev {
        left: 10px;
    }
    
    .slider-control.next {
        right: 10px;
    }
    
    .scroll-top {
        right: 80px;
        width: 40px;
        height: 40px;
    }
    
    .chat-button {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .chat-widget,
    .scroll-top,
    .translate-widget,
    .slider-control,
    .slider-indicators,
    .cta-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .section-padding {
        padding: 20pt 0;
    }
    
    a {
        text-decoration: underline;
    }
    
    .footer {
        background: #fff;
        color: #000;
        border-top: 2pt solid #000;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .slide-img,
    .logo-slide img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-slider {
        height: 400px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-text {
        font-size: 0.95rem;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .logo-slider {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if needed */
    /* This section is left empty as the primary design uses dark backgrounds */
}