/* ==========================================================
   EXPERIENCE PAGE
   Red / black / white color scheme
   ========================================================== */

.experience-page {
    overflow: hidden;
    background: #ffffff;
}

/* ==========================================================
   HERO
   ========================================================== */

.experience-hero {
    position: relative;
    display: flex;
    align-items: center;

    min-height: 420px;
    padding: 90px 0 70px;

    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    overflow: hidden;
}

.experience-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        linear-gradient(90deg,
            rgba(5, 8, 14, 0.94) 0%,
            rgba(12, 14, 20, 0.78) 46%,
            rgba(12, 14, 20, 0.35) 100%);
}

.experience-hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(90deg,
            #e9454b 0%,
            #111111 100%);
}

.experience-hero .container {
    position: relative;
    z-index: 2;
}

.experience-hero-content {
    max-width: 760px;
}

.experience-hero-label {
    display: inline-block;
    margin-bottom: 14px;

    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.experience-hero-title {
    margin: 0 0 22px;

    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(46px, 5.5vw, 76px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.experience-hero-title::after {
    content: "";
    display: block;

    width: 58px;
    height: 4px;
    margin-top: 18px;

    background: #e9454b;
}

/* Breadcrumb */

.experience-breadcrumb {
    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;

    background: transparent;
}

.experience-breadcrumb .breadcrumb-item,
.experience-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.experience-breadcrumb .breadcrumb-item a:hover {
    color: #e9454b;
}

.experience-breadcrumb .breadcrumb-item.active {
    color: #ffffff;
}

.experience-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================
   MAIN SECTION
   ========================================================== */

.experience-section {
    padding: 90px 0 105px;

    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #f5f7fa 100%);
}

/* Heading */

.experience-heading {
    max-width: 780px;
    margin: 0 auto 48px;
}

.experience-section-label {
    display: inline-block;
    margin-bottom: 10px;

    color: #111111;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.experience-section-title {
    margin: 0;

    color: #e9454b;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.experience-section-title::after {
    content: "";
    display: block;

    width: 52px;
    height: 3px;
    margin: 16px auto 0;

    background:
        linear-gradient(90deg,
            #e9454b 0%,
            #111111 100%);
}

.experience-section-description {
    max-width: 650px;
    margin: 20px auto 0;

    color: #667085;
    font-size: 15px;
    line-height: 1.75;
}

/* ==========================================================
   PERIOD TABS
   ========================================================== */

.experience-tabs-wrapper {
    display: flex;
    justify-content: center;

    margin-bottom: 68px;
}

.experience-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 8px;

    margin: 0;
    padding: 8px;

    border: 1px solid #e1e5eb;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

.experience-tabs .nav-item {
    margin: 0;
}

.experience-tabs .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 180px;
    padding: 15px 20px;

    border: 0;
    background: transparent;
    color: #333333;

    font-family: "Montserrat", sans-serif;
    text-decoration: none;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.experience-tabs .nav-link:hover {
    color: #e9454b;
    background: #f8f8f8;
}

.experience-tabs .nav-link.active {
    color: #ffffff;
    background:#e9454b;
    box-shadow: 0 8px 22px rgba(233, 69, 75, 0.23);
}

.experience-tab-number {
    color: inherit;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    opacity: 0.72;
}

.experience-tab-period {
    color: inherit;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

/* ==========================================================
   TIMELINE
   ========================================================== */

.experience-tab-content {
    min-height: 300px;
}

.experience-timeline {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 0;
}

.experience-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;

    width: 2px;

    background:
        linear-gradient(180deg,
            #e9454b 0%,
            #111111 100%);

    transform: translateX(-50%);
}

.experience-item {
    position: relative;
    display: flex;

    width: 50%;
    margin-bottom: 34px;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-item-left {
    justify-content: flex-end;
    padding-right: 42px;
}

.experience-item-right {
    margin-left: 50%;
    justify-content: flex-start;
    padding-left: 42px;
}

.experience-marker {
    position: absolute;
    top: 34px;

    width: 18px;
    height: 18px;

    border: 4px solid #ffffff;
    background: #e9454b;
    box-shadow:
        0 0 0 2px #e9454b,
        0 6px 16px rgba(16, 24, 40, 0.18);

    z-index: 3;
}

.experience-marker span {
    display: none;
}

.experience-item-left .experience-marker {
    right: -9px;
}

.experience-item-right .experience-marker {
    left: -9px;
}

/* ==========================================================
   EXPERIENCE CARD
   ========================================================== */

.experience-card {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 30px 32px;

    border: 1px solid #e3e7ed;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(16, 24, 40, 0.08);

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.experience-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(90deg,
            #e9454b 0%,
            #111111 100%);
}

.experience-card::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -48px;

    width: 125px;
    height: 125px;

    border: 22px solid rgba(17, 17, 17, 0.025);
    border-radius: 50%;

    pointer-events: none;
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: rgba(233, 69, 75, 0.42);
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.13);
}

.experience-card-top {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.experience-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 72px;
    padding: 8px 13px;

    color: #ffffff;
    background: #111111;

    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.experience-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    color: #ffffff;
    background: #e9454b;
}

.experience-check i {
    color: #ffffff;
    font-size: 13px;
}

.experience-card-title {
    position: relative;
    z-index: 2;

    margin: 0 0 14px;

    color: #20242b;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: none;
}

.experience-customer {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-bottom: 16px;

    color: #e9454b;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.experience-customer i {
    margin-top: 4px;
    color: #e9454b;
    font-size: 13px;
}

.experience-job {
    position: relative;
    z-index: 2;

    margin: 0;

    color: #667085;
    font-size: 14px;
    line-height: 1.75;
}

/* ==========================================================
   EMPTY STATE
   ========================================================== */

.experience-empty {
    max-width: 560px;
    margin: 0 auto;
    padding: 55px 30px;

    border: 1px solid #e3e7ed;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.07);

    text-align: center;
}

.experience-empty i {
    display: block;
    margin-bottom: 18px;

    color: #e9454b;
    font-size: 38px;
}

.experience-empty h3 {
    margin: 0 0 10px;

    color: #20242b;
    font-size: 23px;
    text-transform: none;
}

.experience-empty p {
    margin: 0;
    color: #667085;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 991px) {
    .experience-hero {
        min-height: 380px;
        padding: 76px 0 60px;
    }

    .experience-section {
        padding: 74px 0 84px;
    }

    .experience-tabs-wrapper {
        margin-bottom: 56px;
    }

    .experience-tabs .nav-link {
        min-width: 160px;
        padding: 14px 16px;
    }

    .experience-item-left {
        padding-right: 32px;
    }

    .experience-item-right {
        padding-left: 32px;
    }

    .experience-card {
        padding: 26px;
    }
}

@media (max-width: 767px) {
    .experience-hero {
        min-height: 330px;
        padding: 62px 0 50px;
        background-position: 65% center;
    }

    .experience-hero-overlay {
        background:
            linear-gradient(90deg,
                rgba(5, 8, 14, 0.94) 0%,
                rgba(10, 12, 18, 0.8) 67%,
                rgba(10, 12, 18, 0.52) 100%);
    }

    .experience-hero-label {
        font-size: 10px;
    }

    .experience-hero-title {
        font-size: 42px;
    }

    .experience-section {
        padding: 58px 0 68px;
    }

    .experience-heading {
        margin-bottom: 34px;
    }

    .experience-section-title {
        font-size: 31px;
    }

    .experience-section-description {
        padding: 0 8px;
        font-size: 14px;
    }

    /* Tabs scroll horizontally */
    .experience-tabs-wrapper {
        display: block;
        width: 100%;
        margin-bottom: 44px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .experience-tabs {
        display: flex;
        width: max-content;
        min-width: 100%;
    }

    .experience-tabs .nav-link {
        min-width: 150px;
    }

    /* Timeline mobile */
    .experience-timeline {
        padding-left: 30px;
    }

    .experience-timeline::before {
        left: 8px;
        transform: none;
    }

    .experience-item,
    .experience-item-left,
    .experience-item-right {
        width: 100%;
        margin-left: 0;
        padding-left: 30px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .experience-item-left .experience-marker,
    .experience-item-right .experience-marker {
        left: -1px;
        right: auto;
    }

    .experience-card {
        max-width: none;
        padding: 24px;
    }

    .experience-card-title {
        font-size: 18px;
    }
}

@media (max-width: 575px) {
    .experience-hero {
        min-height: 290px;
        padding: 52px 0 42px;
    }

    .experience-hero-title {
        font-size: 35px;
    }

    .experience-breadcrumb .breadcrumb-item,
    .experience-breadcrumb .breadcrumb-item a {
        font-size: 12px;
    }

    .experience-section {
        padding: 46px 0 56px;
    }

    .experience-section-title {
        font-size: 27px;
    }

    .experience-section-description {
        font-size: 13.5px;
    }

    .experience-tabs {
        padding: 6px;
    }

    .experience-tabs .nav-link {
        min-width: 138px;
        gap: 8px;
        padding: 13px 12px;
    }

    .experience-tab-period {
        font-size: 12px;
    }

    .experience-timeline {
        padding-left: 20px;
    }

    .experience-item,
    .experience-item-left,
    .experience-item-right {
        padding-left: 24px;
        margin-bottom: 24px;
    }

    .experience-card {
        padding: 21px 18px;
    }

    .experience-card-top {
        margin-bottom: 15px;
    }

    .experience-year {
        min-width: 64px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .experience-check {
        width: 30px;
        height: 30px;
    }

    .experience-card-title {
        font-size: 17px;
    }

    .experience-customer,
    .experience-job {
        font-size: 13px;
    }
}