/* Upcycle Mastery - Responsive CSS */
/* Mobile-First Design - Bootstrap 5 Compatible */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Mobile */
    .navbar-brand {
        font-size: 1.22rem;
    }
    
    h1, .h1 {
        font-size: 1.82rem;
    }
    
    h2, .h2 {
        font-size: 1.59rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-section .container {
        text-align: center;
    }
    
    /* Section Spacing Mobile */
    section {
        padding: 2rem 0;
    }
    
    /* Card Adjustments */
    .card {
        margin-bottom: 1.60rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    /* Team Cards Mobile */
    .team-section .card-img-top {
        height: 200px;
    }
    
    /* Services Grid Mobile */
    .col-lg-2-4 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Process Numbers Mobile */
    .process-section .rounded-circle {
        width: 50px;
        height: 50px;
        font-size: 1.31rem;
    }
    
    /* Contact Form Mobile */
    .contact-section .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    /* Gallery Mobile */
    .gallery-section .col-md-4 {
        margin-bottom: 0.67rem;
    }
    
    /* Navigation Mobile - NO CUSTOM HAMBURGER */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 1.19rem;
    }
    
    /* Footer Mobile */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer .text-end {
        text-align: center;
    }
    
    /* Space Page Mobile */
    #space::before {
        font-size: 1.51rem;
        text-align: center;
    }
    
    /* Remove Animations on Mobile */
    .card:hover {
        transform: none;
    }
    
    .gallery-section img:hover {
        transform: none;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 85vh;
    }
    
    .col-lg-2-4 {
        width: 50%;
    }
    
    .process-section .rounded-circle {
        width: 55px;
        height: 55px;
    }
    
    .card-img-top {
        height: 175px;
    }
    
    /* Reduced animations on small devices */
    @media (prefers-reduced-motion: no-preference) {
        .card:hover {
            transform: translateY(-5px);
        }
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .col-lg-2-4 {
        width: 50%;
    }
    
    h1, .h1 {
        font-size: 1.97rem;
    }
    
    h2, .h2 {
        font-size: 1.79rem;
    }
    
    .card-img-top {
        height: 185px;
    }
    
    .team-section .card-img-top {
        height: 220px;
    }
    
    /* Contact Layout Tablet */
    .contact-section .row {
        align-items: start;
    }
    
    /* Gallery Tablet */
    .gallery-section .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .col-lg-2-4 {
        width: 20%;
    }
    
    .hero-section {
        min-height: 95vh;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .team-section .card-img-top {
        height: 250px;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced hover effects on large screens */
    @media (prefers-reduced-motion: no-preference) {
        .card:hover {
            transform: translateY(-8px);
            box-shadow: 0 17px 30px rgba(0, 0, 0, 0.2);
        }
        
        .gallery-section img:hover {
            transform: scale(1.08);
        }
    }
}

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

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    }
    
    .navbar {
        box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .card,
    .gallery-section img,
    .btn,
    .nav-link {
        transition: none;
    }
    
    .card:hover,
    .gallery-section img:hover {
        transform: none;
    }
    
    .hero-section::before {
        animation: none;
    }
}

/* Print Media */
@media print {
    .hero-section {
        min-height: auto;
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #f3eeef;
        break-inside: avoid;
    }
    
    .col-lg-2-4 {
        width: 50%;
    }
    
    section {
        padding: 1rem 0;
    }
}

/* Dark Mode Support (Future-proofing) */

/* Focus Accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .form-select:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Container Responsive Adjustments */
@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1320px;
    }
}

/* Form Responsive Improvements */
@media (max-width: 767.98px) {
    .contact-section .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .contact-section .form-label {
        font-weight: 600;
        margin-bottom: 0.68rem;
    }
    
    .contact-section .btn-lg {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 1.12rem;
    }
}

/* Blog Grid Responsive */
@media (max-width: 991.98px) {
    #blog_grid .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Timeline Responsive */
@media (max-width: 767.98px) {
    .timeline-section .col-lg-2-4 {
        margin-bottom: 1.60rem;
    }
}

/* FAQ Responsive */
@media (max-width: 991.98px) {
    .faq-section .col-lg-6 {
        margin-bottom: 1rem;
    }
} 

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