.nav-link.active {
    color: var(--black);
    font-weight: 500;
    text-decoration-color: var(--primary);
}

.career-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 96px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.5) 58%, rgba(0, 0, 0, 0.82) 100%),
        url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&h=1080&fit=crop') center / cover no-repeat;
    color: #ffffff;
}

.career-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(254, 119, 67, 0.12), transparent 42%);
    pointer-events: none;
}

.career-hero > * {
    position: relative;
    z-index: 2;
}

.hero-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.career-hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 24px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.career-hero h1 .accent,
.cta-section h2 span {
    color: var(--primary);
}

.career-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.82);
    max-width: 680px;
}

.hero-meta {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero-meta-item {
    text-align: center;
    min-width: 120px;
}

.hero-meta-value {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.hero-meta-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.64);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.resume-section {
    background: var(--cream);
    padding: 100px 24px;
}

.resume-inner {
    max-width: 800px;
    margin: 0 auto;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 24px;
}

.resume-header-left h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 8px;
}

.resume-header-left p {
    font-size: 16px;
    color: var(--gray-600);
}

.btn-download,
.btn-large {
    background: var(--primary);
    color: #ffffff;
    border-radius: 980px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

.btn-download {
    padding: 14px 28px;
    font-size: 14px;
    gap: 8px;
    white-space: nowrap;
}

.btn-large {
    padding: 18px 40px;
    font-size: 17px;
    gap: 10px;
}

.btn-download:hover,
.btn-large:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 30px rgba(254, 119, 67, 0.35);
}

.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(254, 119, 67, 0.1) 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 48px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--cream);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.timeline-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.25s ease, transform 0.25s ease;
}

.timeline-link:hover,
.timeline-link:focus-visible {
    transform: translateX(4px);
}

.timeline-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 6px;
}

.timeline-link:hover .timeline-role,
.timeline-link:focus-visible .timeline-role {
    color: var(--primary);
}

.timeline-link:hover .timeline-desc,
.timeline-link:focus-visible .timeline-desc {
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}

.timeline-role {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--black);
}

.timeline-company {
    font-size: 16px;
    font-weight: 500;
    color: var(--slate);
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.timeline-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.timeline-tag {
    background: var(--tag-bg);
    color: var(--slate);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.career-section-top {
    padding-top: 120px;
}

.career-section-bottom {
    padding-top: 80px;
    padding-bottom: 120px;
}

.skills-grid,
.edu-grid {
    display: grid;
    margin: 0 auto;
}

.skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    padding: 0 24px;
}

.skill-category,
.edu-card {
    padding: 32px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-category:hover,
.edu-card:hover {
    transform: translateY(-3px);
}

.skill-category-icon,
.edu-icon {
    width: 48px;
    height: 48px;
    background: var(--cream);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.skill-category-icon {
    margin-bottom: 20px;
}

.skill-category h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    font-size: 14px;
    color: var(--gray-600);
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-level {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(254, 119, 67, 0.1);
    padding: 2px 8px;
    border-radius: 100px;
    white-space: nowrap;
}

.edu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    padding: 0 24px;
}

.edu-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.edu-icon {
    flex-shrink: 0;
}

.edu-content h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.edu-content p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.edu-year {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.testimonials-section {
    background: #273F4F;
    padding: 100px 24px;
    color: #ffffff;
    overflow: hidden;
}

.testimonials-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
}

.testimonials-carousel {
    position: relative;
    width: min(1180px, calc(100vw - 32px));
    min-height: 390px;
    margin: 0 auto;
    overflow: hidden;
    perspective: 1200px;
    mask-image: linear-gradient(90deg, transparent 0%, #000000 8%, #000000 92%, transparent 100%);
}

.testimonials-track {
    position: relative;
    min-height: 390px;
    transform-style: preserve-3d;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    position: absolute;
    top: 40px;
    left: 50%;
    width: clamp(320px, 42vw, 520px);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(32, 51, 64, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: clamp(28px, 4vw, 42px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.2);
    opacity: var(--orbit-opacity, 1);
    transform:
        translateX(calc(-50% + var(--orbit-x, 0px)))
        translateY(var(--orbit-y, 0px))
        scale(var(--orbit-scale, 1));
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
    will-change: transform, opacity;
}

.testimonial-card-duplicate {
    display: none;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 36%, rgba(0, 0, 0, 0.12));
    pointer-events: none;
}

.testimonial-card:hover {
    background: rgba(38, 60, 75, 0.94);
    border-color: rgba(254, 119, 67, 0.3);
    box-shadow: 0 30px 66px rgba(0, 0, 0, 0.32);
}

.testimonial-card.is-active {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.82);
    color: var(--black);
    opacity: 1;
    box-shadow: 0 34px 74px rgba(0, 0, 0, 0.34);
}

.testimonial-card.is-active::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 48%, rgba(254, 119, 67, 0.08));
}

.testimonial-quote {
    position: relative;
    z-index: 1;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.6;
    margin-bottom: 0;
    font-style: italic;
    opacity: 0.9;
}

.cta-section {
    padding: 120px 24px;
    text-align: center;
    background: var(--white);
}

.cta-section h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 19px;
    color: var(--gray-600);
    max-width: 760px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.cta-section p a {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, text-decoration-color 0.25s ease;
}

.cta-section p a:hover {
    text-decoration: underline;
    transform: translateY(-2px);
}

.career-footer {
    background: #000000;
    color: #ffffff;
    padding: 80px 24px 40px;
}

.career-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.career-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}


@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {
    .skills-grid,
    .edu-grid {
        grid-template-columns: 1fr;
    }

    .hero-meta {
        gap: 20px;
    }

    .resume-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline-dot {
        left: -24px;
        width: 12px;
        height: 12px;
    }

    .testimonials-carousel {
        width: min(100%, calc(100vw - 32px));
        min-height: auto;
        perspective: none;
        mask-image: linear-gradient(90deg, transparent 0%, #000000 8%, #000000 92%, transparent 100%);
    }

    .testimonials-track {
        display: flex;
        width: max-content;
        min-height: auto;
        gap: 18px;
        padding: 8px 0 20px;
        transform-style: flat;
        animation: testimonialMarquee 56s linear infinite;
    }

    .testimonial-card {
        position: relative;
        top: auto;
        left: auto;
        flex: 0 0 82vw;
        width: 84vw;
        min-height: 280px;
        opacity: 1;
        color: #ffffff;
        transform: none !important;
        background: rgba(32, 51, 64, 0.96);
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
    }

    .testimonial-card-duplicate {
        display: flex;
    }

    .testimonial-card.is-active {
        background: rgba(32, 51, 64, 0.96);
        border-color: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
    }

    @keyframes testimonialMarquee {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(calc(-50% - 9px));
        }
    }
}
