/*selector universal artinya menyeleksi semua tag html*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right,rgb(21, 19, 19),rgb(28, 26, 26));
}

.container {
    background: linear-gradient(to right, grey, black, black, rgb(98, 68, 68), black);
    border-radius: 15px;
    padding-top: 80px; /* tambahkan ini */
}

nav {
    background-color: #111;
    color: white;
    padding: 10px 20px;
    position: fixed; /* diubah dari relative */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

h1 {
    font-weight: bold;
    font-size: 28px;
    color: rgb(207, 206, 206);
}

.seaarch input {
    padding: 5px;
    width: 170px;
    border-radius: 5px;
}

/* Hide checkbox */
#nav-toggle {
    display: none;
}

/* Hamburger icon */
.nav-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle-label span {
    height: 3px;
    width: 25px;
    background: white;
    border-radius: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    padding: 8px 10px;
    display: block;
}

.nav-links a:hover {
    background-color: #333;
    border-radius: 4px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    background-color: #222;
    list-style: none;
    min-width: 150px;
}

.nav-links li:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    padding: 8px 12px;
}

.section-image {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    border-bottom: 4px solid black;
}

.profil-image {
    width: 200px;
    height: 200px;
    padding: 6px;
    border-radius: 100%;
    object-fit: cover;
    background: linear-gradient(to right, black, white, red, black);
}

.section-image h2 {
    color: white;
    text-transform: capitalize;
    font-style: italic;
    font-size: 32px;
}

.about-skill {
    display: flex;
    justify-content: space-between;
    margin: 10px 5px;
    gap: 20px;
    flex-wrap: wrap;
}

.my-skill {
    background: linear-gradient(to right, brown, black);
    width: 38%;
    padding: 15px 30px;
    border-radius: 20px;
    border: 5px solid black;
    color: white;
}

.my-skill h2 {
    text-align: center;
    padding-bottom: 20px;
}

.my-skill ul li {
    font-weight: bold;
    line-height: 30px;
    font-size: 13px;
}

.my-cv {
    background: linear-gradient(to right, black, black, brown);
    width: 58%;
    padding: 15px 20px;
    border-radius: 20px;
    border: 5px solid black;
    color: white;
    text-align:center;
    
}

.my-cv h2 {
    text-align: center;
    padding-bottom: 10px;
    font-size: 26px;
}

.my-cv p {
    text-align: justify;
    line-height: 25px;
    margin-bottom: 15px;
}

.my-cv a {
    background-color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border: 3px solid grey;
    color: black;
    border-radius: 10px;
    padding: 7px 10px;
    display: inline-block;
}

.my-cv a:hover {
    background-color: rgb(33, 18, 18);
    color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex;
    }

      .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #111;
        flex-direction: column;
        display: none;
    }

      .nav-links li {
        width: 100%;
        border-top: 1px solid #222;
    }

      #nav-toggle:checked + .nav-toggle-label + .nav-links {
        display: flex;
    }

      .dropdown-menu {
        position: static;
    }

      .nav-links li:hover .dropdown-menu {
        display: none;
    }

      .nav-links li:focus-within .dropdown-menu {
        display: block;
    }

      .about-skill {
        flex-direction: column;
        align-items: center;
    }
    
    .my-skill,
    .my-cv {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
}

    }


@keyframes animation1 {
  0% {
    opacity: 0;
    transform: translatey(-30px);
  }
  100% {
    opacity: 1;
    transform: translatex(0);
  }
}

.container {
  animation: animation1 1s ease forwards;
  opacity: 0; /* Biar tidak langsung muncul */
  animation-delay: 0.1s; /* Delay agar lebih smooth */
}

@keyframes animation2 {
  0% {
    opacity: 0;
    transform: translatex(-30px);
  }
  100% {
    opacity: 1;
    transform: translatex(0);
  }
}

.my-skill {
  animation: animation2 1s ease forwards;
  opacity: 0;
  animation-delay: 0.1s;
}

@keyframes animation3 {
  0% {
    opacity: 0;
    transform: translatex(30px);
  }
  100% {
    opacity: 1;
    transform: translatex(0);
  }
}

.my-cv {
    animation: animation3 1s ease forwards;
    opacity: 0;
    animation-delay: 0.1s;
}

@keyframes animation4 {
    0%{
        opacity: 0;
        transform:  translatex(30px);
    }
     100% {
    opacity: 1;
    transform: translatex(0);
  }
}

.tree-photo{
    animation: animation4 1s ease forwards;
    opacity: 0;
    animation-delay: 0.1s;
}


@keyframes animation5 {
    0%{
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.styletx{
    animation: animation5 1s ease forwards;
    opacity: 0;
    animation-delay: 0.1s;
}

@keyframes animation6 {
    0%{
        opacity: 0;
        transform:  translatex(-30px);
    }
     100% {
    opacity: 1;
    transform: translatex(0);
  }
}

.photos-client{
    animation: animation6 1s ease forwards;
    opacity: 0;
    animation-delay: 0.1s;
}

.gallery-foto {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap; /* Agar responsif dan tidak keluar */
    overflow: hidden; /* Mencegah konten keluar dari container */
    padding: 10px 20px 20px 20px;
}

.tree-photo{
    display: grid;
    justify-content: center;
    align-items: center;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr); /* 3 kolom */
}

.gallery-foto img {
    width: 100px;
    height: 100px; /* Tambahkan agar semua gambar simetris */
    object-fit: cover;
    display: block;
    border-radius: 100%;
    border-top: 3px solid lime;
    border-bottom: 3px solid lightblue;
    border-left: 3px solid lightcoral;
    border-right: 3px solid lightcyan;
    box-shadow: 0 0 12px red;
}

.gallery-foto .photos-client {
    width: 400px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px; /* Sesuaikan jika tidak ingin lingkaran */
}

.styletx{
    text-align: center;
    color: rgb(0, 0, 0); 
    font-size: 20px; 
    background-color: rgb(255, 255, 255); 
    padding: 7px;
    margin: 15px 0px; 
    border-radius: 4px; 
    border-top: 2px solid rgb(0, 0, 0);
    border-bottom: 2px solid black;
}

footer{
    background-color: black;
    color: white;
    font-size: 1rem;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    margin-top: 5px;
}

.nama::after {
  content: "|";
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
