/* ==========================================================================
   IECLATE INOVATE RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* 1. Large Tablets and Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .process-timeline {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 40px;
    }

    .timeline-line {
        display: none; /* Hide horizontal line on tablet */
    }

    .timeline-step {
        flex: 0 0 45%;
        margin-bottom: 30px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* 2. Mobile Views and Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
    /* Responsive Navigation Menu */
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(8, 27, 58, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        gap: 25px;
        transition: var(--transition-smooth);
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

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

    .nav-link {
        font-size: 1.15rem;
    }

    .hamburger-menu {
        display: flex;
    }

    /* Hamburger Menu Transform to Close X Button */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-cta {
        display: none; /* Hide primary header button */
    }

    .mobile-cta {
        display: block; /* Show menu CTA button */
        width: 80%;
        text-align: center;
        margin-top: 20px;
    }

    .mobile-cta .btn {
        width: 100%;
    }

    /* Layout Grids to 1 Column */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .why-us-grid {
        grid-template-columns: 1fr;
    }

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

    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    /* Vertical Timeline for Mobile */
    .process-timeline {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        padding-left: 30px;
        gap: 40px;
    }

    .process-timeline::before {
        content: '';
        position: absolute;
        top: 0;
        left: 15px;
        width: 2px;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
    }

    .timeline-step {
        flex: 1 1 100%;
        flex-direction: row;
        text-align: left;
        gap: 20px;
        margin-bottom: 0;
    }

    .step-number {
        margin-bottom: 0;
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
        flex-shrink: 0;
        position: relative;
        z-index: 10;
    }

    .step-content {
        padding: 20px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Testimonials Slide padding */
    .testimonial-slide {
        padding: 30px 20px;
    }

    .testimonial-slide .feedback {
        font-size: 1.1rem;
    }

    /* CTA Section */
    .cta-banner {
        padding: 50px 25px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

/* 3. Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .section-header h2,
    .section-header-flex h2 {
        font-size: 1.95rem;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .floating-illustration {
        height: 330px;
    }

    .floating-badge {
        padding: 8px 12px;
    }

    .badge-1 {
        right: -10px;
    }

    .badge-2 {
        left: -15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
