/* Virtual Furniture 3D - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile as per requirements */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    .display-4 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--neutral-light);
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        text-align: center;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section .container .row {
        text-align: center;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    /* Hide decorative shapes on mobile */
    .hero-shapes {
        display: none;
    }
    
    /* Sections spacing */
    section {
        padding: 2rem 0;
    }
    
    /* Cards */
    .card-body {
        padding: 1.5rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    /* Forms */
    .form-control {
        padding: 0.625rem 0.75rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-lg-4,
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Price plans */
    .card.border-primary::before {
        font-size: 0.75rem;
        padding: 3px 15px;
    }
    
    /* Contact info */
    #contact .row.mt-5 .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Space page */
    #space {
        padding: 2rem 1rem;
    }
    
    #space h1 {
        font-size: 1.75rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Still disable animations as per mobile requirements */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
        transition: none !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 85vh;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    /* Hide decorative shapes */
    .hero-shapes {
        display: none;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    .hero-section {
        min-height: 90vh;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    /* Team section adjustments */
    #team .col-lg-4:nth-child(4),
    #team .col-lg-4:nth-child(5) {
        margin-top: 2rem;
    }
    
    /* Services grid */
    #services .col-lg-4:nth-child(4),
    #services .col-lg-4:nth-child(5),
    #services .col-lg-4:nth-child(6) {
        margin-top: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full animations enabled */
    .hero-section {
        min-height: 100vh;
    }
    
    section {
        padding: 5rem 0;
    }
    
    /* Enhanced hover effects */
    .card:hover {
        transform: translateY(-8px);
    }
    
    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    }
    
    /* Gallery grid improvements */
    #gallery .col-lg-4:hover img {
        transform: scale(1.08);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .display-4 {
        font-size: 3rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing */
    section {
        padding: 6rem 0;
    }
    
    .card-body {
        padding: 2.5rem;
    }
    
    /* Better typography hierarchy */
    .lead {
        font-size: 1.25rem;
    }
    
    h1, .h1 {
        font-size: 2.5rem;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .display-4 {
        font-size: 3.5rem;
    }
    
    section {
        padding: 7rem 0;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-section .container .row {
        align-items: center;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    body {
        padding-top: 60px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .navbar {
        backdrop-filter: blur(15px);
    }
    
    .card {
        backdrop-filter: blur(5px);
    }
}

/* Dark mode support (if user prefers dark) */

/* Print styles for mobile */
@media print {
    .hero-shapes,
    .navbar-toggler,
    .btn,
    [data-sal] {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
        padding-top: 0;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 1rem 0;
    }
}

/* Motion preferences - comprehensive coverage */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    [data-sal],
    .card:hover,
    .btn:hover,
    .fas,
    .far,
    .fab {
        transform: none !important;
        transition: none !important;
    }
    
    .hero-shapes .shape-1,
    .hero-shapes .shape-2 {
        animation: none !important;
    }
}

/* Focus management for better accessibility */
@media (max-width: 767.98px) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Optimize for tablet touch */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    /* Better spacing for touch interfaces */
    .navbar-nav .nav-link {
        padding: 1rem 1.5rem;
    }
}

/* Specific device adjustments */
/* iPad Pro and similar large tablets */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
    .display-4 {
        font-size: 2.75rem;
    }
    
    section {
        padding: 4rem 0;
    }
} 

.hero-section h1 {
    padding-top: 200px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
