/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1rem;
        padding-left: 1rem;
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 1.25rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Mobile Specific Styles */
@media (max-width: 767.98px) {
    /* Header */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.875rem; }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card {
        margin-bottom: 2rem;
    }
    
    .service-card img {
        height: 150px;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .pricing-card .price {
        font-size: 1.5rem;
    }
    
    /* Team Members */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 2rem;
    }
    
    .contact-form .form-control {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    .gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* FAQ */
    .faq-item {
        margin-bottom: 1rem;
    }
    
    /* Additional Pages */
    .service-item,
    .tech-item,
    .category-item,
    .process-item,
    .solution-item,
    .training-item,
    .format-item,
    .cert-item,
    .outcome-item,
    .instructor-item {
        margin-bottom: 1.5rem;
    }
    
    /* New Main Page Sections */
    .casestudy-card,
    .career-card,
    .blog-card {
        margin-bottom: 2rem;
    }
    
    .casestudy-card img,
    .blog-card img {
        height: 150px;
    }
    
    .process-step {
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .timeline-year {
        margin-right: 0;
        margin-bottom: 1rem;
        min-width: auto;
    }
    
    .coreinfo-item {
        margin-bottom: 1.5rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        margin-top: 70px;
    }
}

/* Tablet Specific Styles */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.375rem;
    }
    
    .service-card img {
        height: 180px;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .pricing-card {
        padding: 2.5rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-image: url('../HIZ_images/hero-bg@2x.webp');
    }
}

/* Landscape Phone Styles */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section h2 {
        font-size: 1rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb-nav,
    footer,
    .btn,
    .contact-form {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-section::before {
        display: none;
    }
    
    section {
        padding: 1rem 0;
    }
    
    .card,
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card {
        break-inside: avoid;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }
    
    * {
        color: #000 !important;
        background: transparent !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .team-member img,
    .gallery img,
    .contact-form .btn-primary {
        transition: none !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .review-card:hover,
    .team-member img:hover,
    .gallery img:hover,
    .contact-form .btn-primary:hover {
        transform: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #008000;
        --accent-color: #800080;
        --gray: #404040;
        --dark-gray: #202020;
    }
    
    .hero-section {
        background: #000080;
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .contact-form {
        border: 2px solid #000;
    }
}

/* Dark Mode Support */

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

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

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error States */
.error {
    border-color: var(--warning-color) !important;
}

.error-message {
    color: var(--warning-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success States */
.success {
    border-color: var(--success-color) !important;
}

.success-message {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
} 