/* Digital Presentation Template Hub - Responsive CSS */

/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
    
    h3, .h3 {
        font-size: 1.25rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.5rem 1rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    #hero .container {
        text-align: center;
    }
    
    #hero h1 {
        margin-bottom: 1rem;
    }
    
    #hero h2 {
        margin-bottom: 1rem;
    }
    
    #hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .card-img-top {
        height: 150px;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1rem;
    }
    
    /* Form Controls */
    .form-control {
        margin-bottom: 1rem;
    }
    
    /* Process Steps */
    .process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Team Section */
    #team .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Disable animations on mobile for performance */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            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: 2rem;
    }
    
    #hero {
        min-height: 75vh;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .btn {
        width: auto;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.25rem;
    }
    
    #hero {
        min-height: 85vh;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    /* Process Steps - 2 columns on tablet */
    #process .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Team Section - 2 columns on tablet */
    #team .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    /* Enhanced hover effects for larger screens */
    .card:hover {
        transform: translateY(-8px);
    }
    
    .btn-primary:hover {
        transform: translateY(-3px);
    }
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .breadcrumb {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: white !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #ff0000;
        --text-primary: #000000;
        --text-secondary: #000000;
        --light-bg: #ffffff;
        --dark-bg: #000000;
    }
    
    .card {
        border: 2px solid #000000;
    }
    
    .btn-primary {
        border: 2px solid #000000;
    }
}

/* Reduced Motion Support */
@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;
    }
    
    .card:hover,
    .btn:hover {
        transform: none !important;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .card:hover {
        transform: none;
    }
    
    .card-img-top:hover {
        transform: none;
    }
}

/* Dark Mode Support (if system preference) */

/* Focus Visible Support for Better Accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to Main Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
} 