* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden !important;
}

.hidden-project {
  display: none;
}

.intro {
  width: 70%;
}

/* Technical Expertise Section Styles */
.skill-bar {
  background-color: #333; /* Dark background for the bar */
  height: 8px; /* Height of the skill bar */
  border-radius: 4px; /* Rounded corners */
  overflow: hidden; /* Ensure progress doesn't overflow */
}

.skill-progress {
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #f5576c 75%,
    #4facfe 100%
  ); /* Gradient fill */
  height: 100%; /* Full height of the bar */
  width: 0; /* Initial width set to 0 for animation */
  transition: width 1.5s ease-out; /* Smooth slide animation */
}
/* Navigation Styles */
nav#navbar {
  width: 100%;
  overflow-x: hidden !important;
  box-sizing: border-box;

  #theme-toggle {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    color: #fff !important;
  }
}

.glass-dark {
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  padding: 0.25rem;
  margin-right: 0.5rem;
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: #ffffff;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 100000;
  transition: all 0.3s ease-in-out;
  box-sizing: border-box;
  display: none;
}

.mobile-menu.active {
  display: block !important;
}

/* Hero Section Styles */
#home {
  padding: 0 1rem;
}

#home .max-w-6xl {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#home h1 {
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

#home p {
  max-width: 100%;
  padding: 0 0.5rem;
}

.animate-text {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 90%;
  margin: auto;
}

/* Skill Bar Styles */
.skill-bar {
  background-color: #333;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #f5576c 75%,
    #4facfe 100%
  );
  height: 100%;
  transition: width 1.5s ease-out;
}

/* //? IMAGE PREVIEW OVERLAY */
.overlay-wrapper.zoom {
  position: fixed;
  /* position: absolute; */
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100000;
  display: none;

  .overlay-content {
    position: relative;
    inset: 0;
    margin: auto;
    padding: 1rem;
    border-radius: 1rem;
    width: fit-content;
    top: 2rem;
  }

  .image-viewer {
    min-width: 80dvw;
    width: 100%;
    height: 85dvh;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url(/shared/public/images/default.jpg);
  }
}

/* Overlay Global Style */
.overlay-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  z-index: 10000;
  display: none;
}

.overlay-wrapper .overlay-content {
  position: relative;
  inset: 0;
  margin: auto;
  padding: 1rem;
  border-radius: 1rem;
  width: fit-content;
  height: 100%;
}

.overlay-wrapper .overlay-content .image-viewer {
  min-width: 90dvw;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url(/resources/others/default.jpg);
}

/* Overlay Exit Button Styles */
button.exit-btn {
  position: absolute;
  top: -1px;
  right: 5px;
  border-bottom-left-radius: 1rem;
  padding: 0.6em 2.3em;
  cursor: pointer;
  font-size: 1rem;
  color: red;
  background-image: linear-gradient(45deg, transparent 50%, #000000 50%);
  background-position: 25%;
  background-size: 400%;
  transition: background 500ms ease-in-out, color 500ms ease-in-out;
  background-color: white;
  z-index: 100;
}

button.exit-btn:hover {
  color: #ffffff;
  background-position: 100%;
  background-color: red;
}

/* Referral Overview */
.referral-overview {
  position: fixed;
  z-index: 1000;
  top: 2rem;
  left: -100%;
  width: 80%;
  height: fit-content;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 2rem 2rem 20rem #333;
  transition: left 0.5s ease, visibility 0.5s ease;
  visibility: hidden;
}

.referral-overview.visible {
  left: 10%;
  visibility: visible;
}

.referral-overview .referral-overview-wrapper {
  width: 100%;
  background: linear-gradient(to bottom right, #1a202c, #000);
  color: #fff;
}

.referral-overview .referral-overview-wrapper h1:first-child {
  margin-bottom: 0.5rem;
}

.referral-overview .referral-overview-wrapper h3 {
  margin-bottom: 0.7rem;
}

/* Timeline Style */
.timeline-card {
  position: relative;
  transition: all 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  .max-w-7xl {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  .timeline-dot {
    transform: translateY(-10rem) translateX(-50%) !important;
  }

  .intro {
    width: 100%;
  }

  .about-control {
    padding: 15px;
    margin: auto;
  }

  .about-control:has(button, a) {
    text-align: center;
  }

  .mobile-menu {
    display: none;
    width: fit-content !important;
  }

  .mobile-menu.active {
    display: block !important;
  }

  .hamburger {
    padding: 0.25rem;
    margin-right: 0.5rem;
  }

  .mobile-menu ul {
    padding: 1rem;
  }

  .mobile-menu li a {
    font-size: 1.125rem;
  }

  .timeline-card {
    width: 100% !important;
    margin: 0 !important;
  }

  .timeline-card:nth-child(odd),
  .timeline-card:nth-child(even) {
    justify-content: center;
  }

  .animate-text {
    max-width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .about-control {
    flex-wrap: wrap;
    flex-direction: column;
    width: fit-content;
    padding: 20px 10px !important;
    margin: auto;
  }

  .animate-slide-up {
    padding-top: 20px;
    h1 span {
      font-size: 4rem !important;
    }
  }

  .text-2xl {
    font-size: 1.25rem;
  }

  .text-xl {
    font-size: 1.125rem;
  }

  .w-12 {
    width: 2rem;
    height: 2rem;
  }

  .hamburger span {
    width: 16px;
    height: 2px;
  }

  #home h1 {
    font-size: 2.25rem;
  }

  #home h2 {
    font-size: 1.75rem;
  }

  #home p {
    font-size: 1rem;
  }

  #home .max-w-3xl {
    max-width: 90%;
  }
}
