:root {
  --bg: #0b0e14;
  --card: #111623;
  --text: #e6eaf2;
  --muted: #a9b1c6;
  --brand: #6aa1ff;
  --brand-2: #8ef0c6;
  --stroke: #273046;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, sans-serif;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px 56px;
}

/* ========== TOP NAV ========== */

.topbar {
  position: sticky;
  top: 0;
  background: rgba(11, 14, 20, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stroke);
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  color: #0b0e14;
  font-weight: 800;
}

.name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.menu {
  display: flex;
  gap: 16px;
}

.menu a {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
.menu a.active,
.menu a:hover {
  border-color: var(--stroke);
  color: var(--text);
}

/* Shared button style */
.btn {
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.btn:hover {
  background: #151b2a;
}

/* ========== HERO ========== */

section {
  padding: 48px 0;
}

.hero {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    #2e0854 0%,
    #ff6a00 45%,
    #ffb347 85%,
    #ffd700 100%
  );
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.hi {
  font-size: clamp(3rem, 5vw, 4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1px;
  margin: 0;
}

.lead {
  font-size: 1.05rem;
  color: var(--text);
  margin-top: 12px;
}

.divider {
  width: 6px;
  height: 140px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  border-radius: 6px;
  margin: 20px 0;
}

.hero-buttons {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Right-hand card in hero */
.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

/* ========== GENERIC GRID (for CV etc.) ========== */

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.item {
  padding: 12px 0;
  border-top: 1px dashed var(--stroke);
}
.item:first-child {
  border-top: none;
}

.meta {
  font-size: 0.95rem;
  color: var(--muted);
}

.list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0)
  );
  border: 1px solid var(--stroke);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.92rem;
}

/* ========== FOOTER & COOKIES ========== */

footer {
  margin-top: 0;
  background: var(--card);
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--stroke);
}


/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111623;
  color: #e6eaf2;
  padding: 12px;
  text-align: center;
  border-top: 1px solid var(--stroke);
  font-size: 0.9rem;
}
#cookie-banner button {
  margin: 0 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}
#cookie-banner .accept {
  background: var(--brand);
  color: #0b0e14;
}
#cookie-banner .decline {
  background: var(--stroke);
  color: var(--text);
}

/* ========== CONTACT FORM ========== */

form label {
  display: block;
  margin: 10px 0 6px;
}
input,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #0f1422;
  color: #e6eaf2;
}

/* ========== PRINT STYLES FOR CV ========== */

@media print {
  .topbar,
  #cookie-banner,
  .print-note {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .card {
    box-shadow: none;
    border-color: #ccc;
    page-break-inside: avoid;
  }
  a {
    color: black;
    text-decoration: underline;
  }
}

/* === Refinement: Hero text styling === */
.sub-hi {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
}

.hi.talk {
  margin-top: 1rem;
  background: linear-gradient(90deg, #6aa1ff, #8ef0c6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* === CV HERO BACKGROUND & CONTENT === */
.cv-hero {
  background: linear-gradient(
    135deg,
    #2e0854 0%,
    #ff6a00 45%,
    #ffb347 85%,
    #ffd700 100%
  );
  padding: 80px 0;
}

.cv-hero .card {
  background: rgba(17, 22, 35, 0.92);
  border-color: rgba(39, 48, 70, 0.6);
}

.cv-hero h1,
.cv-hero h2,
.cv-hero h3,
.cv-hero p,
.cv-hero a {
  color: #fff7e6;
}

.cv-hero .meta {
  color: rgba(255, 255, 255, 0.7);
}
