/* Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-content {
        gap: var(--spacing-xl);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .job-categories {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
        text-align: center;
    }
    
    .dashboard-actions {
        justify-content: center;
    }
    
    .dashboard-filters {
        justify-content: center;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: var(--spacing-xl) 0;
        transition: left var(--transition-normal);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        width: 80%;
        text-align: center;
        padding: var(--spacing-md);
        border-radius: var(--border-radius);
        margin-bottom: var(--spacing-sm);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Hero Section */
    .hero {
        min-height: calc(100vh - 80px);
        padding: var(--spacing-xl) 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .floating-cards {
        width: 250px;
        height: 250px;
    }
    
    .floating-card {
        padding: var(--spacing-sm);
        font-size: 0.875rem;
    }
    
    /* Sections */
    .why-section,
    .opportunities-section,
    .feedback-section {
        padding: var(--spacing-xl) 0;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .benefit-card {
        padding: var(--spacing-lg);
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .job-card {
        padding: var(--spacing-lg);
    }
    
    .job-actions {
        flex-direction: column;
    }
    
    .job-actions .btn {
        width: 100%;
    }
    
    /* Feedback Section */
    .feedback-item {
        min-width: 300px;
        padding: var(--spacing-lg);
    }
    
    /* Careers Page */
    .careers-header h1 {
        font-size: 2.5rem;
    }
    
    .careers-header p {
        font-size: 1.1rem;
    }
    
    .job-categories {
        gap: var(--spacing-md);
    }
    
    .job-category {
        padding: var(--spacing-lg);
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* About Page */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .stat-card {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Contact Page */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .contact-form-container {
        padding: var(--spacing-lg);
    }
    
    /* Forms */
    .form-group {
        margin-bottom: var(--spacing-sm);
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .dashboard-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group input,
    .filter-group select {
        min-width: auto;
        width: 100%;
    }
    
    .applications-table-container {
        overflow-x: scroll;
    }
    
    .applications-table {
        min-width: 800px;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        margin: var(--spacing-sm);
    }
    
    .modal-header {
        padding: var(--spacing-md);
    }
    
    .application-form {
        padding: var(--spacing-md);
    }
    
    .application-details {
        padding: var(--spacing-md);
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .detail-item {
        padding: var(--spacing-sm);
    }
    
    /* Toast */
    .toast-container {
        top: 90px;
        right: var(--spacing-xs);
        left: var(--spacing-xs);
    }
    
    .toast {
        margin-bottom: var(--spacing-xs);
        max-width: none;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    /* Navigation */
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    .nav-logo .tagline {
        font-size: 0.7rem;
    }
    
    /* Hero */
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .floating-cards {
        width: 200px;
        height: 200px;
    }
    
    .floating-card {
        padding: var(--spacing-xs);
        font-size: 0.8rem;
    }
    
    .floating-card i {
        font-size: 1rem;
    }
    
    /* Sections */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .benefit-card {
        padding: var(--spacing-md);
    }
    
    .benefit-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .job-card {
        padding: var(--spacing-md);
    }
    
    .job-category {
        padding: var(--spacing-md);
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* About Stats */
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    /* Dashboard */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: var(--spacing-sm);
    }
    
    /* Buttons */
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .btn-sm {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--spacing-sm);
        font-size: 0.9rem;
    }
    
    /* Modal */
    .modal-content {
        width: 98%;
        margin: var(--spacing-xs);
    }
    
    .close {
        font-size: 1.5rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .floating-cards {
        width: 180px;
        height: 180px;
    }
    
    .nav-logo h2 {
        font-size: 1.25rem;
    }
    
    .nav-logo .tagline {
        display: none;
    }
    
    .btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: calc(100vh - 80px);
        padding: var(--spacing-md) 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
        text-align: left;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .floating-cards {
        width: 200px;
        height: 200px;
    }
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .navbar,
    .theme-toggle,
    .btn,
    .modal,
    .loading,
    .toast-container {
        display: none !important;
    }
    
    .page {
        display: block !important;
        padding-top: 0 !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .job-card,
    .benefit-card,
    .stat-card {
        page-break-inside: avoid;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .hero::before {
        background-size: 30px 30px;
    }
}

/* 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;
    }
    
    .floating-card {
        animation: none;
    }
    
    .feedback-scroll {
        animation: none;
    }
    
    .hero::before {
        animation: none;
    }
}