@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");

/* Reset dan Pengaturan Dasar */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: #97f1f7;
  background: radial-gradient(
    circle,
    rgba(151, 241, 247, 1) 0%,
    rgba(85, 182, 242, 1) 100%
  );
  font-family: "Poppins", sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-box {
  border: 2px solid #8ee5f6;  
  padding: 20px;               
  border-radius: 12px;         
  background-color: rgba(255, 255, 255, 0.959); 
  width: fit-content;        
  max-width: 600px;           
  margin-top: 20px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15); 
}

/* Navbar */
.navbar {
  background: #1ca3eb;
  background: linear-gradient(
    0deg,
    rgba(28, 163, 235, 1) 0%,
    rgba(250, 249, 247, 1) 100%
  );
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1e3a8a;
}

.navbar .logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin: 0 20px;
}

.nav-links a {
  position: relative;
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s linear;
}

.nav-links a::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #1e3a8a;
  transition: width 0.2s linear;
}

.nav-links a:hover::before {
  width: 100%;
}

.nav-links a:hover {
  color: #1e3a8a;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #3649dd;
  margin-left: auto;
}


@media (max-width: 768px) {
  .nav-links {
    display: none; 
    flex-direction: column;
    background:rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition:0.3s ease;
    position: absolute;
    top: 70px; 
    right: 20px;
    width: 180px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links.active {
    display: flex; 
  }

  .hamburger {
    display: block; 
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 8px 0;
    text-align: center;
  }

  .hamburger {
    display: block;
  }
}
#mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
  color: inherit;
  margin-left: 10px;
}

.dropdown {
  z-index: 100;
  position: absolute;
  top: 0;
  transform: translateY(-500px);
  width: 100%;
  height: auto;
  backdrop-filter: blur(4px) brightness(40%);
  box-shadow: 0 0 20px black;
  transition: transform 0.2s linear;
}

.dropdown .links a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  color: rgb(4, 4, 4);
  text-decoration: none;
  transition: background-color 0.2s linear;
}

.dropdown .links a:hover {
  background-color: #1e3a8a;
}

/* Main Section */
section {
  width: 100%;
  height: auto;
  padding-bottom: 50px;
}

.main-container {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-top: 100px;
  flex-wrap: wrap;
}

.main-container .image {
  width: 500px;
  height: auto;
  max-height: 80vh;
  overflow: hidden;
  margin-bottom: 20px;
}

.main-container .image img {
  width: 100%;
  height: auto;
  display: block;
}

.main-container .image:hover {
  animation: animate 1.5s ease-in-out infinite;
}

@keyframes animate {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.main-container .content {
  color: rgb(12, 12, 12);
  width: 90%;
  max-width: 600px;
  min-height: 100px;
  margin-bottom: 20px;
}

.content h1 {
  font-size: clamp(1rem, 1rem + 5vw, 1.8rem);
}

.content h1 span {
  color: #1e3a8a;
  text-shadow: 0 0 10px #9b9da1;
}

.content .typewriter {
  font-size: clamp(1rem, 1rem + 5vw, 2.5rem);
  font-weight: 600;
}

.content .typewriter-text {
  color: #1e3a8a;
  text-shadow: 0 0 10px #9b9da1;
}

.content p {
  font-size: clamp(0.4rem, 0.2rem + 9vw, 1rem);
  margin: 10px 0;
}

.social-links i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background-color: transparent;
  border: 0.2rem solid #1e3a8a;
  border-radius: 50%;
  color: #1e3a8a;
  margin: 5px 15px;
  font-size: 1.5rem;
  transition: transform 0.2s linear, background-color 0.2s linear,
    filter 0.2s linear;
}

.social-links i:hover {
  transform: scale(1.3);
  color: black;
  background-color: #1e3a8a;
  filter: drop-shadow(0 0 10px #516ab0);
}

.content button {
  width: 50%;
  height: 6vh;
  margin: 30px;
  background-color: #1e3a8a;
  color: #fff;
  border: none;
  outline: none;
  font-size: 120%;
  font-weight: 700;
  border-radius: 5px;
  transition: transform 0.2s linear, color 0.2s linear, border 0.2s linear,
    background-color 0.2s linear, box-shadow 0.2s linear;
}

.content button:hover {
  transform: scale(1.1);
  color: #1e3a8a;
  border: 2px solid #1e3a8a;
  background-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 40px #516ab0;
}

/* Responsif Main Section */
@media (max-width: 884px) {
  nav .logo {
    position: absolute;
    top: 16px;
    left: 15px;
    font-size: 1.5rem;
  }

  .main-container {
    flex-direction: column;
  }

  .main-container .content {
    width: 90%;
  }

  .social-links i {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .main-container .image {
    width: 80%;
    max-width: 400px;
    height: auto;
  }
}

@media (max-width: 440px) {
  .main-container .image {
    width: 90%;
    max-width: 300px;
  }

  .main-container .content {
    width: 90%;
  }

  .main-container button {
    margin-top: 15px;
  }
}

/* Skill Section */
.skill-section {
  text-align: center;
  padding: 50px 0;
}

.text-box-skill {
  border: 2px solid #8ee5f6;  
  padding: 20px;               
  border-radius: 12px;         
  background-color: rgba(255, 255, 255, 0.959); 
  width: fit-content;        
  max-width: 1200px;           
  margin-top: 20px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15); 
}

.skill-title {
  font-size: 32px;
  font-weight: bold;
  margin-top: 80px;
  color: #333;
  text-align: center; /* Tambahkan text-align: center */
}

.line {
  width: 100px;
  height: 3px;
  background-color: #516ab0;
  margin: 10px auto 30px;
}

.line {
  width: 100px;
  height: 3px;
  background-color: #516ab0;
  margin: 10px auto 30px;
}

.icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.skill-icon {
  width: 60px;
  height: 60px;
  margin: 5px;
  transition: transform 0.3s ease;
}

.skill-icon:hover {
  transform: scale(1.1);
}

.skill-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.skill-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
  text-align: center;
}

.skill-card-icon {
  font-size: 80px; /* Ukuran ikon */
  margin-bottom: 20px;
  color: #516ab0; /* Warna ikon */
}

.skill-card h2 {
  margin-bottom: 10px;
  color: #333; /* Ubah warna judul card */
}

.skill-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #555; /* Ubah warna paragraf card */
}

.skill-card.active {
  background-color: #00aaff !important;
  color: #fff !important;
}

.skill-card:hover {
  transform: scale(1.05);
  background-color: #50a7f8;
  color: #fff;
}



/* Contact Section */
.contact-section {
  margin-top: 100px;
  padding: 50px 0;
}

.contact-container {
  max-width: 450px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  text-align: center;
}

.contact-right h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.contact-right p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

form textarea {
  height: 100px;
  resize: none;
}

form button {
  width: 100%;
  padding: 12px;
  background: #090979;
  background: linear-gradient(
    90deg,
    rgba(9, 9, 121, 1) 8%,
    rgba(0, 212, 255, 1) 100%
  );
  color: #fff;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

form button:hover {
 background: #090979;
background: linear-gradient(90deg, rgba(9, 9, 121, 1) 8%, rgba(0, 212, 255, 1) 100%);
}

.title-contact {
  font-size: 32px;
  font-weight: bold;
  margin-top: 80px;
  color: #333;
  text-align: center; /* Tambahkan text-align: center */
}


/* Popup */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px); /* Efek blur latar belakang */
  animation: fadeIn 0.3s ease-in-out; /* Animasi fade-in */
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 350px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-in-out; /* Animasi slide-in */
}

.close-btn {
  font-size: 24px;
  cursor: pointer;
  float: right;
  margin-right: 10px;
  color: #888;
  transition: color 0.3s; /* Transisi warna */
}

.close-btn:hover {
  color: #333; /* Warna hover */
}

.popup-icon {
  font-size: 80px; /* Ukuran ikon lebih besar */
  color: #4caf50; /* Warna ikon cerah */
  margin-bottom: 20px;
}

.popup-content p {
  font-size: 18px;
  margin-top: 15px;
  line-height: 1.6;
}

/* Animasi */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
  }
  to {
    transform: translateY(0);
  }
}

/* Gallery */
#gallery {
  padding: 50px 0;
  text-align: center;
}


.gallery-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.line {
  width: 290px; /* Sesuaikan lebar garis */
  height: 2px; /* Sesuaikan tinggi garis */
  background: linear-gradient(
    to right,
    transparent,
    #516ab0,
    transparent
  ); /* Gaya garis gradien */
  margin: 10px auto 30px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.photo {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  overflow: hidden; /* Tambahkan overflow hidden */
}

.photo:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Efek overlay saat hover */
.photo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Overlay gelap */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo:hover::before {
  opacity: 1;
}

/* Animasi untuk efek fade-in saat foto muncul */
.photo {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
footer {
  background: #1ca3eb;
  background: linear-gradient(
    0deg,
    rgba(28, 163, 235, 1) 0%,
    rgba(250, 249, 247, 1) 100%
  );
  color: #fff;
  width: 100%;
  padding: 40px 20px; /* Mengurangi padding vertikal */
  margin-top: auto;
  text-align: center;
}

footer .footer.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-container {
  margin-bottom: 15px; /* Mengurangi margin bawah logo */
}

.footer-logo {
  width: 50px; /* Mengurangi lebar logo */
  height: 50px; /* Mengurangi tinggi logo */
  border-radius: 50%;
  object-fit: cover;
}

.social-icon {
  width: 35px; /* Mengurangi lebar ikon */
  height: 35px; /* Mengurangi tinggi ikon */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 18px; /* Mengurangi ukuran font ikon */
  margin: 0 8px; /* Mengurangi margin ikon */
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.social-icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  top: -100%;
  left: 0;
  transition: top 0.3s ease;
}

.social-icon:hover::before {
  top: 0;
}

.social-icon.instagram:hover {
  background: #e4405f;
}

.social-icon.youtube:hover {
  background: #ff0000;
}

.social-icon.linkedin:hover {
  background: #0077b5;
}

.social-icon.github:hover {
  background: #333;
}

.social-icon:hover {
  transform: scale(1.1); /* Mengurangi efek skala hover */
}

.footer-text {
  margin-top: 15px; /* Mengurangi margin atas teks footer */
  font-size: 12px; /* Mengurangi ukuran font teks footer */
  opacity: 0.7;
}

/*TOMBOL TOP*/
#top-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

#top-button:hover {
  background-color: #0056b3;
}
