/* Responsive Design */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) {
    .container {
        padding: 0 2rem;
    }
    
    .desktop-nav {
        gap: 1rem;
    }
    
    .nav-list {
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Tablet screens (768px to 1023px) */
@media (max-width: 1023px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-actions {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        text-align: center;
    }
    
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 12rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-company {
        grid-column: 1 / -1;
    }
}

/* Small tablets and large phones (640px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-grid {
        gap: 1.5rem;
    }
    
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-company {
        grid-column: auto;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-description,
    .footer-tagline {
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

/* Mobile phones (480px to 639px) */
@media (max-width: 639px) {
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo-container {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .company-tagline {
        display: none;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.875rem;
    }
    
    .feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .feature-description {
        font-size: 0.875rem;
    }
    
    .about-image {
        height: 15rem;
    }
    
    .service-image {
        height: 10rem;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.25rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .gallery-image {
        height: 150px;
    }
    
    .contact-form-title,
    .contact-info-title {
        font-size: 1.25rem;
    }
    
    .contact-info-item {
        padding: 0.75rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
    
    .footer-content {
        padding: 2rem 0;
    }
    
    .footer-company-name {
        font-size: 1rem;
    }
    
    .footer-description {
        font-size: 0.875rem;
    }
}

/* Very small phones (up to 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-actions {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }
    
    .btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.375rem;
    }
    
    .features-grid {
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .about-image {
        height: 12rem;
    }
    
    .service-image {
        height: 8rem;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-info-icon {
        align-self: center;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .whatsapp-float {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* Mobile Navigation Responsive */
@media (max-width: 1023px) {
    .mobile-nav.active {
        display: block;
    }
    
    .mobile-menu-btn.active i:before {
        content: "\f00d"; /* X icon */
    }
}

/* Print Styles */
@media print {
    .header,
    .whatsapp-float,
    .whatsapp-btn,
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-section {
        background: none;
        color: black;
    }
    
    .cta-section {
        background: none;
        color: black;
    }
    
    .footer {
        background: none;
        color: black;
    }
    
    .btn {
        border: 1px solid black;
        background: none;
        color: black;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .img-responsive:hover {
        transform: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .whatsapp-float:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This can be implemented if dark mode is desired */
}

/* Landscape Orientation for Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .about-image {
        height: 10rem;
    }
}