/* =============================
   Global Reset
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: "Poppins", sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  position: relative;
}

.container {
  width: 100%;
  min-height: 200px;
}

/* =============================
   Navbar
============================= */
.navbar {
  position: fixed;
  top: 30px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 1vh 5vh;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 680px;
  padding: 0.5rem 1rem;
  background: rgba(42, 43, 56, 0.5);
  border: 1.8px solid #2a2b37;
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.logo-container {
  display: flex;
  align-items: center;
  height: 40px;
  position: relative;
}

.logo-icon {
  width: 50px;
  height: 30px;
  position: relative;
  z-index: 2;
}

.logo-icon img {
  width: 100%;
  height: auto;
}

.logo-text-wrapper {
  position: relative;
  overflow: hidden;
  width: 100px;
  height: 20px;
  margin-left: 8px;
  margin-top: 12px;
}

.logo-text {
  position: absolute;
  white-space: nowrap;
  font-size: 0.75rem;
  animation: slideText 6s ease-in-out infinite;
}

/* Logo Text Animation */
@keyframes slideText {
  0% {
    transform: translateX(-100%);
  }
  25%,
  50% {
    transform: translateX(0);
  }
  75%,
  100% {
    transform: translateX(-100%);
  }
}

/* =============================
   Hero Section
============================= */
.hero {
  max-width: 800px;
  margin: 100px auto 0;
  padding: clamp(3rem, 10vw, 6rem);
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(4rem, 7vw, 3.7rem);
  font-weight: bold;
  line-height: 1.3;
}

.role-wrapper {
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
}

.view-btn {
  margin-top: 30px;
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  border: 1.5px solid #fff;
  text-decoration: none;
  transition: 0.3s;
}

.view-btn:hover {
  background: #fff;
  color: #000;
}

.gradient-text {
  display: inline-block;
  max-width: 100%;
  background: linear-gradient(
    270deg,
    #6e81f3,
    #c576f6,
    #f472b6,
    #4ade80,
    #6e81f3
  );
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 4s ease infinite;
}

/* Gradient Animation */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* =============================
   Corner Images
============================= */
.corner-img {
  position: absolute;
  z-index: 1;
  width: clamp(80px, 20vw, 200px);
  max-height: 30vh;
  object-fit: contain;
  pointer-events: none;
}

.top-left {
  top: 0;
  left: 0;
  transform: translate(-10%, -10%);
}

.bottom-right {
  bottom: 80px;
  right: 0;
  width: 200px;
  z-index: 3;
}

/* =============================
   Music Toggle
============================= */
.music-toggle {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  cursor: pointer;
}

.toggle-switch {
  position: relative;
  width: 70px;
  height: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  border: 2px solid #a259ff;
  border-radius: 20px;
  background: #000;
}

.music-icon {
  font-size: 18px;
  color: #fff;
}

.circle {
  position: absolute;
  right: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.music-toggle.active .circle {
  right: 38px;
}

.equalizer {
  display: none;
  flex-direction: row;
  gap: 2px;
  height: 12px;
  align-items: flex-end;
}

.equalizer span {
  width: 2px;
  background: #fff;
  animation: equalize 2s infinite ease-in-out;
}

.equalizer span:nth-child(1) {
  animation-delay: 0.5s;
}
.equalizer span:nth-child(2) {
  animation-delay: 0.1s;
}
.equalizer span:nth-child(3) {
  animation-delay: 0.7s;
}

.music-toggle.active .equalizer {
  display: flex;
}

/* Equalizer Animation */
@keyframes equalize {
  0%,
  100% {
    height: 4px;
  }
  50% {
    height: 14px;
  }
}

/* =============================
   Social Icons
============================= */
.social-icons {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-icons a i {
  font-size: 1.2rem;
  color: #fff;
}

.social-icons a span {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
}

.social-icons a:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

/* ========== PROJECTS SECTION ========== */
.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 400px 20px 60px;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
  padding: 40px 60px 20px;
}

.projects-title {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  color: #ccc;
  margin-right: 40rem;
}

.projects-website {
  margin: 0;
  margin-right: 60px; /* geser ke kiri */
  max-width: 900px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  background: linear-gradient(90deg, #b0f3f1, #ffcfdf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ========== CARD ========== */
.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  width: 90%;
  max-width: 800px;
  min-height: 520px;
  padding: 40px;
  border-radius: 5rem;
  border: 0.1rem solid #20222e;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(35, 37, 49, 0.5),
    rgba(15, 15, 24, 0.5)
  );
  backdrop-filter: blur(54px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
}

.card-image {
  position: relative;
  width: 350px;
  height: 430px;
  margin-left: 60px;
  border-radius: 50px;
  overflow: hidden;
}

.card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50px;
  transition: opacity 0.6s ease;
}

.img-default {
  z-index: 1;
  opacity: 1;
}

.img-hover {
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.6s ease, filter 0.6s ease;
}

.card:hover .img-hover {
  opacity: 1;
  filter: blur(0);
}

.card:hover .img-default {
  opacity: 0;
}

.card-content {
  flex: 1;
}

.card-content h2 {
  margin: -15px 0 15px 2px;
  font-size: 2.2rem;
  font-family: "Poppins", sans-serif;
  color: #fff;
  background-size: 200% 100%;
  background-position: right center;
  background-repeat: no-repeat;
  position: relative;
  transition: all 0.3s ease;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #fff; /* fallback */
}

.card:hover h2.animate-gradient {
  animation: waveText 4s ease-in-out forwards;
  -webkit-text-fill-color: transparent;
}

@keyframes waveText {
  0% {
    background-position: right center;
  }
  50% {
    background-position: left center;
  }
  100% {
    background-position: right center;
  }
}

.visit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 30px 0 15px 2px;
  font-weight: 500;
  font-size: 0.95rem;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  letter-spacing: 0.8px;
  transition: color 0.35s ease, transform 0.35s ease;
}

/* garis bawah animasi */
.visit-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, #6e81f3, #c576f6, #f472b6);
  background-size: 200% 100%; /* biar bisa digerakkan */
  background-position: left;
  transition: width 0.4s ease, background-position 0.6s ease;
}

.visit-link:hover {
  color: #f3f4f6; /* putih terang */
  transform: translateY(-2px); /* naik sedikit */
}

.visit-link:hover::after {
  width: 100%; /* garis bawah melebar */
  background-position: right; /* gradasi geser */
}

.card-desc {
  font-size: 0.9rem;
  color: #d1d5db; /* abu netral */
  margin-bottom: 15px;
  line-height: 1.5;
  text-align: left;
}

.icons {
  display: flex;
  gap: 15px;
  margin: 70px 0 0 20px;
  font-size: 20px;
  color: #fff;
}

.card-number {
  position: absolute;
  top: -70px;
  right: -30px;
  font-size: 100px;
  font-weight: 900;
  font-family: "Poppins", sans-serif;
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
  opacity: 1;
  pointer-events: none;
  z-index: 0;

  /* masking effect */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 100%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-mask-clip: text;
  -webkit-mask-composite: destination-in;

  mask-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  mask-clip: text;
  mask-composite: intersect;
}

.extra-paragraph {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 500px;
  width: 90%;
  font-size: 0.8rem;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: #ddd;
  opacity: 0.9;
  z-index: 5;
}

/* ============================= */
/* DESIGN GRAPHIC PROJECT SECTION */
/* ============================= */
.graphic-section {
  padding: 100px 0;
  background: #000; /* background khusus section ini */
  text-align: center;
}

.graphic-section .projects-header {
  margin-bottom: 40px;
}

.graphic-section .slider-wrapper {
  width: 1220px;
  margin: 0 auto;
  overflow: hidden;
}

.graphic-section .slider {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

/* CARD hanya berlaku di section ini */
.graphic-section .card {
  position: relative;
  width: 420px; /* tetap */
  height: 220px; /* dari 280px → 220px */
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.graphic-section .card img {
  position: absolute; /* isi penuh parent */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* potong gambar supaya penuh */
  margin: 0; /* hilangkan margin default */
  padding: 0;
  display: block;
  border: none;
}

.graphic-section .card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Header icons */
.graphic-section .card-header {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.graphic-section .icon-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease;
  color: #fff; /* ikon putih */
  border: none;
}

.graphic-section .icon-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Bottom content */
.graphic-section .card-content {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
}

.graphic-section .text-group h2 {
  font-size: 20px;
  margin: 0;
  text-align: left;
  font-weight: 400;
}

.graphic-section .text-group p {
  font-size: 13px;
  color: #ddd;
  margin: 4px 0 0;
  text-align: left;
}

.graphic-section .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;
}

.graphic-section .btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Spotlight dimmed effect */
.graphic-section .card.dimmed {
  opacity: 0.5;
  transform: scale(0.92);
}

/* Overlay Deskripsi */
.graphic-section .desc-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  border-radius: 16px;
  z-index: 10;
}

.graphic-section .desc-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.graphic-section .desc-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  max-width: 80%;
  color: #fff;
  text-align: center;
  animation: slideUp 0.5s ease forwards;
  transform: translateY(40px);
  opacity: 0;
  position: relative;
}

.graphic-section .desc-overlay.active .desc-box {
  transform: translateY(0);
  opacity: 1;
}

/* Tombol Close dengan ikon X */
.graphic-section .close-desc {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease;
  color: #fff;
  border: none;
}

.graphic-section .close-desc:hover {
  background: rgba(0, 0, 0, 0.6);
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === Modal Wrapper === */
.modal {
  display: none; /* Hidden default */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.85);
  animation: fadeIn 0.3s ease-in-out;
}

/* Modal Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* === Modal Content === */
.modal-content {
  background: #fff;
  margin: 40px auto;
  max-width: 1000px;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === Close Button === */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}
.close:hover {
  color: #ff4c4c;
}

/* === Header === */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.author {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Actions (like, bookmark, button) */
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  background: #f4f4f4;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 18px;
}
.btn {
  background: #111;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
}
.btn:hover {
  background: #333;
}

/* === Images Section === */
.modal-images {
  width: 100%;
  margin-top: 20px;
}

.modal-images .swiper {
  width: 100%;
  height: auto;
}

.modal-images .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-images .swiper-slide img {
  width: 100%;
  max-height: 400px;
  border-radius: 8px;
  object-fit: cover;
}

/* === Swiper Navigation === */
.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.4); /* semi transparan */
  backdrop-filter: blur(6px);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px; /* biar iconnya proporsional */
  font-weight: bold;
}

/* === Swiper Pagination === */
.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #ff7eb3, #ff758c);
  width: 16px;
  height: 8px;
  border-radius: 10px;
  opacity: 1;
}

/* === Description === */
.modal-desc {
  margin-top: 24px;
}
.modal-desc h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222; /* biar kontras */
}

.modal-desc p {
  font-weight: 400; /* agak bold */
  font-size: 1rem;
  line-height: 1.6;
  color: #000000; /* lebih soft dari title */
  letter-spacing: 0.3px; /* sentuhan tipografi */
}

/* === Footer === */
.modal-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #eee;

  display: flex;
  flex-direction: column; /* susun ke bawah */
  align-items: center; /* rata tengah horizontal */
  gap: 12px; /* jarak antar elemen */
  text-align: center;
}

.modal-footer img {
  width: 64px; /* bisa sedikit lebih besar */
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.modal-footer div {
  margin: 0;
}

.modal-footer p {
  margin: 0;
  font-weight: 600;
  color: #000; /* tes dulu pakai hitam */
}

.modal-footer span {
  font-size: 14px;
  color: #555;
}

.social-buttons {
  display: flex;
  gap: 12px; /* jarak antar tombol */
}

.modal-footer .btn {
  width: 30px; /* lebih kecil dari 50px */
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px; /* icon ikut mengecil */
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  transition: 0.3s ease;
  text-decoration: none;
  backdrop-filter: blur(4px);
}

.modal-footer .btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  color: #000;
}

/* ========== TIMELINE ========== */
.timeline-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px 20px;
  background-color: #000;
  color: #fff;
}

.timeline-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

.timeline-wrapper {
  flex: 1;
  min-width: 300px;
}

.timeline-column {
  position: relative;
  flex: 1;
  min-width: 300px;
  padding: 20px;
  border: 1px solid #555;
  border-radius: 15px;
  background-color: #000;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.timeline-column h2 {
  margin-bottom: 30px;
  font-size: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
}

.timeline-box {
  position: relative;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 3.5px;
  width: 0.5px;
  height: 0;
  background: linear-gradient(to bottom, #6e81f3, #c576f6, #f472b6);
  transition: height 0.6s ease;
  z-index: 0;
}

.line {
  position: absolute;
  top: 10px;
  left: 3.5px;
  width: 0.5px;
  height: 90px;
  background: linear-gradient(to bottom, #6e81f3, #c576f6, #f472b6);
  transition: height 0.4s ease;
  z-index: 1;
}

.timeline-item:hover .line {
  height: 100%;
}

.timeline-item:hover::before {
  height: 100%;
}

.timeline-item .dot {
  position: absolute;
  top: 8px;
  left: 0;
  width: 8px;
  height: 8px;
  background: #4e4e4e;
  border-radius: 50%;
  transition: background 0.3s ease;
  z-index: 1;
}

.timeline-item:hover .dot {
  background: #6e6e6e;
}

.timeline-item .logo img {
  max-height: 60px;
  margin-bottom: 8px;
  filter: brightness(1.2);
}

.timeline-item .date {
  margin-bottom: 5px;
  font-size: 14px;
  color: #aaa;
}

.timeline-item h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.timeline-item p {
  font-size: 14px;
  color: #ccc;
}

.timeline-title {
  margin-bottom: 20px;
  font-size: 24px;
  color: #fff;
  padding-bottom: 8px;
}

/* =========================
   Tools Section
========================= */
.tools-section {
  padding: 80px 20px;
  background-color: #000;
  color: #fff;
  text-align: center;
}

.tools-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 60px 20px;
}

.tools-title {
  margin: 0;
  margin-left: 180px; /* geser ke kanan */
  font-size: 22px;
  font-weight: 400;
  color: #ccc;
}

.section-title {
  margin: 0;
  margin-right: 180px; /* geser ke kiri */
  max-width: 900px;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  background: linear-gradient(90deg, #b0f3f1, #ffcfdf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center; /* gambar di tengah */
  padding: 30px 20px;
  background-color: #000;
  border: 1px solid #222;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.tool-card img {
  height: 40px;
  margin: 20px 0 15px;
  filter: brightness(1.2);
}

.tool-card span {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #ccc;
  letter-spacing: 0.5px;
  align-self: flex-start; /* teks rata kiri */
}

.tool-card:hover {
  border-color: #555;
}

.pdf-link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  background: linear-gradient(90deg, #b0f3f1, #ffcfdf);
  transition: transform 0.3s, box-shadow 0.3s;
}

.pdf-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/*Surface Duo*/
@media (max-width: 768px) {
  .hero {
    padding: clamp(2.5rem, 6vw, 3rem);
    margin-top: 120px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 6vw, 10rem);
    font-weight: bold;
    margin-left: 8vh;
    text-align: left;
  }

  .view-btn {
    margin-top: 50px;
    padding: 8px 18px;
    font-size: 0.95rem;
    margin-left: 8vh;
  }

  .logo-text-wrapper {
    width: 120px;
    height: 24px;
    margin-left: 10px;
  }

  .logo-text {
    font-size: 0.85rem;
  }

  .corner-img {
    width: clamp(100px, 30vw, 180px);
    max-height: 22vh;
  }

  .bottom-right {
    bottom: 30vh;
    right: 10px;
    transform: translate(30%, -60%);
  }

  .music-toggle {
    bottom: 140px;
    left: 20px;
    transform: scale(0.9);
  }

  .social-icons {
    bottom: 140px;
    right: 20px;
    transform: scale(0.9);
  }

  .extra-paragraph {
    bottom: 10px;
    font-size: 0.8rem;
  }

  .projects {
    padding-bottom: 90px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 32px;
  }

  .card {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    min-height: auto;
  }

  .card-image {
    width: 220px;
    height: 280px;
    margin-left: 0;
    border-radius: 1.5rem;
  }

  .card-image img {
    border-radius: 1.5rem;
  }

  .card-content {
    text-align: center;
    padding: 0 10px;
    margin-top: -6px;
  }

  .card-content h2 {
    font-size: 1.4rem;
    margin: 8px 0;
    margin-right: 0;
  }

  .visit-link {
    font-size: 0.8rem;
    margin: 6px 0;
    margin-right: 0;
  }

  .icons {
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    margin-right: 0;
  }
  .tools-title {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    margin-left: 0; /* Tambahkan ini untuk geser ke kanan */
  }

  .section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    text-align: left;
    line-height: 1.4;
  }

  .tools-header {
    padding: 40px 20px 20px;
    gap: 20px;
  }

  .projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    padding: 40px 60px 20px;
  }

  .projects-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    margin-right: 20rem;
    margin-bottom: -2rem;
  }

  .projects-website {
    margin: 0;
    margin-right: 60px; /* geser ke kiri */
    max-width: 900px;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
  }

  .graphic-section .slider-wrapper {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: auto; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    box-sizing: border-box;
  }

  .graphic-section .slider-wrapper::-webkit-scrollbar {
    display: none;
  }

  .graphic-section .slider {
    display: flex;
    gap: 5px;
  }

  .graphic-section .card {
    flex-shrink: 0;
    width: 80%;
    height: 300px;
    scroll-snap-align: center; /* card berhenti di tengah */
  }

  .graphic-section .card:first-child {
    margin-left: -65%; /* geser card pertama sedikit ke kanan untuk center awal */
  }

  .graphic-section .card:last-child {
    margin-right: 50%; /* card terakhir bisa berhenti di center */
  }

  .graphic-section .text-group h2 {
    font-size: 16px;
  }

  .graphic-section .text-group p {
    font-size: 12px;
  }

  .graphic-section .btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Modal lebih kecil */
  .modal-content {
    width: 92%;
    margin: 20px auto;
    padding: 16px;
  }

  .close {
    position: absolute;
    top: 35px;
    right: 35px;
    font-size: 28px;
    font-weight: lighter;
    color: #000000;
    cursor: pointer;
    transition: 0.2s;

    width: 30px; /* lebar tombol */
    height: 30px; /* tinggi tombol */
    border: 1px solid #000; /* border hitam */
    border-radius: 50%; /* bulat */
    display: flex;
    align-items: center;
    justify-content: center; /* supaya × di tengah */
  }

  .close:hover {
    background-color: #f0f0f0; /* efek hover ringan */
    transform: scale(1.1); /* membesar saat hover */
  }

  .modal-header h2 {
    font-size: 18px;
  }

  .modal-images .swiper-slide img {
    max-height: 240px;
  }

  .modal-desc p {
    font-size: 0.9rem;
  }

  .modal-footer img {
    width: 48px;
    height: 48px;
  }

  .modal-footer p {
    font-size: 14px;
  }

  .modal-footer span {
    font-size: 12px;
  }

  .modal-footer .btn {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .visit-link .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border: 1.8px solid #ffffff;
    border-radius: 50%;
    font-size: 8px;
    transition: all 0.35s ease;
  }
}

/*iphone SE Galaxy z fold 5,dan Samsung Galaxy S8+*/
@media (max-width: 480px) {
  .hero {
    padding: clamp(2.7rem, 5vw, 2.5rem);
    margin-top: 100px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    font-weight: bold;
    margin-left: 2vh;
    text-align: left;
  }

  .view-btn {
    margin-top: 54px;
    display: inline-block;
    padding: 6px 14px;
    color: white;
    border: 1.5px solid white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    margin-left: 2vh;
  }

  .logo-text-wrapper {
    width: 100px;
    height: 20px;
    margin-left: 8px;
    overflow: hidden;
  }

  .logo-text {
    font-size: 0.7rem;
  }

  .corner-img {
    width: clamp(80px, 35vw, 160px);
    max-height: 20vh;
  }

  .bottom-right {
    bottom: 35vh;
    right: 0;
    transform: translate(30%, -20%);
  }

  .music-toggle {
    left: 15px;
    bottom: 200px;
    transform: scale(0.75);
    z-index: 10;
  }

  .social-icons {
    right: 15px;
    bottom: 200px;
    gap: 6px;
    z-index: 10;
    transform: scale(0.75); /* memperkecil jadi 75% ukuran asli */
    transform-origin: bottom right;
  }

  .projects {
    margin-top: -80px; /* beri jarak aman agar tidak mentabrak toggle atau icon */
    padding-left: 13px;
    padding-right: 13px;
    gap: 60px;
  }

  .card {
    flex-direction: column;
    align-items: center;
    padding: 14px;
    gap: 25px;
    border-radius: 1.5rem;
  }

  .card-image {
    width: 245px;
    max-width: 245px;
    aspect-ratio: 2 / 3;
    border-radius: 1.5rem;
  }

  .card-image img {
    position: absolute;
    border-radius: 1.2rem;
  }

  .card-content {
    text-align: center;
    padding: 0 8px;
    margin-top: -8px; /* naikkan sedikit jika terlalu renggang dengan gambar */
  }

  .card-content h2 {
    font-size: 1.2rem;
    margin: 10px 0; /* kecilkan margin atas bawah */
    margin-right: 170px;
    text-align: left;
  }

  .extra-paragraph {
    bottom: 120px;
    font-size: 0.6rem;
    padding: 0 10px;
    line-height: 1.5;
    font-family: "Montserrat", sans-serif;
    color: #ddd;
    text-align: left;
  }

  .tools-title {
    font-size: 1rem;
    font-weight: 400;
    color: #ccc;
    margin: 0;
    margin-left: 0; /* Tambahkan ini untuk geser ke kanan */
  }

  .section-title {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    text-align: left;
    line-height: 1.4;
    background: linear-gradient(90deg, #b0f3f1, #ffcfdf);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .tools-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 20px 20px;
    gap: 20px;
    flex-wrap: wrap;
  }

  /*baru diubah*/
  .projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 60px 20px;
  }

  .projects-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    margin-right: 15rem;
    margin-bottom: -2rem;
  }

  .projects-website {
    margin: 0;
    margin-right: 60px; /* geser ke kiri */
    max-width: 900px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
  }
  .graphic-section .slider-wrapper {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 10%; /* card pertama berada di tengah awal */
    scroll-padding-right: 10%; /* card terakhir berhenti rapi */
  }

  .graphic-section .slider-wrapper::-webkit-scrollbar {
    display: none;
  }

  .graphic-section .slider {
    display: flex;
    gap: 5px;
  }

  .graphic-section .card {
    width: 80%; /* card cukup kecil agar muat layar */
    height: 200px;
    flex-shrink: 0;
    scroll-snap-align: center; /* card berhenti di tengah */
  }

  /* Hapus margin negatif pada card pertama */
  .graphic-section .card:first-child {
    margin-left: 0;
  }

  /* card terakhir tidak perlu margin-right */
  .graphic-section .card:last-child {
    margin-right: 0;
  }

  .graphic-section .text-group h2 {
    font-size: 16px;
  }

  .graphic-section .text-group p {
    font-size: 12px;
  }

  .graphic-section .btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Modal lebih kecil */
  .modal-content {
    width: 92%;
    margin: 20px auto;
    padding: 16px;
  }

  .close {
    position: absolute;
    top: 35px;
    right: 35px;
    font-size: 28px;
    font-weight: lighter;
    color: #000000;
    cursor: pointer;
    transition: 0.2s;

    width: 30px; /* lebar tombol */
    height: 30px; /* tinggi tombol */
    border: 1px solid #000; /* border hitam */
    border-radius: 50%; /* bulat */
    display: flex;
    align-items: center;
    justify-content: center; /* supaya × di tengah */
  }

  .close:hover {
    background-color: #f0f0f0; /* efek hover ringan */
    transform: scale(1.1); /* membesar saat hover */
  }

  .modal-header h2 {
    font-size: 18px;
  }

  .modal-images .swiper-slide img {
    max-height: 240px;
  }

  .modal-desc p {
    font-size: 0.9rem;
  }

  .modal-footer img {
    width: 48px;
    height: 48px;
  }

  .modal-footer p {
    font-size: 14px;
  }

  .modal-footer span {
    font-size: 12px;
  }

  .modal-footer .btn {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .visit-link {
    display: inline-flex; /* teks dan ikon sejajar horizontal */
    align-items: center; /* vertikal sejajar */
    gap: 6px; /* jarak antara teks dan ikon */
    font-size: 0.75rem;
    white-space: nowrap; /* mencegah teks pecah menjadi 2 baris */
    margin: 8px 0;
    margin-right: 140px;
  }

  .visit-link .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1.8px solid #ffffff;
    border-radius: 50%;
    font-size: 0.2rem;
    flex-shrink: 0; /* ikon tidak menyusut */
    transition: all 0.35s ease;
  }
}

@media (min-width: 428px) and (max-width: 432px) {
  /* ip 14 pro max */
  .hero-title {
    font-size: 2.1rem;
  }
  .music-toggle {
    bottom: 350px;
    left: 20px;
    transform: scale(0.75);
  }

  .social-icons {
    bottom: 350px;
    right: 20px;
    transform: scale(0.75);
  }

  .extra-paragraph {
    bottom: 220px;
    font-size: 0.85rem;
    padding: 0 20px;
  }

  .bottom-right {
    bottom: 35vh;
    right: 0;
    transform: translate(40%, -160%);
  }

  .visit-link {
    font-size: 0.75rem;
    margin: 8px 0;
    display: inline-block;
    margin-right: 160px;
  }

  .icons {
    gap: 8px;
    margin-top: 20px;
  }
  .card-content h2 {
    font-size: 1.2rem;
    margin: 10px 0; /* kecilkan margin atas bawah */
    margin-right: -120px;
    text-align: left;
  }
}

@media (min-width: 390px) and (max-width: 417px) {
  /* Samsung Galaxy s20 ultra, pixel 7, iphone 12 pro, dan iphone xr */
  .hero-title {
    font-size: 2rem;
  }
  .music-toggle {
    bottom: 350px;
    left: 20px;
    transform: scale(0.75);
  }

  .social-icons {
    bottom: 350px;
    right: 20px;
    transform: scale(0.75);
  }

  .extra-paragraph {
    bottom: 220px;
    font-size: 0.85rem;
    padding: 0 20px;
  }

  .visit-link {
    font-size: 0.75rem;
    margin: 8px 0;
    display: inline-block;
    margin-right: 160px;
  }

  .icons {
    gap: 8px;
    margin-top: 20px;
  }
  .card-content h2 {
    font-size: 1.2rem;
    margin: 10px 0; /* kecilkan margin atas bawah */
    margin-right: -120px;
    text-align: left;
  }
  .bottom-right {
    bottom: 35vh;
    right: 0;
    transform: translate(40%, -160%);
  }
}

/* iPad Mini dan iPad air*/
@media (min-width: 768px) and (max-width: 1024px) {
  .hero {
    padding: clamp(2.5rem, 6vw, 3rem);
    margin-top: 120px;
  }

  .hero-title {
    font-size: clamp(3rem, 6vw, 10rem);
    font-weight: bold;
    margin-left: 10vh;
    text-align: left;
  }

  .view-btn {
    margin-top: 50px;
    padding: 8px 18px;
    font-size: 0.95rem;
    margin-left: 10vh;
  }

  .logo-text-wrapper {
    width: 120px;
    height: 24px;
    margin-left: 10px;
  }

  .logo-text {
    font-size: 0.85rem;
  }

  .corner-img {
    width: clamp(100px, 30vw, 180px);
    max-height: 22vh;
  }

  .bottom-right {
    bottom: 30vh;
    right: 10px;
    transform: translate(30%, -200%);
  }

  .music-toggle {
    bottom: 430px;
    left: 20px;
    transform: scale(1);
  }

  .social-icons {
    bottom: 430px;
    right: 20px;
    transform: scale(1);
  }

  .extra-paragraph {
    bottom: 300px;
    font-size: 1rem;
    text-align: center;
  }

  .projects {
    padding-bottom: 90px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 82px;
  }

  .card {
    flex-direction: column;
    padding: 70px;
    padding-left: 50px;
    padding-right: 50px;
    gap: 50px;
    min-height: 80vh;
  }

  .card-image {
    width: auto; /* atau tetap 600px kalau mau */
    height: 500px;
    aspect-ratio: 3 / 3;
    border-radius: 4rem;
    margin-left: 0;
  }

  .card-image img {
    border-radius: 1.5rem;
  }

  .card-content {
    text-align: center;
    padding: 0 60px;
    margin-top: -6px;
  }

  .card-content h2 {
    font-size: 2.2rem;
    margin: 8px 0;
    margin-right: 30vh;
  }

  .visit-link {
    font-size: 1.1rem;
    margin: 8px 0; /* tambahkan jika belum ada */
    display: inline-block;
    margin-right: 28vh;
  }

  .icons {
    gap: 8px; /* kecilkan gap antar ikon */
    margin-top: 20px; /* atur agar tidak terlalu jauh dari link */
    margin-right: 38vh;
    font-size: 1.6rem;
  }

  .tools-title {
    font-size: 2rem;
    font-weight: 400;
    color: #ccc;
    margin: 0;
    margin-left: 0; /* Tambahkan ini untuk geser ke kanan */
  }

  .section-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    text-align: left;
    line-height: 1.4;
    background: linear-gradient(90deg, #b0f3f1, #ffcfdf);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .tools-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 20px 20px;
    gap: 20px;
    flex-wrap: wrap;
  }
}

/* Asus Zenbook Fold, ipad pro, dan surface pro 7*/
@media (min-width: 834px) and (max-width: 1366px) {
  .hero {
    padding: clamp(2.5rem, 6vw, 3rem);
    margin-top: 120px;
  }

  .hero-title {
    font-size: clamp(3.2rem, 6vw, 10rem);
    font-weight: bold;
    margin-left: 5vh;
    text-align: left;
  }

  .view-btn {
    margin-top: 54px;
    display: inline-block;
    padding: 6px 14px;
    color: white;
    border: 1.5px solid white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.5rem;
    margin-left: 5vh;
  }

  .card {
    flex-direction: row;
    gap: 32px;
    padding: 40px;
    max-width: 95%;
  }

  .card-image {
    width: 350px;
    height: 430px;
  }

  .card-content {
    flex: 1;
    text-align: left;
  }

  .bottom-right {
    bottom: 30vh;
    right: 10px;
    transform: translate(30%, -270%);
  }

  .extra-paragraph {
    bottom: 480px;
    font-size: 1.1rem;
    padding: 0 24px;
  }

  .music-toggle,
  .social-icons {
    bottom: 600px;
    right: 24px;
    transform: scale(1);
  }

  .visit-link {
    font-size: 1rem;
    margin: 8px 0; /* tambahkan jika belum ada */
    display: inline-block;
    margin-right: 100px;
  }

  .icons {
    gap: 8px; /* kecilkan gap antar ikon */
    margin-top: 20px; /* atur agar tidak terlalu jauh dari link */
    margin-right: 200px;
    font-size: 1.3rem;
  }

  .card-image {
    width: 450px;
    max-width: 450px;
    aspect-ratio: 2 / 3;
    border-radius: 3rem;
  }

  .card-image img {
    position: absolute;
    border-radius: 1.2rem;
  }

  .card-content {
    text-align: center;
    padding: 0 1px;
    margin-top: 8px; /* naikkan sedikit jika terlalu renggang dengan gambar */
  }

  .card-content h2 {
    font-size: 2rem;
    margin: 10px 0;
    margin-right: 120px;
  }
}

/* Nest Hub dan Nest Hub Max*/
@media (min-width: 1024px) and (max-width: 1280px) and (max-height: 800px) {
  .hero {
    padding: clamp(2.5rem, 6vw, 3rem);
    margin-top: 120px;
  }

  .hero-title {
    font-size: clamp(3rem, 6vw, 10rem);
    font-weight: bold;
    margin-left: 5vh;
    text-align: left;
  }

  .view-btn {
    margin-top: 54px;
    display: inline-block;
    padding: 6px 14px;
    color: white;
    border: 1.5px solid white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    margin-left: 5vh;
  }

  .card {
    flex-direction: row;
    gap: 30px;
    padding: 40px;
    max-width: 90%;
  }
  .card-content {
    flex: 1;
    text-align: left;
  }

  .bottom-right {
    bottom: 30vh;
    right: 10px;
    transform: translate(30%, 40%);
  }

  .top-left {
    bottom: 30vh;
    right: 10px;
    transform: translate(-20%, -10%);
  }

  .extra-paragraph {
    bottom: -210px;
    font-size: 1.1rem;
    padding: 0 24px;
  }

  .music-toggle,
  .social-icons {
    bottom: -50px;
    right: 24px;
    transform: scale(1);
  }

  .visit-link {
    font-size: 1rem;
    margin: 8px 0; /* tambahkan jika belum ada */
    display: inline-block;
    margin-right: 140px;
  }

  .icons {
    gap: 8px; /* kecilkan gap antar ikon */
    margin-top: 20px; /* atur agar tidak terlalu jauh dari link */
    margin-right: 250px;
    font-size: 1.2rem;
  }

  .card-image {
    width: 450px;
    max-width: 450px;
    aspect-ratio: 2 / 3;
    border-radius: 3rem;
  }

  .card-image img {
    position: absolute;
    border-radius: 1.2rem;
  }

  .card-content {
    text-align: center;
    padding: 0 8px;
    margin-top: -8px; /* naikkan sedikit jika terlalu renggang dengan gambar */
  }

  .card-content h2 {
    font-size: 2rem;
    margin: 10px 0; /* kecilkan margin atas bawah */
    margin-right: 170px;
  }
  .projects {
    padding-bottom: 90px;
    padding-left: 110px;
    padding-right: 110px;
    gap: 32px;
  }
  .corner-img {
    width: clamp(100px, 30vw, 180px);
    max-height: 32vh;
  }

  .tools-title {
    font-size: 2rem;
    font-weight: 400;
    color: #ccc;
    margin: 0;
    margin-left: 0; /* Tambahkan ini untuk geser ke kanan */
  }

  .section-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    text-align: left;
    line-height: 1.4;
    background: linear-gradient(90deg, #b0f3f1, #ffcfdf);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .tools-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 20px 20px;
    gap: 20px;
    flex-wrap: wrap;
  }
}
