/* ===== Tablet Styles (768px - 1024px) ===== */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    section h2 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

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

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

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

    .project-categories {
        grid-template-columns: 1fr;
    }
}

/* ===== Mobile Styles (max 767px) ===== */
@media screen and (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    /* Header & Navigation */
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo p {
        font-size: 0.8rem;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 10px;
        right: 0;
    }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 400px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
    }

    nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav a {
        display: block;
        padding: 1rem 0;
    }

    /* Hero Section */
    .hero {
        height: 400px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

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

    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 1.8rem;
    }

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

    /* Grids - Single Column */
    .services-grid,
    .benefits-grid,
    .projects-grid,
    .project-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card,
    .benefit-card,
    .category-card {
        padding: 1.5rem;
    }

    .service-card h3,
    .benefit-card h3,
    .category-card h3 {
        font-size: 1.2rem;
    }

    /* Contact Section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-container {
        height: 300px;
    }

    /* Lightbox */
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 0.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    footer {
        margin-top: 3rem;
    }
}

/* ===== Small Mobile (max 480px) ===== */
@media screen and (max-width: 480px) {
    .hero {
        height: 350px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    .slider-controls {
        bottom: 10px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

/* ===== Landscape Mobile ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    header,
    footer,
    .mobile-menu-toggle,
    .slider-controls,
    .lightbox,
    .btn-primary {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero {
        height: auto;
        page-break-after: always;
    }

    section {
        page-break-inside: avoid;
    }
}