/* Mobile First Responsive Design */

/* Small devices (phones, 576px and up) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2, .h3 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile adjustments */
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    /* Navigation mobile */
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Button sizing */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Team grid mobile */
    .team-grid {
        gap: 1rem;
    }
    
    /* Gallery mobile spacing */
    .gallery .row {
        margin: 0 -5px;
    }
    
    .gallery .col-md-4 {
        padding: 0 5px;
        margin-bottom: 10px;
    }
    
    /* Footer mobile */
    footer .col-md-6,
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Hide animations on mobile for performance */
    .card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    /* Process steps mobile */
    .process-step::after {
        display: none;
    }
    
    /* Service cards mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Blog grid mobile */
    #blog_grid .card-img-top {
        height: 200px;
    }
    
    /* Contact info mobile */
    .contact-info {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Price plan mobile */
    .price-plan .card.border-primary::before {
        font-size: 0.7rem;
        padding: 3px 15px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments for tablets */
    .hero-section {
        padding: 3rem 0;
    }
    
    h1, .display-4 {
        font-size: 2.2rem;
    }
    
    h2, .h3 {
        font-size: 1.6rem;
    }
    
    /* Team grid tablet */
    .team-grid {
        gap: 1.5rem;
    }
    
    /* Service grid tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Section padding */
    section {
        padding: 3rem 0;
    }
    
    /* Gallery tablet */
    .gallery .row {
        margin: 0 -10px;
    }
    
    .gallery .col-md-4 {
        padding: 0 10px;
        margin-bottom: 20px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography for larger tablets/small desktops */
    h1, .display-4 {
        font-size: 2.3rem;
    }
    
    h2, .h3 {
        font-size: 1.7rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 4rem 0;
    }
    
    /* Team grid */
    .team-grid {
        gap: 1.5rem;
    }
    
    /* Service grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Process steps */
    .process-step::after {
        width: 20px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
    /* Full desktop styles */
    .hero-section {
        padding: 5rem 0;
    }
    
    /* Service grid desktop */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    /* Team grid desktop */
    .team-grid {
        gap: 2rem;
    }
    
    /* Process steps desktop */
    .process-step::after {
        width: 30px;
    }
    
    /* Gallery desktop hover effects */
    .gallery img:hover {
        transform: scale(1.05);
    }
    
    /* Card hover effects */
    .card:hover {
        transform: translateY(-5px);
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1200px) {
    /* Container max width adjustments */
    .container {
        max-width: 1200px;
    }
    
    /* Hero section extra large */
    .hero-section {
        padding: 6rem 0;
    }
    
    /* Typography extra large */
    h1, .display-4 {
        font-size: 2.5rem;
    }
    
    h2, .h3 {
        font-size: 1.8rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Adjust font rendering for high DPI */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 568px) and (orientation: landscape) {
    .hero-section {
        padding: 1rem 0;
        min-height: auto;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    footer,
    .btn,
    .gallery {
        display: none !important;
    }
    
    /* Adjust colors for print */
    * {
        color: #000 !important;
        background: transparent !important;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility - Large text mode */
@media (min-width: 1200px) {
    .large-text {
        font-size: 1.2em;
    }
    
    .large-text h1, .large-text .display-4 {
        font-size: 3rem;
    }
    
    .large-text h2, .large-text .h3 {
        font-size: 2.2rem;
    }
}

/* Dark mode support (future-proofing) */

/* Reduced motion - Mobile specific */
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
    /* Disable all animations on mobile for users who prefer reduced motion */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Disable parallax and complex effects */
    .hero-section::before {
        display: none;
    }
}

/* Container adjustments for very small screens */
@media (max-width: 350px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Extra small font adjustments */
    .navbar-brand {
        font-size: 0.9rem !important;
    }
    
    h1, .display-4 {
        font-size: 1.8rem;
    }
    
    h2, .h3 {
        font-size: 1.4rem;
    }
    
    /* Button adjustments for very small screens */
    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch target sizes */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        padding: 1rem 0.5rem;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn-primary:hover,
    .gallery img:hover {
        transform: none;
    }
    
    /* Larger form controls for touch */
    .form-control {
        min-height: 44px;
        font-size: 16px;
    }
} 

.hero-section h1 {
    padding-top: 175px;
}