:root {
    --primary-blue     : #009CD0;
    --primary-blue-dark: #1d4ed8;
    --text-dark        : #333;
    --text-light       : #666;
    --border-color     : #e5e7eb;
}

* {
    margin    : 0;
    padding   : 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    padding-top: 0;
}

/* -----------------------------------------------HERO SECTION------------------------------------------*/
.service-hero-section {
    position       : relative;
    height         : 60vh;
    display        : flex;
    justify-content: center;
    align-items    : center;
    text-align     : center;
    color          : white;
}

.card-body.service-card2 {
    height         : 310px;
    display        : flex;
    flex-direction : column;
    justify-content: space-between;
}

.service-hero-section img {
    width          : 100%;
    height         : 100%;
    display        : block;
    position       : absolute;
    top            : 0;
    left           : 0;
    z-index        : 0;
    object-fit     : cover;
    object-position: center;
}

.service-hero-section::before {
    content         : '';
    position        : absolute;
    top             : 0;
    left            : 0;
    width           : 100%;
    height          : 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index         : 1;
}

.service-hero-section h1 {
    font-size: 48px;
    margin   : 0 0 15px;
}

.service-hero-section p {
    font-size: 18px;
    margin   : 0 0 40px;
    padding  : 0 190px;
}

.breadcrumb {
    display         : flex;
    align-items     : center;
    background-color: rgba(255, 255, 255, 0.4) !important;
    padding         : 10px 30px !important;
    border-radius   : 0px !important;
    font-size       : 14px;
    font-weight     : 600;
    color           : white;
}

.breadcrumb a {
    color                : white;
    text-decoration      : underline;
    text-decoration-color: transparent;
    transition           : text-decoration-color 0.3s ease, text-underline-offset 0.3s ease;
}

.breadcrumb a:hover {
    color                : white;
    text-decoration-color: white;
    text-underline-offset: 3px;
}

.breadcrumb i {
    color    : #e1dddde0;
    margin   : 0 5px;
    font-size: 14px;
}

/* -----------------------------------------------CASE STUDIES SECTION------------------------------------------*/
.case-studies {
    position: relative;
    width   : 100%;
    margin  : 60px auto;
    padding : 0 100px;
}

.case-header {
    display        : flex;
    align-items    : center;
    justify-content: space-between;
    margin-bottom  : 25px;
    display        : flex;
    justify-content: space-between;
    align-items    : center;
}

.case-header #case-header-title,
.case-header #case-header-subtitle {
    margin-left: 30%;
    max-width  : 70%;
}

.case-header h2 {
    font-size    : 40px;
    font-weight  : bold;
    margin       : 0 0 10px;
    margin-bottom: 10px;
}

.case-header p {
    font-size  : 17px;
    color      : #7a7a7a;
    line-height: 1.6;
    position   : relative;
    /* cần cho ::after */
}

.case-header p::after {
    content   : '';
    position  : absolute;
    left      : 0;
    bottom    : -25px;
    width     : 25%;
    height    : 3px;
    background: linear-gradient(to right, var(--primary-blue) 50%, #dcdcdc 50%);
}


.case-nav {
    margin-right: 15%;
}

.case-nav button {
    width      : 50px;
    height     : 50px;
    border     : 1px solid #ccc;
    background : white;
    cursor     : pointer;
    margin-left: 5px;
    font-size  : 20px;
    transition : 0.3s ease;
    color      : #8f8d8d;
}

.case-nav button:hover {
    color: black;
}

.case-carousel {
    padding-top: 50px;
    overflow   : hidden;
    width      : 100%;
    position   : relative;
}

.case-track {
    display   : flex;
    transition: transform 0.5s ease;
    gap       : 30px;
}

/* Each item */
.case-item {
    flex         : 0 0 calc((100% - 60px) / 3);
    /* Hiển thị 3 items */
    height       : 420px;
    position     : relative;
    overflow     : hidden;
    border-radius: 5px;
    cursor       : pointer;
}

/* Image */
.case-item img {
    width     : 100%;
    height    : 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

/* Overlay on hover */
.case-item .overlay {
    position  : absolute;
    top       : 0;
    left      : 0;
    width     : 100%;
    height    : 100%;
    background: rgba(26, 25, 29, 0.7);
    opacity   : 0;
    transition: 0.4s ease;
}

/* Text info */
.case-item .info {
    position  : absolute;
    bottom    : 25px;
    left      : 25px;
    right     : 25px;
    opacity   : 0;
    transform : translateY(20px);
    transition: 0.4s ease;
    color     : white;
}

.case-item .info h3 {
    margin       : 0;
    font-size    : 30px;
    color        : white;
    width        : fit-content;
    transition   : color 0.3s ease-in-out;
    margin-bottom: 15px;

}

.case-item .info h3:hover {
    color: var(--primary-blue);
}

.case-item .info p {
    font-size  : 18px;
    line-height: 1.5;
}

/* Zoom image on hover */
.case-item:hover .overlay {
    opacity: 1;
}

.case-item:hover .info {
    opacity: 1;
}

/* Plus icon */
.case-item .plus-icon {
    position        : absolute;
    top             : 50px;
    right           : 70px;
    width           : 50px;
    height          : 50px;
    border-radius   : 50%;
    background      : white;
    display         : flex;
    align-items     : center;
    justify-content : center;
    opacity         : 0;
    transform-origin: center;
    will-change     : transform, opacity;
    transition      : opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s;
}

.case-item .plus-icon::before {
    content         : "";
    position        : absolute;
    top             : -15px;
    left            : -15px;
    width           : calc(100% + 30px);
    height          : calc(100% + 30px);
    border          : 1px solid white;
    border-radius   : 50%;
    opacity         : 0;
    transform-origin: center;
    transition      : opacity 0.3s ease 0.25s, transform 0.3s ease 0.25s;
    pointer-events  : none;
}

@media (hover: hover) and (pointer: fine) {
    .case-item .plus-icon {
        transform: scale(1);
    }

    .case-item:hover .plus-icon {
        opacity  : 1;
        transform: scale(1);
    }

    .case-item:hover .plus-icon::before {
        opacity  : 1;
        transform: scale(1);
    }

    .case-item .plus-icon::before {
        transform: scale(1);
    }
}

@media (hover: none) and (pointer: coarse) {
    .case-item .plus-icon {
        transform: scale(1);
    }

    .case-item .plus-icon::before {
        transform: scale(1);
        opacity  : 0;
    }

    .case-item .plus-icon.active-mobile::before {
        opacity: 1;
    }
}

.case-studies-all-projects {
    background         : linear-gradient(to left, var(--primary-blue) 0%, var(--primary-blue) 50%, black 50%, black 100%);
    background-size    : 202% 110%;
    background-position: right bottom;
    width              : fit-content;
    color              : white;
    border             : none;
    border-radius      : 4px;
    padding            : 15px 35px;
    font-weight        : 600;
    font-size          : 15px;
    cursor             : pointer;
    display            : flex;
    align-items        : center;
    gap                : 8px;
    text-decoration    : none;
    transition         : background-position 0.3s ease-in-out, color 0.3s ease-in-out;
}

.case-studies-all-projects:hover {
    background-position: left bottom;
    color              : white;
    text-decoration    : none;
}

/* -----------------------------------------------CTR SECTION------------------------------------------*/
.ctr-section {
    position   : relative;
    width      : 100%;
    margin-top : 6px;
    min-height : 240px;
    display    : flex;
    align-items: center;
    color      : white;
    overflow   : hidden;
}

.ctr-image {
    position: absolute;
    inset   : 0;
    z-index : 1;
}

.ctr-image img {
    width     : 100%;
    height    : 100%;
    object-fit: cover;
    display   : block;
}

.ctr-image .overlay {
    position  : absolute;
    inset     : 0;
    background: rgba(0, 0, 0, 0.4);
}

.ctr-content {
    position       : relative;
    z-index        : 2;
    width          : 100%;
    max-width      : 1200px;
    margin         : 0 auto;
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    padding        : 0 30px;
}

.ctr-text .subtitle {
    font-size     : 15px;
    font-weight   : 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display       : block;
    margin-bottom : 10px;
}

.ctr-text h1 {
    font-size  : 40px;
    font-weight: 600;
    margin     : 0 0 10px 0;
}

.ctr-text h1 span {
    border-bottom: 2px solid white;
}

.ctr-text p {
    font-size: 15px;
    max-width: 600px;
}

.ctr-button a {
    background         : linear-gradient(to left, white 0%, white 50%, var(--primary-blue) 50%, var(--primary-blue) 100%);
    background-size    : 200% 100%;
    background-position: right bottom;
    color              : black;
    border             : none;
    padding            : 15px 35px;
    border-radius      : 4px;
    font-weight        : 600;
    font-size          : 15px;
    cursor             : pointer;
    display            : flex;
    align-items        : center;
    gap                : 8px;
    text-decoration    : none;
    transition         : background-position 0.3s ease-in-out, color 0.3s ease-in-out;
}

.ctr-button a:hover {
    background-position: left bottom;
    color              : white;
    text-decoration    : none;
}

/* -----------------------------------------------SERVICES SECTION------------------------------------------*/

.services-section {
    padding-top        : 60px;
    padding-bottom     : 20px;
    background-color   : #eff3f7;
    background-image   : url('../img/work2_overlay.png');
    text-align         : center;
    background-repeat  : no-repeat;
    background-size    : cover;
    background-position: center;
    position           : relative;
}

.services-section .container {
    align-items    : center;
    justify-content: center;
    display        : flex;
    flex-direction : column;
}

.section-title {
    font-size    : 2.5rem;
    font-weight  : 700;
    color        : var(--heading-color);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size    : 1rem;
    color        : #666;
    margin-bottom: 50px;
    max-width    : 750px;
    margin-left  : auto;
    margin-right : auto;
    position     : relative;
}

.section-subtitle::before {
    content         : '';
    position        : absolute;
    top             : 100%;
    left            : 50%;
    transform       : translateX(-50%);
    width           : 50%;
    height          : 3px;
    background-color: #d8d8d8;
    margin-top      : 15px;
}

.section-subtitle::after {
    content         : '';
    position        : absolute;
    top             : 100%;
    left            : 50%;
    transform       : translateX(-50%);
    width           : 15%;
    height          : 3px;
    background-color: var(--primary-blue);
    margin-top      : 15px;
}

.service-card {
    background-color: #fff;
    border          : 1px solid #e0e0e0;
    overflow        : hidden;
    text-align      : left;
    height          : 100%;
    transition      : transform 0.3s, box-shadow 0.3s;
    width           : 98%;
}

.service-card::after {
    content          : "";
    display          : block;
    width            : 10px;
    background-color : #dedede;
    position         : absolute;
    top              : 20px;
    bottom           : -10px;
    right            : 12px;
    -webkit-clip-path: polygon(0 0, 100% 6px, 100% 100%, 0 100%);
    -khtml-clip-path : polygon(0 0, 100% 6px, 100% 100%, 0 100%);
    -moz-clip-path   : polygon(0 0, 100% 6px, 100% 100%, 0 100%);
    -ms-clip-path    : polygon(0 0, 100% 6px, 100% 100%, 0 100%);
    -o-clip-path     : polygon(0 0, 100% 6px, 100% 100%, 0 100%);
    clip-path        : polygon(0 0, 100% 6px, 100% 100%, 0 100%);
    transition       : all 350ms ease-in-out 0ms;
}

.service-card::before {
    content          : "";
    display          : block;
    height           : 10px;
    background-color : #dedede;
    position         : absolute;
    bottom           : -10px;
    left             : 35px;
    right            : 21px;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 6px 100%);
    -khtml-clip-path : polygon(0 0, 100% 0, 100% 100%, 6px 100%);
    -moz-clip-path   : polygon(0 0, 100% 0, 100% 100%, 6px 100%);
    -ms-clip-path    : polygon(0 0, 100% 0, 100% 100%, 6px 100%);
    -o-clip-path     : polygon(0 0, 100% 0, 100% 100%, 6px 100%);
    clip-path        : polygon(0 0, 100% 0, 100% 100%, 6px 100%);
    transition       : all 350ms ease-in-out 0ms;
}

.service-card:hover::after,
.service-card:hover::before {
    background-color: var(--primary-blue);
}

.card-image-container {
    position: relative;
    overflow: hidden;
}

.card-image {
    width     : 100%;
    height    : 250px;
    object-fit: cover;
    display   : block;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image {
    transform: scale(1.05);
}

.card-icon-overlay {
    position        : absolute;
    top             : 30px;
    left            : 30px;
    background-color: var(--primary-blue);
    color           : white;
    padding         : 8px 12px;
    font-size       : 1.5rem;
}

.card-body {
    padding: 30px 25px;
}

.card-body .card-title {
    font-size    : 1.3rem;
    font-weight  : 600;
    color        : #333;
    margin-top   : 0;
    margin-bottom: 30px;
    position     : relative;
}

.card-body .card-title::after {
    content   : '';
    position  : absolute;
    left      : 0;
    bottom    : -15px;
    width     : 100%;
    height    : 1px;
    background: linear-gradient(to right, #0582CA 20%, #d3d3d3 20%);
}

.card-text {
    font-size    : 1rem;
    color        : #777;
    margin-bottom: 25px;
    line-height  : 1.6;
}

.read-more-link {
    color          : black;
    text-decoration: none;
    font-weight    : 600;
    font-size      : 0.95rem;
    display        : inline-flex;
    align-items    : center;
    transition     : color 0.3s;
    position       : relative;
    gap            : 10px;
}

.read-more-link .icon-arrow {
    opacity    : 0;
    transition : all 0.3s ease;
    line-height: normal;
    margin-left: -20px;
}

.read-more-link .icon-plus {
    opacity    : 1;
    transition : all 0.3s ease;
    line-height: normal;
    color      : var(--primary-blue)
}

.service-card:hover .read-more-link {
    color          : var(--primary-blue);
    text-decoration: none;
}

.service-card:hover .read-more-link .icon-plus {
    opacity: 0;
    color  : var(--primary-blue);
}

.service-card:hover .read-more-link .icon-arrow {
    opacity: 1;
    color  : var(--primary-blue);
}

.service-icon {
    display            : inline-block;
    transform-style    : preserve-3d;
    backface-visibility: hidden;
    transition         : transform 0.5s ease-in-out;
    transform          : rotateY(0deg);
}

.service-card:hover .service-icon {
    transform: rotateY(-720deg);
}

/*------------------------------------------------Scroll button-------------------------------------------------*/
.scroll-to-top-btn {
    display         : none;
    position        : fixed;
    bottom          : 20px;
    right           : 20px;
    z-index         : 99;
    width           : 50px;
    line-height     : 50px;
    text-align      : center;
    background-color: var(--primary-blue);
    color           : #fff;
    border-radius   : 4px;
    box-shadow      : 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    font-size       : 20px;
}

.scroll-to-top-btn:hover {
    background-color: #077499;
    color           : #fff;
    transform       : scale(1.05);
}

.scroll-to-top-btn i {
    pointer-events: none;
}

.footer-title2 {
    display        : flex;
    flex-direction : row;
    justify-content: space-between;
}

/*------------------------------------------------MOBILE-------------------------------------------------*/
@media (max-width: 450px) {
    .ctr-image img {
        height    : 128%;
        margin-top: -81px;
    }

    .case-header #case-header-title,
    .case-header #case-header-subtitle {
        margin   : 0 40px;
        max-width: 100%;
    }

    .case-header h2 {
        font-size: 30px;
    }

    .mobile {
        display: block;
    }

    .footer-title2 {
        flex-direction: column;
    }

    .desktop {
        display: none;
    }

    /*------------------------------------------------Hero section-------------------------------------------------*/
    .service-hero-section {
        height: 80vh;
    }

    .service-hero-section p {
        font-size: 14px;
        padding  : 0px 25px;
    }

    .service-hero-section h1 {
        font-size: 26px;
    }

    .service-hero-section p {
        line-height: 1.8;
    }

    /*------------------------------------------------Case studies section-------------------------------------------------*/
    .case-studies {
        padding: 0px;
    }

    .case-header {
        display    : block;
        margin-left: 0;
        max-width  : 100%;
    }

    .case-header p::after {
        width: 60%;
    }

    .case-header .case-nav {
        text-align  : right;
        padding-top : 50px;
        margin-right: 3%;
    }

    .case-header .case-nav button {
        margin-left: 5px;
    }

    .case-carousel {
        padding-top: 0;
    }

    .case-item {
        flex: 0 0 100%;
        /* mỗi item chiếm full width */
    }

    .case-item .plus-icon.active-mobile::before {
        opacity: 1;
    }

    /*------------------------------------------------CTR section-------------------------------------------------*/
    .ctr-section {
        min-height: 380px;
    }

    .ctr-content {
        flex-direction: column;
        gap           : 20px;
        padding       : 0 20px;
    }

    .ctr-content .ctr-button {
        align-self: flex-start;
    }

    .ctr-text h1 {
        width    : 90%;
        font-size: 30px;
    }

    .ctr-text p {
        width    : 90%;
        font-size: 15px;
    }

    .ctr-button a {
        width          : 100%;
        max-width      : 300px;
        justify-content: center;
    }
}

@media (min-width: 992px) and (max-width: 1299px) {

    .case-header #case-header-title,
    .case-header #case-header-subtitle {
        margin-left: 2%;
        max-width  : 80%;
    }

    .case-nav {
        margin-right: 0%;
        width       : 13%;
        display: flex;
    }


}


@media (min-width: 1300px) and (max-width: 1700px) {

    .case-header #case-header-title,
    .case-header #case-header-subtitle {
        margin-left: 17%;
    }

    .case-nav {
        margin-right: 12%;
        display: flex;
    }
}