/* ============================================
   EAGLE STUDIO - RESPONSIVE STYLES
   ============================================ */

/* Large Desktop */
@media (max-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Laptop / Tablet Landscape */
@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .about-preview {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 400px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        padding-left: 56px;
        padding-right: 0;
        width: 100%;
    }

    .timeline-dot {
        left: 20px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 16px 0;
        font-size: 1.0625rem;
        color: var(--color-text) !important;
        border-bottom: 1px solid var(--color-border);
    }

    .nav .btn-primary {
        margin-top: 24px;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: 550px;
    }

    .hero-content {
        margin-left: 0;
        padding: 0 24px;
        max-width: 100%;
    }

    .hero-nav {
        bottom: 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .testimonial-inner {
        padding: 32px 24px;
    }

    .page-banner {
        padding: 130px 0 70px;
    }

    .partner-card {
        width: 160px;
        height: 90px;
    }

    .trusted-card {
        width: 150px;
        height: 70px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-image img {
        height: 280px;
    }

    .about-image-badge {
        bottom: 16px;
        left: 16px;
        padding: 14px 20px;
    }

    .about-image-badge strong {
        font-size: 1.5rem;
    }

    .cta {
        padding: 60px 0;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .map-wrapper {
        height: 280px;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-author-info h4 {
        text-align: center;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        height: auto;
    }

    .hero-content {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.9375rem;
        margin-bottom: 20px;
    }
}

/* Mobile nav overlay */
@media (max-width: 768px) {
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}
