/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid #E9ECEF;
        padding-top: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .hero-section .row {
        text-align: center;
    }
    
    .hero-section img {
        max-width: 280px;
        margin-top: 2rem;
    }
    
    /* Cards and Components */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .service-card .card-img-top {
        height: 180px;
    }
    
    .feature-card, .workshop-card, .material-item, .instructor-card, 
    .custom-service, .process-card, .portfolio-item, .pricing-tier, 
    .registration-option {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Team cards */
    .team-card img {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Forms */
    .contact-form, .custom-order-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .contact-info {
        padding: 1rem;
        margin-top: 2rem;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
    }
    
    /* Gallery */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Disable animations on mobile for performance */
    .card:hover, .feature-card:hover, .info-card:hover,
    .workshop-card:hover, .material-item:hover, .instructor-card:hover,
    .custom-service:hover, .process-card:hover, .portfolio-item:hover,
    .pricing-tier:hover, .registration-option:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-section img {
        max-width: 350px;
    }
    
    /* Card adjustments */
    .service-card .card-img-top {
        height: 200px;
    }
    
    .team-card img {
        width: 120px;
        height: 120px;
    }
    
    /* Process steps in 2 columns */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Forms */
    .contact-form, .custom-order-form {
        margin: 0;
    }
    
    /* Buttons return to normal width */
    .btn {
        width: auto;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
    }
    
    /* Cards in better grid */
    .service-card .card-img-top {
        height: 220px;
    }
    
    .team-card img {
        width: 130px;
        height: 130px;
    }
    
    /* Process steps */
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Gallery optimizations */
    #gallery img {
        margin-bottom: 1rem;
    }
    
    /* Footer layout */
    #footer .col-lg-4 {
        text-align: left;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full typography scale */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 90vh;
    }
    
    /* Cards at full size */
    .service-card .card-img-top {
        height: 200px;
    }
    
    .team-card img {
        width: 140px;
        height: 140px;
    }
    
    /* Enable hover effects */
    .card:hover {
        transform: translateY(-5px);
    }
    
    .feature-card:hover, .info-card:hover {
        transform: translateY(-5px);
    }
    
    .workshop-card:hover, .material-item:hover, .instructor-card:hover,
    .custom-service:hover, .process-card:hover, .portfolio-item:hover,
    .pricing-tier:hover, .registration-option:hover {
        transform: translateY(-3px);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max width */
    .container {
        max-width: 1140px;
    }
    
    /* Full scale typography */
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-section img {
        max-width: 500px;
    }
    
    /* Enhanced decorative shapes */
    .shape-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-2 {
        width: 200px;
        height: 200px;
    }
    
    /* Larger cards */
    .service-card .card-img-top {
        height: 240px;
    }
    
    .team-card img {
        width: 150px;
        height: 150px;
    }
    
    .instructor-card img, .portfolio-item img {
        width: 140px;
        height: 140px;
    }
    
    /* Enhanced spacing */
    .feature-card, .info-card {
        padding: 2.5rem 2rem;
    }
    
    .contact-form, .custom-order-form {
        padding: 3rem;
    }
    
    /* Process steps */
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Even larger hero */
    .hero-section img {
        max-width: 600px;
    }
    
    /* Enhanced decorative elements */
    .shape-1 {
        width: 300px;
        height: 300px;
    }
    
    .shape-2 {
        width: 250px;
        height: 250px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-section .row {
        align-items: center;
    }
    
    /* Reduce vertical padding on landscape mobile */
    section {
        padding: 3rem 0;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar, .btn, #footer, .hero-shapes {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: black !important;
        background: white !important;
    overflow-x: hidden;
}
    
    .card, .feature-card, .info-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    /* Ensure content fits on page */
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .card, .feature-card {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card, .feature-card, .info-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
    }
    
    .btn-outline-primary {
        color: #000;
        border-color: #000;
    }
}

/* Dark Mode Support */

.hero-section h1 {
    padding-top: 250px;
}