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

/* CSS Variables for consistency */
:root {
  --primary-color: #00ff88;
  --secondary-color: #1db954;
  --hover-color: #00cc66; /* hijau lebih gelap, cocok untuk hover */
  --light-color: #66ffb2; /* hijau pastel, untuk highlight */
  --dark-color: #0d4025;
  --text-primary: #f5f5f5;
  --text-secondary: #c0c0c0;
  --text-muted: #a0a0a0;
  --bg-glass: rgba(0, 0, 0, 0.05);
  --bg-glass2: rgba(59, 59, 59, 0.274);
  --border-glass: rgba(255, 255, 255, 0.1);
  --page-gutter: clamp(0.5rem, 2vw, 1rem);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(
    135deg,
    #0a0a0a 0%,
    #111111 25%,
    #000000 50%,
    #0f0f0f 75%,
    #000000 100%
  );
  /* radial-gradient(
      ellipse at top left,
      rgba(20, 20, 20, 0.95) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at bottom right,
      rgba(15, 15, 15, 0.9) 0%,
      transparent 70%
    ), */
  /* aksen hijau tipis */
  /* radial-gradient(
        circle at 20% 80%,
        rgba(0, 255, 136, 0.158) 1%,
        transparent 40%
      ),
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 255, 102, 0.082) 1%,
      transparent 35%
    ); */
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Animasi gradient background yang halus */
/* @keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
} */

/* Tambahkan layer overlay dengan animasi subtle */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(0, 255, 136, 0.02) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(29, 185, 84, 0.015) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 255, 255, 0.008) 0%,
      transparent 70%
    );
  background-size: 150% 150%;
  animation: floatingOrbs 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

/* Animasi orbs yang mengambang halus */
/* @keyframes floatingOrbs {
  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
    transform: scale(1) rotate(0deg);
  }
  25% {
    background-position: 100% 0%, 0% 100%, 80% 20%;
    transform: scale(1.05) rotate(1deg);
  }
  50% {
    background-position: 100% 100%, 0% 0%, 20% 80%;
    transform: scale(0.95) rotate(-1deg);
  }
  75% {
    background-position: 0% 100%, 100% 0%, 60% 40%;
    transform: scale(1.02) rotate(0.5deg);
  }
} */

/* Subtle noise texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      transparent 92%,
      rgba(255, 255, 255, 0.02) 92%
    ),
    linear-gradient(90deg, transparent 92%, rgba(255, 255, 255, 0.02) 92%);
  background-size: 35px 35px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
  animation: subtleMove 25s linear infinite;
}

/* @keyframes subtleMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(35px, 35px);
  }
} */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  padding: clamp(0.5rem, 1vw, 1rem) 0;
}

.navbar.scrolled,
.navbar.is-scrolled,
.navbar--scrolled,
.navbar.sticky,
.navbar.fixed,
.navbar.active {
  background: var(--bg-glass) !important;
  /* border-bottom: 1px solid var(--border-glass) !important; */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: min(95%, 1600px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--page-gutter);
  position: relative;
}

.nav-logo {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: clamp(0.5rem, 1vw, 0.75rem) clamp(0.75rem, 1.5vw, 1rem);
  border-radius: 8px;
  position: relative;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  white-space: nowrap;
}

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

.nav-links a.active {
  color: var(--primary-color); /* warna teks saat aktif */
}

/* buat garis bawah dengan animasi */
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px; /* jarak dari teks */
  width: 100%;
  height: 2px;
  background: #00ff88;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease-in-out;
}

/* ketika link aktif, animasikan garis muncul */
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

/* Mobile Navigation */
@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 120%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(20, 20, 20, 0.8); /* lebih gelap, elegan */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.5rem;
    transform: translateY(-100vh);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    width: 100%;
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

/* Sections */
.section {
  /* scroll-margin-top: 80px; */
  padding: clamp(1rem, 3vw, 2rem) var(--page-gutter);
  width: 95%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: clamp(50px, 12vw, 90px);
}

.hero-container {
  /* max-width: min(95%, 1600px); */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  width: 100%;
  grid-template-areas: "content image";
}

.hero-content {
  z-index: 2;
  justify-self: start;
  /* grid-area: content; */
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-primary);
  text-align: left;
}

.title-prefix {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: clamp(0.4rem, 1vw, 0.6rem) clamp(0.8rem, 2vw, 1.2rem);
  border-radius: 25px;
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.badge:hover {
  /* background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3); */
  /* transform: translateY(-0px); */
  box-shadow: inset 0 0 30px rgba(223, 223, 223, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.subtitle-prefix {
  color: var(--primary-color);
  font-weight: 600;
}

.hero-description {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 100%;
  text-align: justify;
}

/* Typing Effect */
#typing-text {
  border-right: 5px solid var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  /* animation: blinkCursor 0.7s infinite; */
  min-height: 1.2rem;
  vertical-align: baseline;
  min-width: 10px;
  padding-right: 0.2rem;
  margin-left: 0.15rem;
}

@keyframes blinkCursor {
  0%,
  50% {
    border-color: var(--primary-color);
  }
  51%,
  100% {
    border-color: transparent;
  }
}

/* Tech Stack */
.tech-stack {
  display: flex;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}

.tech-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: clamp(0.4rem, 1vw, 0.6rem) clamp(0.8rem, 1.5vw, 1.2rem);
  border-radius: 20px;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  backdrop-filter: blur(10px);
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tech-item:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateY(-2px);
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: clamp(0.7rem, 1.5vw, 1rem) clamp(1.2rem, 2.5vw, 2rem);
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  font-family: inherit;
  min-width: 120px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #00cc6a);
  color: #000;
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
}

/* Social Links */
.social-links {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  justify-content: flex-start;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 6vw, 50px);
  height: clamp(40px, 6vw, 50px);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  color: var(--primary-color);
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.1);
  transform: translateY(-3px);
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  justify-self: end;
  grid-area: image;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: clamp(200px, 32vw, 370px);
  height: clamp(200px, 32vw, 370px);
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(0, 255, 136, 0.2) 0%,
    rgba(29, 185, 84, 0.2) 25%,
    rgba(0, 255, 136, 0.1) 50%,
    rgba(29, 185, 84, 0.1) 75%,
    rgba(0, 255, 136, 0.2) 100%
  );
  animation: rotateGradient 8s linear infinite;
  z-index: -1;
}

.hero-image img {
  width: clamp(180px, 30vw, 350px);
  height: clamp(180px, 30vw, 350px);
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgb(255, 255, 255);
  backdrop-filter: blur(5px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.315),
    inset 0 1px 0 rgba(255, 255, 255, 0.322);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: floatImage 4s ease-in-out infinite;
  position: relative;
}

.hero-image img:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 80px rgba(0, 255, 136, 0.2);
  border-color: rgba(0, 255, 136, 0.4);
}

/* Pulse effect */
.hero-image::after {
  content: "";
  position: absolute;
  width: clamp(220px, 37vw, 420px);
  height: clamp(220px, 37vw, 420px);
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.555);
  animation: pulseRing 3s ease-out infinite;
  z-index: -2;
}

/* Animations */
@keyframes floatImage {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(1deg);
  }
  66% {
    transform: translateY(-5px) rotate(-0.5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2rem);
    grid-template-areas:
      "image" /* mobile: gambar di atas */
      "content"; /* teks di bawah  */
  }
  .hero-content {
    justify-self: start; /* tetap rata kiri */
  }
  .hero-image {
    justify-self: center; /* g ambar di tengah saat stack */
  }

  .hero-section {
    margin-top: clamp(60px, 10vw, 80px);
  }
}

.hero-image:hover img {
  animation-play-state: paused;
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

.portfolio {
  text-align: center;
  color: var(--secondary-color);
}

.portfolio-title {
  font-size: clamp(3rem, 5vw, 3rem);
  margin-bottom: clamp(0.5rem, 1vw, 1rem);
  font-weight: 700;
}

.portfolio-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  color: var(--text-secondary);
}

/* Tabs */
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Force 3 columns always */
  gap: clamp(0.3rem, 1vw, 0.7rem);
  margin-bottom: 2rem;
  background: var(--bg-glass2);
  padding: clamp(0.4rem, 1vw, 0.7rem);
  border: 1px solid var(--border-glass);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  width: 100%;
}

.tab {
  padding: clamp(0.7rem, 1.5vw, 1rem) clamp(1.2rem, 2.5vw, 2rem);
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  position: relative;
  overflow: hidden;
  font-family: inherit;
  background: transparent;
  color: var(--text-primary);
}

.tab p {
  margin: 0;
  line-height: 1.2;
}

.tab p:first-child {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.tab p:last-child {
  font-size: clamp(0.65rem, 0.9vw, 0.85rem);
  font-weight: 500;
  opacity: 0.9;
}

.tab.active {
  background: rgba(0, 255, 136, 0.116);
  color: var(--primary-color);
  border-color: rgba(0, 255, 136, 0.3);
}

.tab:hover {
  background: rgba(0, 255, 136, 0.06);
  color: var(--primary-color);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .tabs {
    grid-template-columns: repeat(3, 1fr); /* Maintain 3 columns */
    gap: clamp(0.2rem, 0.8vw, 0.4rem);
    padding: clamp(0.3rem, 0.8vw, 0.5rem);
  }

  .tab {
    padding: clamp(0.4rem, 1vw, 0.6rem) clamp(0.3rem, 0.8vw, 0.5rem);
    min-height: clamp(55px, 10vw, 70px);
    gap: clamp(0.2rem, 0.4vw, 0.3rem);
  }

  .tab p:first-child {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
  }

  .tab p:last-child {
    font-size: clamp(0.6rem, 1.2vw, 0.75rem);
    font-weight: 500;
  }
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: stretch;
}

/* 2 kolom di tablet */
@media (max-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tab {
    flex-direction: row;
    gap: 0.5rem;
  }

  .tab p:first-child {
    font-size: 1rem;
  }

  .tab p:last-child {
    font-size: 0.8rem;
  }
}

.card {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.02) 100%
    ),
    var(--bg-glass2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease,
    background 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 255, 136, 0.15);
  background: linear-gradient(
      180deg,
      rgba(0, 255, 136, 0.06) 0%,
      rgba(29, 185, 84, 0.04) 100%
    ),
    var(--bg-glass2);
}

.card-media {
  margin: 14px 14px 0 14px;
  border-radius: 14px;
  overflow: hidden;
  background: #2a2a2a;
  aspect-ratio: 16 / 9;
  position: relative;
  flex-shrink: 0;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 120% at 0% 0%,
      rgba(0, 255, 136, 0.12),
      transparent 60%
    ),
    radial-gradient(
      120% 120% at 100% 100%,
      rgba(29, 185, 84, 0.08),
      transparent 60%
    );
  opacity: 0.5;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-in-out;
}
.card-media:hover img {
  transform: scale(1.05);
}

.card:hover .card-media::after {
  opacity: 0.8;
}

.card-body {
  padding: 1.2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Mengisi ruang yang tersisa */
  justify-content: space-between;
}

.card-body h3 {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1.2rem;
  position: relative;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* fallback modern */
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.card-body h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0.8;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.card:hover .card-body h3::after {
  width: 52px;
  opacity: 1;
}

.card-body p {
  font-size: 0.95rem;
  color: #aaa;
  margin-bottom: 1rem;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2; /* fallback modern */
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

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

.card-buttons a {
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
}

.live-demo {
  color: var(--primary-color);
}

.live-demo:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
  filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.3));
}

.details {
  background: rgba(0, 255, 136, 0.12);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 136, 0.25);
  transition: all 0.3s ease;
}

.details:hover {
  background: rgba(0, 255, 136, 0.2);
  border-color: rgba(0, 255, 136, 0.45);
  box-shadow: 0 6px 16px rgba(0, 255, 136, 0.2);
}

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

/* Utility untuk sembunyikan item saat belum di-load */
.is-hidden {
  display: none !important;
}

/* Wrapper tombol load more */
.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.load-more-wrap .btn-secondary.load-more-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
}

.certificate {
  flex: 1 1 calc(33.333% - 1.5rem); /* 3 kolom */
  /* min-width: 250px; */
  border-radius: 20px;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: stretch;
}

@media (max-width: 1200px) {
  .certificate-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.certificate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.certificate:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

/* Modal preview gambar sertifikat */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  position: relative;
  max-width: min(95vw, 1000px);
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-glass2);
  border: 1px solid var(--border-glass);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 255, 136, 0.15);
  animation: modalIn 0.18s ease;
}

@keyframes modalIn {
  from {
    transform: translateY(6px) scale(0.98);
    opacity: 0.9;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-image {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass2);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

body.modal-open {
  overflow: hidden;
}

.techstack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
  max-width: 100%;
}

@media (max-width: 768px) {
  .techstack-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .techstack-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.8rem;
  }
}

.card-techstack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  background: radial-gradient(
      120% 120% at 0% 0%,
      rgba(0, 255, 136, 0.06),
      transparent 60%
    ),
    radial-gradient(
      120% 120% at 100% 100%,
      rgba(29, 185, 84, 0.05),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.02) 100%
    ),
    var(--bg-glass2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background 0.25s ease;
  aspect-ratio: 1;
  overflow: hidden;
  text-align: center;
}

/* Grid pattern overlay */
.card-techstack::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.25;
  pointer-events: none;
}

.card-techstack:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 136, 0.15);
  background: radial-gradient(
      120% 120% at 0% 0%,
      rgba(0, 255, 136, 0.1),
      transparent 60%
    ),
    radial-gradient(
      120% 120% at 100% 100%,
      rgba(29, 185, 84, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.18) 100%),
    var(--bg-glass2);
}

.stack-icon {
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stack-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: filter 0.3s ease;
}

.card-techstack:hover .stack-icon img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 12px rgba(0, 255, 136, 0.2));
}

.card-techstack span {
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  color: var(--text-primary);
  letter-spacing: 0.3px;
  font-weight: 500;
  opacity: 0.95;
  line-height: 1.2;
  word-break: break-word;
  text-align: center;
}

/* Project Modal Styles */

/* Contact Section Styles */
.contact-section {
  position: relative;
}

.contact-container {
  /* max-width: min(95%, 1600px); */
  margin: 0 auto; /* pusatkan agar konsisten dengan section lain */
}

.contact-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 4rem);
}

.contact-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch; /* kolom kiri & kanan direntangkan agar sejajar */
  width: 100%;
}

/* Contact Form Styles */
.contact-form-wrapper,
.contact-info-wrapper {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.04) 100%
    ),
    var(--bg-glass2);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 136, 0.05);
  height: 100%; /* panel memenuhi tinggi kolom */
  width: 100%;
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: clamp(0.8rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.2rem);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: var(--text-primary);
  font-family: inherit;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  resize: vertical;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  min-height: 120px;
  line-height: 1.6;
}

.form-notice {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.submit-btn .btn-text {
  z-index: 1;
}

.submit-btn .btn-icon {
  z-index: 1;
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Contact Info Styles */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* .contact-card {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0.03) 100%
    ),
    var(--bg-glass2);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
} */

.contact-info-wrapper .contact-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.contact-info-wrapper .contact-card + .contact-card {
  border-top: 1px solid var(--border-glass);
  padding-top: 1rem;
  margin-top: 0.25rem;
}

.contact-info-wrapper .contact-card h3 {
  margin-bottom: 0.75rem;
}

/* .contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.2);
} */

.contact-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  position: relative;
}

.contact-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 30px;
  height: 3px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

/* Social Contacts */
.social-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-link,
.platform-link,
.blog-link {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  padding: clamp(0.75rem, 1.5vw, 1rem);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateX(4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-link.linkedin .contact-icon {
  background: rgba(0, 119, 181, 0.2);
  color: #0077b5;
}

.contact-link.email .contact-icon {
  background: rgba(234, 67, 53, 0.2);
  color: #ea4335;
}

.contact-link.instagram .contact-icon {
  background: rgba(225, 48, 108, 0.2);
  color: #e1306c;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-value {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Freelance Platforms */
.freelance-platforms,
.blog-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.platform-link,
.blog-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.platform-link:hover,
.blog-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateX(4px);
}

.platform-icon,
.blog-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-link.fiverr .platform-icon {
  background: rgba(29, 191, 115, 0.2);
  color: #1dbf73;
}

.platform-link.upwork .platform-icon {
  background: rgba(20, 168, 0, 0.2);
  color: #14a800;
}

.platform-link.freelancer .platform-icon {
  background: rgba(41, 145, 214, 0.2);
  color: #2991d6;
}

.blog-link.medium .blog-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.blog-link.devto .blog-icon {
  background: rgba(8, 8, 8, 0.2);
  color: #080808;
}

.blog-link.hashnode .blog-icon {
  background: rgba(45, 55, 72, 0.2);
  color: #2d3748;
}

.platform-details,
.blog-details {
  display: flex;
  flex-direction: column;
}

.platform-name,
.blog-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.platform-desc,
.blog-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
  }

  .contact-form-wrapper {
    order: 2;
  }

  .contact-info-wrapper {
    order: 1;
    display: flex; /* tetap satu panel rapi di mobile */
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .contact-info-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: clamp(2rem, 6vw, 4rem) var(--page-gutter);
  }

  .contact-form-wrapper,
  .contact-card {
    padding: 1.5rem;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }

  .contact-card h3 {
    font-size: 1.2rem;
  }

  .contact-link,
  .platform-link,
  .blog-link {
    padding: 0.8rem;
  }

  .contact-icon,
  .platform-icon,
  .blog-icon {
    width: 40px;
    height: 40px;
  }
}

/* Form Loading State */
.submit-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.submit-btn.loading .btn-text::after {
  content: "...";
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%,
  20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%,
  100% {
    content: "...";
  }
}

/* Footer Styles */
.footer {
  background: var(--bg-glass);
  border-top: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  padding: clamp(0.3rem, 0.5vw, 0.5rem) var(--page-gutter);
  position: relative;
}

.footer-content {
  width: 95%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

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

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 1.5rem var(--page-gutter);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    gap: 1.5rem;
  }

  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* ...existing code... */

/* Experience Section Styles */
.experience-section {
  position: relative;
}

.experience-container {
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(1rem, 3vw, 2rem);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  /* margin-bottom: 0.5rem; */
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
}

/* Timeline Styles */
.timeline {
  position: relative;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--primary-color) 0%,
    var(--secondary-color) 50%,
    rgba(0, 255, 136, 0.3) 100%
  );
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-left: clamp(4rem, 8vw, 6rem);
}

.timeline-marker {
  position: absolute;
  left: 18px;
  top: 1.5rem;
  width: 24px;
  height: 24px;
  background: var(--bg-glass2);
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.marker-icon {
  font-size: 0.7rem;
  position: relative;
  top: -1px;
}

.timeline-content {
  position: relative;
}

/* Experience Card */
.experience-card {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.04) 100%
    ),
    var(--bg-glass2);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2rem);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 136, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0.8;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
}

/* Company Header */
.company-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  margin-bottom: 1.5rem;
}

.company-logo {
  width: clamp(50px, 8vw, 64px);
  height: clamp(50px, 8vw, 64px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.company-info {
  min-width: 0;
}

.position-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.company-name {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.duration {
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  color: var(--text-muted);
  font-weight: 400;
}

.employment-type {
  justify-self: end;
  align-self: start;
}

.type-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.type-badge.internship {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.type-badge.fulltime {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.type-badge.education {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.type-badge.freelance {
  background: rgba(108, 117, 125, 0.2);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Job Description */
.job-description {
  margin-bottom: 1.5rem;
}

.job-description p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  text-align: justify;
}

/* Achievements */
.achievements {
  margin-bottom: 1.5rem;
}

.achievements h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  position: relative;
}

.achievements h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

.achievements ul {
  list-style: none;
  padding: 0;
}

.achievements li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: justify;
}

.achievements li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Tech Stack Used */
.tech-stack-used h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  position: relative;
}

.tech-stack-used h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

.tech-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-chip {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 0.4rem 0.8rem;
  border-radius: 16px;
  font-size: 0.8rem;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tech-chip:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 3rem;
  }

  .timeline-marker {
    left: 3px;
    width: 20px;
    height: 20px;
  }

  .marker-icon {
    font-size: 0.6rem;
  }

  .company-header {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .employment-type {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.5rem;
  }

  .experience-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .company-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .company-logo {
    justify-self: center;
  }

  .employment-type {
    justify-self: center;
  }
}

/* Education (improved layout) */
/* Education (improved layout) - Enhanced Responsive */
.education-section {
  position: relative;
}

.education-container {
  margin: 0 auto;
}

.education-list {
  margin: 0 auto;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.education-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 20px;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.04) 100%
    ),
    var(--bg-glass2);
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 136, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  opacity: 0.8;
}

.education-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 255, 136, 0.1);
  background: linear-gradient(
      180deg,
      rgba(0, 255, 136, 0.06) 0%,
      rgba(29, 185, 84, 0.04) 100%
    ),
    var(--bg-glass2);
}

.edu-logo {
  width: clamp(56px, 8vw, 80px);
  height: clamp(56px, 8vw, 80px);
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-glass);
  border: 2px solid var(--border-glass);
  display: flex;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.education-item:hover .edu-logo {
  transform: scale(1.05);
}

.edu-details {
  flex: 1;
  min-width: 0;
}

.edu-degree {
  margin: 0 0 0.5rem;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.edu-institution {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.edu-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.edu-duration {
  font-weight: 500;
}

.edu-sep {
  opacity: 0.6;
}

.edu-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.edu-badge {
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  padding: clamp(0.3rem, 0.8vw, 0.4rem) clamp(0.6rem, 1.2vw, 0.8rem);
  border-radius: 20px;
  background: rgba(0, 255, 136, 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(0, 255, 136, 0.3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.edu-badge.outline {
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.edu-highlights {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
}

.edu-highlights li {
  list-style: none;
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.5;
  text-align: justify;
}

.edu-highlights li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: 700;
  opacity: 0.9;
}

/* Stats/Info Panel - sisi kanan */
.edu-stats {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: clamp(160px, 18vw, 200px);
}

.stats-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: clamp(0.8rem, 1.8vw, 1.2rem);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.3s ease;
}

.stats-card:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateY(-2px);
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  line-height: 1.1;
}

.stat-label {
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

.achievement-badge {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #000;
  border-radius: 12px;
  padding: clamp(0.6rem, 1.5vw, 0.9rem);
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
  line-height: 1.2;
}

.skills-preview {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: clamp(0.8rem, 1.8vw, 1.2rem);
  backdrop-filter: blur(10px);
}

.skills-preview h4 {
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.skills-list {
  display: grid;
  gap: 0.35rem;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.75rem, 0.95vw, 0.8rem);
}

.skill-name {
  color: var(--text-secondary);
  font-weight: 500;
}

.skill-level {
  color: var(--primary-color);
  font-weight: 600;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  .education-item {
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
  }

  .edu-stats {
    grid-column: 1 / -1;
    flex-direction: row;
    min-width: auto;
    margin-top: 1.2rem;
    gap: 1rem;
  }

  .stats-card,
  .achievement-badge,
  .skills-preview {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .education-item {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: clamp(1rem, 2.5vw, 1.5rem);
  }

  .edu-logo {
    justify-self: center;
    width: clamp(64px, 12vw, 72px);
    height: clamp(64px, 12vw, 72px);
  }

  .edu-details {
    text-align: center;
    order: 2;
  }

  .edu-degree {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
  }

  .edu-institution {
    font-size: clamp(1rem, 3vw, 1.1rem);
  }

  .edu-meta {
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
  }

  .edu-tags {
    justify-content: center;
    gap: 0.5rem;
  }

  .edu-highlights {
    text-align: left;
    margin-top: 1rem;
  }

  .edu-stats {
    order: 3;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 1.5rem;
  }

  .skills-preview {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .education-item {
    padding: 1.2rem;
  }

  .edu-degree {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
  }

  .edu-institution {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }

  .edu-meta {
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .edu-tags {
    gap: 0.4rem;
  }

  .edu-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .edu-highlights {
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  .edu-stats {
    gap: 0.6rem;
  }

  .stats-card,
  .achievement-badge {
    padding: 0.8rem;
  }

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

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

  .achievement-badge {
    font-size: 0.7rem;
    padding: 0.6rem;
  }

  .skills-preview {
    padding: 0.8rem;
  }

  .skills-preview h4 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .skill-item {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .education-item {
    padding: 1rem;
    gap: 1rem;
  }

  .edu-logo {
    width: 60px;
    height: 60px;
  }

  .edu-degree {
    font-size: 1.1rem;
  }

  .edu-institution {
    font-size: 0.9rem;
  }

  .edu-meta {
    font-size: 0.75rem;
    gap: 0.4rem;
  }

  .edu-highlights {
    font-size: 0.8rem;
  }

  .edu-stats {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .stats-card,
  .achievement-badge,
  .skills-preview {
    padding: 0.9rem;
  }

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

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

  .achievement-badge {
    font-size: 0.75rem;
  }

  .skills-preview h4 {
    font-size: 0.85rem;
  }

  .skill-item {
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  .education-item {
    padding: 0.8rem;
  }

  .edu-degree {
    font-size: 1rem;
    line-height: 1.2;
  }

  .edu-institution {
    font-size: 0.85rem;
  }

  .edu-meta {
    font-size: 0.7rem;
    flex-direction: column;
    gap: 0.2rem;
  }

  .edu-sep {
    display: none;
  }

  .edu-tags {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }

  .edu-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }

  .edu-highlights {
    font-size: 0.75rem;
    padding-left: 0.5rem;
  }

  .edu-highlights li {
    padding-left: 1rem;
  }
}

.notification-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

.notification {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.08)
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 136, 0.1);
  transform: translateX(100%) scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  min-width: 280px;
}

.notification.show {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.notification.hide {
  transform: translateX(100%) scale(0.9);
  opacity: 0;
}

/* Notification Types */
.notification.warning {
  border-left: 4px solid #fbbf24;
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.15),
    rgba(251, 191, 36, 0.08)
  );
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(251, 191, 36, 0.2);
}

.notification.info {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15),
    rgba(59, 130, 246, 0.08)
  );
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.2);
}

.notification.success {
  border-left: 4px solid var(--primary-color);
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.15),
    rgba(0, 255, 136, 0.08)
  );
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 136, 0.2);
}

.notification.error {
  border-left: 4px solid #ef4444;
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.15),
    rgba(239, 68, 68, 0.08)
  );
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(239, 68, 68, 0.2);
}

/* Notification Content */
.notification-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.notification-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  flex-shrink: 0;
}

.notification.warning .notification-icon {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.notification.info .notification-icon {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.notification.success .notification-icon {
  background: rgba(0, 255, 136, 0.2);
  color: var(--primary-color);
}

.notification.error .notification-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.notification-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.notification-message {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.notification-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 20px;
  height: 20px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
  transform: scale(1.1);
}

/* Progress Bar */
.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0 0 16px 16px;
  transform-origin: left;
  transition: transform linear;
}

.notification.warning .notification-progress {
  background: rgba(251, 191, 36, 0.6);
}

.notification.info .notification-progress {
  background: rgba(59, 130, 246, 0.6);
}

.notification.success .notification-progress {
  background: rgba(0, 255, 136, 0.6);
}

.notification.error .notification-progress {
  background: rgba(239, 68, 68, 0.6);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .notification-container {
    top: 70px;
    right: 15px;
    left: 15px;
    max-width: none;
  }

  .notification {
    min-width: auto;
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
  }

  .notification-header {
    gap: 0.6rem;
    margin-bottom: 0.4rem;
  }

  .notification-icon {
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
  }

  .notification-title {
    font-size: 0.85rem;
  }

  .notification-message {
    font-size: 0.8rem;
  }

  .notification-close {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    top: 0.6rem;
    right: 0.6rem;
  }
}

/* Animation Keyframes */
@keyframes slideInRight {
  from {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(2px);
  }
}

.notification.shake {
  animation: shake 0.5s ease-in-out;
}
