/* ==========================================================================
   Leonardo Majowka — professional site theme
   ========================================================================== */

:root {
  --bg:        #0b1020;
  --bg-soft:   #111831;
  --surface:   #151d38;
  --surface-2: #1b264a;
  --border:    #27314f;
  --text:      #e8ecf6;
  --text-soft: #aab3cc;
  --text-dim:  #7681a0;
  --accent:    #5b8cff;
  --accent-2:  #38d6c5;
  --accent-soft: rgba(91, 140, 255, 0.12);
  --max:       1080px;
  --radius:    14px;
  --shadow:    0 10px 30px rgba(0, 0, 0, 0.35);
  --font:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 85% -10%, rgba(91, 140, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(56, 214, 197, 0.07), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-2); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Navbar ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1020;
  font-weight: 800;
  font-size: 15px;
}
.brand-name { font-size: 15px; }
.brand-name small { display: block; font-weight: 500; font-size: 11px; color: var(--text-dim); letter-spacing: 0.5px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--accent-soft); }
.nav-cta {
  margin-left: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: #0b1020 !important;
  font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.92; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 22px; padding: 6px;
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0 56px; }
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(56, 214, 197, 0.10);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
  font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-soft);
  max-width: 680px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}
.hero-photo { justify-self: end; }
.hero-avatar {
  width: 220px; height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent-2);
  box-shadow: 0 0 0 6px rgba(56, 214, 197, 0.10), 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  padding: 12px 22px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1020;
}
.btn-primary:hover { color: #0b1020; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(91, 140, 255, 0.3); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Sections ---------- */
.page { padding-bottom: 80px; }
.section { padding: 40px 0; }
.section-head { margin-bottom: 28px; }
.section-head .kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 8px; font-weight: 700; letter-spacing: -0.3px;
}
.section-head p { color: var(--text-soft); margin: 0; max-width: 640px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card-grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Experience / timeline ---------- */
.timeline { display: grid; gap: 18px; }
.exp {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.exp:hover { transform: translateX(2px); border-left-color: var(--accent-2); }
.exp-top {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.exp-role { font-size: 1.15rem; font-weight: 700; margin: 0; }
.exp-company { color: var(--accent); font-weight: 600; }
.exp-period { color: var(--text-dim); font-size: 13px; font-weight: 500; white-space: nowrap; }
.exp ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-soft); }
.exp ul li { margin-bottom: 6px; }
.exp ul li::marker { color: var(--accent-2); }

/* ---------- Skills ---------- */
.skill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
}
.pill:hover { border-color: var(--accent); color: var(--text); }

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature .ico {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); margin-bottom: 14px; font-size: 20px;
}
.feature h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Project cards ---------- */
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.project:hover { transform: translateY(-3px); border-color: var(--accent); }
.project-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.project-logo {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px; font-size: 20px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(56,214,197,0.12));
}
.project h3 { margin: 0; font-size: 1.15rem; }
.project .tagline { color: var(--accent-2); font-size: 13px; font-weight: 500; }
.project p { color: var(--text-soft); font-size: 0.95rem; margin: 0 0 16px; flex: 1; }
.project .project-link {
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.status-tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 6px;
  background: rgba(56, 214, 197, 0.12); color: var(--accent-2);
  margin-left: auto;
}
.status-tag.building { background: rgba(255, 196, 87, 0.14); color: #ffc457; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px; text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.contact-card .ico { font-size: 26px; margin-bottom: 12px; }
.contact-card h3 { margin: 0 0 4px; font-size: 1rem; }
.contact-card a { font-size: 0.92rem; word-break: break-word; }
.contact-card p { color: var(--text-dim); font-size: 0.85rem; margin: 4px 0 0; }

/* ---------- Investing page ---------- */
.invest-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.stat-card .num {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card .label { color: var(--text-soft); font-size: 0.9rem; }

.checklist { display: grid; gap: 12px; }
.checklist li {
  list-style: none; display: flex; gap: 12px; align-items: flex-start;
  color: var(--text-soft);
}
.checklist li .chk {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-2);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.checklist { margin: 0; padding: 0; }

.cta-banner {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px; text-align: center; margin-top: 12px;
}
.cta-banner h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-banner p { color: var(--text-soft); margin: 0 0 22px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-dim);
  font-size: 14px;
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--text-soft); font-size: 14px; }

/* ---------- Forms ---------- */
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.field input,
.field textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.contact-form input[type="submit"] { justify-self: start; border: none; }

.contact-layout { align-items: start; }
.contact-side { display: grid; gap: 18px; }

/* ---------- Flash ---------- */
.flash {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
}
.flash-success { background: rgba(56, 214, 197, 0.12); border-color: rgba(56, 214, 197, 0.4); color: var(--accent-2); }
.flash-error { background: rgba(255, 99, 99, 0.10); border-color: rgba(255, 99, 99, 0.4); color: #ff8b8b; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.h2-sm { font-size: 1.3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 12px 24px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin-left: 0; text-align: center; }
  .cols-2, .cols-3, .contact-grid, .invest-stats, .form-row { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { justify-self: start; order: -1; }
  .hero-avatar { width: 150px; height: 150px; }
}

@media (min-width: 761px) and (max-width: 980px) {
  .cols-3, .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
