/* ================================================
   PROJECTS PAGE — Full Redesign
   Aesthetic: Dark tech / editorial / cinematic
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ---- PAGE HEADER ---- */
.project-header {
  text-align: center;
  padding: 90px 20px 40px;
  position: relative;
}

.project-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 62px;
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #ffffff 30%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.project-header p {
  font-family: 'DM Sans', sans-serif;
  color: rgba(147,197,253,0.7);
  font-size: 16px;
  max-width: 520px;
  margin: auto;
  line-height: 1.7;
}

/* ---- PROJECTS CONTAINER ---- */
.projects-container {
  max-width: 1100px;
  margin: auto;
  padding: 20px 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---- PROJECT CARD ---- */
.project-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: transparent;
  border: 1px solid rgba(96,165,250,0.12);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 32px;
  text-decoration: none;
  color: white;
  position: relative;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: cardReveal 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.25s; }
.project-card:nth-child(3) { animation-delay: 0.4s; }
.project-card:nth-child(4) { animation-delay: 0.55s; }

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

/* Glow border saat hover */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(96,165,250,0.08), rgba(37,99,235,0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(96,165,250,0.45);
  box-shadow: 0 0 0 1px rgba(96,165,250,0.15), 0 20px 60px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}
.project-card:hover::before { opacity: 1; }

/* ---- IMAGE SIDE ---- */
.project-image {
  position: relative;
  overflow: hidden;
  background: #0a1628;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), filter 0.4s ease;
  filter: brightness(0.85) saturate(0.9);
}

.project-card:hover .project-image img {
  transform: scale(1.07);
  filter: brightness(1) saturate(1.1);
}

/* Number badge */
.project-image::after {
  content: attr(data-num);
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(96,165,250,0.3);
  color: #60a5fa;
  padding: 5px 10px;
  border-radius: 6px;
}

/* ---- INFO SIDE ---- */
.project-info {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: rgba(15,25,60,0.5);
  backdrop-filter: blur(16px);
}

/* Category label */
.project-category {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #60a5fa;
  opacity: 0.75;
}

.project-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
  transition: color 0.3s ease;
  -webkit-text-fill-color: #f1f5f9;
}

.project-card:hover .project-info h3 {
  color: #93c5fd;
  -webkit-text-fill-color: #93c5fd;
}

.project-info p {
  font-family: 'DM Sans', sans-serif;
  color: rgba(203,213,225,0.75);
  font-size: 14px;
  line-height: 1.8;
}

/* Tech tags */
.tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-tags span {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
  -webkit-text-fill-color: #93c5fd;
  letter-spacing: 0.3px;
  transition: background 0.3s, border-color 0.3s;
}

.project-card:hover .tech-tags span {
  background: rgba(59,130,246,0.25);
  border-color: rgba(59,130,246,0.5);
}

/* Arrow hint */
.project-arrow {
  font-size: 13px;
  color: rgba(96,165,250,0.4);
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s, gap 0.3s;
  margin-top: 4px;
}
.project-card:hover .project-arrow {
  color: #60a5fa;
  gap: 10px;
}


/* ================================================
   PROJECT DETAIL PAGE
   ================================================ */

.project-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.project-left {
  position: sticky;
  top: 30px;
}

.project-left img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  display: block;
  transition: transform 0.5s ease;
}
.project-left img:hover { transform: scale(1.02); }

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(147,197,253,0.6);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.3s, gap 0.3s;
  letter-spacing: 0.5px;
}
.back-btn:hover { color: #60a5fa; gap: 12px; }

.project-right {
  padding-top: 10px;
}

.detail-category {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 12px;
  display: block;
}

.project-right h1 {
  font-family: 'Syne', sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-right p {
  font-family: 'DM Sans', sans-serif;
  color: rgba(226,232,240,0.8);
  line-height: 1.85;
  font-size: 15px;
  margin-bottom: 18px;
}

.project-right h3 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(147,197,253,0.5);
  margin: 28px 0 14px;
}

.tech-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tech-stack span {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
  -webkit-text-fill-color: #93c5fd;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}
.btn-github:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37,99,235,0.5);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-image {
    height: 220px;
  }
  .project-info {
    padding: 24px;
  }
  .project-header h1 {
    font-size: 40px;
  }
  .project-detail {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 20px;
  }
  .project-left {
    position: static;
  }
}