/* ==========================================================================
   Portfolio 12: Bloomberg Financial Terminal & FDI Investment Desk (English)
   Aesthetic: Institutional Dark Finance, Terminal Amber & Emerald Data Tickers,
   Tabular Investment Matrices, Export Growth Visualizers, High Data Density
   ========================================================================== */

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

:root {
  --term-bg: #090c13;
  --term-surface: #101622;
  --term-card: #151d2d;
  --term-border: #232f46;
  --term-amber: #f59e0b;
  --term-cyan: #06b6d4;
  --term-green: #10b981;
  --term-red: #ef4444;
  --text-white: #f8fafc;
  --text-dim: #94a3b8;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--term-bg);
  color: var(--text-white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Financial Market Ticker Ribbon */
.terminal-ticker-bar {
  background: #000000;
  border-bottom: 1px solid var(--term-border);
  padding: 0.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-strip-flex {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.t-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.t-up { color: var(--term-green); }
.t-down { color: var(--term-red); }
.t-amber { color: var(--term-amber); }

/* Header */
.terminal-header {
  background: rgba(16, 22, 34, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--term-border);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner-term {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.term-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-ticker-box {
  background: var(--term-amber);
  color: #000;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
}

.brand-term-title h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-term-title span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--term-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.term-nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  align-items: center;
}

.term-nav-links a {
  color: var(--text-dim);
  transition: color 0.2s;
}

.term-nav-links a:hover {
  color: var(--term-amber);
}

.btn-terminal-action {
  background: var(--term-amber);
  color: #000;
  padding: 0.55rem 1.25rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s;
}

.btn-terminal-action:hover {
  background: #d97706;
  transform: translateY(-2px);
}

/* Terminal Hero Grid */
.hero-term {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, #090c13 0%, #101622 100%);
  border-bottom: 1px solid var(--term-border);
}

.hero-term-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.badge-finance {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--term-amber);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.hero-term-grid h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-term-grid h1 span {
  color: var(--term-amber);
}

.hero-term-p {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Key Macro Metrics Grid */
.macro-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.macro-box {
  background: var(--term-card);
  border: 1px solid var(--term-border);
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}

.macro-box .m-val {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--term-amber);
  display: block;
}

.macro-box .m-lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

/* Terminal Leader Photo Frame */
.terminal-leader-frame {
  background: var(--term-card);
  border: 1px solid var(--term-border);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.terminal-leader-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.term-photo-meta {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* Investment Clusters Section */
.section-term {
  padding: 5rem 0;
  border-bottom: 1px solid var(--term-border);
}

.section-head-term {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-head-term h2 {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head-term p {
  color: var(--text-dim);
  max-width: 600px;
  font-size: 1.05rem;
}

/* Tabular Investment Matrix Table */
.finance-table-box {
  background: var(--term-card);
  border: 1px solid var(--term-border);
  border-radius: 8px;
  overflow-x: auto;
}

.term-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.term-table th {
  background: #0b0f19;
  border-bottom: 1px solid var(--term-border);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--term-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.term-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--term-border);
  color: #cbd5e1;
}

.term-table tr:hover {
  background: rgba(245, 158, 11, 0.03);
}

.tag-status-fdi {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}
.tag-status-fdi.active { background: rgba(16, 185, 129, 0.15); color: var(--term-green); }
.tag-status-fdi.expansion { background: rgba(245, 158, 11, 0.15); color: var(--term-amber); }

/* Investor Booking Desk Form */
.investor-desk-box {
  max-width: 780px;
  margin: 0 auto;
  background: var(--term-card);
  border: 1px solid var(--term-border);
  border-radius: 8px;
  padding: 2.5rem;
}

.form-term {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-term {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #090c13;
  border: 1px solid var(--term-border);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}

.input-term:focus {
  border-color: var(--term-amber);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

/* Footer */
.terminal-footer {
  background: #06090e;
  border-top: 1px solid var(--term-border);
  padding: 4.5rem 0 2rem;
  font-size: 0.92rem;
}

.term-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.term-f-col h4 {
  font-family: var(--font-mono);
  color: var(--term-amber);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.term-f-col p {
  color: var(--text-dim);
  line-height: 1.7;
}

.term-f-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.term-f-col ul li a {
  color: var(--text-dim);
  transition: color 0.2s;
}

.term-f-col ul li a:hover {
  color: var(--term-amber);
}

.contact-term-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.contact-term-row i {
  color: var(--term-amber);
  margin-top: 0.25rem;
}

.term-bottom {
  border-top: 1px solid #1a2233;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-dim);
}

.term-bottom a {
  color: var(--term-amber);
}

.mobile-toggle {
  display: none;
  background: var(--term-card);
  border: 1px solid var(--term-border);
  color: var(--term-amber);
  font-size: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.mobile-toggle:hover {
  background: var(--term-amber);
  color: #000;
}

@media (max-width: 950px) {
  .header-inner-term { position: relative; }
  .mobile-toggle { display: flex; }

  .term-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0f1624;
    border: 1px solid var(--term-border);
    border-radius: 6px;
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7);
    z-index: 1000;
    margin-top: 0.5rem;
  }

  .term-nav-links.active {
    display: flex !important;
  }

  .term-nav-links li {
    width: 100%;
  }

  .term-nav-links li a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .term-nav-links li a.btn-terminal-action {
    text-align: center;
    margin-top: 0.5rem;
  }

  .hero-term-grid { grid-template-columns: 1fr; }
  .term-footer-grid { grid-template-columns: 1fr 1fr; }
  .macro-metrics-row { grid-template-columns: 1fr 1fr; }
  .hero-term-grid h1 { font-size: 2.5rem; }
}

@media (max-width: 600px) {
  .macro-metrics-row { grid-template-columns: 1fr; }
  .term-footer-grid { grid-template-columns: 1fr; }
}
