:root {
    --bg-dark: #0a0a0c;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --accent: #10b981;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Styles */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--text-main);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.4) 0%, rgba(10, 10, 12, 1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search Container */
.search-container {
    display: flex;
    padding: 1rem;
    border-radius: 100px;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
}

.search-input input,
.search-input select {
    background: transparent;
    border: none;
    color: #ffffff !important;
    width: 100%;
    padding-left: 0.5rem;
    outline: none;
    cursor: pointer;
    font-size: 1rem;
    height: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-input select option {
    background-color: #1a1a2e !important;
    color: #ffffff !important;
    padding: 10px;
}

/* Force dropdown styling for better browser compatibility */
.search-input select {
    color-scheme: dark;
}

.search-input select:focus option,
.search-input select option:checked {
    background-color: #7c3aed !important;
    color: #ffffff !important;
}

.btn-search {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0 2rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
}

/* Job Feed */
.job-feed {
    padding: 5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
}

.view-all {
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.job-card {
    padding: 2rem;
    border-radius: 24px;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.job-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.specialty-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.job-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent);
    color: black;
    padding: 0.2rem 0.8rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
}

.job-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.job-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.meta-item {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item span {
    color: var(--text-main);
}

.pay-text {
    color: var(--accent) !important;
    font-weight: 600;
}

.btn-outline {
    width: 100%;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-outline:hover {
    background: var(--glass-bg);
}

/* Footer */
.glass-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
    text-align: center;
    color: var(--text-muted);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background: #111;
    margin: 5vh auto;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 600px;
    border-radius: 32px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
}

.w-full {
    width: 100%;
}

.modal-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: left;
}

.detail-header {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.detail-grid {
    text-align: center;
    margin-bottom: 2rem;
}

/* Footer Links */
.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

.no-results {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.nav-item {
    cursor: pointer;
    transition: 0.3s;
}

.nav-item.active {
    color: white !important;
    font-weight: 600;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-container {
        flex-direction: column;
        border-radius: 24px;
        padding: 1.5rem;
    }

    .search-input {
        width: 100%;
        border-radius: 12px;
    }

    .btn-search {
        width: 100%;
        padding: 1rem;
        border-radius: 12px;
    }

    .job-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 2vh auto;
        padding: 2rem;
    }

    .job-meta {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}