/* Mobile First Responsive Design */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 70vh;
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-content {
        padding: 1rem;
    padding-top: 150px;
}
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
        margin: 0.5rem 0;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .price-card,
    .review-card {
        margin-bottom: 1.5rem;
    }
    
    /* Contact form */
    .contact-form {
        margin-bottom: 2rem;
    }
    
    /* Team photos */
    .team-photo img {
        width: 100px;
        height: 100px;
    }
    
    /* Gallery grid */
    #gallery .col-lg-3,
    #gallery .col-md-4 {
        margin-bottom: 0.5rem;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Disable animations on mobile for better performance */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .price-card:hover {
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 75vh;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        margin: 0 0.5rem 1rem 0;
    }
    
    .team-photo img {
        width: 110px;
        height: 110px;
    }
    
    /* Disable scroll animations on small devices */
    @media (max-width: 768px) {
        * {
            animation: none !important;
        }
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 85vh;
    }
    
    .hero-content {
        padding-right: 2rem;
    padding-top: 150px;
}
    
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-content {
        padding-right: 3rem;
    padding-top: 150px;
}
    
    .feature-card,
    .service-card {
        height: 100%;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: row-reverse;
    }
    
    .timeline-item:nth-child(even) .timeline-year {
        margin-left: 2rem;
        margin-right: 0;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-shapes,
    .btn,
    #footer {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .feature-card,
    .service-card,
    .price-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .feature-icon,
    .contact-icon,
    .info-icon,
    .resource-icon {
        background-size: contain;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* Dark Mode Support */

/* Reduced Data Usage */
@media (prefers-reduced-data: reduce) {
    .hero-shapes {
        display: none;
    }
    
    .feature-card:hover,
    .service-card:hover {
        transform: none;
    }
} 

body {
    overflow-x: hidden;
}