@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@500;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Edu+AU+VIC+WA+NT+Guides:wght@400..700&display=swap');


*,
*::before,
*::after {
    box-sizing: border-box;
}

/* header */
.logo {
    color: #1b2d45;
}

.navbar-container {
    margin-top: 1em;
    margin-inline: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    max-width: max-content;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(120deg, #ff99cc, #ffccff, #ccccff, #99ccff, #66ccff, #ccccff, #ffccff);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;

    .nav-list ul {
        padding: 0 1em;
        display: flex;
        justify-content: center;
        gap: 2rem 1rem;
        list-style-type: none;
    }
}


.navbar-container .nav-list li a {
    text-decoration: none;
    font-size: 1rem;
    color: #333;
    padding: 0.4rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.navbar-container .nav-list li:hover a {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-list li.active a {
    color: #232946;
    font-weight: bold;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: "Quicksand", sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    color: #232946;

    background: linear-gradient(120deg, #ffccf9, #fccb90, #c4e0e5, #fae3d9);
    background-size: 400% 400%;
    animation: gradientAnimation 8s ease infinite;
}

.sweet-word {
    text-align: center;
    font-family: "Lora", serif;
    width: 80%;
    margin: 3em auto;
}


.creativity {
    font-family: "Edu AU VIC WA NT Guides", cursive;
}

.sweet-word-long {
    font-family: "Quicksand", sans-serif;
    color: #333333;
    opacity: .7;
}


.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;

    width: 100%;
    margin: 0 auto;
    padding: 2em;
}

.grid-item {
    padding: 1em;
}

.card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 300px;
    display: flex;
}

.card-content {
    padding: 20px 0 20px 20px;
    width: 60%;
}

.title {
    color: #232946;
    margin-bottom: 10px;
}

.description {
    color: #617d98;
    font-size: 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    cursor: pointer;
}

.more-btn,
.closeDialog-btn {
    cursor: pointer;
    font-size: 14px;
    color: #232946;
    font-weight: 700;
}

.closeDialog-btn {
    border: 1px solid #ccccff;
    border-radius: 10px;
    padding: 1em;
}

.closeDialog-btn:hover {
    background-color: #ccccff;
}

dialog {
    border: none;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    background: linear-gradient(135deg, #f3e7e9, #e3f2fd, #d1e7dd, #f9f7e8);
    animation: softGradient 15s ease infinite;
    /* background-size: 300% 300%; */
    max-width: 70%;
}

.web-demo {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}


@keyframes softGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

    .dialog-content-wrap{
        display: flex;
        /* flex-direction: row; */
    gap: 2em;
    }
.dialog-content {
    margin-bottom: 15px;
    text-align: justify;
    /* animation: fadeIn 3s ease-in-out; */


}




.card-image {
    width: 40%;
    object-fit: contain;
    margin: 10px;
    transition: transform 0.3s ease-in-out;
}

.card-image:hover {
    transform: scale(1.1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-image img :hover {
    transform: scale(1.1);
}

.image-portfolio {
    width: 100%;
}

.video-item {
    margin: 0 auto;
}

.project-tech {
    display: flex;
    list-style: none;
    /* background-color: #232946; */
    padding: 0;
    margin: 0;
}
.project-tech li{
    
    margin-right: 10px;
}


.tech-icon {
    width: 20px;
}

/* ANIMATION */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
      .dialog-content-wrap{
        flex-direction: column-reverse;
        align-items: center;
    }

    .image-portfolio {
        height: 80%;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .grid-item {
        display: flex;
        justify-content: center;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .dialog-content-wrap{
        flex-direction: column-reverse;
        align-items: center;
    }

    .portfolio-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-item {
        display: flex;
        justify-content: center;
    }
}

/* Laptop dan Small Desktop */
@media (min-width: 1025px) and (max-width: 1280px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop */
@media (min-width: 1281px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}