@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");

/* 
   CAREERS PAGE UNIQUE DESIGN SYSTEM
   This differentiates from the main page while maintaining brand harmony.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: "Plus Jakarta Sans", sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #00a2ff;
    --primary-glow: rgba(0, 162, 255, 0.4);
    --secondary: #6366f1;
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent-gradient: linear-gradient(135deg, #00a2ff, #6366f1);
}

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 162, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* UNIQUE CAREERS NAV - Floating Glass Capsule */
.careers-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    z-index: 1000;
    padding: 12px 32px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.careers-nav.scrolled {
    top: 12px;
    width: 95%;
    background: rgba(10, 10, 10, 0.95);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.nav-logo img {
    width: 32px;
    height: auto;
}
.nav-logo img:nth-child(2) {
    width: 72px;
    height: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* MOBILE TOGGLE */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 28px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.first-letter {
    color: var(--primary);
    display: inline;
    font-size: 1.1em;
    font-weight: 800;
    margin-right: 2px;
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 80px;
    position: relative;
    overflow: hidden;
    /* Prevent the glow effect from causing horizontal scroll */
}

.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 100vw);
    height: min(600px, 100vw);
    background: var(--primary-glow);
    filter: blur(150px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.15;
    /* Slightly reduced for better mobile appearance */
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(40px, 8vw, 84px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    max-width: 650px;
    margin: 0 auto 40px;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
}

.hero .cta button {
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 162, 255, 0.3);
}

.hero .cta button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 162, 255, 0.4);
}

/* SECTIONS */
section {
    max-width: 1200px;
    margin: auto;
    padding: 100px 24px;
}

h2 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.sub {
    color: var(--muted);
    margin-bottom: 60px;
    text-align: center;
    font-size: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* VALUES */
.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.value {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.value:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 162, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.value h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--text);
}

.value p {
    color: var(--muted);
    font-size: 16px;
}

/* JOBS */
.jobs {
    display: grid;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.job {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.job:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.job-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.job-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.job-status {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 50px;
    white-space: nowrap;
}

.status-open {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-closed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.job-description {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.job-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
}

.job-tag i {
    color: var(--primary);
    font-size: 12px;
}

/* VIEW DETAILS BUTTON (on cards) */
.view-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    border-color: var(--primary);
    background: rgba(0, 162, 255, 0.08);
    color: var(--primary);
}

.view-details-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* APPLY BUTTON */
.apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    border-radius: 14px;
    border: none;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    box-shadow: 0 8px 24px rgba(0, 162, 255, 0.25);
}

.apply-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 162, 255, 0.35);
}

.apply-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== MODAL / POPUP ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: flex-start;
    justify-content: center;
    backdrop-filter: blur(12px);
    z-index: 10000;
    padding: 40px 20px;
    overflow-y: auto;
}

.modal-box {
    background: #0f172a;
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 680px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    position: relative;
    margin: auto;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

/* POPUP VIEWS */
.popup-view h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-right: 40px;
}

.popup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.popup-description {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.popup-description p {
    margin-bottom: 12px;
}

/* JOB SECTIONS (inside popup) */
.job-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.job-section h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-section h4 i {
    color: var(--primary);
    font-size: 15px;
}

.job-section-content {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.job-section-content p {
    margin-bottom: 10px;
}

.job-section-content p:last-child {
    margin-bottom: 0;
}

/* FORM VIEW */
.modal-box input {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    margin-bottom: 16px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.modal-box input:focus {
    border-color: var(--primary);
}

#popup-form button {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

#popup-form button:hover {
    opacity: 0.9;
}

#popup-form .close {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text) !important;
}

/* INLINE FORM MESSAGES */
.form-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    animation: formMsgSlide 0.3s ease;
}

.form-message i {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-message span strong {
    color: #fff;
}

.form-message-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.form-message-error i {
    color: #ef4444;
}

.form-message-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.form-message-warning i {
    color: #f59e0b;
}

.form-message-duplicate {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.form-message-duplicate i {
    color: #f59e0b;
}

.form-message-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.form-message-success i {
    color: #22c55e;
}

@keyframes formMsgSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* JOIN CTA */
.cta-join {
    background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.05));
    text-align: center;
    padding: 120px 24px;
}

.cta-content h2 {
    margin-bottom: 24px;
}

.btn-secondary {
    display: inline-block;
    margin-top: 32px;
    padding: 16px 40px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 30px var(--primary-glow);
}

/* UNIQUE CAREERS FOOTER */
.careers-footer {
    border-top: 1px solid var(--card-border);
    padding: 80px 24px 40px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.logos {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0 6px;
}

.logos img {
    width: 48px;
    margin-bottom: 24px;
}
.logos img:nth-child(2) {
    width: 100px;
    height: auto;
}

.footer-brand p {
    color: var(--muted);
    max-width: 300px;
}

.footer-nav h4,
.footer-social h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--muted);
    transition: 0.3s;
}

.footer-nav a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
    border-color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 900px) {
    .careers-nav {
        width: 92%;
        top: 12px;
        padding: 10px 20px;
        border-radius: 20px;
    }

    .nav-logo {
        font-size: 18px;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        border-radius: 24px;
        border: 1px solid var(--card-border);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding-top: 160px;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: clamp(32px, 8vw, 48px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .job {
        padding: 24px;
    }

    .job-header h3 {
        font-size: 20px;
    }

    .job-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }

    h2 {
        font-size: 32px;
    }

    .sub {
        margin-bottom: 40px;
        font-size: 16px;
    }

    .values {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .modal-box {
        padding: 32px 20px;
        border-radius: 24px;
    }

    .modal-box h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 140px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero .cta button {
        width: 100%;
        padding: 14px 28px;
    }

    .value {
        padding: 32px 20px;
    }

    .footer-brand,
    .footer-nav,
    .footer-social {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}