/* PaperCraft Studio - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 2rem;
    }
    
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Header */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    #hero {
        padding: 3rem 0;
        min-height: 100vh;
    }
    
    .hero-image-container {
        margin-top: 2rem;
    }
    
    .decorative-shape {
        display: none; /* Hide decorative shapes on mobile */
    }
    
    /* Cards */
    .service-card,
    .feature-card,
    .review-card,
    .case-study-card,
    .price-card {
        margin-bottom: 1.5rem;
    }
    
    .service-card img {
        height: 150px;
    }
    
    /* Team Photos */
    .team-photo img {
        width: 60px;
        height: 60px;
    }
    
    /* Process Steps */
    .step-number,
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        margin-top: 2rem;
    }
    
    /* Gallery */
    #gallery .col-6 {
        padding: 0.25rem;
    }
    
    /* Footer */
    #footer .col-lg-4,
    #footer .col-lg-2,
    #footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Additional Pages */
    .workshop-card,
    .custom-service-card,
    .material-card,
    .curriculum-card,
    .pricing-card,
    .student-work-card,
    .portfolio-card {
        margin-bottom: 1.5rem;
    }
    
    .breadcrumb-nav {
        margin-top: 70px;
        padding: 1rem 0;
    }
    
    /* CTA Cards */
    .cta-card {
        margin-bottom: 1rem;
    }
    
    /* No animations on mobile for better performance */
    @media (prefers-reduced-motion: no-preference) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    .service-card img {
        height: 180px;
    }
    
    .team-photo img {
        width: 70px;
        height: 70px;
    }
    
    #gallery .col-md-4 {
        padding: 0.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-image-container {
        margin-top: 0;
    }
    
    .service-card img {
        height: 200px;
    }
    
    .team-photo img {
        width: 80px;
        height: 80px;
    }
    
    /* Timeline adjustments */
    .timeline-content {
        margin-left: 1rem;
    }
    
    /* Gallery grid */
    #gallery .col-md-4 {
        padding: 0.75rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Hero section full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Hover effects enabled */
    .feature-card:hover,
    .service-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .workshop-card:hover,
    .custom-service-card:hover,
    .material-card:hover,
    .process-card:hover,
    .curriculum-card:hover,
    .student-work-card:hover,
    .portfolio-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    /* Gallery hover effects */
    #gallery img:hover {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
    
    /* CTA Card hover effects */
    .cta-card:hover {
        transform: translateY(-3px);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .lead {
        font-size: 1.25rem;
    }
    
    /* Enhanced spacing for larger screens */
    section {
        padding: 6rem 0;
    }
    
    .service-card img {
        height: 220px;
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .navbar-brand {
        font-size: 1.125rem;
    }
}

/* Print styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    .container {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .row {
        margin: 0;
    }
    
    .col-lg-6,
    .col-md-6,
    .col-sm-6 {
        width: 50%;
        float: left;
    }
    
    .col-lg-4,
    .col-md-4 {
        width: 33.333%;
        float: left;
    }
    
    .col-lg-3,
    .col-md-3 {
        width: 25%;
        float: left;
    }
    
    .btn,
    .navbar,
    #footer,
    .breadcrumb-nav {
        display: none !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .card {
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .shadow-sm {
        box-shadow: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card,
    .service-card,
    .feature-card,
    .review-card {
        border: 2px solid #000;
        background: #fff;
    }
    
    .btn-primary {
        background: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-outline-primary {
        color: #000;
        border-color: #000;
    }
    
    .text-muted {
        color: #333 !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .fade-in-up {
        animation: none;
    }
    
    /* Remove hover transforms for reduced motion */
    .feature-card:hover,
    .service-card:hover,
    .review-card:hover,
    .case-study-card:hover,
    .workshop-card:hover,
    .custom-service-card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
        filter: none;
    }
}

/* Dark mode support (future enhancement) */

/* Focus improvements for accessibility */
@media (prefers-reduced-motion: no-preference) {
    *:focus {
        transition: outline-offset 0.2s ease;
    }
}

/* Custom scrollbar for webkit browsers */
@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }
} 