/* ==============================
   Theme Variables
   ============================== */
:root{
  --bg: #F5F9FF;
  --panel: #ffffff;
  --ink: #1c2a3a;
  --muted: #6b7a90;
  --brand: #89BFF5;
  --brand-strong: #5aa6f2;
  --brand-soft: #e8f2ff;
  --ring: rgba(90,166,242,.35);
  --radius: 16px;
}

html { scroll-behavior: smooth; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  background: var(--bg);
  color: var(--ink);
}

/* ==============================
   Navbar
   ============================== */
.navbar { border-bottom: 1px solid #e8eef7; }
.navbar-brand { color: var(--ink); }
.nav-link { color: var(--muted); }
.nav-link:hover, .nav-link:focus { color: var(--brand-strong); }

.btn-primary{
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}
.btn-outline-primary{
  color: var(--brand-strong);
  border-color: var(--brand-strong);
}
.btn-outline-primary:hover{
  background: var(--brand-strong);
  color:#fff;
}

.navbar .btn {
  margin-left: 1rem;
  padding: 0.375rem 0.75rem;
  vertical-align: middle;
}

.btn-resume {
  background: #2f65b3;
  border-color: #2f65b3;
  color: #fff;
}
.btn-resume:hover {
  background: #244f8c;
  border-color: #244f8c;
}

/* ==============================
   Hero
   ============================== */
.hero{
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  isolation: isolate;

  background:
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
    url("images/hero-map.jpg") center/cover no-repeat;
}

.eyebrow{
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
}
.cursor{
  display:inline-block;
  width:1px;
  height:1.2em;
  background: var(--ink);
  animation: blink .9s steps(2, start) infinite;
  margin-left: 3px;
}
@keyframes blink{ to { visibility: hidden; } }

/* ==============================
   Sections
   ============================== */
.section{ padding: 72px 0; }
.section-alt{ background: var(--brand-soft); }
.section-header{ text-align:center; margin-bottom: 28px; }

.section-title{
  display:inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border:1px solid #e7eef9;
  box-shadow: 0 1px 0 #f2f6fd;
}
.section-subtitle{ color: var(--muted); }

/* ==============================
   Project Filters
   ============================== */
.btn-filter{
  border:1px solid #d9e6f7;
  background:#fff;
  color: var(--muted);
  border-radius: 999px;
  padding:.35rem .9rem;
}
.btn-filter.active, .btn-filter:hover{
  background: var(--brand);
  color:#0b2440;
  border-color: transparent;
  box-shadow: 0 0 0 3px var(--ring);
}

/* ==============================
   Project Cards
   ============================== */
.card{
  border:1px solid #e6eef8;
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--panel);
}
.card-img-top{ aspect-ratio: 16/9; object-fit: cover; }
.card-title{ margin-bottom:.35rem; }
.card-text{ color: var(--muted); }

/* Hover effect for project cards */
.project-card .card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
  cursor: pointer;
}

.project-card:hover .card,
.project-card:focus-within .card {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(12, 41, 80, 0.18);
  border-color: var(--brand);
  background: #ffffff;
}

/* ==============================
   Skills
   ============================== */
.skill{
  background:#fff;
  border:1px solid #e6eef8;
  border-radius: 10px;
  padding: .8rem;
  text-align:center;
  box-shadow: 0 1px 0 #f1f5fb;
}

/* ==============================
   Footer
   ============================== */
.footer{
  padding: 64px 0;
  background: #fff;
  border-top:1px solid #e8eef7;
}

/* Footer attribution */
.footer .hero-credit{
  position: static;
  margin-top: 10px;
  margin-bottom: 0;
  padding: 0;
  font-size: 11px;
  color: #7a869a;
  background: none;
  border: none;
}
.footer .hero-credit a{
  color: #6c7a90;
  text-decoration: none;
}
.footer .hero-credit a:hover{ text-decoration: underline; }

.footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.2s ease;
}

/* ==============================
   Misc
   ============================== */
a:focus, button:focus, .btn:focus{
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

/* Portrait image */
.portrait-img {
  width: 80%;
  max-width: 320px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.portrait-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.easter{
  position: relative;
  margin-left:.35rem;
  text-decoration:none;
  opacity:.6;
  color:var(--muted);
  transition:transform .2s ease, opacity .2s ease, color .2s ease;
  cursor: help;
}
.easter:hover,
.easter:focus{ opacity:1; transform:rotate(9deg) scale(1.08); color:var(--brand-strong,#f072a6); }

/* single tooltip */
.easter::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: 125%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink,#222);
  color:#fff;
  font-size:.72rem;
  padding:.25rem .45rem;
  border-radius:6px;
  white-space: nowrap;
  opacity:0;
  pointer-events:none;
  transition: opacity .15s ease, transform .15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.easter:focus::after,
.easter:hover::after{
  opacity:1;
  transform: translateX(-50%) translateY(0);
}

/* tiny arrow */
.easter::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:115%;
  transform:translateX(-50%);
  border:6px solid transparent;
  border-top-color: var(--ink,#222);
  opacity:0;
  transition: opacity .15s ease;
}
.easter:hover::before,
.easter:focus::before{ opacity:1; }

/* motion/accessibility niceties */
@media (prefers-reduced-motion: reduce){
  .easter{ transition:none; }
  .easter::after{ transition:none; }
}
