@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

* {
    font-family: "DM Sans", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: white;
}

html {
    scroll-behavior: smooth;
}

/* NAVBAR */
.navbars {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

/* LOGO & HAMBURGER */
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbars .logos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbars .logos p {
    color: white;
    display: flex;
    flex-direction: column;
}

.navbars .logos p #title {
    font-size: 20px;
}

.navbars .nav-link {
    display: flex;
    gap: 20px;
}

.navbars .nav-link a {
    color: white;
    font-size: 18px;
}

.navbars .nav-link a:hover {
    color: rgb(108, 108, 255);
}

.contact-me {
    font-size: 18px;
    padding: 0px 10px;
    border: 2px solid white;
    border-radius: 10px;
}

.contact-me:hover {
    color: rgb(108, 108, 255);
    border: 2px solid rgb(108, 108, 255);
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}

/* OPENING SECTION */
.opening {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 50px 5%;
}

.opening .left {
    color: white;
}

.opening .left h4 {
    font-size: 45px;
    font-weight: 660;
}

.opening .left p {
    text-align: justify;
    margin-top: 10px;
}

.opening .left a {
    display: inline-block;
    background-color: rgb(0, 51, 255);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    margin-top: 10px;
}

.opening .left a:hover {
    background-color: rgb(9, 38, 152);
}

.opening .right {
    display: flex;
    justify-content: center;
}

.opening .right img {
    width: 100%;
    max-width: 600px;
    /* Menjaga ukuran besar di desktop */
    height: auto;
    border-radius: 10px;
}

/* RESPONSIVE */
@media screen and (max-width: 1024px) {
    .opening {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .opening .right {
        margin-top: 20px;
    }
}

@media screen and (max-width: 768px) {

    /* Navbar */
    .navbars {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        background: rgba(0, 0, 0, 0.4);
    }

    .nav-left {
        justify-content: space-between;
        width: 100%;
    }

    .navbars .nav-link {
        display: none;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .navbars .nav-link.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .contact-me {
        display: block;
    }

    /* Opening Section */
    .opening .left h4 {
        font-size: 35px;
    }

    .opening .left p {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .opening .left h4 {
        font-size: 28px;
    }

    .opening .left p {
        font-size: 14px;
    }

    .opening .left a {
        font-size: 14px;
    }

    .opening .right img {
        max-width: 300px;
    }
}

/* SERVICE */
.services {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.services .titles {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
}

.services .titles h3 {
    font-size: 28px;
    font-weight: 550;
}

.services .contents {
    display: flex;
    justify-content: space-between;
    padding-left: 10%;
    padding-right: 10%;
    padding-top: 3%;
    gap: 20px;
}

.services .contents .cards {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
}

.services .contents .cards .title {
    font-size: 20px;
    margin-bottom: 15px;
    color: rgb(4, 46, 173);
}

.services .contents .cards .content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.services .contents .cards p {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-bottom: 1px solid black;
}

.services .contents .cards .desc {
    padding-bottom: 10px;
}

.services .contents .cards .benefit {
    border-top: 1px solid black;
    padding-top: 10px;
    padding-bottom: 10px;
}

.services .contents .cards .benefit i {
    color: green;
}

.services .contents .cards .benefit br {
    margin-bottom: 10px;
}

.services .contents .cards .contact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
}

.services .contents .cards a {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding: 7px;
    color: white;
    background: rgb(72, 72, 255);
    font-weight: 660;
    width: 50%;
    border-radius: 20px;
}

@media screen and (max-width: 1027px) {
    .services .contents .cards a {
        font-size: 15px;
        font-weight: 550;
    }
}

@media screen and (max-width: 969px) {
    .services .contents {
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    .services .contents .cards a {
        width: 40%;
    }
}

.services .contents .cards a:hover {
    background: blue;
}

/* PROJECTS */
.projects {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
}

.projects .titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-align: center;
}

.projects .titles h3 {
    font-size: 28px;
    font-weight: 550;
}

.projects .center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    gap: 20px;
    margin-top: 20px;
}

/* Default: 4 columns */
.projects .property-card {
    flex: 1 1 25%;
    max-width: 25%;
    padding: 15px;
    /* Menambah padding untuk card lebih panjang */
    box-sizing: border-box;

    height: 22em;
    /* Memperpanjang card */
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s ease;
    border-radius: 20px;
    /* Border radius lebih besar agar tidak lancip */
    overflow: hidden;
    background-color: #fff;
    /* Menambahkan background putih untuk card */
}

/* 1100px: 3 columns */
@media screen and (max-width: 1100px) {
    .projects .property-card {
        flex: 1 1 33.33%;
        max-width: 33.33%;
    }
}

/* 800px: 2 columns */
@media screen and (max-width: 800px) {
    .projects .property-card {
        flex: 1 1 50%;
        max-width: 50%;
    }
}

/* 500px: 1 column */
@media screen and (max-width: 500px) {
    .projects .property-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.projects .property-image {
    height: 8em;
    /* Memperpanjang gambar */
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.4s ease;
}

.projects .property-description {
    background-color: #FAFAFC;
    height: 12em;
    padding: 1em;
    /* Padding lebih besar untuk konten */
    text-align: center;
    transition: all 0.4s ease;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    /* Memberikan radius pada bagian bawah */
}

.projects .property-social-icons {
    width: 2em;
    /* Memperbesar icon */
    height: 2em;
    background-color: black;
    position: absolute;
    bottom: 1em;
    left: 1em;
    transition: all 0.4s ease;
    border-radius: 50%;
    /* Membuat icon berbentuk bulat */
}

/* Hover effect */
.projects .property-card:hover .property-description {
    height: 0;
    padding: 0 1em;
}

.projects .property-card:hover .property-image {
    height: 18em;
}

.projects .property-card:hover .property-social-icons {
    background-color: white;
}

.projects .property-card:hover .property-social-icons:hover {
    background-color: blue;
    cursor: pointer;
}

/* SKILL SECTION */
.skills {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
}
.skills .titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-align: center;
}
.skills .titles h3 {
    font-size: 28px;
    font-weight: 550;
}
.skills-container {
    width: 100%;
    overflow: hidden;
    color: white;
    padding: 40px 0;
    position: relative;
}
.skills-wrapper {
    display: flex;
    flex-direction: row;
    animation: scroll-skills 10s linear infinite;
}
.skills-set {
    display: flex;
    flex-direction: row;
}
.skill-card {
    background-color: #34495e;
    margin-right: 20px;
    border-radius: 10px;
    padding: 20px;
    width: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.skill-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}
.skill-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.skill-statistics {
    width: 30vh;
    background-color: #95a5a6;
    border-radius: 5px;
    overflow: hidden;
}
@media screen and (max-width: 768px) {
    .skill-statistics {
        width: 15vh;
    }
}
@media screen and (max-width: 250px) {
    .skill-statistics {
        width: 10vh;
    }
}
.progress-bar {
    height: 20px;
    width: 0%;
    background-color: #27ae60;
    color: white;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    border-radius: 5px;
}

@keyframes scroll-skills {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-20%);
    }
    40% {
        transform: translateX(-40%);
    }
    60% {
        transform: translateX(-60%);
    }
    80% {
        transform: translateX(-80%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media screen and (max-width: 768px) {
    .skill-card {
        width: 150px;
        margin-right: 15px;
    }

    .skill-info h3 {
        font-size: 16px;
    }

    .progress-bar {
        height: 15px;
        font-size: 12px;
    }
}

/* Reviews */
.reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
    padding: 0 20px;
}

.reviews .titles {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.reviews .titles h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.mySwiper {
    width: 100%;
    padding-bottom: 60px;
}

.mySwiper .swiper-slide {
    border-radius: 5px;
    background: #fff;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: transform 0.3s;
    /* Tidak ada border-radius */
}

.testimonialBox {
    position: relative;
    padding-top: 60px;
    color: #444;
}

.testimonialBox .quote {
    position: absolute;
    top: 0px;
    right: 10px;
    opacity: 0.8;
    width: 30px;
}
.testimonialBox .content p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
}
.testimonialBox .details {
    display: flex;
    align-items: center;
    margin-top: 20px;
}
.testimonialBox .details .imgBx {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid #2196f3;
}
.testimonialBox .details .imgBx img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonialBox .details h3 {
    font-size: 15px;
    color: #2196f3;
    line-height: 1.2;
    margin: 0;
}
.testimonialBox .details h3 span {
    font-size: 12px;
    color: #777;
}
.swiper-pagination-1 {
    text-align: center;
}
@media (max-width: 600px) {
    .mySwiper .swiper-slide {
        width: 90%;
    }
    .reviews .titles h3 {
        font-size: 24px;
    }
    .testimonialBox .content p {
        font-size: 13px;
    }
}


/* Contact Me */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: 10px;
}
.contact h3 {
    font-size: 28px;
    font-weight: 550;
}
.contact-section {
    width: 100%;
    color: white;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 1s ease-in;
}
.contact-container {
    max-width: 600px;
    width: 100%;
    background-color: #2c3e50;
    padding: 30px;
    border-radius: 12px;
    animation: slideUp 1s ease-in-out;
}
.contact-container h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    resize: none;
    transition: 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background-color: #ecf0f1;
    color: #2c3e50;
}
.contact-form button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #27ae60;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-form button:hover {
    background-color: #219150;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@media (max-width: 600px) {
    .contact-container {
        padding: 20px;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }
}

/* footer page */
footer {
    position: relative;
    width: 100%;
    background-color: #3586ff;
    min-height: 100px;
    padding: 20px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
footer .social_icon,
footer .menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    flex-wrap: wrap;
}
footer .social_icon li,
footer .menu li {
    list-style: none;
}
footer .social_icon li a {
    font-size: 2em;
    color: #fff;
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
}
footer .social_icon li a:hover {
    transform: translateY(-10px);
}
footer .menu li a {
    font-size: 1.2em;
    color: #fff;
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
    text-decoration: none;
    opacity: 0.75;
}
footer .menu li a:hover {
    opacity: 1;
}
footer p {
    color: #fff;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.1em;
}
footer .wave {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 12px;
    background-image: url('../assets/wave.png');
    background-size: 1000px 100px;
}
@media only screen and (max-width: 850px) {
    footer .wave {
        position: absolute;
        top: -40px;
        left: 0;
        width: 100%;
        height: 42px;
        background-image: url('../assets/wave.png');
        background-size: 1000px 100px;
    }
}
footer .wave#wave1 {
    z-index: 2;
    opacity: 1;
    bottom: 0;
    animation: animateWave 4s linear infinite;
}
footer .wave#wave2 {
    z-index: 1;
    opacity: 0.5;
    bottom: 10px;
    animation: animateWave_02 4s linear infinite;
}
footer .wave#wave1 {
    z-index: 2;
    opacity: 1;
    bottom: 0;
    animation: animateWave 4s linear infinite;
}
@keyframes animateWave {
    0% {
        background-position-x: 1000px;
    }
    100% {
        background-position-x: 0px;
    }
}
@keyframes animateWave_02 {
    0% {
        background-position-x: 0px;
    }
    100% {
        background-position-x: 1000px;
    }
}