:root {
    /* Colors - Concentrix-ish but Vibrant */
    --primary: #FF5555;
    --primary-dark: #FF3333;
    --primary-gradient: linear-gradient(135deg, #FF5555 0%, #FF9966 100%);
    --accent-blue: #0A84FF;
    --accent-green: #30D158;
    --accent-purple: #BF5AF2;

    /* Dark Theme Base - Improved */
    --bg-body: #0A0A0F;
    --bg-elevated: #1C1C1E;
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-dim: rgba(255, 255, 255, 0.4);

    /* Liquid Glass Variables - Enhanced */
    --glass-bg: rgba(28, 28, 30, 0.72);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --blur: blur(40px);

    /* Font */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

[data-theme="light"] {
    --bg-body: #F5F5F7;
    --bg-elevated: #FFFFFF;
    --text-main: #1D1D1F;
    --text-muted: rgba(0, 0, 0, 0.65);
    --text-dim: rgba(0, 0, 0, 0.4);

    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(0, 0, 0, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.95);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

/* --- Animated Globes (The "Liquid" part) --- */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Heavy blur for liquid feel */
    opacity: 0.6;
    animation: flow 15s infinite alternate ease-in-out;
}

[data-theme="light"] .globe {
    opacity: 0.25;
    filter: blur(100px);
}

.globe-1 {
    top: -20%;
    left: -20%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, #FF4D4D 0%, transparent 60%);
}

.globe-2 {
    bottom: -20%;
    right: -20%;
    width: 90vw;
    height: 90vw;
    background: radial-gradient(circle, #4A00E0 0%, transparent 60%);
    /* Deep Blue/Purple */
    animation-delay: -5s;
}

.globe-3 {
    top: 40%;
    left: 30%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #FF8E53 0%, transparent 60%);
    /* Orange */
    opacity: 0.4;
    animation-delay: -10s;
}

@keyframes flow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

/* --- Navigation (Segmented Control) --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;

    /* Glass Effect */
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    box-shadow: var(--glass-shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.logo img {
    height: 32px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* iOS Segmented Control tabs */
.nav-tabs {
    background: rgba(0, 0, 0, 0.1);
    /* Slightly darker track */
    padding: 4px;
    border-radius: 100px;
    display: flex;
    position: relative;
}

[data-theme="light"] .nav-tabs {
    background: rgba(0, 0, 0, 0.05);
}

.nav-tab {
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 100px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
}

.nav-tab.active {
    background: var(--text-main);
    /* White in dark, Black in light usually, but let's do White/Black logic */
    color: var(--bg-body);
    /* Inverted text */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Theme Toggle */
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--glass-highlight);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    margin-top: 140px;
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;

    /* Gradient Text */
    background: radial-gradient(circle at center, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero h1 {
    background: radial-gradient(circle at center, #000 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero span.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Glass Cards (Liquid Style) --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    /* Specular highlight on top */
    box-shadow: var(--glass-shadow);
    border-radius: 32px;
    /* iOS rounded corners */
}

/* Tab Sections */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 120px;
    /* Clear the fixed navbar */
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Job Cards */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

.job-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 28px;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.job-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.job-card:hover::before {
    opacity: 1;
}

.job-header {
    margin-bottom: 16px;
}

.badge {
    background: rgba(255, 77, 77, 0.15);
    color: #FF4D4D;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: inline-block;
}

.job-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.job-salary {
    font-size: 1.1rem;
    color: #34C759;
    /* iOS Green */
    font-weight: 600;
    margin-bottom: 16px;
}

.job-desc {
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.btn-apply-card {
    background: var(--text-main);
    color: var(--bg-body);
    border: none;
    padding: 12px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
}

.btn-apply-card:hover {
    transform: scale(1.03);
}

.btn-details {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--accent-blue);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.btn-details:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-details i {
    font-size: 1.1rem;
}

.job-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-full-desc {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.job-full-desc p {
    color: var(--text-muted);
    line-height: 1.6;
}

.job-meta {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.job-meta-item {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.9rem;
}

.meta-label {
    color: var(--text-dim);
    font-weight: 600;
    min-width: 120px;
}

.meta-value {
    color: var(--text-main);
}

.job-requirements,
.job-languages {
    margin-bottom: 20px;
}

.job-requirements h4,
.job-languages h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-requirements h4 i {
    color: var(--accent-green);
}

.job-languages h4 i {
    color: var(--accent-purple);
}

.job-requirements ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 8px;
}

.job-requirements li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.job-requirements li i {
    color: var(--accent-green);
    font-size: 1rem;
    flex-shrink: 0;
}

.language-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lang-tag {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.job-details-toggle {
    margin-bottom: 16px;
}

.job-footer {
    margin-top: auto;
    padding-top: 16px;
}


/* Form Styles */
.form-card {
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}

fieldset {
    border: none;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

legend {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

input,
select {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--bg-elevated);
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: 8px;
    font-family: var(--font-body);
    appearance: none;
    cursor: pointer;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    border-radius: 20px;
    background: #25D366;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

/* --- Stats Section --- */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* --- About Section --- */
.about-section {
    margin-top: 80px;
    margin-bottom: 100px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    background: radial-gradient(circle at center, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-section .glass-panel {
    padding: 48px;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.about-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s;
}

.benefits-list li:hover {
    background: rgba(255, 77, 77, 0.1);
    transform: translateX(8px);
}

.benefits-list i {
    color: #34C759;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Form Styling */
.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.form-header p {
    color: var(--text-muted);
}

.required {
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-main);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-row.three-col {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.form-note {
    text-align: center;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    margin-top: 80px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 12px 16px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .form-card {
        padding: 24px;
    }

    .nav-tab {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}