/* responsive.css */

/* Mobile-first approach */

/* Small devices (phones, 600px and down) */
@media (max-width: 600px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }

    .hero {
        padding: 80px 0;
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2.8em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .service-item, .team-member, .diff-item, .stat-item, .industry-item, .contact-item {
        padding: 25px;
    }

    .service-grid, .team-grid, .diff-grid, .stats-grid, .industry-grid, .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .methodology-step {
        flex-direction: column !important; /* Override for mobile */
        text-align: center;
        padding: 25px;
    }

    .methodology-step .icon {
        margin-bottom: 20px;
    }

    /* Header and Navigation */
    header .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        display: none; /* Hidden by default, toggled by JS */
        width: 100%;
        text-align: center;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
        padding: 20px 0;
        border-radius: 8px;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 20px;
    }

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

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

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

/* Medium devices (tablets, 601px to 992px) */
@media (min-width: 601px) and (max-width: 992px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2.2em; }

    .hero {
        padding: 100px 0;
    }

    .hero h1 {
        font-size: 3.5em;
    }

    .service-grid, .diff-grid, .stats-grid, .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .methodology-step {
        flex-direction: row; /* Ensure row direction for tablets */
        gap: 30px;
        max-width: 700px;
    }

    .methodology-step:nth-child(even) {
        flex-direction: row-reverse;
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }

    nav ul {
        display: flex !important; /* Always show nav on tablets and larger */
    }

    .menu-toggle {
        display: none;
    }
}

/* Large devices (desktops, 993px and up) */
@media (min-width: 993px) {
    .service-grid, .diff-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .industry-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-info {
        grid-template-columns: repeat(4, 1fr);
    }

    nav ul {
        display: flex !important;
    }

    .menu-toggle {
        display: none;
    }
}