/*==================================================
  ARCA STUDIOS - CONSOLIDATED RESPONSIVE SYSTEM
==================================================*/

/*--------------------------------------------------
  1. LARGE LAPTOPS & DESKTOPS (max-width: 1200px)
--------------------------------------------------*/
@media (max-width: 1200px) {
    .container {
        width: min(100% - 40px, var(--container));
    }

    /* Grids & Layouts */
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content {
        text-align: left;
    }

    .about-image img {
        height: 520px;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .project-card,
    .project-card.large,
    .project-card.wide {
        grid-column: span 2;
        min-height: 400px;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    /* Process Section */
    .process-wrapper {
        flex-wrap: wrap;
    }

    .process-line {
        display: none;
    }

    .process-card {
        flex: 0 0 calc(50% - 10px);
    }

    /* Testimonials Section */
    .testimonials-section {
        padding: 120px 0;
    }

    .testimonial-card {
        padding: 38px;
    }

    .testimonial-text {
        font-size: 16px;
    }

    /* Modal Popup */
    .consultation-popup {
        grid-template-columns: 1fr;
        max-width: 90%;
    }

    .popup-left,
    .popup-right {
        padding: 40px 35px;
    }
}

/*--------------------------------------------------
  2. TABLETS & MEDIUM SCREENS (max-width: 992px)
--------------------------------------------------*/
@media (max-width: 992px) {
    /* Header & Navigation */
    .main-header {
        top: 15px;
    }

    .navbar {
        padding: 12px 24px;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 50px 30px;
        gap: 24px;
        transition: left 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.08);
        border-right: 1px solid var(--border);
    }

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

    .nav-menu a {
        font-size: 16px;
    }

    .mobile-toggle {
        display: flex;
    }

    .consult-btn {
        display: none;
    }

    /* Hero & Sections */
    .hero-section {
        padding: 130px 0 60px;
    }

    .section-heading.between {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .contact-map {
        min-height: 420px;
    }

    .footer-social {
        margin-right: 0;
    }

    /* Process Timeline */
    .process-timeline::before,
    .process-progress {
        left: 18px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-left: 60px;
        margin-bottom: 90px;
    }

    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content,
    .timeline-item.left .timeline-image,
    .timeline-item.right .timeline-image {
        order: unset;
    }

    .timeline-item::before {
        left: 18px;
        top: 70px;
    }

    .timeline-content {
        padding: 40px;
    }

    .timeline-content h3 {
        font-size: 34px;
    }

    .timeline-image img {
        height: 420px;
    }

    .timeline-count {
        font-size: 70px;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 100px 0;
    }

    .testimonial-slider {
        margin-top: 60px;
        padding-bottom: 70px;
    }

    .testimonial-card {
        padding: 35px;
        border-radius: 28px;
    }

    .quote-icon {
        font-size: 90px;
        top: 20px;
        right: 25px;
    }

    .testimonial-text {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 30px;
    }

    .testimonial-user {
        gap: 15px;
    }

    .testimonial-user img {
        width: 62px;
        height: 62px;
    }

    .testimonial-user h4 {
        font-size: 18px;
    }

    .testimonial-navigation {
        margin-top: 50px;
        gap: 20px;
    }

    .testimonial-prev,
    .testimonial-next {
        width: 50px;
        height: 50px;
    }
        .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

}

/*--------------------------------------------------
  3. MOBILE DEVICES & SMALL TABLETS (max-width: 768px)
--------------------------------------------------*/
@media (max-width: 768px) {
    /* Global Section Spacing */
    .about-section,
    .services-section,
    .projects-section,
    .contact-section {
        padding: 60px 0;
    }

    /* Grids */
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card.large,
    .project-card.wide {
        grid-column: span 5;
        min-height: 340px;
    }


    /* Hero Buttons & Images */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }

    .about-image img {
        height: 380px;
    }

    .cta-box {
        padding: 45px 24px;
    }

    /* Process Section */
    .process-section {
        padding: 90px 0;
    }

    .process-wrapper {
        margin-top: 60px;
        gap: 20px;
    }

    .process-card {
        flex: 0 0 100%;
        padding: 35px 25px;
    }

    .process-number {
        font-size: 46px;
    }

    .process-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .process-card h3 {
        font-size: 24px;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 80px 0;
    }

    .testimonial-slider {
        margin-top: 50px;
        padding-bottom: 60px;
    }

    .testimonial-card {
        padding: 28px;
        border-radius: 24px;
    }

    .quote-icon {
        font-size: 70px;
        top: 15px;
        right: 18px;
    }

    .testimonial-stars {
        margin-bottom: 20px;
    }

    .testimonial-stars i {
        font-size: 14px;
    }

    .testimonial-text {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .testimonial-user {
        align-items: center;
        gap: 14px;
    }

    .testimonial-user img {
        width: 55px;
        height: 55px;
    }

    .testimonial-user h4 {
        font-size: 17px;
    }

    .testimonial-user span {
        font-size: 13px;
    }

    .testimonial-navigation {
        margin-top: 40px;
        gap: 15px;
    }

    .testimonial-prev,
    .testimonial-next {
        width: 46px;
        height: 46px;
    }

    .testimonial-pagination {
        gap: 8px;
    }

    /* Floating Controls */
    .floating-buttons {
        display: none;  
    }

    .footer-top {
        grid-template-columns: repeat(1, 1fr);
        gap: 40px;
    }

}

/*--------------------------------------------------
  4. EXTRA SMALL MOBILE DEVICES (max-width: 576px)
--------------------------------------------------*/
@media (max-width: 576px) {
    .container {
        width: calc(100% - 32px);
    }

    .navbar {
        padding: 10px 18px;
    }

    .logo img {
        width: 130px;
    }

    .hero-tag {
        font-size: 10px;
        padding: 6px 14px;
    }

    .service-card {
        padding: 28px 24px;
    }

    .info-card {
        padding: 24px 20px;
    }

    .contact-map {
        min-height: 300px;
    }

    .popup-left h2 {
        font-size: 28px;
    }

    .popup-right {
        padding: 25px 20px;
    }

    .whatsapp-float,
    .scroll-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
    }

    .whatsapp-float {
        left: 20px;
        font-size: 22px;
    }

    .scroll-top {
        right: 20px;
        font-size: 18px;
    }
}

/*--------------------------------------------------
  5. COMPACT MOBILE SCREENS (max-width: 480px)
--------------------------------------------------*/
@media (max-width: 480px) {
    .testimonial-card {
        padding: 24px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .quote-icon {
        font-size: 58px;
    }

    .testimonial-prev,
    .testimonial-next {
        width: 42px;
        height: 42px;
    }

    .testimonial-prev i,
    .testimonial-next i {
        font-size: 14px;
    }
}