/* Responsive Design for Artisan Ink Marketplace */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 1.79rem;
    }
    
    h2 {
        font-size: 1.55rem;
    }
    
    h3 {
        font-size: 1.39rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.19rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.37rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.70rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Services Grid */
    .services-section .col-lg-4 {
        margin-bottom: 1.71rem;
    }
    
    /* Process Steps */
    .process-step {
        width: 50px;
        height: 50px;
        font-size: 1.31rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .timeline-content {
        margin-left: 50px;
        padding: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Team Section */
    .team-section .col-lg-2 {
        margin-bottom: 1.68rem;
    }
    
    /* Gallery */
    .gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.63rem;
    }
    
    .btn-group .btn {
        width: auto;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.31rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.31rem;
    }
    
    /* Cards */
    .card-columns {
        column-count: 1;
    }
    
    /* Timeline */
    .timeline::before {
        left: 25px;
    }
    
    .timeline-item::before {
        left: 25px;
    }
    
    .timeline-content {
        margin-left: 55px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 2rem;
    }
    
    /* Services */
    .services-section .row > div {
        margin-bottom: 1.58rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.57rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.52rem;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Cards */
    .card-columns {
        column-count: 2;
    }
    
    /* Timeline */
    .timeline::before {
        left: 40%;
    }
    
    .timeline-item::before {
        left: 40%;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 45%;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 45%;
        margin-right: 0;
    }
    
    /* Team Section */
    .team-section .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Gallery */
    .gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Contact Info */
    .contact-info .col-lg-4 {
        margin-bottom: 1.74rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.77rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.56rem;
    }
    
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Cards */
    .card-columns {
        column-count: 3;
    }
    
    /* Timeline */
    .timeline::before {
        left: 50%;
    }
    
    .timeline-item::before {
        left: 50%;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 52%;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 52%;
        margin-right: 0;
    }
    
    /* Team Section */
    .team-section .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Gallery */
    .gallery .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.77rem;
    }
    
    /* Container adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Cards */
    .card-columns {
        column-count: 4;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    /* Timeline */
    .timeline-content {
        padding: 2rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 3rem;
    }
    
    /* Services */
    .services-section .card:hover {
        transform: translateY(-10px);
    }
    
    /* Gallery hover effects */
    .gallery img:hover {
        transform: scale(1.08);
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    /* Container adjustments */
    .container {
        max-width: 1320px;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 3.64rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.84rem;
    }
    
    /* Enhanced spacing */
    .py-5 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 4rem;
    }
    
    /* Timeline */
    .timeline-content {
        padding: 2.5rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 100px;
}
    
    .hero-section h2 {
        font-size: 1.16rem;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-image: url('../NET_images/hero-bg@2x.webp');
    }
}

/* Dark mode support (for future enhancement) */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section h1,
    .hero-section h2,
    .hero-section p {
        animation: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .process-step:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
    
    .services-section .card:hover {
        transform: none;
    }
    
    .timeline-content {
        animation: none;
    }
}

/* Print styles */
@media print {
    /* Hide interactive elements */
    .navbar,
    .btn,
    .contact-form,
    footer,
    .breadcrumb {
        display: none;
    }
    
    /* Adjust colors for print */
    body {
        color: #000;
        background: #fff;
    }
    
    /* Ensure content fits on page */
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .py-5 {
        padding: 1rem 0;
    }
    
    /* Improve readability */
    h1, h2, h3, h4, h5, h6 {
        color: #000;
    }
    
    .card {
        border: 1px solid #ccc7c8;
        box-shadow: none;
        break-inside: avoid;
    }
    
    /* Page breaks */
    .section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Focus styles for accessibility */
@media (any-hover: hover) {
    .btn:hover {
        transform: translateY(-2px);
    }
    
    .card:hover {
        transform: translateY(-5px);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 1rem 1.5rem;
        font-size: 1.16rem;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .form-control {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Increase touch targets */
    .navbar-toggler {
        padding: 0.5rem;
    }
    
    .accordion-button {
        padding: 1.25rem;
    }
}

/* Aspect ratio adjustments */
@media (aspect-ratio: 16/9) {
    .hero-section {
        min-height: 80vh;
    }
}

@media (aspect-ratio: 4/3) {
    .hero-section {
        min-height: 70vh;
    }
}

/* Container query support (future enhancement) */
@supports (container-type: inline-size) {
    .card-container {
        container-type: inline-size;
    }
    
    @container (min-width: 300px) {
        .card-body {
            padding: 1.5rem;
        }
    }
} 