/* Warna tema pastel: biru, pink, dan kuning */
body {
    font-family: "Poppins", sans-serif;
    background-color: #fff5e1; /* Kuning pastel */
    color: #FF69B4;
    margin: 0;
    padding: 0;
    text-align: center;
}
/* Navbar */
.navbar {
    display: flex; /* Menggunakan flexbox */
    justify-content: center;
    align-items: center;
    background-color: #B0D6E3;
    padding: 15px 20px;
    border-radius: 10px;
}

/* Styling untuk tautan */
.navbar a {
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}

/* Efek hover*/
.navbar a:hover {
    color: #FF69B4;
}

/* Untuk layar kecil, ubah navbar menjadi column */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .navbar a {
        display: block;
        width: 100%;
        padding: 10px;
    }
}


/* Container*/
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Header */
header {
    background-color: #add8e6; /* Biru pastel */
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
    color: #fff;
    font-size: 2em;
    margin: 0;
}

/* Foto Profil Bentuk Tabung */
/* Container Foto Profil */
.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 30px; /* Menambahkan jarak dari header */
}

/* Foto Profil Berbentuk Tabung */
.about img {
    width: 150px; /* Lebar lebih kecil */
    height: 200px; /* Tinggi lebih besar */
    border-radius: 50px; /* Membentuk tabung */
    border: 5px solid #ffb6c1;
    object-fit: cover;
    box-shadow: 0px 5px 15px rgba(255, 182, 193, 0.5);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Efek Hover */
.about img:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(255, 105, 180, 0.8);
}


/* Bagian Tentang Saya */
.about-text {
    margin-top: 15px; /* Jarak antara foto profil dan teks */
    text-align: center;
    background: linear-gradient(90deg, #ff8fab, #ffc3a0);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: white;
    display: inline-block;
}

.p {
    font-size: 2.1em;
    margin: 10px 0;
    font-style: italic;
}

/* Judul Bagian */
h2 {
    color: #fff;
    background: linear-gradient(90deg, #ff8fab, #ffc3a0);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.8em;
    font-weight: 600;
}

/* Tombol Download CV */
.cv-download {
    text-align: center;
    margin-top: 30px;
}

.cv-button {
    display: inline-block;
    background: linear-gradient(90deg, #ff8fab, #ffc3a0);
    color: white;
    padding: 12px 20px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.cv-button:hover {
    background: linear-gradient(90deg, #ff8fab, #ffc3a0);
    transform: scale(1.05);
}

/* Skill Section */
.skills, .projects, .contact {
    margin: 40px 0;
    font-family: "Poppins", poppins;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-box {
    width: 150px;
    padding: 15px;
    background: #b3e0ff;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: 0.3s;
}

.skill-box img {
    width: 50px;
    height: 50px;
}

.skill-box:hover {
    background-color: #ffb6c1;
}

/* Proyek */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Membuat kolom responsif */
    gap: 20px; /* Jarak antar elemen */
    padding: 20px;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 15px;
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.project-card h3 {
    margin: 10px 0;
}


/* Efek hover */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Gambar dalam kartu proyek */
.project-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    max-height: 180px;
    object-fit: cover;
}

/* Judul proyek */
.project-card h3 {
    font-size: 1.2em;
    margin: 10px 0;
    text-align: center;
}

/* Deskripsi proyek */
.project-card p {
    font-size: 0.9em;
    text-align: center;
    color: #555;
}

/* Tombol proyek */
.project-card .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.project-card .btn:hover {
    background-color: #0056b3;
}

/* Responsive untuk layar kecil */
@media screen and (max-width: 768px) {
    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Kartu lebih kecil di layar kecil */
    }

    .project-card {
        max-width: 280px;
    }

    .project-card img {
        max-height: 150px;
    }
}

/* Responsive untuk layar sangat kecil (mobile) */
@media screen and (max-width: 480px) {
    .projects-container {
        grid-template-columns: repeat(1, 1fr); /* 1 kolom di layar kecil */
    }

    .project-card {
        max-width: 100%;
    }
}


/* Pendidikan */
.education {
    padding: 20px;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin: 20px 0;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    width: 300px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid #add8e6;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 128, 255, 0.3);
}

/* Kontak */
.contact a {
    color: #ff69b4;
    text-decoration: none;
    font-weight: bold;
}

.contact p {
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

/* Efek transparan & bercahaya untuk ikon */
.contact .icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0px 0px 5px rgba(255, 182, 193, 0.8));
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.contact .icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0px 0px 10px rgba(255, 105, 180, 1));
}

/* Tombol WhatsApp Mengambang */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Animasi Bouncing */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .skills-container,
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .skill-box {
        width: 80%;
    }
}

/* Responsiveness */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px;
    }

    /* Header */
    header {
        padding: 15px;
        border-radius: 10px;
    }

    header h1 {
        font-size: 1.5em;
    }

    /* Foto Profil */
    .about img {
        width: 120px;
        height: 160px;
        border-radius: 40px; /* Bentuk tetap tabung */
    }

    /* Bagian Tentang Saya */
    .about-text {
        font-size: 1em;
        padding: 8px 15px;
    }

    /* Judul */
    h2 {
        font-size: 1.5em;
        padding: 8px 15px;
    }

    /* Skills */
    .skills-container {
        flex-direction: column;
        align-items: center;
    }

    .skill-box {
        width: 80%;
    }

    /* Proyek */
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        max-width: 100%;
        padding: 10px;
    }

    /* Pendidikan */
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .card {
        width: 90%;
    }

    /* Kontak */
    .contact p {
        flex-direction: column;
        text-align: center;
    }

    /* Tombol WhatsApp */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}
/* Tombol Scroll to Top */
#scrollToTop {
    position: fixed;
    bottom: 100px; /* Jarak di atas tombol WhatsApp */
    right: 20px;
    display: none;
    background-color: #FFB6C1; /* Warna pastel pink sesuai tema web */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    animation: floating 2s infinite ease-in-out;
}

/* Efek hover */
#scrollToTop:hover {
    background-color: #FF69B4; /* Warna pink lebih gelap saat hover */
}

/* Animasi tombol naik turun */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); } /* Naik 10px */
    100% { transform: translateY(0px); }
}
