@charset "utf-8";

/* ======================================================
   MOBILE APP DETAIL PAGE
====================================================== */

.page-app-detail {
  background: #eee;
  padding-top: 80px; /* Header clearance */
}

/* Sections */
.detail-section {
  padding: 80px 0;
  /* border-bottom: 1px solid #eee; */
}

.detail-section:nth-child(even) {
  background-color: #ddd;
}

.detail-section .inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Alternating Row Layout */
.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.detail-row.reverse {
  flex-direction: row-reverse;
}

.text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-col h2 {
  font-size: 30px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  letter-spacing: -0.8px;
  word-break: keep-all;
}

.text-col p {
  font-size: 15px;
  line-height: 1.55;
  color: #555;
  word-break: keep-all;
}

.mockup-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Decorative radial gradient glow behind smartphone mockup */
.mockup-col::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1 / 1;
  border-radius: 50%; /* Prevents square outlines or edge artifacts */
  background: radial-gradient(circle at center, rgba(207, 0, 11, 0.38) 0%, rgba(207, 0, 11, 0.12) 50%, rgba(207, 0, 11, 0) 70%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .mockup-col {
    width: 100%;
  }
  .mockup-col::before {
    max-width: 340px;
  }
}

/* Mockup Canvas Container */
.mockup-canvas {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1.15;
  background-color: #e9ecef;
  background-image: radial-gradient(#dee2e6 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  border-radius: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* Canvas Header (dots & arrows) */
.canvas-header {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  user-select: none;
}

.canvas-dots {
  display: flex;
  gap: 6px;
}

.canvas-dot {
  width: 8px;
  height: 8px;
  background: #adb5bd;
  border-radius: 50%;
}

.canvas-nav-buttons {
  display: flex;
  gap: 12px;
  color: #868e96;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.canvas-nav-btn {
  padding: 2px 6px;
  transition: color 0.2s;
}

.canvas-nav-btn:hover {
  color: #212529;
}

/* Background Soft Graphic */
.canvas-bg-shape {
  position: absolute;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  z-index: 1;
}

/* Smartphone Mockup Frame */
.phone-frame {
  position: relative;
  width: 186px;
  aspect-ratio: 9 / 18.5;
  background: #000;
  border-radius: 28px;
  border: 6px solid #2d3135;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  z-index: 2;
  overflow: hidden;
  cursor: pointer;
}

/* Notch camera Bezel */
.phone-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 12px;
  background: #2d3135;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 10;
}

.phone-content {
  width: 100%;
  height: 100%;
  position: relative;
  background: #fff;
}

/* Screen Slides */
.phone-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.phone-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.phone-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ======================================================
   RESPONSIVENESS (MEDIA QUERIES)
====================================================== */

@media (max-width: 991px) {
  .detail-section {
    padding: 60px 0;
  }
  
  .text-col h2 {
    font-size: 26px;
  }
  
  .detail-row {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .page-app-detail {
    padding-top: 50px;
  }
  
  .detail-section {
    padding: 50px 0;
  }
  
  .detail-row, .detail-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .text-col {
    align-items: center;
  }
  
  .text-col h2 {
    font-size: 22px;
  }
  
  .text-col p {
    font-size: 14px;
    max-width: 500px;
  }
  
  .mockup-canvas {
    max-width: 320px;
  }
  
  .phone-frame {
    width: 150px;
  }
}
