:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f43f5e;
    --accent: #10b981;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #f43f5e, #fb7185);
    --gradient-accent: linear-gradient(135deg, #10b981, #34d399);
    --gradient-dark: linear-gradient(135deg, #0f172a, #1e293b);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

/* Page Loader */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.loader-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    animation: expand 2s ease-in-out infinite;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes expand {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

@keyframes highlightFade {
    0% { background-color: #ecfdf5; }
    100% { background-color: white; }
}

/* Modern Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    background: var(--gradient-primary);
    color: white;
}

.navbar .btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.career-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8)), url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.career-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.career-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Section Styling */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Job Listings Section */
.jobs-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.job-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--primary);
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.job-card.featured {
    border-left: 4px solid var(--accent);
    background: linear-gradient(135deg, #ffffff, #f0fff4);
}

.job-card.highlighted {
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.7);
    background-color: #ecfdf5;
    animation: highlightFade 3s ease-out forwards;
}

.job-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.job-card .company {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.job-card .company i {
    margin-right: 8px;
}

.job-card .description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.job-meta span {
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
}

.job-meta i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.job-platform {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 10px;
}

.platform-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.apply-btn, .share-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    cursor: pointer;
}

.share-btn {
    background: var(--gradient-secondary);
    margin-top: 10px;
}

.apply-btn:hover, .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.apply-btn:hover {
    background: var(--gradient-secondary);
}

.share-btn:hover {
    background: var(--gradient-primary);
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--dark);
}

.filter-select {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #4a5568;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #4a5568;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

/* Resources Section */
.resources-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f0ff 100%);
}

.resource-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.resource-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.resource-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.resource-card p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Footer */
.main-footer {
    background: var(--gradient-dark);
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.footer-description {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #334155;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-heading {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: white;
}

.footer-links i {
    margin-right: 0.5rem;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
}

/* Floating Button */
.floating-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    transition: all 0.3s ease;
    color: white;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-left: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .career-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .career-hero {
        padding: 6rem 0 4rem;
    }

    .career-hero h1 {
        font-size: 2.3rem;
    }

    .career-hero p {
        font-size: 1.1rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

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

    .job-card, .resource-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .career-hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .job-meta {
        flex-direction: column;
        gap: 5px;
    }

    .job-platform {
        flex-direction: column;
        align-items: flex-start;
    }

    .platform-badge, .apply-btn, .share-btn {
        width: 100%;
        text-align: center;
    }
}