/* ========================================
   PRODUK PAGES - SHARED STYLES
   Untuk: Laser Cutting, Roll Plat & Pipa, Bending Plat, Fabrikasi Logam
   ======================================== */

/* ========================================
   DETAIL HERO
   ======================================== */
.detail-hero {
  background: linear-gradient(135deg, #0a1620 0%, #1a2a3a 50%, #152531 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  transition: background-position 0.3s ease;
}

.detail-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240,185,11,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 8s ease-in-out infinite;
}

.detail-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow2 10s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(-20px, 20px); }
}

@keyframes pulseGlow2 {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.15) translate(30px, -30px); }
}

.detail-hero .breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  animation: fadeInDown 0.8s ease;
}

.detail-hero .breadcrumb-custom a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.detail-hero .breadcrumb-custom a:hover {
  color: var(--accent-gold);
}

.detail-hero .breadcrumb-custom .sep {
  color: rgba(255,255,255,0.2);
}

.detail-hero .breadcrumb-custom .current {
  color: var(--accent-gold);
}

.detail-hero .product-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 1px;
  background: rgba(240, 185, 11, 0.15);
  padding: 6px 18px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 16px;
  border: 1px solid rgba(240, 185, 11, 0.2);
  animation: fadeInDown 0.8s ease 0.2s both;
}

.detail-hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease 0.4s both;
}

.detail-hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-gold), #ffd700, var(--accent-gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.detail-hero .lead-text {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 0;
  animation: fadeInUp 1s ease 0.6s both;
}

.detail-hero .d-flex {
  animation: fadeInUp 1s ease 0.8s both;
}

.detail-hero .hero-image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  position: relative;
  animation: fadeInRight 1s ease 0.3s both;
}

.detail-hero .hero-image-wrapper img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.detail-hero .hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.detail-hero .hero-image-wrapper .image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,22,32,0.6) 100%);
}

.detail-hero .hero-image-wrapper .image-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-hero .hero-image-wrapper .image-badge .dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.detail-hero .hero-image-wrapper .image-badge span {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ========================================
   ANIMATIONS (Sama seperti index.php)
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header .eyebrow {
  display: inline-block;
  background: rgba(240, 185, 11, 0.12);
  color: var(--accent-gold);
  padding: 4px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.section-header .eyebrow:hover {
  background: rgba(240, 185, 11, 0.2);
  transform: scale(1.05);
}

.section-header h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  border-radius: 2px;
}

.section-header p {
  color: var(--steel-500);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 16px;
}

/* ========================================
   DETAIL BODY
   ======================================== */
.detail-section {
  padding: 80px 0;
  background: #fff;
  position: relative;
}

.detail-section.bg-paper {
  background: #f8fafc;
}

.detail-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(240,185,11,0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.detail-body {
  max-width: 800px;
  margin: 0 auto;
}

.detail-body p {
  color: #4a5a6a;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.detail-body .highlight-box {
  background: rgba(240, 185, 11, 0.06);
  border-left: 4px solid var(--accent-gold);
  padding: 20px 28px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
  transition: all 0.3s ease;
}

.detail-body .highlight-box:hover {
  background: rgba(240, 185, 11, 0.1);
  transform: translateX(4px);
}

.detail-body .highlight-box i {
  color: var(--accent-gold);
  font-size: 1.3rem;
}

.detail-body .highlight-box p {
  margin-bottom: 0;
  font-weight: 500;
  color: #1a2a3a;
}

.detail-body .feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid #eef2f6;
  transition: all 0.3s ease;
}

.detail-body .feature-item:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

.detail-body .feature-item i {
  font-size: 1.4rem;
  color: var(--accent-gold);
}

.detail-body .feature-item .label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1a2a3a;
}

.detail-body .feature-item .desc {
  font-size: 0.75rem;
  color: var(--steel-500);
}

/* ========================================
   GALLERY
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-grid .gallery-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1/1;
  display: block;
  text-decoration: none;
  transition: all 0.4s ease;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid .gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-grid .gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,22,32,0.4);
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-grid .gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-grid .gallery-item .gallery-overlay i {
  color: #fff;
  font-size: 2rem;
  transform: scale(0.7);
  transition: all 0.4s ease;
}

.gallery-grid .gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

/* ========================================
   OTHER SERVICES
   ======================================== */
.other-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.other-service-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 28px 30px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eef2f6;
  transition: all 0.4s ease;
  display: block;
  height: 100%;
}

.other-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-color: rgba(240, 185, 11, 0.2);
  text-decoration: none;
  color: inherit;
}

.other-service-card .service-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--steel-300);
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  background: #eef2f6;
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-block;
}

.other-service-card h4 {
  font-size: 1.2rem;
  margin: 12px 0 8px;
  color: #0a1620;
  transition: all 0.3s ease;
}

.other-service-card:hover h4 {
  color: var(--accent-gold);
}

.other-service-card p {
  color: #4a5a6a;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.other-service-card .arrow-link {
  color: var(--accent-gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  transition: all 0.3s ease;
}

.other-service-card:hover .arrow-link {
  gap: 12px;
}

/* ========================================
   LIGHTBOX OVERLAY
   ======================================== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
  opacity: 1;
}

.lightbox-overlay .lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: lightboxIn 0.4s ease;
  cursor: default;
}

@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.lightbox-overlay .lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  object-fit: contain;
  border: 2px solid rgba(255,255,255,0.1);
}

.lightbox-overlay .lightbox-close {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.lightbox-overlay .lightbox-close:hover {
  background: rgba(240, 185, 11, 0.2);
  border-color: var(--accent-gold);
  transform: rotate(90deg) scale(1.1);
}

/* ========================================
   SCROLL TOP
   ======================================== */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 999;
  background: var(--accent-gold);
  color: #0a1620;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(240, 185, 11, 0.4);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1199px) {
  .detail-hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 991px) {
  .detail-hero {
    padding: 120px 0 60px;
  }
  .detail-hero h1 {
    font-size: 2.2rem;
  }
  .detail-hero .hero-image-wrapper img {
    height: 300px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .other-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lightbox-overlay .lightbox-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .detail-hero {
    padding: 100px 0 50px;
  }
  .detail-hero h1 {
    font-size: 1.8rem;
  }
  .detail-hero .lead-text {
    font-size: 1rem;
  }
  .section-header h2 {
    font-size: 1.6rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .other-services-grid {
    grid-template-columns: 1fr;
  }
  .detail-body p {
    font-size: 0.95rem;
  }
  .detail-body .highlight-box {
    padding: 16px 20px;
  }
  .detail-hero .hero-image-wrapper .image-badge {
    bottom: 14px;
    left: 14px;
    padding: 8px 14px;
  }
  .detail-hero .hero-image-wrapper .image-badge span {
    font-size: 0.7rem;
  }
  .lightbox-overlay .lightbox-content img {
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .detail-hero h1 {
    font-size: 1.5rem;
  }
  .detail-hero .hero-image-wrapper img {
    height: 220px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .scroll-top {
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}