/* Responsive Design - Mobile First Approach */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-content {
        gap: 2rem;
    }

    .contact-content {
        gap: 2rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .navbar {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-menu {
        position: fixed;
        top: 4rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 4rem);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 2.5rem;
        height: 2.5rem;
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 0;
    }

    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-primary);
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Hero Mobile */
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 6rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    /* Services Mobile */
    .services {
        padding: 4rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    /* About Mobile */
    .about {
        padding: 4rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .image-placeholder {
        height: 250px;
        font-size: 3rem;
    }

    .tech-icons {
        gap: 0.75rem;
    }

    .tech-icons i {
        font-size: 1.5rem;
    }

    /* Testimonials Mobile */
    .testimonials {
        padding: 4rem 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* Clients Mobile */
    .clients {
        padding: 4rem 0;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .client-logo {
        padding: 1rem;
    }

    .client-placeholder i {
        font-size: 2rem;
    }

    .client-placeholder span {
        font-size: 0.75rem;
    }

    /* Contact Mobile */
    .contact {
        padding: 4rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-method {
        justify-content: center;
    }

    .form {
        padding: 2rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom p {
        font-size: 0.875rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    /* Section spacing */
    .services,
    .about,
    .testimonials,
    .clients,
    .contact {
        padding: 3rem 0;
    }

    /* Typography adjustments */
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    /* Card adjustments */
    .service-card,
    .testimonial-card,
    .form {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }

    /* Button adjustments */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    /* Feature items */
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .feature-icon {
        margin: 0 auto;
    }

    /* Contact methods */
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    /* Grid adjustments */
    .services-grid,
    .testimonials-grid {
        gap: 1rem;
    }

    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Form adjustments */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 16px;
    }
}

/* Extra small devices (max-width: 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 5rem 1rem 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .service-card,
    .testimonial-card,
    .form {
        padding: 1.25rem;
    }

    .form {
        padding: 1.5rem;
    }
}

/* Landscape orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 1.5rem 2rem;
    }

    .hero-stats {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .feature-icon,
    .contact-icon {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    }
}

/* Print styles */
@media print {
    .navbar,
    .scroll-indicator,
    .hero-buttons,
    .social-links,
    .footer-bottom {
        display: none;
    }

    .hero {
        height: auto;
        padding: 2rem 0;
    }

    .services,
    .about,
    .testimonials,
    .clients,
    .contact {
        padding: 2rem 0;
    }

    .service-card,
    .testimonial-card {
        break-inside: avoid;
    }
}