/* ============================================================
   Ansis Janis Ozolins — personal site
   Light, clean, professional theme
   Palette: navy #2c3e50 · teal accent #18bc9c · slate text
   ============================================================ */

:root {
  --ink: #1f2a37;
  --muted: #64748b;
  --navy: #2c3e50;
  --teal: #18bc9c;
  --teal-soft: #e8f8f4;
  --bg: #f7f9fc;
  --card: #ffffff;
  --border: #e6eaf0;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

/* Base */
body {
  background-color: var(--bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { color: var(--ink); }

a { text-decoration: none; }

/* Layout shell */
.site-main { min-height: 70vh; padding-bottom: 24px; }

.site-navbar {
  background-color: #fff !important;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}
.site-navbar .brand {
  font-weight: 800;
  color: var(--navy) !important;
  letter-spacing: -0.02em;
}
.site-navbar .nav-link { color: var(--muted) !important; font-weight: 500; }
.site-navbar .nav-link.active,
.site-navbar .nav-link:hover { color: var(--navy) !important; }

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 22px 0;
  margin-top: 40px;
}

/* ---------------- Hero ---------------- */
.hero {
  background: radial-gradient(1200px 400px at 50% -120px, var(--teal-soft), transparent),
              linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  padding: 64px 16px 48px;
  border-bottom: 1px solid var(--border);
}
.avatar {
  width: 92px; height: 92px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; letter-spacing: 1px;
  box-shadow: var(--shadow);
}
.hero-name { font-size: 2.6rem; margin: 0 0 6px; }
.hero-headline { font-size: 1.25rem; color: var(--teal); font-weight: 600; margin-bottom: 4px; }
.hero-location { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.hero-bio { max-width: 680px; margin: 0 auto 24px; font-size: 1.05rem; color: #334155; line-height: 1.7; }
.hero-actions { margin-top: 6px; }

/* ---------------- Sections ---------------- */
.section { padding: 48px 0; }
.section-title {
  font-size: 1.6rem;
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 10px;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 48px; height: 3px; border-radius: 3px; background: var(--teal);
}

/* ---------------- Skills ---------------- */
.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  height: 100%;
  box-shadow: var(--shadow);
}
.skill-group-title { font-size: 1rem; color: var(--navy); margin-bottom: 14px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip {
  background: var(--teal-soft);
  color: #0f766e;
  border: 1px solid #cdeee6;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------------- Jedox feature ---------------- */
.feature-card {
  background: linear-gradient(135deg, #243447 0%, #2c3e50 100%);
  color: #e8eef5;
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: var(--shadow);
}
.feature-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
}
.feature-title { color: #fff; font-size: 1.7rem; margin-bottom: 14px; }
.feature-lead { color: #cdd7e3; font-size: 1.05rem; line-height: 1.7; max-width: 760px; }
.jedox-list { margin: 8px 0 18px; padding-left: 20px; }
.jedox-list li { color: #dbe3ec; margin-bottom: 8px; line-height: 1.5; }
.feature-note { color: #8fa3b8; font-style: italic; font-size: 0.85rem; margin-bottom: 0; }

/* ---------------- Explore cards ---------------- */
.explore-link { display: block; height: 100%; }
.explore-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.explore-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.10);
}
.explore-card h5 { color: var(--navy); }
.explore-cta { color: var(--teal); font-weight: 600; font-size: 0.9rem; }

/* ---------------- Alternating section background ---------------- */
.section-alt {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------------- About ---------------- */
.about-text { font-size: 1.05rem; line-height: 1.8; color: #334155; margin-bottom: 16px; }

/* ---------------- What I do ---------------- */
.focus-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  border-radius: 16px;
  padding: 22px;
  height: 100%;
  box-shadow: var(--shadow);
}
.focus-card h6 { color: var(--navy); }

/* ---------------- Projects ---------------- */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.10);
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.project-tag {
  background: #eef2f7; color: #475569; border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 10px; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.project-links { display: flex; gap: 18px; margin-top: 4px; }
.project-link { color: var(--teal); font-weight: 600; font-size: 0.92rem; }
.project-link.muted { color: var(--muted); }
.project-link:hover { color: var(--navy); }

/* ---------------- Contact band ---------------- */
.contact-card {
  background: linear-gradient(135deg, #18bc9c 0%, #12a589 100%);
  color: #fff;
  border-radius: 20px;
  padding: 44px 32px;
  box-shadow: var(--shadow);
}
.contact-title { color: #fff; font-size: 1.7rem; margin-bottom: 10px; }
.contact-text { color: #eafaf6; max-width: 560px; margin: 0 auto 22px; }

/* Mobile */
@media (max-width: 768px) {
  .hero { padding: 44px 12px 36px; }
  .hero-name { font-size: 2rem; }
  .feature-card { padding: 28px 22px; }
  .contact-card { padding: 32px 20px; }
  .section { padding: 36px 0; }
}

/* ============================================================
   Below: styling kept for the financial dashboard / portfolio
   pages (still loaded by the app, just not in the main nav).
   ============================================================ */

/* Buttons (legacy pages) */
button, input[type="submit"] {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

/* Graph containers */
.dash-graph, .js-plotly-plot {
  background-color: #ffffff !important;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 10px;
  margin-bottom: 20px;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 16px;
  margin-bottom: 16px;
}

/* Controls row alignment */
.fd-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fd-input { width: 220px; }
.fd-dropdown { width: 180px; }
.fd-btn { padding: 8px 14px; }
.fd-status { margin-left: 6px; font-style: italic; color: #6b7280; }

/* Slider blocks spacing */
.fd-controls { display: grid; gap: 12px; }
.fd-control { margin-bottom: 8px; }

/* Peers input row */
.fd-peers-label { margin-right: 8px; }
.fd-peers-input { width: 420px; }

/* KPI tiles */
.section-fd { margin: 14px 0 24px 0; }
.cards-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-start; }
.kpi-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 14px 18px; min-width: 160px; text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.kpi-value { font-size: 1.2rem; font-weight: 700; color: #111827; }
.kpi-label { color: #6b7280; font-size: 0.9rem; }

/* DataTable tweaks */
.dash-table-container { border-radius: 10px; overflow: hidden; }
