:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #10b981;
  --dark: #0f172a;
  --darker: #0f172a;
  /* --darker: #020617; */
  --light: #f8fafc;
  --gray: #94a3b8;
  --dark-gray: #334155;
  --card-bg: #1e293b;
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--dark);
  /* background: linear-gradient(to bottom, #0b0b2b, #1b2735 70%, #090a0f); */
  color: var(--light);
  overflow-x: hidden;
  transition: background 0.5s ease;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -4;
}

/* Header/Navbar
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  background-color: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
} */
/* Header/Navbar */
header {
  position: fixed;
  top: 1rem;            /* floating with padding top */
  left: 50%;            /* move to center horizontally */
  transform: translateX(-50%); /* true centering */
  width: 90%;           /* still 80% width */
  padding: 1.8rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  background-color: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(2px);
  border-radius: 100px;  /* optional: floating look */
}

header.scrolled {
  padding: 1.3rem 5%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-size: 18px;
  font-weight: 550;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--light);
  z-index: 1001;
  transition: transform 0.3s ease;
}

.menu-toggle.active {
  transform: rotate(90deg);
}

/* Hero Section */
.hero {   
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(59, 130, 246, 0) 70%
  );
  z-index: 0;
}

.hero-content {
  max-width: 600px;
  z-index: 1;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.3s;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  background: linear-gradient(to right, var(--light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--gray);
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 50%;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 25%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 75%
  );
  background-size: 400% 400%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::after {
  opacity: 1;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.hero-image {
  position: absolute;
  right: 5%;
  width: 500px;
  height: 500px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
  animation: morph 8s ease-in-out infinite;
  z-index: 0;
  opacity: 0;
  transform: scale(0.8);
  animation: fadeInScale 1s ease forwards 0.6s,
    morph 8s ease-in-out infinite 1.6s;
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes morph {
  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }

  50% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

.hero-image img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s ease;
}

.hero-image:hover img {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* typewritter text*/
.typewriter-text {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
  /*Prevents layout shift  */
  display: inline-block;
}

/* Cursor styling */
.typed-cursor {
  color: var(--primary);
  font-weight: 600;
  opacity: 1;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* About Section */
.section {
  padding: 2.5rem 5%;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(to bottom, transparent 0%, rgba(2, 6, 23, 0.7) 100%); */
  pointer-events: none;
  z-index: -1;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(30, 41, 59, 0.3);
  border-radius: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image {
  flex: 0 0 auto;
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  max-width: 400px;
  width: 100%;
}

.about-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(59, 130, 246, 0.1),
    rgba(16, 185, 129, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.about-image:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5);
}

.about-image:hover::before {
  opacity: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 0;
}

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

.about-text {
  flex: 1;
  padding-left: 1rem;
}

.about-text h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  position: relative;
  line-height: 1.2;
}

.about-text h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--gray);
  line-height: 1.8;
  font-size: 1.05rem;
  text-align: justify;
  position: relative;
  padding-left: 1rem;
}

.about-text p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 3px;
  height: 1.2rem;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0.7;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
}

.stat-item:hover {
  background: rgba(59, 130, 246, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

/* Updated Skills Section Styles (with bubble effects) */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-card {
  background-color: transparent;
  /* No background */
  border-radius: 0;
  padding: 1rem 0;
  box-shadow: none;
  border: none;
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
  /* Judul rata kiri */
  color: var(--primary);
  position: relative;
  padding-left: 0.5rem;
}

.skill-card h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  /* Icon di tengah */
}

.skill-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: all 0.3s ease;
  position: relative;
}

/* Bubble Effect (Tetap Ada) */
.bubble-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    rgba(229, 237, 250, 0.1),
    rgba(255, 255, 255, 0.2)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  cursor: pointer;
  animation: bubble-float 8s ease-in-out infinite;
}

.skill-icon-img {
  width: 70px;
  /* Adjust size as needed */
  height: 70px;
  object-fit: contain;
  /* filter: brightness(0) saturate(100%) invert(52%) sepia(98%) saturate(2018%) hue-rotate(202deg) brightness(98%) contrast(89%); */
  transition: all 0.3s ease;
}

.bubble-icon:hover .skill-icon-img {
  transform: scale(1.1);
  /* filter: brightness(0) saturate(100%) invert(52%) sepia(98%) saturate(2018%) hue-rotate(202deg) brightness(120%) contrast(89%); */
}

.bubble-icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 50%
  );
  z-index: -1;
}

.bubble-icon::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 20%;
  width: 60%;
  height: 20%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(3px);
  z-index: -1;
}

.skill-description {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-110%);
  width: 200px;
  padding: 1rem;
  background: rgba(30, 30, 40, 0.95);
  border-radius: 12px;
  color: white;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.skill-description::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: rgba(30, 30, 40, 0.95) transparent transparent;
}

.skill-icon:hover .skill-description {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-120%);
}

.skill-icon:hover .bubble-icon {
  animation-play-state: paused;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
}

.skill-label {
  font-size: 0.9rem;
  color: var(--gray);
  text-align: center;
  transition: all 0.3s ease;
}

.skill-icon:hover .skill-label {
  color: var(--light);
  transform: scale(1.05);
}

/* Efek hover bubble */
.bubble-icon:hover {
  transform: translateY(-5px) scale(1.1);
  background: linear-gradient(
    145deg,
    rgba(59, 130, 246, 0.3),
    rgba(59, 130, 246, 0.4)
  );
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Bubble floating animation with random movement */
@keyframes bubble-float {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }

  25% {
    transform: translateY(-15px) translateX(5px) rotate(2deg);
  }

  50% {
    transform: translateY(-10px) translateX(-5px) rotate(-2deg);
  }

  75% {
    transform: translateY(-20px) translateX(3px) rotate(1deg);
  }
}

.skill-label {
  font-size: 0.9rem;
  color: var(--gray);
  text-align: center;
  transition: all 0.3s ease;
}

.skill-icon:hover .skill-label {
  color: var(--light);
  transform: scale(1.05);
}

/* Individual animation delays for each bubble */
.skills-grid div:nth-child(1) .bubble-icon {
  animation-delay: 0s;
  animation-duration: 7s;
}

.skills-grid div:nth-child(2) .bubble-icon {
  animation-delay: 0.5s;
  animation-duration: 8s;
}

.skills-grid div:nth-child(3) .bubble-icon {
  animation-delay: 1s;
  animation-duration: 7.5s;
}

.skills-grid div:nth-child(4) .bubble-icon {
  animation-delay: 1.5s;
  animation-duration: 8.5s;
}

/* Bubble highlight effect */
.bubble-icon:hover {
  background: linear-gradient(
    145deg,
    rgba(59, 130, 246, 0.3),
    rgba(59, 130, 246, 0.4)
  );
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bubble-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bubble-icon {
    width: 70px;
    height: 70px;
  }

  .bubble-icon {
    width: 70px;
    height: 70px;
  }

  .skill-icon-img {
    width: 35px;
    height: 35px;
  }

  .skill-description {
    width: 160px;
    font-size: 0.8rem;
  }
}

/* Projects Section */

/* Slider Wrapper */
.slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

/* Projects Slider */
.projects-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  scroll-behavior: smooth;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem;
  max-width: 1500px;
  margin: 0 auto;
}

.project-card {
  flex: 0 0 400px; /* fixed card width */
  scroll-snap-align: start;
  max-height : 580px;
  background-color: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}
.project-card p{
  font-size: 15px;
  text-align: justify;
}
/* Hide native scrollbar */
.projects-container::-webkit-scrollbar {
  display: none;
}
.projects-container {
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}

/* Navigation Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: var(--light);
  border: none;
  font-size: 1.4rem;
  padding: 0.75rem 1rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}
.slider-btn:hover {
  background: var(--primary);
}

.slider-btn.prev {
  left: 10px;
}
.slider-btn.next {
  right: 10px;
}


/* .projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
} */

/* .project-card {
  background-color: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateY(20px);
  opacity: 0;
  height: 100%; /* Ensure full height 
  display: flex;
  flex-direction: column;
} */

.project-card.animate {
  transform: translateY(0);
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.3);
}

.project-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.7) 0%, transparent 50%);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-info {
  padding: 1.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.project-info a {
 font-size: 19px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  margin-left: 1.5rem;
  align-content: space-around;
}

.project-tag {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.project-tag:hover {
  background-color: rgba(59, 130, 246, 0.3);
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  align-content: space-between;
  margin-top: auto;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 18px;
}

.project-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 15px;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}


.project-link:hover::after {
  width: 40%;
}

.project-link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(7px);
}


/* Contact Section */
.contact {
  background: linear-gradient(135deg, var(--dark), var(--darker));
  color: white;
  padding: 2.5rem 5%;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(59, 130, 246, 0) 70%
  );
  z-index: 0;
}

.contact .section-title::after {
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.contact-info h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.contact-link {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 1rem;
  position: relative;
}

.contact-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.contact-link:hover {
  color: var(--primary);
}

.contact-link:hover::after {
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-item i {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--primary);
}

.contact-social {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
  justify-content: center;
}
.contact-social i {
  color: white;
  transition: all 0.3s ease;
  font-size: 50px;
}
.contact-social a {
  text-decoration: none;
}
.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.social-icon:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: none;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px var(--primary);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form textarea {
  height: 150px;
  resize: none;
}

.contact-form button {
  background-color: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-form button:hover {
  background-color: var(--primary-dark);
}

.contact-form button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.contact-form button:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }

  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 0.5rem 5%;
  text-align: center;
  position: relative;
}

/* footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
} */

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--dark);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--dark);
}

.footer-links a:hover::after {
  width: 100%;
}

.copyright {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* Cursor Effect */
/* .cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.1s ease;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
} */

/* Responsive Styles */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-image {
    width: 400px;
    height: 400px;
  }

  .about-content {
    flex-direction: column;
    gap: 2.5rem;
    padding: 1.5rem;
  }

  .about-image {
    margin-bottom: 0;
    max-width: 280px;
    align-self: center;
    width: 100%;
  }

  .about-text {
    padding-left: 0;
    text-align: center;
  }

  .about-text h3 {
    font-size: 1.8rem;
  }

  .about-text h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-text p {
    text-align: center;
    padding-left: 0;
  }

  .about-text p::before {
    display: none;
  }

  .stat-item {
    min-width: 100px;
    padding: 0.8rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
 .nav-links {
    display: none; /* hide normal nav */
    flex-direction: column;
    gap: 1.2rem;
    background: rgba(2, 6, 23, 0.95);
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 1.5rem;
    border-radius: 1rem;
  }
  /* .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    z-index: 1000;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
  } */

  .nav-links.active {
    left: 0;
    display: flex;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }

  .hero-content {
    margin-bottom: 1rem;
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
  }
  .hero-image {
    position: relative;
    right: auto;
    margin-top: 2rem;
  }

  .section {
    padding: 2rem 5%;
  }
  .contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}
.contact-social i {
  color: white;
  transition: all 0.3s ease;
  font-size: 35px;
}
.contact-social a {
  text-decoration: none;
}
.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .hero-image {
    width: 300px;
    height: 300px;
  }

  .section-title {
    font-size: 2rem;
  }

  .projects-container {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .nav-links {
    width: 100%;
  }
}

/* done, bawahnya style background */
