/* ===================================
   RESPONSIVE CSS
====================================== */

/* ===================================
   LARGE DESKTOP (1200px and up)
====================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 4.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===================================
   DESKTOP (992px to 1199px)
====================================== */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   TABLET (768px to 991px)
====================================== */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        text-align: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
}

/* ===================================
   MOBILE LARGE (576px to 767px)
====================================== */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .top-bar {
        padding: 8px 0;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .header-content {
        height: 70px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .service-card,
    .project-card,
    .team-member,
    .blog-card {
        margin: 0 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

/* ===================================
   MOBILE SMALL (up to 575px)
====================================== */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 80px 0 50px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .service-card,
    .project-card,
    .team-member,
    .blog-card {
        margin: 0 5px;
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .about-stats {
        padding: 1rem;
    }
    
    .about-stats h3 {
        font-size: 2rem;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .client-logo {
        height: 60px;
        font-size: 1.2rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
}

/* ===================================
   LANDSCAPE MOBILE
====================================== */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 50px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* ===================================
   HIGH DPI DISPLAYS
====================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before {
        background-image: url('../img/insul1.jpg');
    }
}

/* ===================================
   PRINT STYLES
====================================== */
@media print {
    .top-bar,
    .header,
    .hero-buttons,
    .btn,
    .footer {
        display: none;
    }
    
    .hero {
        background: none;
        color: #000;
        padding: 20px 0;
    }
    
    .hero::before {
        display: none;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .service-card,
    .project-card,
    .team-member,
    .blog-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
====================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-in-up,
    .slide-in-left {
        animation: none;
    }
}

@media (prefers-contrast: high) {
    :root {
        --primary-color: #d97706;
        --secondary-color: #1e40af;
        --text-dark: #000000;
        --text-light: #374151;
        --border-color: #000000;
    }
    
    .service-card,
    .project-card,
    .team-member,
    .blog-card {
        border: 2px solid var(--border-color);
    }
}

/* ===================================
   DARK MODE SUPPORT
====================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f9fafb;
        --text-light: #d1d5db;
        --white: #1f2937;
        --light-gray: #374151;
        --border-color: #4b5563;
    }
    
    .header {
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
    }
    
    .service-card,
    .project-card,
    .team-member,
    .blog-card {
        background: var(--white);
        border-color: var(--border-color);
    }
    
    .testimonials,
    .clients {
        background: var(--light-gray);
    }
}



