/* ============================================
   BRIVOX — Case Study: Amwaj Travel
   Custom CSS (Unchanged HTML)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #0a0a0a;
  --bg-section: #f4f5f7;
  --bg-card: rgba(255, 255, 255, 0.02);
  --text-primary: #f3f5f7;
  --text-secondary: rgba(243, 245, 247, 0.7);
  --text-muted: rgba(243, 245, 247, 0.45);
  --text-on-dark: #f3f5f7;
  --text-on-dark-muted: rgba(243,245,247,.55);
  
  --gold: #c9a227;
  --gold-soft: rgba(201, 162, 39, 0.1);
  --gold-glow: rgba(201, 162, 39, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --wrap-max: 1100px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================ RESET & UTILS ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--bg-dark); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color 0.3s var(--ease); }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
.wrap { width: 100%; max-width: var(--wrap-max); margin: 0 auto; padding: 0 20px; }

@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.8); } }
@keyframes glow { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.25; } }

.noise { position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.015; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.vis { opacity: 1; transform: translateY(0); }

/* ============================================ HEADER ============================================ */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(30px); border-bottom: 1px solid var(--border); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.headerLeft { display: flex; align-items: center; gap: 16px; }
.backBtn { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; transition: color 0.3s; }
.backBtn svg, .backBtn i { width: 16px; height: 16px; transition: transform 0.3s; }
.backBtn:hover { color: var(--gold); }
.backBtn:hover svg, .backBtn:hover i { transform: translateX(-4px); }
.brand { display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--border); padding-left: 16px; }
.brandImg { height: 24px; width: auto; }
.brandFB { font-family: var(--font-display); font-size: 22px; color: var(--text-on-dark); letter-spacing: 2px; display: flex; }
.brandFB b { color: var(--gold); }
.headerRight { display: flex; align-items: center; gap: 8px; }
.iBtn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--text-on-dark-muted); transition: all 0.3s var(--ease); }
.iBtn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-on-dark); }

@media (min-width: 768px) {
  .header .wrap { height: 70px; }
  .brandImg { height: 28px; }
}

/* ============================================ MAIN & BREADCRUMB ============================================ */
main { padding-top: 60px; }
@media (min-width: 768px) { main { padding-top: 70px; } }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 11px; font-weight: 600; color: var(--text-muted); padding: 32px 0 0; letter-spacing: 0.5px; text-transform: uppercase; }
.breadcrumb a { display: flex; align-items: center; gap: 4px; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .current { color: var(--text-primary); }
.breadcrumb .sep { color: var(--border); font-size: 14px; }

/* ============================================ HERO ============================================ */
.hero { position: relative; padding: 40px 0 60px; }
.heroShade { position: absolute; inset: 0; background: radial-gradient(circle at top left, rgba(201,162,39,0.04) 0%, transparent 60%); pointer-events: none; }
.heroGlow { position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, var(--gold-glow), transparent 70%); pointer-events: none; animation: glow 5s ease infinite alternate; }
.heroBadge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 24px; text-transform: uppercase; }
.heroDot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: pulse-dot 2s infinite; }
.heroTitle { font-family: var(--font-display); font-size: 48px; line-height: 1.05; letter-spacing: 1px; margin-bottom: 16px; position: relative; }
.heroTitle .dim { color: var(--text-secondary); }
.heroTitle .accent { color: var(--gold); }
.heroSub { font-size: 14px; color: var(--text-muted); line-height: 1.7; max-width: 680px; position: relative; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 4px 10px; border-radius: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; background: rgba(255,255,255,0.04); color: var(--text-secondary); border: 1px solid var(--border); }
.tag.gold { background: var(--gold-soft); color: var(--gold); border-color: rgba(201,162,39,0.2); }

@media (min-width: 768px) {
  .hero { padding: 60px 0 80px; }
  .heroTitle { font-size: 80px; }
  .heroSub { font-size: 16px; }
  .tag { font-size: 11px; padding: 6px 12px; border-radius: 8px; }
}

/* ============================================ STATS ROW ============================================ */
.statRow { display: flex; gap: 12px; margin-top: -30px; margin-bottom: 48px; position: relative; z-index: 10; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.statRow::-webkit-scrollbar { display: none; }
.statItem { flex: 1; min-width: 140px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 16px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.statVal { font-family: var(--font-display); font-size: 36px; color: var(--gold); line-height: 1; margin-bottom: 6px; letter-spacing: 1px; }
.statLbl { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

@media (min-width: 768px) {
  .statRow { gap: 20px; overflow-x: visible; }
  .statItem { padding: 32px 24px; }
  .statVal { font-size: 48px; }
  .statLbl { font-size: 12px; }
}

/* ============================================ SECTION HEADERS ============================================ */
section { padding: 48px 0; }
.secTitle { font-family: var(--font-display); font-size: 36px; letter-spacing: 1px; margin-bottom: 8px; }
.secTitle span { color: var(--gold); }
.secNote { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; max-width: 600px; line-height: 1.6; }

@media (min-width: 768px) {
  section { padding: 64px 0; }
  .secTitle { font-size: 48px; }
  .secNote { font-size: 16px; margin-bottom: 48px; }
}

/* ============================================ GENERIC CARDS & GRIDS ============================================ */
.g2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gCard { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: all 0.4s var(--ease); }
.gCard:hover { transform: translateY(-3px); background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.15); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.gCard.gold { background: linear-gradient(135deg, rgba(201,162,39,0.06), transparent); border-color: rgba(201,162,39,0.2); }
.gCard.gold:hover { border-color: var(--gold); }

.iconTitle { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.iconTitle svg, .iconTitle i { width: 20px; height: 20px; color: var(--gold); }
.desc { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }

@media (min-width: 768px) {
  .g2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .gCard { padding: 32px; }
  .iconTitle { font-size: 18px; }
  .desc { font-size: 14px; }
}

/* ============================================ BRAND EVOLUTION ============================================ */
.logoCompare { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.logoBox { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.imgWrap { width: 100%; max-width: 300px; aspect-ratio: 16/9; background: rgba(255,255,255,0.02); border: 1px dashed var(--border); border-radius: 16px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.imgWrap img { max-height: 100%; max-width: 100%; object-fit: contain; }
.imgWrap.new { background: rgba(201,162,39,0.05); border: 1px solid rgba(201,162,39,0.2); border-style: solid; }
.arrowIcon { transform: rotate(90deg); color: var(--text-muted); opacity: 0.5; }

@media (min-width: 768px) {
  .logoCompare { flex-direction: row; justify-content: space-between; }
  .arrowIcon { transform: rotate(0deg); }
}

/* ============================================ ARCHITECTURE DIAGRAM ============================================ */
.infraDiagram { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.infraTier { width: 100%; text-align: center; }
.tierLabel { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.infraNodes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.infraNode { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--text-primary); }
.infraNode svg, .infraNode i { width: 16px; height: 16px; opacity: 0.7; }
.infraNode.gold { background: var(--gold-soft); border-color: rgba(201,162,39,0.3); color: var(--gold); }
.infraNode span { display: block; }
.infraNode.gold svg, .infraNode.gold i { opacity: 1; }
.infraConn { width: 2px; height: 24px; background: linear-gradient(180deg, var(--border), rgba(255,255,255,0.1)); }

@media (min-width: 768px) {
  .infraDiagram { padding: 48px; }
  .infraNode { padding: 14px 24px; font-size: 14px; }
}

/* ============================================ GALLERY ============================================ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--bg-card); padding: 12px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.gallery .main { grid-column: 1 / -1; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumb { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: all 0.3s; opacity: 0.5; background: #000; }
.gallery .thumb:hover { opacity: 1; border-color: var(--gold); }
.gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
  .gallery { padding: 20px; gap: 16px; }
  .gallery .main { border-radius: 16px; }
  .gallery .thumb { border-radius: 10px; }
}

/* ============================================ TIMELINE ============================================ */
.timeline { display: flex; flex-direction: column; gap: 20px; position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.timeStep { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; transition: all 0.3s var(--ease); }
.timeStep:hover { border-color: rgba(255,255,255,0.15); transform: translateX(4px); }
.timeStep::before { content: ''; position: absolute; left: -21px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg-dark); border: 2px solid var(--gold); transition: all 0.3s; }
.timeStep:hover::before { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.timeStep .num { font-family: var(--font-display); font-size: 24px; color: var(--gold); margin-bottom: 6px; letter-spacing: 1px; line-height: 1; }
.timeStep p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.timeStep p b { color: var(--text-primary); font-weight: 600; }

@media (min-width: 768px) {
  .timeline { padding-left: 30px; gap: 24px; }
  .timeline::before { left: 10px; }
  .timeStep::before { left: -27px; width: 14px; height: 14px; top: 26px; }
  .timeStep { padding: 24px 32px; }
  .timeStep p { font-size: 15px; }
}

/* ============================================ BUTTONS ============================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; font-size: 14px; font-weight: 600; border-radius: 14px; letter-spacing: 0.5px; transition: all 0.35s var(--ease); cursor: pointer; text-transform: uppercase; }
.btn svg, .btn i { width: 18px; height: 18px; transition: transform 0.3s; }
.btn-gold { background: var(--gold); color: var(--bg-dark); border: none; }
.btn-gold:hover { background: #d4ad2e; box-shadow: 0 8px 30px rgba(201, 162, 39, 0.3); transform: translateY(-2px); }
.btn-gold:hover svg, .btn-gold:hover i { transform: translateX(4px) translateY(-4px); }

/* ============================================ SIMPLE FOOTER ============================================ */
.siteFooter { padding: 40px 0; border-top: 1px solid var(--border); text-align: center; background: rgba(10,10,10,0.5); }
.footRow { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footLogo { font-family: var(--font-display); font-size: 24px; letter-spacing: 2px; color: var(--text-primary); }
.footLogo b { color: var(--gold); }
.footText { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
::selection { background: var(--gold); color: var(--bg-dark); }