/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  
}

html {
  scroll-behavior: smooth;
}
.font_brittany{
font-family:"brittany";

}
p {
  color: rgb(85, 85, 85);
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
}
.logo-pic {
  display: flex;
  justify-content: center; /* Memposisikan logo di tengah */
  align-items: center;
  margin: 20px; /* Opsional: memberi jarak luar */
}

.logo-pic img {
  max-width: 150px; /* Mengatur ukuran maksimum lebar */
  height: auto; /* Menjaga proporsi gambar */
  cursor: pointer; /* Mengubah kursor menjadi pointer saat hover */
  transition: transform 0.3s ease; /* Animasi halus saat hover */
}

.logo-pic img:hover {
  transform: scale(1.1); /* Sedikit memperbesar saat dihover */
}


.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.zoom-img {
  transition: transform 0.2s ease;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
  
}
.icon_link {
  cursor: pointer;
  height: 2rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icon_link:active {
  transform: scale(0.9); /* Ikon sedikit mengecil */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Tambahkan efek bayangan */
}
.icon_link:hover {
  transform: scale(1.1); /* Ikon sedikit membesar saat hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Tambahkan efek bayangan */
}
/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}
.details-ser {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 1rem;
  justify-content: center;
  display: flex;
}
.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}


/* EXPERIENCE SECTION */

#experience {
  position: relative;
  height: 100%;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}



.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}


.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

.certificate-section {
  padding: 20px;
}

.about-sertif {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.sertif-img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.sertif-img:hover {
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

.modal-content:hover {
  transform: scale(1.05);
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

#caption {
  color: white;
  text-align: center;
  padding: 10px 20px;
}

.article-sertif {
  text-align: center;
}

// slide
.slider-container {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slides img {
  width: 100%;
  border-radius: 10px;
}

/* Navigation Arrows */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Add this to your existing CSS file */

/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button hover effect */
.btn {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: #ff5722; /* Change to your desired hover color */
  transform: scale(1.05);
}

/* Social icons hover effect */
.icon_link {
  transition: transform 0.3s ease;
}

.icon_link:hover {
  transform: scale(1.1);
}

/* Image modal animation */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.5s;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  animation: zoomIn 0.5s;
}

@keyframes zoomIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* Arrow icon animation */
.arrow {
  transition: transform 0.3s ease;
}

.arrow:hover {
  transform: translateY(-5px);
}/* Add this to your existing CSS file */


@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button hover effect */
.btn {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color:rgb(84, 84, 84); /* Change to your desired hover color */
  transform: scale(1.05);
}

/* Social icons hover effect */
.icon_link {
  transition: transform 0.3s ease;
}

.icon_link:hover {
  transform: scale(1.1);
}

/* Image modal animation */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.5s;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  animation: zoomIn 0.5s;
}

@keyframes zoomIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* Arrow icon animation */
.arrow {
  transition: transform 0.3s ease;
}

.arrow:hover {
  transform: translateY(-5px);
}

.experience-details-container {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* Space between groups */
}

.experience-group {
  background-color: var(--background-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.experience-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* Space between skill cards */
}


.experience-group {
  background-color: var(--background-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.experience-skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Responsive grid */
  gap: 1rem; /* Space between skill cards */
}
.skill-card {
  display: flex;
  flex-direction: column; /* Stack skill name and level */
  justify-content: space-between; /* Space between skill name and level */
  background-color: rgba(255, 255, 255, 0.1); /* Light background with transparency */
  color: #ffffff; /* White text for better contrast */
  padding: 1rem; /* Increased padding for a more spacious feel */
  border-radius: 10px; /* More rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Deeper shadow for a floating effect */
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: default; /* Change cursor to indicate non-clickable */
  text-align: center; /* Center text in skill cards */
  height: 120px; /* Increased height for better layout */
  margin: 10px; /* Add margin for spacing between cards */
}

.skill-card:hover {
  background-color: rgba(255, 255, 255, 0.2); /* Darker background on hover */
  transform: translateY(-2px); /* Slight lift effect on hover */
}

.skill-name {
  font-size: 1rem; /* Slightly larger font size */
  font-weight: 700; /* Bolder font weight for emphasis */
  color:rgb(0, 0, 0); /* White text for better contrast */
  margin-bottom: 5px; /* Space between skill name and level */
  display: flex; /* Flexbox for icon alignment */
}

.skill-name i {
  margin-right: 5px; /* Space between icon and text */
  font-size: 1.2rem; /* Slightly larger icon size */
  color:rgb(0, 0, 0); /* Icon color for better visibility */
}



.level {
  display: inline-block;
  font-size: 0.80rem;
  font-family: open-sans, sans-serif;
  color: #ffffff;
  background: rgba(30, 30, 30, 0.6);
  padding: 4px 5px;
  border-radius: 9999px; /* Pill shape */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(10px);

}

.level:hover,
.level:focus {
  background: rgba(55, 55, 55, 0.8);
  color: #e0e0e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}


.section__text__p1 {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 0.5rem;
}


/* Grid & Skill Cards */
.experience-skills.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}



/* Arrow Icon */
.icon.arrow {
  display: block;
  margin: 40px auto 0;
  width: 40px;
  cursor: pointer;
  animation: bounce 2s infinite;
}

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

/* Container untuk semua ikon sosial */
#socials-container {
  display: flex;
  justify-content: center;  /* Atur posisi tengah secara horizontal */
  gap: 20px;                /* Jarak antar ikon */
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Gaya dasar untuk ikon */
.icon_link {
  font-size: 32px; /* Ukuran ikon */
  color: #333;     /* Warna default */
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover effect untuk interaktif */
.icon_link:hover {
  transform: scale(1.2);
  color: #0077b5; /* Warna LinkedIn default, bisa diubah per icon */
}

/* Warna khusus untuk tiap platform (jika ingin lebih spesifik) */
[aria-label="LinkedIn"] .icon_link {
  color: #0077b5;
}
[aria-label="GitHub"] .icon_link {
  color: #333;
}
[aria-label="Instagram"] .icon_link {
  color: #e4405f;
}
[aria-label="WhatsApp"] .icon_link {
  color: #25D366;
}

/* Hover state khusus */
[aria-label="LinkedIn"] .icon_link:hover {
  color: #005582;
}
[aria-label="GitHub"] .icon_link:hover {
  color: #000;
}
[aria-label="Instagram"] .icon_link:hover {
  color: #c13584;
}
[aria-label="WhatsApp"] .icon_link:hover {
  color: #128C7E;
}


.project-navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 14px;
  border: none;
  background-color: #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background-color:  rgb(85, 85, 85);
  color: white;
}

.project-card {
  display: none;
}

.project-card.show {
  display: block;
}


form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

form button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background-color: #0056b3;
}

.status {
  display: none;
  margin-top: 10px;
}

.loading,
.error-message,
.sent-message {
  display: none;
  font-size: 14px;
  padding: 8px;
}

.loading {
  color: #007BFF;
}

.error-message {
  color: #dc3545;
}

.sent-message {
  color: #28a745;
}
