/* Smart Wardrobe Template - Responsive CSS */

/* Extra Large Devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .service-card,
    .feature-card,
    .price-card {
        padding: 2.5rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .service-card img {
        height: 180px;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .service-card,
    .feature-card,
    .price-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-card img {
        height: 160px;
    }
    
    .team-member {
        padding: 1.25rem;
    }
    
    .team-member img {
        width: 70px;
        height: 70px;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    .timeline-item {
        width: 80%;
        margin-left: 2rem;
    }
    
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item::before {
        left: -21px;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        text-align: center;
    }
    
    .service-card,
    .feature-card,
    .price-card,
    .review-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .service-card img {
        height: 140px;
    }
    
    .team-member {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .team-member img {
        width: 60px;
        height: 60px;
    }
    
    .process-step {
        margin-bottom: 1.5rem;
        padding: 1.25rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .timeline-item {
        width: calc(100% - 2rem);
        margin-left: 2rem;
        padding: 1.5rem;
    }
    
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item::before {
        left: -21px;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .accordion-button {
        padding: 1rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .hero-section {
        min-height: 70vh;
        padding: 1.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .hero-image {
        text-align: center;
    }
    
    .hero-image img {
        border-radius: 10px;
    }
    
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.5rem 1rem;
    }
    
    .service-card,
    .feature-card,
    .price-card,
    .review-card {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card img {
        height: 120px;
    }
    
    .service-card h4,
    .feature-card h4,
    .price-card h4 {
        font-size: 1.125rem;
    }
    
    .service-card .price {
        font-size: 1.25rem;
        padding: 0.375rem 0.75rem;
    }
    
    .team-member {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .team-member img {
        width: 50px;
        height: 50px;
    }
    
    .team-member h5 {
        font-size: 1rem;
    }
    
    .team-member p {
        font-size: 0.8rem;
    }
    
    .process-step {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-item {
        width: calc(100% - 1.5rem);
        margin-left: 1.5rem;
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline::before {
        left: 0.75rem;
    }
    
    .timeline-item::before {
        left: -16px;
        width: 16px;
        height: 16px;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 1.5rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .contact-form .form-control {
        padding: 0.625rem 0.875rem;
    }
    
    .contact-form textarea.form-control {
        min-height: 100px;
    }
    
    .btn-primary {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-outline-primary {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
    }
    
    .accordion-button {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 0.875rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer p {
        font-size: 0.875rem;
    }
    
    .breadcrumb-nav {
        padding: 0.75rem 0;
    }
    
    .space-container {
        min-height: 40vh;
    }
}

/* Utility Classes for Responsive Design */
.d-block-mobile {
    display: none !important;
}

.d-none-mobile {
    display: block !important;
}

@media (max-width: 767px) {
    .d-block-mobile {
        display: block !important;
    }
    
    .d-none-mobile {
        display: none !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .form-control {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .service-card img,
    .team-member img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .breadcrumb-nav {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .card,
    .service-card,
    .feature-card,
    .price-card,
    .review-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
    
    .bg-primary {
        background: #fff !important;
        color: #000 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .card:hover,
    .service-card:hover,
    .feature-card:hover,
    .price-card:hover,
    .review-card:hover,
    .team-member:hover,
    .process-step:hover {
        transform: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    .gallery-section img:hover {
        transform: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card,
    .service-card,
    .feature-card,
    .price-card,
    .review-card,
    .team-member,
    .process-step {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* Dark Mode Support (if needed in future) */
