* {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

* {
    scroll-behavior: smooth;
}

.aboutme {
    margin: 5px;
}

.myskill {
    margin: 5px;
}

.project {
    margin: 5px;
}

.contact {
    margin: 5px;
}

/*<--HOME PAGE-->*/

.responsive {
    width: 100%;
    height: auto;
}

.navbar-nav {
    float: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Amarante", serif;
    font-size: 22px !important;
    text-decoration: none;
}

.navbar-nav li a:hover {
    color: #ffa2c0 !important;
}

.nav-item {
    padding-left: 10px;
}

.nav-link {
    color: #fefefe !important;
}

.navbar {
    background-color: #816dbd !important;
    height: 80px;
}

.video-background {
    position: top;
    top: 10;
    left: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

h1 {
    font-family: "Amarante", serif;
    font-size: 1.5rem;
    color: #4f5296 !important;

}

p {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.key {
    font-size: 90px;
    color: #fefefe;
    display: inline-block;
    letter-spacing: -20px;
    transition: transform 0.2s;
    text-shadow: 0 0 3px #fefefe, 0 0 10px #fefefe;
}

@keyframes pressDown1 {

    30%,
    40%,
    100% {
        transform: translateY(0);
    }

    35% {
        transform: translateY(10px);
    }
}

@keyframes pressDown2 {

    70%,
    80%,
    100% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(10px);
    }
}

@keyframes pressDown3 {

    30%,
    40%,
    100% {
        transform: translateY(0);
    }

    35% {
        transform: translateY(10px);
    }
}

@keyframes pressDown4 {

    40%,
    50%,
    100% {
        transform: translateY(0);
    }

    45% {
        transform: translateY(10px);
    }
}

@keyframes pressDown5 {

    20%,
    30%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(10px);
    }
}

@keyframes pressDown6 {

    60%,
    70%,
    100% {
        transform: translateY(0);
    }

    65% {
        transform: translateY(10px);
    }
}

@keyframes pressDown7 {

    10%,
    20%,
    100% {
        transform: translateY(0);
    }

    15% {
        transform: translateY(10px);
    }
}

@keyframes pressDown8 {

    35%,
    45%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }
}

.key:nth-child(1) {
    animation: pressDown1 2s infinite;
}

.key:nth-child(2) {
    animation: pressDown2 3s infinite;
}

.key:nth-child(3) {
    animation: pressDown3 4s infinite;
}

.key:nth-child(4) {
    animation: pressDown4 2.5s infinite;
}

.key:nth-child(5) {
    animation: pressDown5 2.5s infinite;
}

.key:nth-child(6) {
    animation: pressDown6 3.5s infinite;
}

.key:nth-child(7) {
    animation: pressDown7 2.2s infinite;
}

.key:nth-child(8) {
    animation: pressDown8 3.2s infinite;
}


.konten-about {
    display: flex;
    margin-right: 50px;
}

.konten-about img {
    margin-right: 50px;
    margin-top: 130px;
}

.text-center {
    margin: 0px 50px;
    height: 20%;
    padding: 80px;
}

.text-about p {
    text-align: left;
    color: #fefefe;
    margin-bottom: 50px;
}

.texthello h1 {
    text-align: left;
    font-size: 100px;
    margin-top: 150px;

}

.textsiela h1 {
    text-align: left;
    font-size: 70px;

}

.icon-hover-effect {
    color: #fefefe;
    transition: color 0.3s ease;
}

.icon-hover-effect:hover {
    color: #ffa2c0;
}

#sosmed-container {
    margin-top: 20px;
}

.container-myskill {
    margin-top: 50px;
}

.text-skill h1 {
    color: #fefefe !important;
    font-size: 90px;
    text-align: center;
    margin-top: 150px;
    margin-bottom: 50px;
    text-shadow: 0 0 3px #fefefe, 0 0 10px #fefefe;
}

.konten-myskill h2 {
    font-family: "Amarante", serif;
}

.accordion {
    margin-left: 50px;
    margin-right: 50px;
}

.accordion-item h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.accordion-button {
    color: #fefefe !important;
}

.accordion-body p {
    font-size: 14px;
    color: #4f5296;
}

/* CONTAINER UTAMA (PENTING!) */
.card-grid-container {
    display: grid;
    /* Menggunakan CSS Grid untuk layout */
    grid-template-columns: repeat(3, 1fr);
    /* Membuat 3 kolom dengan lebar yang sama */
    gap: 20px;
    /* Ini memberikan jarak (gap) antara semua kartu, baik horizontal maupun vertikal */
    justify-items: center;
    /* Opsional: membuat kartu di tengah jika container lebih lebar */
}

.flip-card {
    width: 150px;
    height: 200px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-back {
    background-color: #c3e2d3;
    color: black;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.flip-card-back h1 {
    font-size: 20px;
}

.flip-card-back p {
    font-size: 10px;
}

.text-project h1 {
    text-align: center;
    font-size: 90px;
    margin-top: 150px;
    color: #fefefe !important;
    text-shadow: 0 0 3px #fefefe, 0 0 10px #fefefe;
}

.konten-project {
    margin: 50px auto 0 auto;
    width: 90%;
    height: 450px;
    display: flex;
    justify-content: center;
    gap: 50px;
}

.project-card {
    position: relative;
    /* Needed for positioning the overlay */
    width: 10%;
    /* Initial width for each card */
    height: 100%;
    border-radius: 10px;
    border: 2px solid #fefefe;
    overflow: hidden;
    /* Keeps content within rounded borders */
    transition: all ease-in-out 0.5s;
    cursor: pointer;
    /* Indicates it's interactive */
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all ease-in-out 0.5s;
}

/* Hover effect for the card container */
.project-card:hover {
    width: 80%;
    /* Expands the card on hover */
}

/* Card Overlay Styling */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    /* Semi-transparent background */
    color: #fefefe;
    padding: 15px;
    height: auto;
    /* Initially hide the overlay */
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    pointer-events: none;
    /* Allows hover events on the card even if over the text */
}

.card-overlay h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.card-overlay p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Show the overlay when the card is hovered */
.project-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    /* Makes links/buttons clickable when visible */
}

/* See More Button Styling */
.see-more-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #007bff;
    /* Example button color */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.see-more-btn:hover {
    background-color: #0056b3;
}

.project-desc {
    margin-top: 50px;
    color: #fefefe !important;
}

.project-desc p {
    margin-left: 50px;
    margin-right: 50px;
    font-size: 15px;
}

.text-contact h1 {
    text-align: center;
    font-size: 90px;
    margin-top: 150px;
    color: #fefefe !important;
    text-shadow: 0 0 3px #fefefe, 0 0 10px #fefefe;
}

.konten-contact {
    margin-top: 160px;
    margin-left: 180px;
}

.konten-contact p {
    color: #fefefe !important;
    margin-bottom: 40px;
    font-size: 18px;
}

.contact-container a {
    gap: 100px;
    margin-top: 50px;
}

.contact-container {
    margin-top: 50px;
}

.gifcontact {
    margin-left: 80px;
}

footer p {
    color: #Fefefe;
    text-align: center;
}
