/* ============================================
   AMELA Project Showcase — Design System
   ============================================ */

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

/* --- CSS Variables --- */
:root {
  --bg-primary: #0B0E1A;
  --bg-secondary: #111528;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --bg-glass: rgba(255,255,255,0.06);
  --border-glass: rgba(255,255,255,0.1);
  --accent: #F5A623;
  --accent-light: #FFD076;
  --accent-glow: rgba(245,166,35,0.25);
  --text-primary: #F0F0F5;
  --text-secondary: rgba(240,240,245,0.65);
  --text-muted: rgba(240,240,245,0.4);
  --gradient-accent: linear-gradient(135deg, #F5A623 0%, #FF6B35 100%);
  --gradient-bg: linear-gradient(180deg, #0B0E1A 0%, #131830 100%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 30px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --slide-w: 1280px;
  --slide-h: 720px;
  --font: 'Inter', system-ui, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* --- Slide Container --- */
.slide {
  width: var(--slide-w);
  height: var(--slide-h);
  background: var(--gradient-bg);
  position: relative;
  overflow: hidden;
  margin: 40px auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  page-break-after: always;
}

.slide::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Header Bar --- */
.slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  z-index: 1;
}
.slide-header .brand { display: flex; align-items: center; gap: 14px; }
.slide-header .logo { height: 48px; }
.slide-header .domain {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-dark, #B8780E);
  padding: 5px 12px;
  border: 1.2px solid var(--accent);
  border-radius: 999px;
  background: rgba(245,166,35,0.10);
  white-space: nowrap;
}
.slide-header .platform {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-secondary, rgba(21,21,26,0.78));
  padding: 4px 11px;
  border: 1.2px dashed var(--accent);
  border-radius: 999px;
  background: transparent;
  white-space: nowrap;
}
.slide-header .title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.slide-header .page-num {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Glass Card --- */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
}

/* --- Tag / Badge --- */
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(245,166,35,0.3);
}

/* --- Section Title --- */
.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* --- Info List --- */
.info-list { list-style: none; }
.info-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.info-list li:last-child { border-bottom: none; }
.info-list .label {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 80px;
}
.info-list .icon {
  width: 16px;
  text-align: center;
  color: var(--accent);
  font-size: 13px;
}

/* --- Tech Stack --- */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tech-badge {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(245,166,35,0.1);
  color: var(--accent-light);
  border: 1px solid rgba(245,166,35,0.15);
}

/* --- Metric Card --- */
.metric-card {
  text-align: center;
  padding: 20px 16px;
}
.metric-card .value {
  font-size: 32px;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.metric-card .label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

/* --- Mermaid --- */
.mermaid-container {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mermaid {
  display: flex;
  justify-content: center;
  align-items: center;
}
.mermaid svg { max-width: 100%; height: auto; }

/* --- Project Image --- */
.project-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Value Bar (footer) --- */
.value-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-glass);
  z-index: 1;
}
.value-bar .proposition {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.value-bar .proposition strong {
  color: var(--accent);
}
.value-bar .contact {
  font-size: 11px;
  color: var(--text-muted);
}
.value-bar .contact a {
  color: var(--accent);
  text-decoration: none;
}

/* --- Quote --- */
.quote {
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  background: rgba(245,166,35,0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.quote .author {
  font-style: normal;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 8px;
  font-size: 11px;
}

/* --- CTA Button --- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* --- Snapshot Bar --- */
.snapshot-bar {
  display: flex;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}
.snapshot-item {
  flex: 1;
  text-align: center;
  padding: 14px 12px;
  background: var(--bg-glass);
  border-right: 1px solid var(--border-glass);
}
.snapshot-item:last-child { border-right: none; }
.snapshot-item .val {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}
.snapshot-item .lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* --- Hero --- */
.hero-headline {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  max-width: 700px;
}
.hero-headline .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Phase Timeline --- */
.phase-list { list-style: none; }
.phase-list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 12.5px;
  position: relative;
}
.phase-list li::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}
.phase-list li::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 20px;
  bottom: -8px;
  width: 1px;
  background: rgba(245,166,35,0.2);
}
.phase-list li:last-child::after { display: none; }
.phase-list .phase-name {
  font-weight: 700;
  color: var(--text-primary);
}
.phase-list .phase-desc {
  color: var(--text-secondary);
}

/* --- Value Check List --- */
.value-list { list-style: none; }
.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.value-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

/* --- Before → After Table --- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.compare-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
}
.compare-table th:nth-child(2) { color: rgba(239,68,68,0.6); }
.compare-table th:nth-child(3) { color: rgba(34,197,94,0.7); }
.compare-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-secondary);
}
.compare-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 110px;
}
.compare-table td:nth-child(2) {
  color: rgba(239,68,68,0.5);
}
.compare-table td:nth-child(3) {
  color: rgba(134,239,172,0.9);
  font-weight: 600;
}
.compare-table .arrow {
  color: var(--text-muted);
  padding: 9px 4px;
  text-align: center;
}
.compare-table tbody tr:last-child td { border-bottom: none; }

/* --- Simple Footer --- */
.simple-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  background: rgba(0,0,0,0.2);
  z-index: 1;
}
.simple-footer .company {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.simple-footer .company img {
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
  opacity: 0.6;
}
.simple-footer .links {
  font-size: 11px;
  color: var(--text-muted);
}
.simple-footer .links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.simple-footer .links a:hover {
  color: var(--text-secondary);
}

/* --- Project Description (understated) --- */
.project-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
.project-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 6px;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }

/* --- Print Styles --- */
@media print {
  body { background: #fff; }
  .slide {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    height: auto;
    min-height: 100vh;
    page-break-after: always;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .slide::before { display: none; }
  .no-print { display: none !important; }
  .animate-in { animation: none; opacity: 1; }
}

/* --- Index Page --- */
.index-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--gradient-bg);
}
.index-title {
  font-size: 36px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
}
.index-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  text-align: center;
  margin-bottom: 48px;
}
.template-cards {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.template-card {
  width: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}
.template-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.template-card .preview {
  height: 220px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border-bottom: 1px solid var(--border-glass);
}
.template-card .info {
  padding: 24px;
}
.template-card .info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.template-card .info p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
