/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Large Monitors (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .section-header {
        margin-top: 100px;
    }

    .hero {
        min-height: 85vh;
    }

    .service-image {
        max-width: 700px;
        height: 450px;
    }



}

/* Desktop/Laptop (1200px - 1919px) */
@media (min-width: 1200px) and (max-width: 1919px) {
    .container {
        max-width: 1900px;
    }

    .section-header {
        margin-top: 100px;
        /* adjust based on header height */
    }

    .about {
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 500px;
        /* sets proper height to avoid extreme stretching */
        background: url('../images/background-img/about-2.png') no-repeat center center;
        background-size: cover;
        padding: 20px 0;
        /* optional, adds spacing inside */
    }

    .about-content {
        max-width: 800px;
        text-align: center;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Laptop/Small Desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .container {
        padding: 0 15px;
    }

    .hero::before {
        width: 50%;
    }

    .service-item {
        gap: 3rem;
    }

    .section-header {
        margin-top: 100px;
    }

    .service-image {
        height: 300px;
    }

    .service-content h3 {
        font-size: 1.8rem;
    }

    .service-content p {
        font-size: 1rem;
    }


    .about {
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 500px;
        /* sets proper height to avoid extreme stretching */
        background: url('../images/background-img/about-2.png') no-repeat center center;
        background-size: cover;
        padding: 20px 0;
        /* optional, adds spacing inside */
    }

    .about-content {
        max-width: 900px;
        text-align: center;
        padding: 0 25px;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .navbar .container {
        padding: 1rem clamp(20px, 4vw, 40px);
    }

    .hero {
        min-height: 60vh;
    }

    .hero::before {
        width: 45%;
        opacity: 0.7;
    }

    .hero-content {
        width: 100%;
        max-width: 500px;
    }

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

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

    /* Navigation - Simple hide approach */
    .nav-menu {
        display: none;
    }

    .navbar .container {
        justify-content: center;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }

    .about {
        background: none;
        padding: 40px 20px;
    }

    .about-content {
        max-width: 100%;
        text-align: left;
        padding: 0 15px;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Services Section - Stack vertically */
    .services-container {
        gap: 3rem;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 1rem 0;
    }

    /* Remove reverse layout on tablet */
    .service-reverse {
        grid-template-columns: 1fr;
    }

    .service-reverse .service-content {
        text-align: center;
        order: 2;
    }

    .service-reverse .service-image {
        order: 1;
    }

    .service-reverse .service-content h3::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .service-image {
        max-width: 100%;
        height: 320px;
    }

    .service-content {
        padding: 1rem;
    }

    .service-content h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .service-content h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .service-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    /* Reduce animations for better performance */
    .service-item:hover {
        transform: translateY(-5px);
    }

    .service-image:hover {
        transform: scale(1.02);
    }
}

/* Mobile Landscape & Tablet Portrait (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .nav-menu {
        gap: 1.2rem;
        display: none;
    }

    .navbar .container {
        justify-content: center;
    }

    .hero {
        min-height: 500px;
        padding: 100px 20px 50px;
    }

    .hero::before {
        width: 100%;
        opacity: 0.4;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding-right: 0;
        text-align: center;
    }

    .about {
        background: none;
        padding: 40px 20px;
    }

    .about-content {
        max-width: 100%;
        text-align: center;
        padding: 0 15px;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .service-item {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 280px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

/* Mobile Portrait (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .nav-menu {
        gap: 0.8rem;
        font-size: 0.85rem;
        display: none;
    }

    .navbar .container {
        padding: 0.8rem 15px;
        justify-content: center;
    }

    .logo {
        height: 40px;
    }

    /* Hero Section */
    .hero {
        min-height: 350px;
        padding: 100px 0 60px;
    }

    .hero::before {
        width: 100%;
        opacity: 0.4;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.95rem;
    }


    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .about {
        background: none;
        padding: 40px 20px;
    }

    .about-content {
        max-width: 100%;
        text-align: center;
        padding: 0 15px;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Services */
    .services-container {
        gap: 2.5rem;
    }

    .service-item {
        gap: 20px;
        padding: 1rem 0;
    }

    .service-image {
        height: 240px;
        border-radius: 15px;
    }

    .service-content {
        padding: 10px;
    }

    .service-content h3 {
        font-size: 1.4rem;
    }

    .service-content p {
        font-size: 0.95rem;
    }

    /* Buttons */
    .btn-primary {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    .see-more-btn {
        width: 100%;
        justify-content: center;
    }

    /* Contact */
    .contact-item {
        padding: 1.2rem;
    }

    .contact-cta {
        padding: 1.5rem;
    }

    .contact-cta p {
        font-size: 1.1rem;
    }

    .footer-map iframe {
        height: 220px;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 15px;
    }

    .navbar .container {
        padding: 0.8rem 15px;
    }

    .hero {
        min-height: 400px;
    }

    .service-image {
        height: 200px;
    }

    .service-icon {
        width: 80px;
        height: 80px;
    }

    .service-icon img {
        width: 40px;
        height: 40px;
    }
}

/* Landscape Mobile Styles */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
        min-height: 500px;
    }

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

    section {
        padding: 50px 0;
    }

    .service-image {
        height: 200px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .service-item,
    .section-header,
    .about-content p {
        opacity: 1;
        transform: none;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .service-icon img,
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .footer {
        display: none;
    }

    .hero {
        background: none;
        color: #333;
        padding: 2rem 0;
    }

    .service-image {
        background: #f0f0f0;
        box-shadow: none;
    }

    .btn-primary {
        background: none;
        color: #0066cc;
        border: 1px solid #0066cc;
    }
}