:root {
    --background: #1197d6;
    --btn-color: #5128d6;
}

.text-welcome {
    color: white;
}

.bg-welcome {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: background-image 1s linear;
}

.bg-welcome::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("");
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.bg-welcome .container {
    position: relative;
    z-index: 2;
}

.section-consultation {
    background-color: var(--background);
}

.text-consultation {
    color: white;
    font-weight: 500;
    letter-spacing: 2px;
}

@media (max-width: 767.98px) {
    .section-consultation {
        height: auto;
    }

    .text-consultation {
        font-size: 1.25rem;
    }
}

.btn-consultation {
    position: relative;
    background-color: var(--btn-color);
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: color 0.3s, background-color 0.3s;
    overflow: hidden;
}

.btn-consultation::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid white;
    transform: scale(1);
    box-sizing: border-box;
    pointer-events: none;
    transition: transform 0.3s ease-in-out;
    z-index: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

.btn-consultation:hover {
    background-color: transparent;
    color: white;
}

.btn-consultation:hover::before {
    animation: outline-rotate 0.6s ease forwards;
}

@keyframes outline-rotate {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
    25% {
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
    }
    50% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%);
    }
    75% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.card-service {
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}
.card-service.active {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.card-service:hover {
    transform: translateY(-5px);
    box-shadow: black;
    background: var(--color-blue);
}
.card-service:hover .icon-service {
    transform: scale(1.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.card-service:hover h5,
.card-service:hover span {
    background: var(--color-blue);
}

.icon-service {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}
.service-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.icon-i {
    font-size: 30px;
}

.text-service {
    color: var(--color-grey);
}

.card-service:hover {
    transform: translateY(-5px);
}

.section-value {
    background-image: url("/images/backgroundsvalues.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /* height: 100vh; */
}

.efek-galery {
    position: relative;
    overflow: hidden;
    height: 250px;
    border-radius: 10px;
}

.efek-galery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.button-galery {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 100px;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.efek-galery:hover .button-galery {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.efek-galery:hover img {
    transform: scale(1.1);
}

.button-galery a {
    background: var(--background);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.button-galery a:hover {
    transform: scale(1.1);
}

.card-values {
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.icon-value {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.icon-value i {
    font-size: 3rem;
    color: #fff;
}

.kategori-galery {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.kategori-galery .row {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 15px;
    padding-bottom: 15px;
}

.kategori-galery .col-12.col-md-3 {
    flex: 0 0 auto;
    width: auto;
    min-width: 200px;
}

.galery-kategori {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: "Arial", sans-serif;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    width: 100%;
}

.galery-kategori:hover {
    background-color: #c2c2c2;
}

.icon-galery {
    background-color: #f5efe5;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    width: 50px;
    height: 50px;
}

.logos {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.logos-slide {
    display: inline-block;
    animation: scroll 20s linear infinite;
    touch-action: manipulation;
    -ms-touch-action: pan-Y;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.logos:hover .logos-slide {
    animation-play-state: paused;
}

.logos-slide img {
    height: 100px;
    margin: 0 30px;
}

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

    to {
        transform: translateX(-100%);
    }
}

.container-value {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: default;
}
.container-value:hover {
    transform: scale(1.02);
}
.container-value:hover .icon-value {
    transform: scale(1.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.container-value::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.753);
    z-index: 1;
}

.container-value > * {
    position: relative;
    z-index: 2;
}

.section-service {
    margin: 100px 0;
}

.icon-eye {
    color: #0291d4;
}

.desk-home {
    font-size: 28px;
}

@media (max-width: 767.98px) {
    .btn-mt-1 {
        margin-top: 10px;
    }
}

@media (max-width: 384px) and (min-width: 100px) {
    h1 {
        font-size: 20px;
    }
    
    .navbar-brand img {
        height: 50px;
    }
    .title-home {
        font-size: 20px;
    }
    .desk-home {
        font-size: 15px;
    }
    .button-blue {
        font-size: 14px;
        padding: 10px 10px;
    }
    .button-white {
        font-size: 14px;
        padding: 10px 10px;
    }
}

.project-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 450px;
    border-radius: 10px;
}

.project-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* height: auto; */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.95) 100%
    );
    /* background: white; */
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 25px;
    /* margin: 10px; */
}

.project-content {
    width: 100%;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-category {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.project-buttons {
    display: flex;
    gap: 10px;
}

.btn-detail,
.btn-preview {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-content {
    transform: translateY(0);
}

.project-card:hover img {
    transform: scale(1.05);
}

.btn-detail {
    background-color: #1197d6;
    color: white;
    border: none;
    text-decoration: none;
}
.detail-service {
    width: 90%;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: white;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    text-decoration: none;
}
.detail-service:hover {
    background-color: white;
    color: #1197d6;
    transform: translateY(-2px);
}
.btn-preview {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    text-decoration: none;
}

.btn-detail:hover {
    background-color: #0d78a8;
    color: white;
    transform: translateY(-2px);
}

.btn-preview:hover {
    background-color: white;
    color: #1197d6;
    transform: translateY(-2px);
}

.preview-modal .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
}

.preview-modal .modal-content {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
}
.preview-modal .card-title {
    border-color: black;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}
.preview-modal .card-title h3 {
    font-size: 1.3rem;
    text-align: center;
    margin: 10px 0 5px 10px;
}
.preview-modal .title {
    font-size: 2.1rem;
    font-weight: 600;
    color: #000000;
}
.preview-modal .modal-header {
    padding: 10px 10px;
}

.preview-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.preview-image {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
}

.project-info {
    padding: 15px 0;
}

.project-category-modal {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .project-overlay {
        opacity: 1;
        padding: 20px;
    }

    .project-content {
        transform: translateY(0);
    }

    .preview-modal .modal-dialog {
        margin: 10px;
    }

    .preview-modal .modal-body {
        display: flex;
        flex-direction: column;
        align-items: start;
    }

    .preview-image {
        max-height: 70vh;
    }

    .modal {
        width: 70%;
        margin: 0 auto;
        left: revert-layer;
        overflow-x: hidden;
        overflow-y: hidden;
    }

    .modal-body img {
        max-height: 100%;
        width: 100%;
        object-fit: contain;
    }

    .card-title h3 {
        font-size: 1rem;
        text-align: center;
    }
}

.modal-content {
    background-color: transparent;
    border: none;
}

.modal-header {
    border: none;
    padding: 0.5rem;
    position: absolute;
    right: 0;
    z-index: 1050;
}

.modal-body {
    padding: 0;
}

.modal-body img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px 8px 0 0;
}

.btn-close {
    background-color: white;
    opacity: 1;
    padding: 0.5rem;
    margin: 0;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .modal-dialog {
        max-width: 95%;
        margin: 0.5rem auto;
    }

    .modal-body {
        max-height: 80vh;
        display: flex;
        align-items: center;
    }

    .modal-body img {
        max-height: 100%;
        width: 100%;
        object-fit: contain;
    }

    .btn-close {
        padding: 0.35rem;
        margin-right: 0.5rem;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .modal-body img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 991px) {
    .project-overlay {
        opacity: 1;
    }

    .project-content {
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .project-overlay {
        opacity: 0;
    }

    .project-content {
        transform: translateY(30px);
    }

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}

.values-container {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.values-container::-webkit-scrollbar {
    display: none;
}

.values-wrapper {
    display: flex;
    gap: 20px;
    padding: 10px 5px;
    min-width: min-content;
}

.value-item {
    flex: 0 0 280px;
    max-width: 280px;
}

.container-value {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.container-value:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icon-value {
    width: 100px;
    height: 100px;
    background: #1197d6;
    border-radius: 50%;
    margin-bottom: 15px;
}

.icon-value i {
    font-size: 2rem;
    color: white;
}

@media (max-width: 768px) {
    .values-wrapper {
        gap: 15px;
        padding: 5px;
    }

    .value-item {
        flex: 0 0 260px;
        max-width: 260px;
    }

    .container-value {
        padding: 20px;
    }

    .icon-value {
        width: 60px;
        height: 60px;
    }

    .icon-value i {
        font-size: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .values-wrapper:has(.value-item:nth-child(-n + 4):last-child) {
        justify-content: center;
        flex-wrap: wrap;
    }
    .values-wrapper:not(:has(.value-item:nth-child(-n + 4):last-child)) {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .value-item {
        flex: 0 0 280px;
        max-width: 280px;
    }
    .values-container {
        padding: 20px 0;
        margin: 0 auto;
    }
}
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1197d6;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: #0d78a8;
    transform: translateY(-50%) scale(1.1);
}

.scroll-left {
    left: -20px;
}

.scroll-right {
    right: -20px;
}
@media (min-width: 1200px) {
    .scroll-btn {
        display: flex;
    }

    .values-container {
        position: relative;
        margin: 0 30px;
    }
    .values-container::before,
    .values-container::after {
        display: none;
    }
}
@media (min-width: 1200px) {
    .values-wrapper {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .values-wrapper::-webkit-scrollbar {
        display: none;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .project-title {
        font-size: 1.1rem;
    }

    .btn-detail,
    .btn-preview {
        padding: 4px 8px;
    }

    .btn-detail span {
        font-size: 0.7rem;
    }

    .btn-preview span {
        font-size: 0.7rem;
    }
}

@media (max-width: 767px) {
    .title-section h1 {
        text-align: center;
    }
}

.title-values {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); ;
}
