/* KeyCraft Pro - Responsive CSS */

/* Mobile First Approach - Extra Small Devices */
@media (max-width: 575.98px) {
    /* Disable animations on mobile */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    
    body {
        padding-top: 60px;
    }
    
    /* Typography adjustments for mobile */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2, .section-title {
        font-size: 1.75rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding: 2rem 0;
        min-height: 100vh;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Cards mobile spacing */
    .feature-card, .service-card, .pricing-card, .review-card {
        margin-bottom: 1.5rem;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Team members mobile */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process steps mobile */
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Footer mobile */
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Pricing card mobile */
    .pricing-card.featured {
        transform: none;
        margin-bottom: 1.5rem;
    }
    
    /* Section padding mobile */
    section {
        padding: 2rem 0;
    }
    
    /* Button mobile */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Disable animations on small devices */
    @media (max-width: 767.98px) {
        *, *::before, *::after {
            animation: none !important;
            transition: none !important;
        }
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 125px;
}
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 125px;
}
    
    .pricing-card.featured {
        transform: scale(1.02);
    }
    
    .team-member img {
        width: 115px;
        height: 115px;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full animations enabled on desktop */
    .hero-section h1 {
        font-size: 2.75rem;
    padding-top: 125px;
}
    
    /* Hover effects for desktop */
    .feature-card:hover,
    .service-card:hover,
    .case-study-card:hover,
    .component-item:hover,
    .tool-item:hover,
    .technique-item:hover,
    .mod-item:hover,
    .qa-item:hover,
    .layout-item:hover,
    .switch-item:hover,
    .material-item:hover,
    .case-item:hover,
    .connection-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    
    .btn:hover {
        transform: translateY(-1px);
    }
    
    /* Team grid adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 125px;
}
    
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 4rem 0;
    }
    
    .contact-form {
        padding: 3rem;
    }
}

/* Extra Extra Large Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3.25rem;
    padding-top: 125px;
}
    
    /* Premium spacing for ultra-wide screens */
    section {
        padding: 5rem 0;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding: 1.5rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    body {
        padding-top: 60px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb-section,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .row {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .blog-card,
    .faq-card,
    .component-item,
    .tool-item,
    .technique-item,
    .mod-item,
    .qa-item,
    .layout-item,
    .switch-item,
    .material-item,
    .case-item,
    .connection-item {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Reduced Motion Preference - Already handled in main.css but reinforced here */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none;
    }
    
    * {
        scroll-behavior: auto !important;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus,
.navbar-brand:focus {
    outline: 2px solid #4338ca;
    outline-offset: 2px;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* Dark Mode Support (if needed in future) */