@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");

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

:root {
  --bg: #e0e0e0;
  --fg: #1a1a1a;
  --gray: #666666;
  --sidebar-width: 250px;
}

body {
  font-family: "VT323", monospace;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  font-size: 20px;
}

.crt::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.03) 3px,
    rgba(0, 0, 0, 0.03) 6px
  );
  z-index: 9999;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.97;
  }
  5% {
    opacity: 0.98;
  }
  10% {
    opacity: 0.96;
  }
}

.particle-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  z-index: 0;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #1a1a1a;
  opacity: 0.2;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

.bg-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #1a1a1a;
  opacity: 0.3;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.5);
  }
}

.title-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background: var(--bg);
  transition: opacity 0.5s ease;
}

.title-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.press-start {
  font-size: 28px;
  letter-spacing: 2px;
  animation: blink 1s step-end infinite;
  cursor: pointer;
}

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

.credits {
  position: absolute;
  bottom: 40px;
  font-size: 20px;
  color: var(--gray);
  letter-spacing: 1px;
}

/* Fixed Sidebar Navigation */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg);
  border-right: 3px solid var(--fg);
  z-index: 50;
  padding: 40px 20px;
  display: none;
}

.sidebar.visible {
  display: block;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--fg);
}

.sidebar-title {
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.sidebar-subtitle {
  font-size: 16px;
  color: var(--gray);
  letter-spacing: 1px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 2px;
  position: relative;
  border: 2px solid var(--fg);
}

.sidebar-selector {
  position: absolute;
  left: -10px;
  opacity: 0;
  transition: all 0.2s ease;
  font-size: 28px;
}

.sidebar-item:hover .sidebar-selector,
.sidebar-item.active .sidebar-selector {
  opacity: 1;
  left: 5px;
  animation: selectorBounce 0.6s ease-in-out infinite;
}

@keyframes selectorBounce {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.sidebar-item:hover,
.sidebar-item.active {
  background: var(--fg);
  color: var(--bg);
}

.sidebar-text {
  margin-left: 30px;
}

/* Main Content Area */
.main-content {
  position: relative;
  margin-left: var(--sidebar-width);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  min-height: 100vh;
}

.main-content.visible {
  opacity: 1;
  pointer-events: auto;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

header {
  text-align: center;
  margin-bottom: 80px;
  padding: 40px 0;
}

h1 {
  font-size: 48px;
  letter-spacing: 3px;
  margin-bottom: 15px;
  font-weight: 400;
}

.tagline {
  font-size: 24px;
  color: var(--gray);
  letter-spacing: 1px;
}

.sound-effect {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 18px;
  color: var(--gray);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
}

.sound-effect.show {
  animation: soundPulse 0.5s ease-out;
}

@keyframes soundPulse {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

section {
  display: none;
  animation: fadeInUp 0.4s ease-out;
  margin-bottom: 40px;
}

section.active {
  display: block;
}

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

h2 {
  font-size: 36px;
  margin-bottom: 40px;
  font-weight: 400;
  border-bottom: 2px solid var(--fg);
  padding-bottom: 15px;
  letter-spacing: 2px;
}

.about-content {
  font-size: 24px;
  line-height: 1.8;
  max-width: 700px;
}

.about-content p {
  margin-bottom: 25px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card {
  border: 2px solid var(--fg);
  padding: 30px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  color: var(--bg);
}

.project-number {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--gray);
}

.project-card:hover .project-number {
  color: var(--bg);
  opacity: 0.6;
}

.project-title {
  font-size: 28px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.project-desc {
  font-size: 20px;
  line-height: 1.5;
  color: var(--gray);
  margin-bottom: 20px;
}

.project-card:hover .project-desc {
  color: var(--bg);
  opacity: 0.8;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.project-tag {
  font-size: 16px;
  padding: 4px 10px;
  border: 1px solid var(--gray);
  color: var(--gray);
  letter-spacing: 0.5px;
}

.project-card:hover .project-tag {
  border-color: var(--bg);
  color: var(--bg);
  opacity: 0.7;
}

.project-link {
  display: inline-block;
  font-size: 18px;
  color: var(--fg);
  text-decoration: none;
  border: 2px solid var(--fg);
  padding: 8px 20px;
  margin-top: 5px;
  transition: all 0.2s ease;
  letter-spacing: 1px;
}

.project-card:hover .project-link {
  color: var(--bg);
  border-color: var(--bg);
  background: transparent;
}

.project-link:hover {
  background: var(--fg);
  color: var(--bg);
}

.project-card:hover .project-link:hover {
  background: var(--bg);
  color: var(--fg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.skill-category h3 {
  font-size: 24px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--gray);
  padding-bottom: 10px;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  font-size: 20px;
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.skill-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 600px;
}

.contact-item {
  font-size: 22px;
}

.contact-label {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.contact-link {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--fg);
  transition: all 0.2s ease;
  display: inline-block;
}

.contact-link:hover {
  background: var(--fg);
  color: var(--bg);
  padding: 2px 5px;
  margin: -2px -5px;
}

footer {
  text-align: center;
  padding: 60px 20px 40px;
  border-top: 2px solid var(--fg);
  margin-top: 80px;
  font-size: 20px;
  color: var(--gray);
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: none; }
  .sidebar { pointer-events: none; }
  .sidebar.visible { pointer-events: auto; }
  .sidebar.visible + * { } /* gak wajib */

  /* saat startGame, sidebar sudah dapat class visible dari JS kamu */
  .sidebar.visible ~ .mobile-menu-btn { display: block; } /* ini gak bisa karena urutan DOM */
}


@media (max-width: 768px) {
  :root {
    --mobile-menu-w: min(320px, 86vw);
  }

  /* Tombol MENU floating */
  .mobile-menu-btn {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1200;

    font-family: "VT323", monospace;
    font-size: 20px;
    letter-spacing: 2px;

    background: var(--bg);
    color: var(--fg);

    border: 3px solid var(--fg);
    box-shadow: 4px 4px 0 var(--fg);

    padding: 10px 14px;
    cursor: pointer;
  }

  .mobile-menu-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--fg);
  }

  /* Backdrop gelap */
  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1100;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .mobile-menu-backdrop.show {
    opacity: 1;
    pointer-events: auto;
  }

  /* Sidebar jadi panel overlay */
  .sidebar {
    display: block;            /* jangan pakai .visible buat mobile */
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--mobile-menu-w);

    transform: translateX(-110%);
    transition: transform 0.25s ease;

    z-index: 1150;

    border-right: 4px solid var(--fg);
    box-shadow: 8px 0 0 var(--fg);

    padding: 24px 18px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  /* Biar header menu tetap ada & retro */
  .sidebar-header {
    display: block;
  }

  /* Layout nav kembali vertikal biar enak disentuh */
  .sidebar-nav {
    flex-direction: column;
    gap: 12px;
  }

  .sidebar-item {
    justify-content: flex-start;
    font-size: 22px;
    padding: 14px 16px;
  }

  /* Main content jangan pake margin-left di HP */
  .main-content {
    margin-left: 0;
  }

  .project-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}



/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  transition: opacity 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-container {
  text-align: center;
}

.loading-text {
  font-size: 32px;
  letter-spacing: 3px;
  margin-bottom: 30px;
}

.loading-dots::after {
  content: "";
  animation: loadingDots 1.5s infinite;
}

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

.progress-bar-container {
  width: 400px;
  height: 30px;
  border: 3px solid var(--fg);
  margin: 0 auto 20px;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: var(--fg);
  width: 0%;
  transition: width 0.1s linear;
}

.loading-percentage {
  font-size: 24px;
  letter-spacing: 2px;
}

/* Starfield Parallax Layers */
.starfield-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.starfield-slow {
  animation: scrollStarsSlow 60s linear infinite;
}

.starfield-medium {
  animation: scrollStarsMedium 40s linear infinite;
}

.starfield-fast {
  animation: scrollStarsFast 20s linear infinite;
}

@keyframes scrollStarsSlow {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100vh);
  }
}

@keyframes scrollStarsMedium {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100vh);
  }
}

@keyframes scrollStarsFast {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100vh);
  }
}

/* Pixel Clouds */
.pixel-clouds {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.pixel-cloud {
  position: absolute;
  width: 60px;
  height: 30px;
  background: rgba(0, 0, 0, 0.1);
  animation: floatCloud linear infinite;
  image-rendering: pixelated;
}

.pixel-cloud::before,
.pixel-cloud::after {
  content: "•";
  position: absolute;
  font-size: 30px;
  color: rgba(255, 255, 255, 0.3);
  animation: blinkEye 3s ease-in-out infinite;
}

.pixel-cloud::before {
  left: 15px;
  top: 0px;
}

.pixel-cloud::after {
  right: 15px;
  top: 0px;
}

@keyframes floatCloud {
  from {
    transform: translateX(-100px);
  }
  to {
    transform: translateX(calc(100vw + 100px));
  }
}

@keyframes blinkEye {
  0%,
  45%,
  55%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Scanline Effect */
.scanline-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent 50%, rgba(255, 255, 255, 0.03) 50%);
  background-size: 100% 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover .scanline-effect {
  opacity: 1;
  animation: scanlineScroll 0.5s linear infinite;
}

@keyframes scanlineScroll {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 4px;
  }
}

/* NEW Badge */
.badge-new {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--fg);
  color: var(--bg);
  padding: 5px 15px;
  font-size: 14px;
  letter-spacing: 1px;
  animation: pulseBadge 1.5s ease-in-out infinite;
  z-index: 9999;
}

@keyframes pulseBadge {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0);
  }
}

/* Level Indicator */
.level-indicator {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
}

.level-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--gray);
  background: transparent;
  transition: all 0.2s ease;
}

.level-dot.filled {
  background: var(--fg);
  border-color: var(--fg);
}

.project-card:hover .level-dot {
  border-color: var(--bg);
}

.project-card:hover .level-dot.filled {
  background: var(--bg);
  border-color: var(--bg);
}

/* Preview Placeholder */
.preview-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  letter-spacing: 3px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  color: var(--bg);
  text-shadow: 2px 2px 0 var(--fg);
}

.project-card:hover .preview-placeholder {
  opacity: 0.8;
  animation: previewPulse 1s ease-in-out infinite;
}

@keyframes previewPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Shake Animation */
@keyframes shakeCard {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px) rotate(-1deg);
  }
  75% {
    transform: translateX(3px) rotate(1deg);
  }
}

.project-card.shake {
  animation: shakeCard 0.3s ease;
}

/* Game Boy Power Off Footer - GRAYSCALE */
.gameboy-footer {
  background: #e0e0e0;
  border-top: 5px solid #1a1a1a;
  border-bottom: 5px solid #1a1a1a;
  padding: 60px 40px;
  font-family: "VT323", monospace;
  width: 100%;
  margin: 0;
  text-align: center;
  position: relative;
}

.gameboy-border-line {
  font-size: 18px;
  letter-spacing: 1px;
  color: #1a1a1a;
  line-height: 1;
  margin: 30px 0;
}

.gameboy-logo {
  margin: 40px 0 20px 0;
}

.nintendo-text {
  font-size: 32px;
  letter-spacing: 4px;
  color: #1a1a1a;
  margin-bottom: 10px;
  font-weight: bold;
}

.nintendo-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  background: #1a1a1a;
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.3s;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.game-title {
  font-size: 28px;
  letter-spacing: 3px;
  color: #1a1a1a;
  margin-bottom: 40px;
}

.battery-container {
  max-width: 500px;
  margin: 30px auto;
}

.battery-bar {
  width: 100%;
  height: 40px;
  background: #9e9e9e;
  border: 3px solid #1a1a1a;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.battery-fill {
  height: 100%;
  background: #1a1a1a;
  width: 0%;
  transition: width 0.5s ease;
  position: relative;
}

.battery-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.battery-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #1a1a1a;
  font-weight: bold;
  letter-spacing: 2px;
  z-index: 1;
  text-shadow: 1px 1px 0 #e0e0e0;
}

.time-display {
  font-size: 26px;
  letter-spacing: 2px;
  color: #1a1a1a;
  margin: 30px 0;
}

.time-label {
  font-size: 20px;
  color: #666666;
  margin-right: 10px;
}

.power-button {
  background: #1a1a1a;
  color: #e0e0e0;
  border: 4px solid #1a1a1a;
  padding: 15px 60px;
  font-family: "VT323", monospace;
  font-size: 26px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 30px;
  box-shadow: 0 4px 0 #666666;
  position: relative;
  top: 0;
}

.power-button:hover {
  background: #666666;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #1a1a1a;
}

.power-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #666666;
  top: 2px;
}

/* Game Boy Screen Effect */
.gameboy-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.03) 3px,
    rgba(0, 0, 0, 0.03) 6px
  );
  pointer-events: none;
}

/* Screen Fade Effect */
.screen-fade {
  animation: screenFade 3s ease-in-out infinite;
}

@keyframes screenFade {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.95;
  }
}

@media (max-width: 768px) {
  .gameboy-footer {
    padding: 40px 20px;
  }

  .nintendo-text {
    font-size: 26px;
  }

  .game-title {
    font-size: 22px;
  }

  .battery-bar {
    height: 35px;
  }

  .battery-percentage {
    font-size: 20px;
  }

  .time-display {
    font-size: 22px;
  }

  .power-button {
    font-size: 22px;
    padding: 12px 50px;
  }

  .gameboy-border-line {
    font-size: 14px;
  }
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 2px solid var(--fg);
  background: rgba(0, 0, 0, 0.05);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated; /* Untuk pixel art */
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05); /* Zoom sedikit saat hover */
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.blog-card {
  border: 4px solid var(--fg);
  background: var(--bg);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Full Width Image */
.blog-image-full {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  border-bottom: 4px solid var(--fg);
}

.blog-image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  image-rendering: pixelated;
  filter: contrast(1.1);
}

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

/* Overlay untuk Date & Category */
.blog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover .blog-overlay {
  opacity: 1;
}

.blog-date {
  background: var(--fg);
  color: var(--bg);
  padding: 8px 16px;
  font-size: 14px;
  letter-spacing: 2px;
  align-self: flex-start;
  border: 2px solid var(--fg);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.blog-category {
  background: transparent;
  color: var(--bg);
  border: 3px solid var(--bg);
  padding: 8px 18px;
  font-size: 16px;
  letter-spacing: 2px;
  align-self: flex-start;
  font-weight: bold;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

/* Content Area */
.blog-content {
  padding: 30px;
}

.blog-title {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 15px;
  letter-spacing: 1px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-title {
  color: var(--accent);
}

.blog-excerpt {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 25px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.blog-reading-time {
  font-size: 16px;
  color: var(--gray);
  letter-spacing: 1px;
}

.blog-link {
  font-size: 18px;
  color: var(--fg);
  text-decoration: none;
  border: 3px solid var(--fg);
  padding: 10px 25px;
  transition: all 0.2s ease;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.blog-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--fg);
  transition: left 0.3s ease;
  z-index: -1;
}

.blog-link:hover::before {
  left: 0;
}

.blog-link:hover {
  color: var(--bg);
  transform: translateX(5px);
}

/* Scanline Effect untuk Blog Card */
.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Pixel Border Effect */
.blog-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 4px solid var(--fg);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.blog-card:hover::after {
  opacity: 1;
  animation: pixelGlitch 0.3s steps(2) infinite;
}

@keyframes pixelGlitch {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-2px, 2px);
  }
  50% {
    transform: translate(2px, -2px);
  }
  75% {
    transform: translate(-2px, -2px);
  }
}

/* Responsive Blog */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .blog-image-full {
    height: 220px;
  }

  .blog-content {
    padding: 20px;
  }

  .blog-title {
    font-size: 22px;
  }

  .blog-excerpt {
    font-size: 16px;
  }

  .blog-meta {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

