/* Mobile First Responsive Design */

/* Base Mobile Styles (up to 768px) */
@media screen and (max-width: 768px) {
    /* General Layout */
    .container {
        padding: 0 1rem;
    }

    /* Navigation */
    .navbar {
        padding: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    /* Hero Section */
    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-text p {
        font-size: 1.1rem;
        text-align: center;
    }

    /* Job Listings Section */
    .job-listings {
        padding: 2rem 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .service-filters {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-btn {
        width: 100%;
        margin: 0.25rem 0;
    }

    .job-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }

    .job-card {
        padding: 1.5rem !important;
    }

    .job-header h3 {
        font-size: 1.5rem !important;
    }

    .department-badge {
        font-size: 0.9rem !important;
    }

    /* Application Modal */
    .modal-content {
        width: 95% !important;
        margin: 10px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }

    .application-form {
        padding: 1rem !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem !important;
        padding: 0.8rem !important;
    }

    /* Footer */
    .footer {
        padding: 2rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Tablet Styles (768px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .job-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .service-filters {
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        margin: 0.5rem;
    }
}

/* Landscape Mode */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        overflow-y: auto;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .application-modal .modal-content {
        max-height: 100vh;
        overflow-y: auto;
    }
}

/* High-DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-text h1 {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero,
    .application-modal,
    .footer {
        display: none !important;
    }

    .job-card {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .job-card {
        background: #1a1a1a !important;
        border-color: #333 !important;
    }

    .job-header h3,
    .job-details p,
    .job-description p,
    .job-requirements li {
        color: #fff !important;
    }

    .department-badge {
        background: rgba(4, 76, 76, 0.3) !important;
        color: #7fffd4 !important;
    }
}

/* Small Desktop Styles (1024px - 1280px) */
@media screen and (min-width: 1024px) and (max-width: 1280px) {
    .container {
        max-width: 960px;
    }
}

/* Large Desktop Styles (1280px and above) */
@media screen and (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
}

/* High Resolution Screens */
@media screen and (min-width: 1920px) {
    html {
        font-size: 18px;
    }
}

/* Reduced Motion */
@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;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --accent-color: #ff0000;
        --text-color: #000000;
        --light-text: #000000;
        --background-color: #ffffff;
        --section-bg: #ffffff;
        --border-color: #000000;
    }

    * {
        border-color: #000000 !important;
    }

    a {
        text-decoration: underline !important;
    }

    .btn {
        border: 2px solid currentColor !important;
    }
} 