/* css styles */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: #1e2a38;
  border-radius: 12px;
  padding: 1.5rem;
  color: white;
}

/* Style inline code as pill badges */
code {
  background-color: #2e7d5e;
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin: 3px;
  display: inline-block;
}

/* ── Page background ───────────────────────────── */
body {
  background-color: #0f1923 !important;
  color: #e8eaf0 !important;        /* bright default text everywhere */
}

/* ── Navbar ────────────────────────────────────── */
.navbar {
  background-color: #0f1923 !important;
  border-bottom: 1px solid #ffffff18;
}

.navbar-brand,
.nav-link {
  color: #ffffff !important;
}

.nav-link:hover {
  color: #a78bfa !important;        /* purple hover, matches your original */
}

/* ── Page title & body text ─────────────────────── */
h1, h2, h3, h4, p, li {
  color: #e8eaf0 !important;
}

/* ── Cards ──────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: #1a2535 !important;
  border: 1px solid #ffffff15;
  border-radius: 12px;
  padding: 1.5rem;
  color: #e8eaf0 !important;
}

.card h3 {
  color: #ffffff !important;
  font-weight: 700;
}
.card h4 {
  color: #a78bfa !important;      /* purple accent for university name */
  font-size: 1rem;
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: #c8cdd8 !important;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.card-grid-stacked {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 700px;               /* optional: stops cards stretching too wide */
}

/* ── Pill badges (inline code) ───────────────────── */
code {
  background-color: #2e4a7a !important;   /* blue pill */
  color: #ffffff !important;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin: 3px;
  display: inline-block;
  font-family: inherit;                   /* removes monospace look */
}

/* ── Table of contents (right sidebar) ──────────── */
#TOC, .sidebar {
  background-color: #0f1923 !important;
}

#TOC a {
  color: #a78bfa !important;
}

/* ── Hero Banner ────────────────────────────────── */
.quarto-title-block {
  min-height: 40vh;                      /* takes up 40% of screen height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #0f1923;
  padding: 4rem 2rem;
}

.quarto-title h1 {
  font-size: clamp(2.5rem, 6vw, 5rem) !important;  /* scales with screen size */
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -1px;
  line-height: 1.1;
}

.quarto-title .description,
.quarto-title-meta {
  font-size: 1.2rem !important;
  color: #a78bfa !important;    /* purple accent */
  margin-top: 0.5rem;
}

.quarto-title h1 {
  font-size: clamp(2.5rem, 6vw, 5rem) !important;
  font-weight: 800;
  color: #ffffff !important;
  background: linear-gradient(90deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;  /* makes the text itself the gradient */
}

/* ── Hero two-column layout ─────────────────────── */
.hero-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem 1rem;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex-shrink: 0;
  display: flex;
  align-items: center;        /* keeps it vertically centered */
  justify-content: center;
}

/* ── Circle lives here now ───────────────────────── */
.image-circle {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #a78bfa;
  flex-shrink: 0;
}

.image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Contact Bar ────────────────────────────────── */
.contact-bar {
  display: flex;
  flex-direction: row;          /* force horizontal */
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;                  /* takes full available width */
}

.contact-bar span,
.contact-bar a {
  color: #a0c4c4 !important;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;         /* changed from flex to inline-flex */
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;          /* prevents text from wrapping */
}

.contact-bar a:hover {
  color: #ffffff !important;
}

.contact-bar i {
  font-size: 1.2rem;
}

/* ── Contact Bar (icons only, centered) ─────────── */
.contact-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.contact-bar span,
.contact-bar a {
  color: #a0c4c4 !important;
  font-size: 1.4rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.contact-bar a:hover {
  color: #ffffff !important;
}

/* ── Project Cards (whole card clickable) ────────── */
.project-card-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.project-card-link:hover .card {
  border-color: #a78bfa;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

.project-card h3 {
  color: #ffffff !important;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card h3 i {
  color: #ffffff !important;
}

.capstone-card {
  border-color: #a78bfa !important;
}

.capstone-badge {
  display: inline-block;
  margin-top: 0.8rem;
  background-color: #a78bfa;
  color: white;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* ── Experience Cards ────────────────────────────── */
.exp-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.2rem;
}

.exp-logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: #2a3a4a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
  color: #a78bfa;
}

.exp-content h3 {
  color: #ffffff !important;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.exp-content h4 {
  color: #a78bfa !important;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.exp-content p {
  color: #c8cdd8 !important;
  font-size: 0.9rem;
}

.exp-tools code {
  background-color: #2e4a7a !important;
  font-size: 0.78rem;
}

/* ── Education Cards (clickable) ─────────────────── */
.edu-card-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}

.edu-card-link:hover .card {
  border-color: #a78bfa;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

.edu-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.2rem;
}

.edu-logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: #2a3a4a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
  color: #a78bfa;
}

.edu-content {
  flex: 1;
}

.edu-content h3 {
  color: #ffffff !important;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.edu-content h4 {
  color: #a78bfa !important;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.edu-date {
  color: #8899aa !important;
  font-size: 0.85rem;
}

.edu-skills code {
  background-color: #2e4a7a !important;
  font-size: 0.78rem;
}

.edu-arrow {
  color: #a78bfa !important;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ── Section headings with icons ─────────────────── */
h2 i {
  color: #a78bfa;
  margin-right: 0.4rem;
}

/* ── See More Button ─────────────────────────────── */
.see-more-btn {
  display: inline-block;
  margin-top: 1rem;
  color: #a78bfa !important;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid #a78bfa;
  padding: 6px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.see-more-btn:hover {
  background-color: #a78bfa;
  color: #ffffff !important;
}
