@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700;800&display=swap');

:root {
  --bg: #07090e;
  --glass: rgba(8, 13, 24, 0.72);
  --glass-border: rgba(124, 200, 255, 0.14);
  --text: #eaf0ff;
  --muted: #8b97aa;
  --accent: #7cc8ff;
}

* { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background: url("assets/background.jpg") no-repeat center center fixed;
  background-size: cover;
}

/* Subtle dark veil so text stays readable on any part of the photo */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background: rgba(4, 8, 18, 0.55);
  pointer-events: none;
}

img { max-width: 100%; height: auto; }

/* ── Everything above the veil ───────────────────── */
header, main, footer { position: relative; z-index: 1; }

/* ── Header ─────────────────────────────────────── */
.site-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 8vw;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky; top: 0; z-index: 10;
  background: rgba(4, 8, 18, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 18px;
  color: var(--accent);
  animation: glow 3.5s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 8px rgba(124, 200, 255, 0.25); }
  50%       { text-shadow: 0 0 22px rgba(124, 200, 255, 0.7); }
}

nav { display: flex; justify-content: flex-start; }
nav a {
  color: var(--muted); text-decoration: none;
  margin-left: 18px; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.15s;
}
nav a.active, nav a:hover { color: var(--text); }

/* ── Glass card (the "popup" feel) ───────────────── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow:
    0 8px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(124, 200, 255, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ── Home page layout ────────────────────────────── */
.home-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 20px 72px;
}

.hero-card {
  width: 100%;
  max-width: 820px;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-card .avatar {
  width: 112px; height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
  box-shadow: 0 0 32px rgba(124, 200, 255, 0.2);
  margin-bottom: 22px;
}

.hero-card h1 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-card .lead {
  color: var(--muted);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 0 22px;
  font-size: 15px;
}

/* chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.chip {
  background: rgba(124, 200, 255, 0.07);
  border: 1px solid rgba(124, 200, 255, 0.2);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; color: var(--muted);
}

/* divider inside card */
.card-divider { width: 100%; height: 1px; background: var(--glass-border); margin: 24px 0; }

/* stats */
.stats-row { display: flex; gap: 44px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 11px; color: var(--muted); letter-spacing: 0.07em; text-transform: uppercase; }

/* quick links */
.link-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.link-row a { color: var(--accent); text-decoration: none; font-size: 14px; transition: opacity 0.15s; }
.link-row a:hover { opacity: 0.75; }

/* ── Inner pages (experience / projects / notes) ─── */
.page { max-width: 900px; margin: 0 auto; padding: 48px 20px 80px; }

.panel {
  padding: 32px 36px;
  margin-bottom: 28px;
}

.panel h1 { margin: 0 0 6px; font-size: 26px; }
.panel h2 { margin: 0 0 16px; font-size: 17px; color: var(--accent); }
.panel .sub { color: var(--muted); font-size: 14px; margin: 0 0 28px; }

/* ── Timeline ────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 26px; }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: start; }
.tl-meta { text-align: right; font-size: 12px; color: var(--muted); line-height: 1.6; padding-top: 2px; }
.tl-body h3 { margin: 0 0 2px; font-size: 15px; }
.tl-body .role { color: var(--accent); font-size: 13px; margin: 0 0 5px; }
.tl-body p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.tl-divider { height: 1px; background: var(--glass-border); margin: 28px 0; }

/* ── Projects ────────────────────────────────────── */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.proj-card {
  background: rgba(124, 200, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 22px;
  transition: border-color 0.15s;
}
.proj-card:hover { border-color: rgba(124, 200, 255, 0.35); }
.proj-card h3 { margin: 0 0 8px; font-size: 15px; }
.proj-card p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
.tag { display: inline-block; background: rgba(124,200,255,0.06); border: 1px solid rgba(124,200,255,0.18); border-radius: 4px; padding: 2px 8px; font-size: 11px; color: var(--muted); margin: 2px 2px 0 0; }

/* ── Notes ───────────────────────────────────────── */
.notes-hero { margin-bottom: 24px; }
.notes-hero h1 { margin: 0 0 5px; }
.notes-subtitle { color: var(--muted); font-size: 14px; margin: 0; }
.notes-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-btn {
  background: transparent; border: 1px solid rgba(124,200,255,0.2); border-radius: 20px;
  padding: 5px 14px; font-size: 12px; color: var(--muted); cursor: pointer;
  font-family: inherit; letter-spacing: 0.04em; transition: border-color 0.15s, color 0.15s;
}
.filter-btn.active, .filter-btn:hover { color: var(--accent); border-color: var(--accent); }
.notes-list { display: flex; flex-direction: column; gap: 12px; }
.note-card {
  background: rgba(124,200,255,0.04); border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 18px 22px; text-decoration: none; display: block; transition: border-color 0.15s;
}
.note-card:hover { border-color: rgba(124,200,255,0.35); }
.note-card-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.note-date { font-size: 12px; color: var(--muted); }
.note-tag { font-size: 11px; background: rgba(124,200,255,0.06); border: 1px solid rgba(124,200,255,0.18); border-radius: 4px; padding: 2px 8px; color: var(--muted); }
.note-card h3 { margin: 0 0 4px; font-size: 15px; color: var(--text); }
.note-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

footer {
  align-self: flex-end;
  padding: 14px 8vw;
  font-size: 12px;
  background: rgba(4, 8, 18, 0.5);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #8293af;
}

/*simple footer push*/
html,body {
  height: 100%;
}
main {
  min-height: calc(100vh - 60px); /* Adjust 60px to your footer's actual height */
  padding-bottom: 60px; /* Same as footer height */
}
