/* Mobile First Responsive Design */

/* Extra Small Devices (Portrait Phones) - 576px and down */
@media (max-width: 575.98px) {
    /* Typography */
    .display-5 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    h1, h2 {
        font-size: 1.75rem;
    }
    
    h3, h4 {
        font-size: 1.5rem;
    }
    
    h5, h6 {
        font-size: 1.25rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    #hero .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* Gallery */
    .gallery-item:hover {
        transform: none;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group .btn {
        width: auto;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Text alignment */
    .text-center-mobile {
        text-align: center;
    }
    
    /* Hide decorative elements on mobile */
    .decorative-shape {
        display: none;
    }
    
    /* Footer */
    #footer {
        text-align: center;
    }
    
    #footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* No animations on mobile to respect reduced motion */
    .card:hover,
    .gallery-item:hover,
    .btn:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Small Devices (Landscape Phones) - 576px to 767.98px */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    #hero {
        min-height: 80vh;
    }
    
    .display-5 {
        font-size: 2.5rem;
    }
    
    /* Sections */
    section {
        padding: 4rem 0;
    }
    
    /* Cards in grid */
    .card-columns {
        column-count: 2;
    }
    
    /* Gallery grid */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Buttons */
    .btn {
        width: auto;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Medium Devices (Tablets) - 768px to 991.98px */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }
    
    /* Hero */
    #hero {
        min-height: 70vh;
    }
    
    /* Sections */
    section {
        padding: 4.5rem 0;
    }
    
    /* Cards */
    .card-deck {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Gallery */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Team section */
    .team-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Pricing cards */
    .pricing-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Forms */
    .contact-form {
        max-width: 80%;
        margin: 0 auto;
    }
}

/* Large Devices (Desktops) - 992px to 1199.98px */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full desktop experience starts here */
    
    /* Hero */
    #hero {
        min-height: 100vh;
    }
    
    /* Sections */
    section {
        padding: 5rem 0;
    }
    
    /* Enable hover effects */
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .gallery-item:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
    
    /* Gallery */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    /* Team section */
    .team-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    /* Pricing cards */
    .pricing-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    /* Show decorative elements */
    .decorative-shape {
        display: block;
    }
}

/* Extra Large Devices (Large Desktops) - 1200px and up */
@media (min-width: 1200px) {
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Hero */
    .display-5 {
        font-size: 3rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
    
    /* Sections */
    section {
        padding: 6rem 0;
    }
    
    /* Gallery */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    /* Team section */
    .team-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
    
    /* Enhanced spacing */
    .py-6 {
        padding-top: 8rem !important;
        padding-bottom: 8rem !important;
    }
    
    /* Larger decorative elements */
    .decorative-shape.shape-1 {
        width: 300px;
        height: 300px;
    }
    
    .decorative-shape.shape-2 {
        width: 250px;
        height: 250px;
    }
}

/* Ultra Wide Screens - 1400px and up */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Even larger hero text */
    .display-5 {
        font-size: 3.5rem;
    }
    
    /* More generous spacing */
    section {
        padding: 7rem 0;
    }
    
    /* Gallery with more columns */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 2.5rem;
    }
}

/* Landscape Orientation Specific */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows for high DPI screens */
    .card {
        border-width: 0.5px;
    }
    
    .btn {
        border-width: 1px;
    }
    
    .form-control {
        border-width: 1px;
    }
}

/* Print Specific Responsive Adjustments */
@media print {
    @page {
        margin: 1in;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    
    .row {
        display: block !important;
    }
    
    .col-lg-6,
    .col-md-6,
    .col-sm-6 {
        width: 50% !important;
        float: left !important;
    }
    
    .col-lg-4,
    .col-md-4 {
        width: 33.333% !important;
        float: left !important;
    }
    
    .col-lg-3,
    .col-md-3 {
        width: 25% !important;
        float: left !important;
    }
    
    .gallery-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Dark Mode Support */

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover transforms */
    .card:hover,
    .gallery-item:hover,
    .btn:hover {
        transform: none !important;
    }
    
    /* Remove fade-in animations */
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    /* Increase contrast for better accessibility */
    .btn-outline-success {
        border-width: 2px !important;
    }
    
    .card {
        border: 2px solid currentColor !important;
    }
    
    .form-control {
        border-width: 2px !important;
    }
    
    /* Ensure sufficient color contrast */
    .text-muted {
        color: #666 !important;
    }
    
    .bg-light {
        background-color: #f0f0f0 !important;
    }
} 