/* css styles */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap");

/* =========================
   MODERN MONOCHROME PORTFOLIO
   Quarto + Zephyr Theme Override
   ========================= */

/* ---------- DESIGN SYSTEM ---------- */
:root {
  --bs-primary: #111111;
  --bs-link-color: #111111;
  --bs-link-hover-color: #444444;

  --text-color: #111111;
  --body-color: #222222;
  --muted: #666666;
  --bg-soft: #f7f7f7;
  --border-soft: #eaeaea;

  --font-main: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- BASE TYPOGRAPHY ---------- */
html,
body {
  font-family: var(--font-main);
}

body {
  color: var(--text-color);
  line-height: 1.7;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

p {
  color: var(--body-color);
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

/* ---------- CONTENT LINKS ---------- */
main a,
.content a,
.quarto-title-block a {
  color: var(--bs-link-color) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

main a:hover,
.content a:hover,
.quarto-title-block a:hover {
  color: var(--bs-link-hover-color) !important;
  border-bottom-color: rgba(0, 0, 0, 0.6);
}

/* Prevent decorative borders on non-text links */
.navbar a,
.btn,
.card a,
.quarto-grid-item a,
.listing a,
.social-icon-links a,
.footer-block a,
a:has(img) {
  border-bottom: none !important;
}

/* ---------- PROFILE IMAGE ---------- */
.about-image {
  width: 18rem !important;
  height: 18rem !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center top;
  display: block;
  margin: 0 auto;
}

/* ---------- NAVBAR ---------- */
.navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.navbar .navbar-brand,
.navbar .navbar-nav .nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  border-bottom: 1px solid transparent !important;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.navbar .navbar-nav .nav-link {
  display: inline-block;
  width: auto;
}

.navbar .navbar-brand:hover,
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--bs-link-hover-color) !important;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  border-bottom-color: currentColor !important;
}

/* ---------- MOBILE HAMBURGER MENU ---------- */
.navbar-toggler {
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  box-shadow: none;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%280,0,0,0.85%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  background-color: var(--text-color) !important;
  border-color: var(--text-color) !important;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background-color: #000000 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ---------- OPTIONAL SECTIONS ---------- */
.section {
  padding: 2rem;
  border-radius: 10px;
  background: var(--bg-soft);
}

/* ---------- SOCIAL ICON LINKS ---------- */
.social-icon-links {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 1.10rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.social-icon-links a,
.social-icon-links a:visited,
.social-icon-links a.link-primary,
.social-icon-links a.link-primary:visited,
.footer-block a,
.footer-block a:visited {
  color: var(--text-color) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-icon-links a:hover,
.social-icon-links a:focus,
.social-icon-links a.link-primary:hover,
.social-icon-links a.link-primary:focus,
.footer-block a:hover,
.footer-block a:focus {
  color: var(--bs-link-hover-color) !important;
  transform: translateY(-2px);
}

.social-icon-links a span,
.social-icon-links a strong {
  color: inherit !important;
}

.social-icon-links i,
.social-icon-links svg,
.social-icon-links .ai {
  font-size: 1.6rem;
}

/* ---------- FOOTER ---------- */
.footer-block {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-block a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
}

.footer-block svg,
.footer-block .ai,
.footer-block .fa-solid,
.footer-block .fa-regular,
.footer-block .fa-brands {
  font-size: 1.3rem;
}

/* ---------- LANDING PAGE HERO ---------- */
.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  grid-template-areas: "intro logo";
  align-items: center;
  gap: 4rem;
  margin-bottom: 5rem;
}

.site-hero > .site-intro {
  grid-area: intro;
  min-width: 0;
}

.site-hero > .hero-photo {
  grid-area: logo;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-hero > .hero-photo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

/* ---------- LANDING PAGE TITLE ---------- */
.site-title {
  color: var(--text-color);
  font-family: var(--font-main);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.site-title .nowrap {
  font-weight: 700;
}

/* ---------- QUARTO / ZEPHYR COLOR OVERRIDES ---------- */

/* Force monochrome Bootstrap/Zephyr link behavior */
:root {
  --bs-link-color: #111111;
  --bs-link-hover-color: #9a9a9a;
  --bs-navbar-color: #111111;
  --bs-navbar-hover-color: #9a9a9a;
  --bs-navbar-active-color: #9a9a9a;
  --bs-navbar-brand-color: #111111;
  --bs-navbar-brand-hover-color: #9a9a9a;
  --bs-nav-link-color: #111111;
  --bs-nav-link-hover-color: #9a9a9a;
}

/* Navbar site title: Raymond Parcon */
.navbar-brand,
.navbar-brand:link,
.navbar-brand:visited,
.navbar-brand .navbar-title,
.navbar-brand:hover,
.navbar-brand:focus,
.navbar-title,
.navbar-title:link,
.navbar-title:visited {
  color: var(--text-color) !important;
  border-bottom: none !important;
  text-decoration: none !important;
}

/* Navbar hover state: light gray, not blue */
.navbar-brand:hover,
.navbar-brand:focus,
.navbar-brand:hover .navbar-title,
.navbar-brand:focus .navbar-title,
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link.active,
.navbar .navbar-nav .show > .nav-link {
  color: #9a9a9a !important;
}

/* Keep navbar underline monochrome */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link.active {
  border-bottom-color: #9a9a9a !important;
}

/* Landing page title, including if wrapped in a link */
.site-title,
.site-title a,
.site-title a:link,
.site-title a:visited,
.site-title a:hover,
.site-title a:focus {
  color: var(--text-color) !important;
  border-bottom: none !important;
  text-decoration: none !important;
}

/* Quarto built-in footer links */
.nav-footer,
.nav-footer a,
.nav-footer a:link,
.nav-footer a:visited,
.page-footer,
.page-footer a,
.page-footer a:link,
.page-footer a:visited,
footer,
footer a,
footer a:link,
footer a:visited {
  color: var(--text-color) !important;
}

/* Make Quarto and CC footer links visibly clickable */
.nav-footer a,
.page-footer a,
footer a {
  text-decoration: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35) !important;
}

.nav-footer a:hover,
.nav-footer a:focus,
.page-footer a:hover,
.page-footer a:focus,
footer a:hover,
footer a:focus {
  color: #9a9a9a !important;
  border-bottom-color: #9a9a9a !important;
}

/* ---------- REMOVE UNDERLINE FROM FOOTER ICON LINKS ---------- */

.footer-block a,
.footer-block a:link,
.footer-block a:visited,
.footer-block a:hover,
.footer-block a:focus,
.nav-footer .footer-block a,
.page-footer .footer-block a,
footer .footer-block a {
  border-bottom: none !important;
  text-decoration: none !important;
}

.footer-block a:hover,
.footer-block a:focus,
.nav-footer .footer-block a:hover,
.page-footer .footer-block a:hover,
footer .footer-block a:hover {
  color: #9a9a9a !important;
  transform: translateY(-2px);
}

/* ---------- QUARTO LISTING PAGINATION ---------- */

.pagination {
  gap: 0.35rem;
}

.pagination .page-link {
  color: var(--text-color) !important;
  background-color: #ffffff !important;
  border: 1px solid #dddddd !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: 
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
  color: var(--text-color) !important;
  background-color: #f2f2f2 !important;
  border-color: #cfcfcf !important;
  box-shadow: none !important;
}

.pagination .page-item.active .page-link {
  color: #ffffff !important;
  background-color: var(--text-color) !important;
  border-color: var(--text-color) !important;
}

.pagination .page-item.disabled .page-link {
  color: #aaaaaa !important;
  background-color: #ffffff !important;
  border-color: #e5e5e5 !important;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .site-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "intro";
    text-align: center;
    
    gap: clamp(0.3rem, 4vw, 1rem);
  }

  .site-hero > .hero-photo {
    width: 100%;
  }

  .site-hero > .hero-photo img {
    width: 100%;

    max-width: min(80vw, 360px);

    height: auto;
    margin-inline: auto;
  }

  .site-title {
    font-size: clamp(3rem, 16vw, 5rem);
    text-align: center;
  }

  .social-icon-links {
    justify-content: center;
  }
}
