/* ================= GLOBAL ================= */

body {
  background: linear-gradient(
    180deg,
    #0f172a 0%,
    #0b1224 40%,
    #0f172a 100%
  );
  color: white;
  font-family: 'Inter', sans-serif;
}

/* glow background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(168,85,247,0.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(99,102,241,0.15), transparent 40%);
  z-index: -1;
}

/* ================= SECTION ================= */
section {
  position: relative;
  z-index: 1;
}

/* ================= ANIMATION ================= */
.fade {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s;
}
.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= CARD ================= */
.card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 18px;
  overflow: hidden;
  transition: 0.4s;
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
}

/* GLOW BELAKANG CARD */
.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: radial-gradient(
    circle at center,
    rgba(168,85,247,0.3),
    rgba(168,85,247,0.05),
    transparent 70%
  );
  opacity: 0;
  transition: 0.4s;
  z-index: -1;
}

.card:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

/* shadow tambahan */
.card:hover {
  box-shadow: 0 10px 40px rgba(168,85,247,0.2);
}

/* image */
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ================= PROJECT BUTTON ================= */
.project-btn {
  opacity: 0;
  transform: translateY(10px);
  color: #a855f7;
  font-size: 14px;
  transition: 0.3s;
  display: inline-block;
}

.card:hover .project-btn {
  opacity: 1;
  transform: translateY(0);
  text-shadow: 0 0 10px #a855f7;
}

/* ================= PREVIEW BUTTON ================= */
.preview-btn {
  color: #a855f7;
  font-size: 14px;
  margin-top: 8px;
  display: inline-block;
  position: relative;
  transition: 0.3s;
}

.preview-btn:hover {
  text-shadow: 0 0 10px #a855f7;
}

/* underline animasi */
.preview-btn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #a855f7;
  bottom: -2px;
  left: 0;
  transition: 0.3s;
}

.preview-btn:hover::after {
  width: 100%;
}

/* ================= CONTACT ICON GLOW ================= */

/* rapihin social biar nggak turun berantakan */
.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.contact-social img {
  width: 36px;
}

/* biar form full dan nggak sempit */
.contact-right input,
.contact-right textarea {
  width: 100%;
}

/* ================= CONTACT MOBILE ONLY (SAFE FIX) ================= */
@media(max-width: 768px){

  .contact-box {
    grid-template-columns: 1fr; /* ubah ke 1 kolom */
  }

  .contact-left {
    border-right: none; /* hapus garis samping */
    border-bottom: 1px solid rgba(255,255,255,0.1); /* tetap ada garis */
    padding-right: 0;
    padding-bottom: 20px;
  }

  .contact-social {
    justify-content: center; /* icon ke tengah */
    flex-wrap: wrap;
  }

  .contact-right {
    width: 100%;
  }

}

/* ================= BUTTON FIX (BIAR GA POLOS DI HP) ================= */

/* tombol utama */
.contact-right button {
  background: #8b5cf6 !important;
  color: white !important;
  padding: 12px;
  border-radius: 999px;
  border: none;
  transition: 0.3s;
}

/* hover tetap ada */
.contact-right button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(168,85,247,0.6);
}

/* klik (biar ada feedback) */
.contact-right button:active {
  transform: scale(0.97);
}

/* ================= TEXTAREA FIX (BIAR GA POLOS) ================= */

.contact-right textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px;
  resize: none;
  transition: 0.3s;
}

/* placeholder biar ga abu terang banget */
.contact-right textarea::placeholder {
  color: #9ca3af;
}

/* focus effect */
.contact-right textarea:focus {
  border: 1px solid #8b5cf6;
  box-shadow: 0 0 10px rgba(168,85,247,0.4);
  outline: none;
}

/* ================= INPUT + TEXTAREA FIX ================= */

.contact-right input,
.contact-right textarea {
  width: 100%;
  background: rgba(255,255,255,0.05) !important;
  color: white !important;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px;
  transition: 0.3s;
  outline: none;
}

/* placeholder */
.contact-right input::placeholder,
.contact-right textarea::placeholder {
  color: #9ca3af;
}

/* focus glow */
.contact-right input:focus,
.contact-right textarea:focus {
  border: 1px solid #8b5cf6;
  box-shadow: 0 0 10px rgba(168,85,247,0.4);
}

/* ================= SPACING FIX CONTACT ================= */

/* kasih jarak antara sosmed & form */
.contact-left .flex {
  margin-bottom: 20px;
}

/* atau lebih spesifik (kalau mau lebih rapi lagi) */
.contact-left a {
  margin-bottom: 10px;
}

/* jarak atas form */
.contact-right {
  margin-top: 10px;
}

.contact-right {
  margin-top: 20px;
}

/* ================= MODAL PREMIUM ================= */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);

  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

/* BOX */
.modal-box {
  width: 95vw;   /* hampir full layar */
  height: 95vh;  /* hampir full layar */
  max-width: none; /* HAPUS BATAS */
  
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  position: relative;

  transform: scale(0.8);
  opacity: 0;
  transition: 0.4s;
}

/* iframe FULL */
.modal-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* tombol download */
#downloadPDF {
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 14px;
  color: white;
  background: rgba(168,85,247,0.2);
  padding: 6px 12px;
  border-radius: 8px;
  transition: 0.3s;
  z-index: 10;
  text-decoration: none;
}

#downloadPDF:hover {
  background: #8b5cf6;
  box-shadow: 0 0 10px #a855f7;
}

/* animasi muncul */
.modal.show .modal-box {
  transform: scale(1);
  opacity: 1;
}

/* iframe */
.modal-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* CLOSE BUTTON */
#closeModal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}

#closeModal:hover {
  color: #a855f7;
  transform: scale(1.2);
}

/* ================= FOOTER ================= */

/* link hover */
.footer-link {
  position: relative;
  transition: 0.3s;
}

.footer-link:hover {
  color: #a855f7;
}

/* underline animasi */
.footer-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #a855f7;
  left: 0;
  bottom: -2px;
  transition: 0.3s;
}

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

/* icon */
.footer-icon {
  transition: 0.3s;
}

.footer-icon img {
  filter: drop-shadow(0 0 0 transparent);
  transition: 0.3s;
}

.footer-icon:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px #a855f7);
}

/* ================= SKILLS ================= */

.skill-card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 18px;
  padding: 20px;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: radial-gradient(
    circle at top left,
    rgba(168,85,247,0.3),
    rgba(168,85,247,0.05),
    transparent 70%
  );
  opacity: 0;
  transition: 0.4s;
  z-index: -1;
}

.skill-card:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 10px 40px rgba(168,85,247,0.2);
}

.skill-card h3 {
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 14px;
  color: #9ca3af;
}

/* ================= SKILL BAR PRO ================= */

.skill span {
  font-size: 14px;
  color: #e5e7eb;
}

.skill-bar {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
  transition: width 1.5s ease;
  position: relative;
  overflow: hidden;
}

/* SHIMMER EFFECT */
.shimmer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.6),
    transparent
  );
  animation: shimmerMove 2s infinite;
}

@keyframes shimmerMove {
  100% {
    left: 150%;
  }
}

/* glow */
.skill-fill {
  box-shadow: 0 0 10px rgba(168,85,247,0.7);
}

/* ================= SKILL FILTER ================= */

.skill-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  transition: 0.3s;
}

.skill-btn:hover {
  background: rgba(168,85,247,0.2);
  border-color: #a855f7;
}

.skill-btn.active {
  background: #8b5cf6;
  box-shadow: 0 0 15px rgba(168,85,247,0.6);
}

/* skill tag */
.skill-tag {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
  transition: 0.3s;
}

.skill-tag:hover {
  transform: scale(1.1);
  background: rgba(168,85,247,0.2);
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168,85,247,0.5);
}

.skill-hide {
  display: none;
}

/* BUTTON */
.skill-btn {
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s;
}

.skill-btn.active {
  background: #8b5cf6;
  box-shadow: 0 0 15px rgba(168,85,247,0.6);
}

/* CARD */
.skill-card-item {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: 0.4s;
  opacity: 1;
  transform: scale(1);
}

.skill-card-item img {
  width: 40px;
  margin: auto;
  margin-bottom: 10px;
}

.skill-card-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 30px rgba(168,85,247,0.3);
}

/* fade animasi */
.fade-out {
  opacity: 0;
  transform: scale(0.9);
}

.fade-in {
  opacity: 1;
  transform: scale(1);
}

.hide {
  display: none;
}

/* ================= SKILL CARD CLEAN ================= */

.skill-card-item {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* ICON */
.skill-card-item img {
  width: 45px;
  margin: auto;
  margin-bottom: 12px;
  transition: 0.3s;
}

/* TEXT */
.skill-card-item p {
  font-size: 14px;
  color: #e5e7eb;
  font-weight: 500;
}

/* HOVER */
.skill-card-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 30px rgba(168,85,247,0.3);
}

/* GLOW EFFECT */
.skill-card-item::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: radial-gradient(
    circle at center,
    rgba(168,85,247,0.25),
    rgba(168,85,247,0.05),
    transparent 70%
  );
  opacity: 0;
  transition: 0.4s;
  z-index: -1;
}

.skill-card-item:hover::before {
  opacity: 1;
}

/* ICON HOVER EFFECT */
.skill-card-item:hover img {
  transform: scale(1.2) rotate(5deg);
}

/* HERO CV BUTTON */
.cv-hero-btn {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid #8b5cf6;
  color: white;
  transition: 0.3s;
  background: transparent;
}

/* hover */
.cv-hero-btn:hover {
  background: #8b5cf6;
  box-shadow: 0 0 15px rgba(168,85,247,0.6);
  transform: scale(1.05);
}

/* ================= ABOUT ================= */

/* gambar */
.about-img img {
  width: 280px;       /* sebelumnya full */
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  margin: auto;       /* biar center */
  display: block;
  transition: 0.4s;
}

/* glow effect */
.about-img {
  position: relative;
}

.about-img::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 25px;
  background: radial-gradient(
    circle,
    rgba(168,85,247,0.3),
    transparent 70%
  );
  opacity: 0;
  transition: 0.4s;
  z-index: -1;
}

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

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

/* content */
.about-content {
  background: rgba(255,255,255,0.03);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
}

/* tag */
.about-tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(168,85,247,0.15);
  font-size: 12px;
  transition: 0.3s;
}

.about-tag:hover {
  background: #8b5cf6;
  box-shadow: 0 0 10px rgba(168,85,247,0.5);
}

/* NAV LINK */
.nav-link {
  position: relative;
  transition: 0.3s;
  color: #d1d5db;
}

/* hover */
.nav-link:hover {
  color: white;
}

/* ACTIVE */
.nav-link.active {
  color: #8b5cf6;
}

/* underline animasi */
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #8b5cf6;
  left: 0;
  bottom: -4px;
  transition: 0.3s;
}

.nav-link.active::after {
  width: 100%;
}

html {
  scroll-behavior: smooth;
}
