@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --bg-body: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] {
    --bg-body: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --border-color: #475569;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Header */
.header {
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(255,255,255,0.2));
    transition: filter 0.3s ease;
}

.logo-text h1 {
    font-size: clamp(14px, 3vw, 20px);
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.logo-text p {
    font-size: clamp(10px, 2vw, 12px);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.2;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.toggle-icon {
    color: white;
    font-size: 16px;
    transition: all 0.3s;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.toggle-switch.active::before {
    left: 27px;
}

.container {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(20px, 5vw, 40px) clamp(16px, 4vw, 20px);
}

header {
    text-align: center;
    margin-bottom: clamp(24px, 5vw, 40px);
    animation: fadeInDown 0.8s ease;
}

h2 {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    letter-spacing: -1px;
}

.subtitle {
    font-size: clamp(14px, 2.5vw, 16px);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(16px, 3vw, 24px);
    margin-top: clamp(24px, 5vw, 40px);
}

.job-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: clamp(20px, 4vw, 28px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid #3b82f6;
    animation: fadeInUp 0.8s ease;
}

.job-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.job-header {
    display: flex;
    align-items: center;
    margin-bottom: clamp(16px, 3vw, 20px);
    padding-bottom: clamp(12px, 3vw, 16px);
    border-bottom: 2px solid var(--border-color);
    gap: 16px;
}

.job-icon {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    flex-shrink: 0;
}

.job-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

.job-type {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: clamp(0.7rem, 1.5vw, 0.75rem);
    font-weight: 600;
    margin-top: 6px;
}

.job-section {
    margin-bottom: clamp(14px, 3vw, 18px);
}

.job-section p {
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

.section-title {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: #3b82f6;
    margin-right: 8px;
    border-radius: 2px;
}

.job-section ul {
    list-style: none;
    padding-left: 0;
}

.job-section li {
    padding: 5px 0 5px 20px;
    position: relative;
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    line-height: 1.5;
}

.job-section li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1rem;
}

.apply-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: clamp(10px, 2vw, 12px) clamp(20px, 4vw, 28px);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    width: 100%;
    text-align: center;
}

.apply-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 3vw, 20px);
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: clamp(20px, 4vw, 32px);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(16px, 3vw, 24px);
    padding-bottom: clamp(12px, 3vw, 16px);
    border-bottom: 2px solid var(--border-color);
    gap: 12px;
}

.modal-title {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

.close-btn {
    width: clamp(32px, 6vw, 36px);
    height: clamp(32px, 6vw, 36px);
    background: var(--bg-card-hover);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.close-btn:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.close-btn i {
    font-size: clamp(16px, 3vw, 18px);
}

.modal-section {
    margin-bottom: clamp(18px, 3vw, 24px);
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.modal-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #3b82f6;
    margin-right: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.modal-section ul {
    list-style: none;
    padding-left: 0;
}

.modal-section li {
    padding: clamp(6px, 1.5vw, 8px) 0 clamp(6px, 1.5vw, 8px) clamp(20px, 4vw, 24px);
    position: relative;
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.6;
}

.modal-section li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.1rem;
}

.modal-section p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    line-height: 1.6;
}

.modal-footer {
    margin-top: clamp(20px, 4vw, 28px);
    padding-top: clamp(16px, 3vw, 20px);
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.apply-modal-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: clamp(12px, 2.5vw, 14px) clamp(28px, 5vw, 36px);
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.apply-modal-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

footer {
    text-align: center;
    margin-top: clamp(30px, 5vw, 50px);
    padding: clamp(20px, 4vw, 24px);
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

footer p {
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.contact-info {
    margin-top: 12px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.benefit-section {
    background: var(--bg-card);
    border-radius: 14px;
    padding: clamp(20px, 4vw, 28px);
    margin-top: clamp(20px, 4vw, 24px);
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.benefit-section h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: clamp(16px, 3vw, 20px);
    text-align: center;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: clamp(12px, 2vw, 16px);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: clamp(10px, 2vw, 12px);
    background: var(--bg-card-hover);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.benefit-icon {
    width: clamp(36px, 6vw, 40px);
    height: clamp(36px, 6vw, 40px);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    color: white;
    font-size: clamp(16px, 3vw, 18px);
}

.benefit-text {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-primary);
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design - Tablet (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefit-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive Design - Mobile & Small Tablet (max 768px) */
@media (max-width: 768px) {
    .header {
        padding: 12px 20px;
    }

    .logo-img {
        height: 40px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .job-header {
        flex-wrap: wrap;
    }

    .benefit-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Responsive Design - Small Mobile (max 480px) */
@media (max-width: 480px) {
    .header {
        padding: 10px 16px;
    }

    .logo-section {
        gap: 10px;
    }

    .logo-img {
        height: 36px;
    }

    .theme-toggle {
        padding: 6px 12px;
    }

    .toggle-icon {
        font-size: 14px;
    }

    .toggle-switch {
        width: 45px;
        height: 24px;
    }

    .toggle-switch::before {
        width: 18px;
        height: 18px;
    }

    .toggle-switch.active::before {
        left: 24px;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .apply-modal-btn {
        max-width: 100%;
    }
}

/* Responsive Design - Extra Small Mobile (max 360px) */
@media (max-width: 360px) {
    .header {
        padding: 8px 12px;
    }

    .logo-img {
        height: 32px;
    }

    .logo-section {
        gap: 8px;
    }

    .container {
        padding: 16px 12px;
    }
}

/* Scrollbar Styling */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-card-hover);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .job-card:hover,
    .benefit-item:hover,
    .apply-btn:hover,
    .apply-modal-btn:hover {
        transform: none;
    }
    
    .job-card:active {
        transform: scale(0.98);
    }
    
    .apply-btn:active,
    .apply-modal-btn:active {
        transform: scale(0.96);
    }
}