/* Global Styles */
body {
  background-color: #f2f2f2;
  color: #333;
  font-family: 'Roboto', Arial, sans-serif;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0;
  padding: 0;
}
/* Back to Top Button */
.backtopbutton {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 0px 4px rgba(180, 160, 255, 0.253);
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  position: fixed;
  bottom: 20px; /* Distance from the bottom */
  right: 20px;  /* Distance from the right */
}

.svgIcon {
  width: 12px;
  transition-duration: 0.3s;
}

.svgIcon path {
  fill: white;
}

.backtopbutton:hover {
  width: 140px;
  border-radius: 50px;
  background-color: rgb(238, 198, 0);
}

.backtopbutton:hover .svgIcon {
  transition-duration: 0.3s;
  transform: translateY(-200%);
}

.backtopbutton::before {
  position: absolute;
  bottom: -20px;
  content: "Back to Top";
  color: white;
  font-size: 0px;
  transition-duration: 0.3s;
}

.backtopbutton:hover::before {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
}

/* Header Section */
header {
  background-image: url('pic/header_design.png');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}

.toggle-container {
  position: absolute;
  top: 10px;
  right: 10px;
}

.toggle-container label i {
  background-color: #444;
  color: white;
  padding: 5px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.toggle-container label i:hover {
  cursor: pointer;
  background-color: #555;
}

.listen{
  color: #f4bc42;
  font-weight: bold;
}

.page-title {
  font-size: 3rem;
  font-weight: bold;
  color: #f4bc42;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* Keyframes for title animation */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: orange; }
}

/* Audio player styles */
.audio-player {
  margin-top: 20px;
  text-align: center;
}

.audio-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.audio-controls button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease;
}

.audio-controls button:hover {
  color: #4c86f9; /* Change to your preferred hover color */
}

.audio-controls i {
  font-size: 24px;
}


.audio-player button:hover {
  background-color: #555;
}

/* Profile Section */
.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  background-color: #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin: 40px auto;
  max-width: 800px;
  position: relative;
}

.profile-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('pic/profile-bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: -1;
  border-radius: 10px;
}

.profile-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 6px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.profile-name {
  color: #333;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.profile-details {
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  color: #555;
  padding: 0 20px;
}

.profile-details strong {
  color: #333;
}

.profile-details ul {
  list-style-type: none;
  padding: 0;
}

.profile-details ul li {
  margin: 5px 0;
}

/*Micorosoft*/
.brutalist-button {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 169px;
  height: 60px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  border: 3px solid #fff;
  outline: 3px solid #000;
  box-shadow: 6px 6px 0 #00a4ef;
  transition: all 0.1s ease-out;
  padding: 0 15px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.brutalist-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  z-index: 1;
  transition: none;
  /* Initially hide the pseudo-element */
  opacity: 0;
}

@keyframes slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.brutalist-button:hover::before {
  /* Show the pseudo-element on hover */
  opacity: 1;
  animation: slide 2s infinite;
}

.brutalist-button:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 #000;
  background-color: #000;
  color: #fff;
}

@keyframes slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.brutalist-button:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 #00a4ef;
  background-color: #fff;
  color: #000;
  border-color: #000;
}

/* Rest of the CSS remains the same */

.ms-logo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease-out;
  position: relative;
  z-index: 1;
}

.brutalist-button:hover .ms-logo {
  transform: rotate(-10deg) scale(1.1);
}

.brutalist-button:active .ms-logo {
  transform: rotate(10deg) scale(0.9);
}

.ms-logo-square {
  width: 100%;
  height: 100%;
}

.ms-logo-square:nth-child(1) {
  background-color: #f25022;
}
.ms-logo-square:nth-child(2) {
  background-color: #7fba00;
}
.ms-logo-square:nth-child(3) {
  background-color: #00a4ef;
}
.ms-logo-square:nth-child(4) {
  background-color: #ffb900;
}

.button-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  transition: transform 0.2s ease-out;
  position: relative;
  z-index: 1;
}

.brutalist-button:hover .button-text {
  transform: skew(-5deg);
}

.brutalist-button:active .button-text {
  transform: skew(5deg);
}

.button-text span:first-child {
  font-size: 11px;
  text-transform: uppercase;
}

.button-text span:last-child {
  font-size: 16px;
  text-transform: uppercase;
}


/* Skills Section */
.skills-container {
  margin-top: 30px;
  text-align: left;
  max-width: 800px;
  margin: auto;
}

.skills-container h2 {
  color: #333;
  font-size: 2em;
  margin-bottom: 20px;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  border-bottom: 2px solid #deb904;
  display: inline-block;
  padding-bottom: 20px;
}

.skills-list {
  list-style-type: none;
  padding: 0;
}

.skill {
  margin: 15px 0;
  font-family: 'Arial', sans-serif;
}

.skill-name {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 5px;
}

.progress-bar {
  background-color: #f4f4f4;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  height: 25px;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.progress {
  background-color: #deb904;
  height: 100%;
  width: 0;
  transition: width 1s ease-in-out;
  border-radius: 25px;
  position: relative;
  color: #fff;
  line-height: 25px;
  text-align: center;
  font-size: 0.9em;
  font-weight: bold;
}

.progress::after {
  content: attr(data-skill);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  line-height: 25px;
  color: #fff;
}

/* google load */
.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.ball {
  --size: 16px;
  width: var(--size);
  height: var(--size);
  border-radius: 11px;
  margin: 0 10px;

  animation: 2s bounce ease infinite;
}

.blue {
  background-color: #4285f5;
}

.red {
  background-color: #ea4436;
  animation-delay: 0.25s;
}

.yellow {
  background-color: #fbbd06;
  animation-delay: 0.5s;
}

.green {
  background-color: #34a952;
  animation-delay: 0.75s;
}

@keyframes bounce {
  50% {
    transform: translateY(25px);
  }
}


/* Hobby Section */

.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hobby-box {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s, transform 0.3s;
}

.hobby-box:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.hobby-box img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.hobby-box h3 {
  margin-top: 15px;
  font-size: 1.3rem;
  color: #444;
}

/* bilog dot */
.bilogload {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  animation: dot-pulse2 1.5s ease-in-out infinite;
}

.dot-1 {
  background-color: #4285f4;
  animation-delay: 0s;
}

.dot-2 {
  background-color: #34a853;
  animation-delay: 0.3s;
}

.dot-3 {
  background-color: #fbbc05;
  animation-delay: 0.6s;
}

.dot-4 {
  background-color: #ea4335;
  animation-delay: 0.9s;
}

.dot-5 {
  background-color: #4285f4;
  animation-delay: 1.2s;
}

.dot-6 {
  background-color: #0f9d58;
  animation-delay: 1.5s;
}

.dot-7 {
  background-color: #673ab7;
  animation-delay: 1.8s;
}

.dot-8 {
  background-color: #ff5722;
  animation-delay: 2.1s;
}

@keyframes dot-pulse2 {
  0% {
    transform: scale(0.5);
    opacity: 0.5;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.5);
    opacity: 0.5;
  }
}

/*Project Section*/
.projects-container {
  margin-top: 30px;
  padding: 20px;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.article-wrapper {
  width: 250px;
  -webkit-transition: 0.15s all ease-in-out;
  transition: 0.15s all ease-in-out;
  border-radius: 10px;
  padding: 5px;
  border: 4px solid transparent;
  cursor: pointer;
  background-color: white;
}

.article-wrapper:hover {
  -webkit-box-shadow: 10px 10px 0 #ffbe4e, 20px 20px 0 #ff4400;
  box-shadow: 10px 10px 0 #b86302, 20px 20px 0 #685108;
  border-color: #fc8f36;
  -webkit-transform: translate(-20px, -20px);
  -ms-transform: translate(-20px, -20px);
  transform: translate(-20px, -20px);
}

.article-wrapper:active {
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0);
}

.types {
  gap: 10px;
  display: flex;
  place-content: flex-start;
}

.rounded-lg {
  border-radius: 10px;
}

.article-wrapper:hover .project-hover {
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  background-color: #a6c2f0;
}

.project-info {
  padding-top: 20px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-title {
  font-size: 2em;
  margin: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: black;
}

.flex-pr {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-type {
  background: #f8d805;
  color: #ae5701;
  font-weight: bold;
  padding: 0.3em 0.7em;s
  border-radius: 15px;
  font-size: 12px;
  letter-spacing: -0.6px;
}

.project-hover {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  padding: 9px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.container-project {
  width: 100%;
  height: 170px;
  background: gray;
}


/* Center the Resume Card */
.resume-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30vh; /* Full viewport height */
  margin: 0;
}

.card {
  max-width: 360px; /* Reduce the max width for a more compact card */
  width: 100%; /* Ensure the card width adjusts to the container */
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-radius: 0.5rem;
  background: #606c88;
  background: -webkit-linear-gradient(to right, #3f4c6b, #606c88);
  background: linear-gradient(to right top, #a99001, #eddcac);
  padding: 1rem;
  color: rgb(107, 114, 128);
  box-shadow: 0px 87px 78px -39px rgba(0,0,0,0.4);
  margin: 0 auto; /* Center the card horizontally */
  box-sizing: border-box; /* Ensure padding and border are included in the width */
}

.icon {
  height: 2rem;
  width: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: #8f5d00;
  color: rgb(59, 130, 246);
}

.icon svg {
  height: 1.25rem;
  width: 1.25rem;
}

.content {
  margin-left: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
}

.title {
  margin-bottom: 1.5rem;
  font-size: 1rem; /* Adjusted for better fit */
  line-height: 1.25rem;
  font-weight: 600;
  color: #8f5d00;
}

.desc {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
  color: rgb(255, 255, 255);
}

.actions {
  display: grid;
  grid-template-columns: 1fr; /* Single column layout */
  grid-gap: 0.5rem;
  gap: 0.5rem;
}

.download {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.375rem 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgb(255, 255, 255);
  background-color: #857c28;
  font-weight: 600;
  text-decoration: none;
}

.download:hover {
  background-color: rgb(58, 69, 83);
}

.close {
  margin: -0.375rem -0.375rem -0.375rem auto;
  height: 2rem;
  width: 2rem;
  display: inline-flex;
  border-radius: 0.5rem;
  background-color: #8f5d00;
  padding: 0.375rem;
  color: rgba(255, 255, 255, 1);
  border: none;
}

.close svg {
  height: 1.25rem;
  width: 1.25rem;
}

.close:hover {
  background-color: rgb(58, 69, 83);
}


/* Footer Section */
footer {
  background-color: #222;
  color: #fff;
  padding: 50px 0;
  text-align: center;
}

footer h4 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

footer ul.social-icons,
footer ul.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

footer ul.social-icons li,
footer ul.contact-info li {
  margin: 0 10px;
}

footer ul.social-icons a {
  display: inline-block;
  color: #fff;
  background-color: #444;
  line-height: 40px;
  width: 40px;
  height: 40px;
  text-align: center;
  border-radius: 50%;
  transition: background-color 0.3s;
}

footer ul.social-icons a:hover {
  background-color: #8f5d00;
}

footer ul.contact-info li i {
  color: #f4bc42;
  margin-right: 10px;
}

/* Loader */
.loading {
  --speed-of-animation: 0.9s;
  --gap: 6px;
  --first-color: #4c86f9;
  --second-color: #49a84c;
  --third-color: #f6bb02;
  --fourth-color: #f6bb02;
  --fifth-color: #2196f3;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  gap: var(--gap);
  height: 100px;
  margin: auto;
}

.loading span {
  width: 6px;
  height: 40px;
  background: var(--first-color);
  animation: scale var(--speed-of-animation) ease-in-out infinite;
  border-radius: 4px;
}

.loading span:nth-child(2) {
  background: var(--second-color);
  animation-delay: -0.8s;
}

.loading span:nth-child(3) {
  background: var(--third-color);
  animation-delay: -0.7s;
}

.loading span:nth-child(4) {
  background: var(--fourth-color);
  animation-delay: -0.6s;
}

.loading span:nth-child(5) {
  background: var(--fifth-color);
  animation-delay: -0.5s;
}

@keyframes scale {
  0%, 40%, 100% {
    transform: scaleY(0.05);
  }
  20% {
    transform: scaleY(1);
  }
}
