html {
    scroll-behavior: smooth;
}

/* =====================================================
   CAREERS HERO ANIMATION
===================================================== */

.careers-hero-content {
    opacity: 0;
    transform: translateX(-50px);
    animation: careersHeroLeft 0.9s ease-out forwards;
}

.careers-hero-image {
    opacity: 0;
    transform: translateX(50px) scale(0.96);
    animation: careersHeroRight 1s ease-out 0.2s forwards;
}

@keyframes careersHeroLeft {

    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

@keyframes careersHeroRight {

    from {
        opacity: 0;
        transform: translateX(50px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

}


/* =====================================================
   OPEN APPLICATION ANIMATION
===================================================== */

.open-application-content {
    opacity: 0;
    transform: translateY(45px);
    animation: openApplicationReveal 0.9s ease-out forwards;
    animation-delay: 0.15s;
}

@keyframes openApplicationReveal {

    from {
        opacity: 0;
        transform: translateY(45px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =====================================================
   CAREER APPLICATION FORM
===================================================== */

.career-form-wrapper {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.career-form-wrapper.show {
    opacity: 1;
    transform: translateY(0);
}


.career-input,
.career-select,
.career-textarea {
    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}


.career-input:focus,
.career-select:focus,
.career-textarea:focus {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(0, 103, 214, 0.25),
        0 0 25px rgba(0, 103, 214, 0.12);
}


.career-input::placeholder,
.career-textarea::placeholder {
    transition: opacity 0.3s ease;
}


.career-input:focus::placeholder,
.career-textarea:focus::placeholder {
    opacity: 0.45;
}


.career-select option {
    background: #0f172a;
    color: #ffffff;
}


/* File input feedback */

.career-form-wrapper input[type="file"] {
    cursor: pointer;
}


/* Mobile */

@media (max-width: 640px) {

    .career-form-wrapper {
        transform: translateY(35px);
    }

    .career-form-wrapper.show {
        transform: translateY(0);
    }

}


/* ---------------------------------------------------------------------- */

/* =========================
   CURRENT JOB OPENINGS
========================= */

.job-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 1.5rem;
    background: linear-gradient(145deg,
            rgba(15, 23, 42, 0.92),
            rgba(15, 23, 42, 0.62));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.job-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    width: 84%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(34, 211, 238, 0.7),
            transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.job-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 103, 214, 0.55);
    box-shadow: 0 18px 50px rgba(0, 103, 214, 0.14);
}

.job-card:hover::before {
    opacity: 1;
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.job-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: #22d3ee;
    background: rgba(0, 103, 214, 0.12);
    border: 1px solid rgba(0, 103, 214, 0.2);
}

.job-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.job-status-open {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.job-status-closed {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.1);
    border: 1px solid rgba(251, 113, 133, 0.2);
}

.job-status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}

.job-title {
    margin-top: 1.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
}

.job-description {
    margin-top: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #94a3b8;
}

.job-meta {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.job-meta-icon {
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0.65rem;
    color: #22d3ee;
    background: rgba(30, 41, 59, 0.7);
}

/* Closed Card Slightly Dimmed */
.job-card.is-closed {
    opacity: 0.72;
}

.job-card.is-closed:hover {
    opacity: 1;
}

/* Entrance Animation */
.job-card {
    animation: jobCardEntrance 0.6s ease forwards;
}

@keyframes jobCardEntrance {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .job-card {
        padding: 1.25rem;
        border-radius: 1.25rem;
    }

    .job-title {
        font-size: 1.15rem;
    }

    .job-description {
        font-size: 0.85rem;
    }
}

/* Apply Now Button */

.job-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    margin-top: 1.4rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 103, 214, 0.45);
    border-radius: 0.85rem;
    background: rgba(0, 103, 214, 0.1);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.job-apply-btn svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.job-apply-btn:hover {
    background: #0067D6;
    border-color: #0067D6;
    box-shadow: 0 10px 30px rgba(0, 103, 214, 0.25);
}

.job-apply-btn:hover svg {
    transform: translateX(4px);
}