/* assets/css/responsive.css */
/* Responsive Design Styles */

/* iPhone 16 Pro Max and similar large phones */
@media screen and (max-width: 430px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 20px;
        height: 70px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-tagline {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .section-title {
        font-size: 2rem;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .intro-text .section-title {
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2.5rem 1.5rem;
    }

    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .company-logo {
        padding: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-legal {
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}

/* Small phones (320px - 390px) */
@media screen and (max-width: 390px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .services-grid,
    .blog-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .company-logo img {
        max-width: 100px;
    }

    .intro-section,
    .services-preview,
    .blog-preview,
    .testimonials {
        padding: 6rem 0;
    }
}

/* Tablets (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .intro-content {
        gap: 4rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .companies-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Navigation Responsive */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--box-shadow);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem 2rem;
        display: block;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-image,
    .blog-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* 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;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .back-to-top,
    .footer {
        display: none;
    }

    .hero {
        min-height: auto;
        background: none !important;
        color: #000;
    }

    .hero-title {
        color: #000;
    }

    .section-title {
        color: #000;
    }

    .container {
        max-width: none;
    }
}