/* css styles */

/* ── Global Font ────────────────────────────────── */
body, h1, h2, h3, h4, h5, h6, p, li, a, span, td, th, blockquote {
  font-family: "Times New Roman", Times, serif !important;
}

.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;
}

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

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

.nav-link:hover {
  color: #a78bfa !important;
}

/* ── 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;
  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;
}

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

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

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

/* ── Hero Banner ────────────────────────────────── */
.quarto-title-block {
  min-height: 40vh;
  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;
  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;
  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;
}

/* ── 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;
  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;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

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

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

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

/* Project Grid */
.projects-intro {
  font-size: 1.05rem;
  color: #c8cdd8;
  max-width: 750px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.project-card {
  background-color: #1a2535;
  border: 1px solid #ffffff15;
  border-radius: 12px;
  padding: 1.8rem;
  color: #e8eaf0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #a78bfa;
}

.project-card h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.project-card h4 {
  color: #a78bfa;
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.project-card p {
  color: #c8cdd8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-links {
  margin-top: 1.2rem;
}

.project-links .btn {
  background-color: #2e4a7a;
  color: #ffffff;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
}

.project-links .btn:hover {
  background-color: #a78bfa;
  color: #ffffff;
}