/* 3D Ornament Studio - Responsive Styles */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile to respect motion preferences */
    *, 
    *::before, 
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Typography adjustments */
    .display-4 {
        font-size: 1.8rem;
    }
    
    .h2 {
        font-size: 1.6rem;
    }
    
    .h3, .h4 {
        font-size: 1.3rem;
    }
    
    .h5 {
        font-size: 1.1rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding: 2rem 0;
        min-height: 80vh;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
    
    /* Section padding mobile */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
    
    /* Card adjustments */
    .service-card .card-img-top,
    .blog-card .card-img-top,
    .case-study-card .card-img-top {
        height: 180px;
    }
    
    /* Team member photos */
    .member-photo img {
        width: 150px;
        height: 150px;
    }
    
    /* Process step numbers */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-icon i {
        font-size: 1.5rem;
    }
    
    /* Contact form mobile */
    .contact-form .btn {
        width: 100%;
    }
    
    /* FAQ mobile layout */
    .faq-card {
        margin-bottom: 1rem;
    }
    
    /* Price card mobile */
    .price-display {
        margin: 0;
        border-radius: 8px;
    }
    
    /* Gallery mobile */
    .gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer mobile */
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    footer .row > div:last-child {
        margin-bottom: 0;
    }
    
    /* Container padding mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Remove hover effects on mobile */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .team-member:hover,
    .review-card:hover,
    .faq-card:hover,
    .info-card:hover,
    .care-card:hover,
    .blog-card:hover,
    .case-study-card:hover,
    .career-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .feature-item:hover,
    .support-item:hover,
    .install-step:hover {
        transform: none;
        background: transparent;
    }
    
    .contact-info .info-item:hover {
        transform: none;
        background: transparent;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography adjustments */
    .display-4 {
        font-size: 2.2rem;
    }
    
    .h2 {
        font-size: 1.8rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 3rem 0;
    }
    
    /* Section padding */
    section {
        padding: 3rem 0;
    }
    
    /* Card images */
    .service-card .card-img-top,
    .blog-card .card-img-top,
    .case-study-card .card-img-top {
        height: 200px;
    }
    
    /* Team photos */
    .member-photo img {
        width: 180px;
        height: 180px;
    }
    
    /* Reduced animations on small devices */
    *, 
    *::before, 
    *::after {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section tablet */
    .hero-section {
        padding: 4rem 0;
    }
    
    /* Typography tablet */
    .display-4 {
        font-size: 2.3rem;
    }
    
    /* Card images tablet */
    .service-card .card-img-top,
    .blog-card .card-img-top,
    .case-study-card .card-img-top {
        height: 220px;
    }
    
    /* Team layout tablet */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .member-photo img {
        width: 180px;
        height: 180px;
    }
    
    /* Process steps tablet */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Gallery tablet spacing */
    .gallery .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Pricing cards tablet */
    .price-card {
        margin-bottom: 2rem;
    }
    
    /* FAQ tablet layout */
    .faq-card {
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full animations on desktop */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Card hover effects */
    .service-card:hover,
    .price-card:hover,
    .review-card:hover,
    .blog-card:hover {
        transform: translateY(-8px);
    }
    
    .feature-card:hover,
    .faq-card:hover {
        transform: translateY(-4px);
    }
    
    /* Team member grid adjustment */
    .team-member:nth-child(4),
    .team-member:nth-child(5) {
        margin-top: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Full hero height */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Enhanced typography */
    .display-4 {
        font-size: 2.8rem;
    }
    
    .h2 {
        font-size: 2.2rem;
    }
    
    /* Enhanced spacing */
    section {
        padding: 6rem 0;
    }
    
    /* Card enhancements */
    .service-card .card-img-top,
    .blog-card .card-img-top,
    .case-study-card .card-img-top {
        height: 280px;
    }
    
    /* Team photos large */
    .member-photo img {
        width: 220px;
        height: 220px;
    }
    
    /* Enhanced hover effects */
    .service-card:hover {
        transform: translateY(-12px);
        box-shadow: var(--shadow-xl);
    }
    
    .price-card:hover {
        transform: translateY(-10px);
    }
    
    /* Process step enhancements */
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .step-icon {
        width: 90px;
        height: 90px;
    }
    
    .step-icon i {
        font-size: 2.5rem;
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    /* Container max width */
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced section padding */
    section {
        padding: 8rem 0;
    }
    
    /* Typography ultra wide */
    .display-4 {
        font-size: 3.2rem;
    }
    
    .h2 {
        font-size: 2.5rem;
    }
    
    /* Hero enhancements */
    .hero-image-wrapper::before {
        top: -30px;
        left: -30px;
        right: 30px;
        bottom: 30px;
    }
}

/* Print styles */
@media print {
    /* Remove animations and transitions */
    *, 
    *::before, 
    *::after {
        animation-duration: 0ms !important;
        transition-duration: 0ms !important;
    }
    
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    .contact-form,
    footer {
        display: none;
    }
    
    /* Adjust colors for print */
    body {
        color: #000;
        background: #fff;
    overflow-x: hidden;
}
    
    /* Remove shadows and gradients */
    .hero-section,
    .feature-card,
    .service-card,
    .price-card,
    .review-card {
        background: #fff;
        box-shadow: none;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        break-after: avoid;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #000000;
        --text-primary: #000000;
        --text-secondary: #000000;
        --neutral-light: #ffffff;
        --neutral-dark: #000000;
    }
    
    .btn-primary {
        background: #0000ff;
        border: 2px solid #0000ff;
    }
    
    .btn-outline-primary {
        border: 2px solid #0000ff;
        color: #0000ff;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .review-card {
        border: 2px solid #000000;
    }
}

/* Dark mode preferences */

/* Accessibility improvements */
@media (prefers-reduced-motion: no-preference) {
    /* Smooth scrolling only when motion is preferred */
    html {
        scroll-behavior: smooth;
    }
    
    /* Enable full animations */
    .animate-fade-in-up {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .animate-pulse {
        animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }
}

/* Focus improvements for keyboard navigation */
@media (any-hover: none) {
    /* Touch device styles */
    .btn,
    .nav-link,
    .card {
        touch-action: manipulation;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover {
        transform: none;
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    body {
        padding-top: 60px;
    }
}

/* High DPI displays */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    
    /* Enhanced shadows for high DPI */
    .feature-card,
    .service-card,
    .price-card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    /* Sharper borders */
    .btn,
    .form-control {
        border-width: 1px;
    }
} 

.hero-section h1 {
    padding-top: 275px;
}