/* ===================================
   CYNARAX — Careers Page Styles
   careers.css
   =================================== */

/* ── HERO ── */
.car-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.car-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.car-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.car-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 14, 26, 0.90) 0%,
        rgba(19, 24, 38, 0.70) 60%,
        rgba(10, 14, 26, 0.92) 100%
    );
}

.car-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: carGridDrift 22s linear infinite;
}

@keyframes carGridDrift {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.car-hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.car-hero__badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 30px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 28px;
}

.car-hero__title {
    font-size: 4.8rem;
    line-height: 1.05;
    margin-bottom: 28px;
}

.car-hero__title .line {
    display: block;
}

.car-hero__title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.car-hero__sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 40px;
    line-height: 1.85;
}

.car-hero__ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.car-hero__scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2.5s ease-in-out infinite;
}

.car-hero__scroll-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
}

/* ── WHY CYNARAX ── */
.car-why {
    padding: var(--section-padding);
    background: var(--dark-surface);
}

.car-why__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.car-why__text .section-tag {
    margin-bottom: 20px;
}

.car-why__text h2 {
    font-size: 3rem;
    margin-bottom: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.car-why__text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 20px;
}

.car-why__text .btn {
    margin-top: 12px;
}

.car-why__img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    aspect-ratio: 4/3;
    background: var(--dark-card);
}

.car-why__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.car-why__img-wrap:hover img {
    transform: scale(1.04);
}

.car-img-ph {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dark-card), rgba(0,212,255,0.05));
}

.car-img-ph span {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.car-why__img-accent {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* ── VALUES ── */
.car-values {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.car-values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.val-card {
    padding: 40px 32px;
    background: var(--dark-card);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.08);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.val-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.val-card:hover::after {
    transform: scaleX(1);
}

.val-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow: var(--shadow-glow);
}

.val-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.val-card__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.val-emoji {
    font-size: 1.8rem;
    line-height: 1;
}

.val-card h3 {
    font-size: 1.2rem;
    color: var(--primary-cyan);
    margin-bottom: 14px;
}

.val-card p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ── OPEN ROLES ── */
.car-roles {
    padding: var(--section-padding);
    background: var(--dark-surface);
}

.car-roles__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.role-card {
    display: flex;
    flex-direction: column;
    background: var(--dark-card);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.08);
    padding: 36px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    gap: 24px;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.role-card:hover::before { opacity: 0.04; }

.role-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.role-card > * { position: relative; z-index: 1; }

.role-card__num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(0, 212, 255, 0.07);
    line-height: 1;
    position: absolute;
    top: 24px;
    right: 28px;
    user-select: none;
}

.role-card__body {
    flex: 1;
}

.role-card__tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-weight: 600;
}

.role-card h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.role-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 18px;
}

.role-card__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.role-card__skills span {
    font-size: 0.78rem;
    padding: 4px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.role-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-cyan);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    transition: gap 0.3s ease, color 0.3s ease;
}

.role-card__cta svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.role-card__cta:hover {
    color: white;
    gap: 14px;
}

.role-card__cta:hover svg {
    transform: translateX(4px);
}

.car-roles__note {
    text-align: center;
    margin-top: 48px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.car-roles__note a {
    color: var(--primary-cyan);
    text-decoration: none;
    margin-left: 6px;
    font-weight: 500;
    transition: color 0.3s;
}

.car-roles__note a:hover {
    color: white;
}

/* ── LOCATIONS ── */
.car-locations {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.car-locations__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.loc-card {
    padding: 0;
    background: var(--dark-card);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.08);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.loc-card__map {
    width: 100%;
    line-height: 0;
}

.loc-card__map iframe {
    width: 100%;
    height: 200px;
    border: 0;
    display: block;
    filter: grayscale(30%) invert(5%);
}

.loc-card__flag,
.loc-card h3,
.loc-card__role,
.loc-card > p,
.loc-card__detail {
    padding-left: 36px;
    padding-right: 36px;
}

.loc-card__flag {
    padding-top: 32px;
}

.loc-card__detail {
    padding-bottom: 32px;
}

.loc-card--featured {
    border-color: rgba(0, 212, 255, 0.25);
    background: linear-gradient(135deg, var(--dark-card), rgba(0,212,255,0.04));
    position: relative;
    overflow: hidden;
}

.loc-card--featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.loc-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.loc-card__flag {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 20px;
}

.loc-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.loc-card__role {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-cyan);
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 16px;
}

.loc-card > p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 24px;
}

.loc-card__detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.08);
}

.loc-card__detail span {
    font-size: 0.83rem;
    color: var(--text-muted);
}

/* ── APPLY CTA ── */
.car-apply {
    padding: var(--section-padding);
    background: var(--dark-surface);
}

.car-apply__box {
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    background: var(--dark-card);
    overflow: hidden;
    text-align: center;
    padding: 80px 60px;
}

.car-apply__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,212,255,0.06), transparent);
    pointer-events: none;
}

/* Top accent line */
.car-apply__box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.car-apply__content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.car-apply__content .section-tag {
    margin-bottom: 20px;
}

.car-apply__content h2 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.car-apply__content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}

/* Prominent email display */
.car-apply__email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-cyan);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    margin-bottom: 36px;
}

.car-apply__email svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
    flex-shrink: 0;
}

.car-apply__email:hover {
    background: rgba(0, 212, 255, 0.14);
    border-color: var(--primary-cyan);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    color: white;
}

.car-apply__ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .car-values__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .car-hero__title { font-size: 3.5rem; }

    .car-why__inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .car-roles__grid {
        grid-template-columns: 1fr;
    }

    .car-locations__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .car-hero__title { font-size: 2.6rem; }
    .car-hero__sub   { font-size: 1rem; }

    .car-values__grid {
        grid-template-columns: 1fr;
    }

    .car-apply__box {
        padding: 50px 30px;
    }

    .car-apply__content h2 {
        font-size: 2.2rem;
    }

    .car-apply__email {
        font-size: 0.95rem;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    .car-hero__title { font-size: 2rem; }
    .car-why__text h2 { font-size: 2.2rem; }
    .car-apply__content h2 { font-size: 1.8rem; }
}