@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;

 }

 :root {
   --bg-color: #efeded; /* Warna latar belakang utama menjadi gelap */
   --second-bg-color: #131212; /* Warna latar belakang sekunder lebih gelap */
   --text-color: #fffdfd; /* Warna teks menjadi terang */
   --main-color: #57b6ff; /* Warna aksen utama dengan nuansa pink */

 }

 html{
    font-size: 62.5%;
    overflow-x:hidden;

 }

 body{
    background: var(--bg-color);
    color: var(--text-color);
 }

 section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
 }
 .header{
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--main-color);
    display: flex;
    justify-content:space-between;
    align-items: center;
    z-index:100 ;

 }

 .header.sticky{
   border-bottom: .1rem solid rgba(0, 0,0, .2);
 }
 .logo{
    font-size: 2.5rem;
    color: #555;
    font-weight:600;
    cursor:default;
 }
 .navbar a {
    font-size: 1.7rem;
    margin-left: 4rem;
    transition: .3s;
    color: #555;
 }

 .navbar a:hover,
 .navbar a.active{
    color: #555;
 }
 #menu-icon{
    font-size: 3.6rem;
    color: var(--bg-color);
    display: none;
 }

 .home{
    display: flex;
    justify-content: center;
    align-items: center;
 }

 .home-img img{
    width:30vw ;
    animation: floatImage 4s ease-in-out infinite;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4 ease;
 }
 .home-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 35px var(--main-color),
                0 0 45px var(--main-color)
  }

 .home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--main-color)

 }
 .home-content h3:nth-of-type(2){
    margin-bottom: 1.5rem;
 }

 span{
    color: var(--main-color);
 }
 .home-content h1{
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--main-color);
 }

 .social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
 }
 .social-media a:hover{
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
 }

 .btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
 }

 .btn:hover {
    box-shadow: none;
 }

 .about {
   display: flex;
   flex-direction: column; /* Elemen disusun secara vertikal */
   align-items: center; /* Pusatkan elemen secara horizontal */
   gap: 2rem; /* Jarak antar elemen */
   background: var(--second-bg-color); /* Latar belakang section */
   padding: 5rem 2rem; /* Tambahan ruang untuk estetika */
}

.about-img img {
   width: 25rem; /* Ukuran gambar */
   border-radius: 50%; /* Membuat gambar berbentuk lingkaran */
   box-shadow: 0 0 1rem var(--main-color); /* Efek bayangan */
   transition: 0.4s ease; /* Animasi efek */
}

.about-img img:hover {
   box-shadow: 0 0 25px var(--main-color),
               0 0 35px var(--main-color),
               0 0 45px var(--main-color);
}

.about-content {
   background: var(--bg-color); /* Warna latar belakang kolom */
   padding: 2rem; /* Ruang di dalam kotak */
   border: 1px solid var(--main-color); /* Border dengan warna utama */
   border-radius: 1rem; /* Sudut membulat */
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Efek bayangan */
   max-width: 800px; /* Batas lebar kolom */
   margin: 0 auto; /* Memusatkan kolom */
   text-align: left; /* Teks rata kiri */
}

.about-content h2 {
   font-size: 3rem;
   color: var(--main-color);
   margin-bottom: 1.5rem;
}

.about-content h3 {
   font-size: 2.6rem;
   color: var(--main-color);
   margin-bottom: 1rem;
}

.about-content p {
   font-size: 1.6rem;
   line-height: 1.8;
   color: #555; /* Warna teks lebih netral */
}

.about .btn {
   margin-top: 2rem;
}



 /* Section styling */
.timeline--section {
    padding: 30px;
    background-color: var(--bg-color);
    font-family: Arial, sans-serif;
  }
  
  .heading {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--main-color);
    text-transform: uppercase;
  }
  
  /* Container for the timeline items */
  .timeline-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Membagi menjadi 2 kolom */
    gap: 20px; /* Jarak antar kotak */
  }
  
  .timeline-item {
    background: var(--main-color);
    border-radius: 20px;
    box-shadow: 0 0 2rem var(--main-color);
    padding: 20px;
    position: relative;
    width: 100%;
    min-height: 230px;
  }
  .timeline-item item:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 35px var(--main-color),
                0 0 45px var(--main-color)
  }
  
  .timeline-dot {
    width: 15px;
    height: 15px;
    background: var(--main-color);
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: -10px;
    box-shadow: 0 2px 5px var(--main-color);
  }
  
  .timeline-date {
    font-size: 2rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
  }
  
  /* Gambar Styling */
  .timeline-img {
    width: 150px; /* Gambar menyesuaikan lebar kotak */
    height: 150px; /* Tinggi tetap untuk gambar */
    object-fit: cover; /* Memastikan gambar tidak terdistorsi */
    border-radius: 50%; /* Sudut membulat agar terlihat konsisten */
    margin: 0 auto 15px; 
    display: block;
  }
  
  .timeline-content h3 {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: white;
  }
  
  .timeline-content p {
    font-size: 1.2rem;
    color: white;
    margin: 0;
  }
  
  /* Responsiveness */
  @media (max-width: 768px) {
    .timeline-container {
      grid-template-columns: 1fr; /* Kotak disusun vertikal di layar kecil */
    }
  }
 
/* Section styling */
.skills-section {
    padding: 20px;
    background-color: #f4f4f9;
    font-family: Arial, sans-serif;
  }
  
  .heading {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
  }
  
  /* Container for skills */
  .skills-container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  /* Individual skill */
  .skill {
    margin-bottom: 20px;
  }
  
  .skill-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
  }
  
  /* Skill bar */
  .skill-bar {
    width: 100%;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    height: 25px;
    position: relative;
  }
  
  .skill-progress {
    height: 100%;
    background: var(--main-color);
    border-radius: 10px 0 0 10px;
    text-align: right;
    line-height: 25px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    padding-right: 10px;
    transition: width 0.5s ease-in-out;
  }
  
  /* Add hover effect for progress bar */
  .skill-progress:hover {
    background: var(--main-color);
    transition: background 0.3s ease-in-out;
  }

/* Section styling */
.photo-blog {
    padding: 30px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
  }
  
  .heading {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--main-color);
    margin-bottom: 20px;
    text-transform: uppercase;
  }
  
  /* Photo grid container */
  .photo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Individual photo item */
  .photo-item {
    width: 200%;
    height: 400px;
    background: var(--main-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--main-color);
    overflow: hidden;
    transition: transform 0.3s ease;
  }
  
  .photo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--main-color),
                0 0 35px var(--main-color),
                0 0 45px var(--main-color)
  }
  
  /* Photo styling */
  .photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
  }
 
/* Contact Section Styling */
.contact-section {
    padding: 50px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
  }
  
  .heading {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
  }
  
  /* Contact Container */
  .contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    color: #555;
  }
  
  /* Contact Info */
  .contact-info {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px var(--main-color);
  }
  
  .contact-info h3 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 10px;
  }
  
  .contact-info ul {
    list-style: none;
    padding: 0;
  }
  
  .contact-info li {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 10px;
  }
  
  /* Contact Form */
  .contact-form form {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px var(--main-color);
  }
  
  .contact-form label {
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--main-color);
  }
  
  .contact-form input, 
  .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--main-color);
    border-radius: 5px;
    font-size: 1rem;
  }
  
  .contact-form button {
    background: #555;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .contact-form button:hover {
    background: var(--main-color);
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .contact-container {
      grid-template-columns: 1fr; /* Susun vertikal di layar kecil */
    }
  }

.footer{
   display: flex;
   justify-content: space-between;
   align-items: center;
   flex-wrap: wrap;
   padding: 2rem 9%;
   background: var(--second-bg-color);
}

.footer-text p{
   font-size: 1.6rem;
}

.footer-iconTop a{
   display: inline-flex;
   justify-content: center;
   align-items: center;
   padding: .8rem;
   background: var(--main-color);
   border-radius: .8rem;
   transition: .5s ease;
}

.footer-iconTop a:hover{
   box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i{
   font-size: 2.4rem;
   color: var(--second-bg-color);
}

@media (max-width:1200px){
   html{
      font-size: 55%;
   }
}

@media(max-width:991px){
   .header{
      padding: 2rem 3%;
   }
   section{
      padding: 10rem 3% 2rem;
   }

   .services{
      padding-bottom: 7rem;
   }

   .portfolio{
      padding-bottom: 7rem;
   }
   .contact{
      min-height: auto;
   }
   .footer{
      padding: 2rem 3%;
   }
}

@media(max-width:768px){
   #menu-icon{
      display: block;
   }
   .navbar{
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      padding: 1rem 3%;
      background: var(--bg-color);
      border-top: .1rem solid rgba(0, 0, 0, .2);
      box-shadow: 0 .5rem 1rem rgba(0,0,0,.2);
      display: none;
   }

   .navbar.active{
      display: block;
   }
   .navbar a {
       display: block;
       font-size: 2rem;
       margin: 3rem 0;
   }
   .home{
      flex-direction: column;
   }
   .home-content h3{
      font-size: 2.6rem;
   }
   .home-content h1{
      font-size: 5rem;
   }
   .home-img img{
      width: 70vw;
      margin-top: 4rem;
   }
   .about{
      flex-direction: column-reverse;
   }

   .about img{
      width: 70vw;
      margin-top: 4rem;
   }
   .services h2{
      margin-bottom: 3rem;
   }

   .portfolio h2{
      margin-bottom: 3rem;
   }

   .portfolio-container{
      grid-template-columns: repeat(2,1fr);
   }
}
/* Skills Section */
.skills-section {
   padding: 20px;
   background-color: #f4f4f9;
   font-family: Arial, sans-serif;
}

.heading {
   text-align: center;
   font-size: 2rem;
   font-weight: bold;
   color: #333;
   margin-bottom: 20px;
   text-transform: uppercase;
}

/* Skills Grid Container */
.skills-container {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 20px;
   max-width: 1200px;
   margin: 0 auto;
}

/* Individual Skill Item */
.skill {
   text-align: center;
   background: #423e3e 
   border-radius: 10px;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   padding: 10px;
}

.skill:hover {
   transform: translateY(-5px);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Skill Image */
.skill img {
   width: 100px;
   height: 100px;
   object-fit: cover;
   border-radius: 50%;
   margin-bottom: 10px;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill img:hover {
   transform: scale(1.1);
   box-shadow: 0 0 15px var(--main-color);
}

/* Skill Name */
.skill-name {
   font-size: 1.2rem;
   font-weight: bold;
   color: #555;
   margin-bottom: 5px;
}

/* Skill Percentage */
.skill-percentage {
   font-size: 1rem;
   color: var(--main-color);
   font-weight: 600;
}




@media(max-width:617px){
   .portfolio-container{
      grid-template-columns: 1fr;
   }
}

@media(max-width:450px){
   html{
      font-size: 50%;
   }

   .contact form .input-box input{
      width: 100%;
   }
}

@media(max-width:365px){
   .home-img img{
      width: 90vw;
   }

   .about-img img{
      width: 90vw;
   }

   .footer{
      flex-direction: column-reverse;
   }

   .footer p{
      text-align: center;
      margin-top: 2rem;
   }
}

#msg{
   color: var(--main-color);
   margin-top: -10px;
   display: block;
}