:root {
  --primary-color: #6c63ff;
  --secondary-color: #2a2a2a;
  --light-color: #f8f9fa;
  --accent-color: #ff6584;
  --text-color: #333333;
  --muted-color: #6c757d;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #080c18;
  color: var(--light-color);
}

.header-area {
  background: linear-gradient(135deg, var(--primary-color) 0%, #8075ff 100%);
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  color: white;
}

.header-area::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: #080c18;
  border-radius: 100% 100% 0 0;
}

.animated-shape {
  position: absolute;
  opacity: 0.15;
  z-index: 0;
}

.circle-shape {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: white;
}

.project-title {
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  gap: 2rem;
  z-index: 1;
  position: relative;
}

.meta-item {
  display: flex;
  align-items: center;
}

.meta-item i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.project-tags {
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 1;
  position: relative;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 0.9rem;
}

.section-title {
  position: relative;
  margin-bottom: 2rem;
  font-weight: 600;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

.process-step {
  color: var(--light-color);
  height: 100%;
  border-radius: 20px;
  padding: 30px;
  padding-bottom: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.process-step img {
  width: 100%;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.1);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.process-step h3 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--primary-color);
  opacity: 0.3;
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: -43px;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.3);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--muted-color);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.project-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-image img {
  width: 100%;
  /* height: 100px; */
  object-fit: cover;
  transition: all 0.5s ease;
}

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

.highlight-box {
  background: rgba(108, 99, 255, 0.05);
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 30px;
}

.highlight-box h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.user-persona {
  color: var(--light-color);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.persona-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.persona-avatar {
  width: 100px;
  height: 100px;
  border-radius: 10%;
  overflow: hidden;
  margin-right: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.persona-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.persona-details h3 {
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.persona-details p {
  margin: 0;
}

.persona-section {
  margin-bottom: 1.5rem;
}

.persona-section h4 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.next-prev-projects {
  padding: 40px 0;
  margin-top: 60px;
}

.project-nav {
  display: flex;
  justify-content: space-between;
}

.nav-item {
  flex: 0 0 48%;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-color);
  display: flex;
  align-items: center;
}

.nav-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.1);
  color: var(--primary-color);
}

.nav-item.prev {
  text-align: left;
}

.nav-item.next {
  text-align: right;
  flex-direction: row-reverse;
}

.nav-item i {
  font-size: 1.5rem;
  margin: 0 15px;
}

.nav-item .project-info {
  flex: 1;
}

.nav-item .label {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 0.3rem;
}

.nav-item .title {
  font-weight: 600;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.item-wide {
  grid-column: span 2;
}

.item-tall {
  grid-row: span 2;
}

#item-tall-ngupaapp {
  grid-column: span 2;
  grid-row: span 2;
}

#gallery-stupa,
#gallery-iotani {
  display: flex;
}

#single-gallery {
  display: flex;
  width: 100%;
  height: auto;
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
}

#single-gallery .gallery-item.full-screen {
  width: 100%;
  height: auto;
  overflow: hidden;
}

#single-gallery .gallery-item.full-screen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: fill;
  max-height: calc(100vh - 50px);
}

.item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .item-caption {
  transform: translateY(0);
}

.item-caption h5 {
  margin: 0 0 5px 0;
  font-size: 1rem;
}

.item-caption p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.clickable-prototype {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: #55537727;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Wrapper tombol */
.clickable {
  display: flex;
  gap: 2rem;
  /* jarak antar tombol */
  align-items: center;
}

/* Gaya tombol/link */
.btn-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  /* memberi ruang dalam tombol */
  background: rgba(255, 255, 255, 0.05);
  /* memberi batas visual antar tombol */
  border-radius: 8px;
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Efek hover tombol */
.btn-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

/* Icon */
.clickable-icon {
  font-size: 1.6rem;
  color: var(--primary-color);
  transition:
    transform 0.5s ease-in-out,
    color 0.3s ease;
}

.clickable-icon:hover {
  transform: rotate(120deg);
  color: white;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
}

.skill-item {
  display: flex;
  width: calc(100% / 3 - 6px);
  align-items: center;
  margin-bottom: 10px;
  padding: 1rem;
  background: #55537727;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.skill-item:hover,
.live-demo:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.1);
  color: white;
}

.skill-icon,
.live-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
  color: var(--primary-color);
}

img .skill-icon {
  margin-right: 0;
}

.skill-item:hover {
  color: white;
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.1);
}

/* Efek hover container */
/* .clickable-prototype:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(108, 99, 255, 0.1);
} */

/* Responsif: di layar kecil, tombol bertumpuk */
@media (max-width: 600px) {
  .clickable {
    flex-direction: column;
    gap: 1rem;
  }
}

.back-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 100;
}

.back-button:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(108, 99, 255, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .header-area {
    padding: 80px 0 60px;
  }

  .project-nav {
    flex-direction: column;
    gap: 20px;
  }

  .nav-item {
    flex: 0 0 100%;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline-item::before {
    left: -33px;
  }

  /* Gallery Mobile Styles */
  .gallery-container {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 15px;
  }

  .item-wide,
  .item-tall,
  #item-tall-ngupaapp {
    grid-column: 1;
    grid-row: auto;
  }

  .gallery-item {
    height: auto;
    min-height: 250px;
  }

  .gallery-item img {
    width: 100%;
    height: auto;
    min-height: 250px;
  }

  .item-caption {
    transform: translateY(0);
    padding: 10px;
  }

  .item-caption h5 {
    font-size: 0.9rem;
  }

  .item-caption p {
    font-size: 0.8rem;
  }

  #single-gallery .gallery-item.full-screen img {
    max-height: calc(100vh - 150px);
  }

  .skills-grid {
    flex-direction: column;
    justify-content: center;
    font-size: 14px;
  }

  .skill-item {
    width: 100%;
    font-size: 16px;
    padding: 12px;
  }

  .skill-icon {
    font-size: 32px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .skills-grid {
    justify-content: center;
    font-size: 14px;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-container {
    gap: 10px;
    margin: 10px 0;
  }

  .gallery-item {
    min-height: 200px;
  }

  .persona-details h3 {
    font-size: 1.05rem;
  }
}
