/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300;400;500;600&display=swap');

/* ── VARIABLES ── */
:root {
  --bg:       #fafaf9;
  --text:     #1c1c1a;
  --text-dim: #737370;
  --text-hi:  #0a0a09;
  --accent:   #1c1c1a;       /* pure dark instead of blue */
  --accent-ul: rgba(28,28,26,0.25);  /* underline tint */
  --border:   #e2e2df;
  --border-dim: rgba(226,226,223,0.6);
  --mono:     "Geist Mono", "IBM Plex Mono", monospace;
  --sans:     "IBM Plex Sans", sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── GRAIN ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 14px 0;
  background: rgba(250, 250, 249, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  gap: 40px;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 100;
}

#navbar.show { transform: translateY(0); }

#navbar a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: lowercase;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

#navbar a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

#navbar a:hover { color: var(--text-hi); }
#navbar a:hover::after { width: 100%; }

/* ── HERO ── */
.hero {
  height: 100vh;
  width: 100%;
  background: url("images/hero.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.6);
  margin-bottom: 20px;
  filter: grayscale(15%);
}

.hero-content h1 {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
  margin-bottom: 24px;
}

#startBtn {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
  padding: 9px 32px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}

#startBtn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.9);
}

/* ── CONTENT AREA ── */
#content-area {
  display: flex;
  justify-content: center;
}

/* ── PAGE ── */
.page {
  display: none;
  max-width: 820px;
  width: 100%;
  padding: 72px 40px 80px;
}

.page.active { display: block; }

/* ── HEADINGS ── */
h2 {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 80px 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

h2:first-of-type { margin-top: 0; }

/* ── PARAGRAPHS ── */
p {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 300;
  line-height: 1.9;
}

/* ── HELLO TEXT ── */
#hello-text {
  font-weight: 500;
  color: var(--text-hi);
}

#hello-text::after {
  content: '|';
  color: var(--text-hi);
  opacity: 0.5;
  animation: blink 0.7s step-end infinite;
  margin-left: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 0; }
}

/* ── PREVIOUSLY / INTERNSHIP BLOCK ── */
.internship-block {
  padding: 20px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.internship-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.internship-role {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-hi);
  text-decoration-color: var(--accent-ul);
  text-underline-offset: 3px;
}

.internship-meta {
  font-family: var(--mono);
  font-size: 0.70rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.internship-stack {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

/* remove the bracket pseudo elements and replace with plain italic style */
.internship-stack::before { content: '['; margin-right: 2px; opacity: 0.4; font-style: normal; }
.internship-stack::after  { content: ']'; margin-left:  2px; opacity: 0.4; font-style: normal; }

.internship-desc {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 12px;
}

.internship-desc:last-child { margin-bottom: 0; }


/* ── PROJECTS LIST ── */
.projects-list {
  list-style: none;
  padding: 0;
}

.projects-list li {
  padding: 12px 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.8;
  transition: padding-left 0.2s ease;
}

/* line only after each complete project */
.projects-list > li {
  border-bottom: 1px solid var(--border);
}

.projects-list > li:first-child {
  border-top: 1px solid var(--border);
}

.projects-list li:hover {
  padding-left: 6px;
}

.projects-list strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-hi);
  margin-bottom: 4px;
  text-decoration-color: var(--accent-ul);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
  cursor: default;
}

.projects-list li:hover strong {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
/* ── TECH TAG ── */
.tech {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  opacity: 0.8;
  letter-spacing: 0.04em;
  margin: 4px 0 8px;
}

.tech::before { content: '['; margin-right: 2px; opacity: 0.4; font-style: normal; }
.tech::after  { content: ']'; margin-left:  2px; opacity: 0.4; font-style: normal; }

/* ── GITHUB ACTIVITY ── */
#github-activity {
  list-style: none;
  padding: 0;
}

#github-activity li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

/* #github-activity li:first-child { border-top: 1px solid var(--border); } */

#github-activity li::before {
  content: '↗';
  color: var(--text-dim);
  opacity: 0.6;
  flex-shrink: 0;
}

/* ── LAST READ BOX ── */
.currently-box {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.currently-box p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text);
}

.currently-box p + p {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.currently-box a {
  color: var(--text-hi);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent-ul);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.currently-box a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
  opacity: 1;
}

/* ── PAGE FOOTER ── */
.page-footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.70rem;
  color: var(--text-dim);
}

.footer-quote {
  font-style: italic;
  opacity: 0.6;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── SELECTION ── */
::selection { background: var(--text-hi); color: var(--bg); }

/* ── LINKS ── */
a { color: var(--accent); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.6; }

/* ── FOOTER SOCIALS ── */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-socials a {
  font-family: var(--mono);
  font-size: 0.70rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: lowercase;
  transition: color 0.15s;
}

.footer-socials a:hover {
  color: var(--text-hi);
  opacity: 1;
}

.social-sep {
  color: var(--border);
  font-size: 0.70rem;
  user-select: none;
}