/* ---------- Font Imports ---------- */
@font-face {
  font-family: "Highway";
  src: url("./HWYGOTH.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir";
  src: url("./Avenir.ttc") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base look ---------- */
:root{
  --font: 'Avenir';
  --bg: #ffffff;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --accent: #659577;
  --accent-dark: #3b674e;
  --border: rgba(46, 46, 46, 0.15);
}

html {
  scroll-behavior: smooth; /* smooth scrolling */
}

body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Avenir';
  padding-top: 90px;  /* adjust if needed */
}

/* Optional: nicer headings */
h1 {
  font-family: 'Highway';
  letter-spacing: -0.02em;
}

h2, h3 {
  font-family: 'Avenir';
  letter-spacing: -0.02em;
}

/* ---------- Navbar ---------- */
.navbar{
  font-family: 'Highway';
  border: 1px solid var(--border);
  background: rgba(185, 185, 185, 0.05) !important;
  backdrop-filter: blur(8px);

  position: fixed;
  top: 12px;
  left: 20px;
  right: 20px;
  width: auto;

  z-index: 9999;  /* <— important */
}

.navbar-nav{
  gap: 8px;
}

.navbar .nav-link{
  border-radius: 999px;
  padding: .4rem .75rem;
  margin-right: .25rem;
}

.navbar .nav-link:hover{
  background: rgba(46, 46, 46, 0.15);
  color: var(--accent);
}

.navbar .nav-link.active{
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.navbar .nav-link:not(.active):hover{
  background: rgba(46, 46, 46, 0.15);
  color: var(--accent);
}


/* ---------- Accent Outline Button ---------- */
.btn-home {
  color: var(--accent);
  border: 1.5px solid var(--accent);
  background-color: transparent;

  padding: 0.5rem 1.1rem;          /* more space */
  border-radius: 999px;            /* pill shape */
  font-weight: 500;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

.btn-home:hover {
  color: #ffffff;
  background-color: var(--accent-dark);
  border-color: var(--accent);
  transform: translateY(-1px);     /* subtle lift */
}

.btn-home:focus,
.btn-home:active {
  color: #ffffff;
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 0.25rem rgba(129, 176, 147, 0.35);
  transform: translateY(0);
}


/* ---------- Cards ---------- */
.card{
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(46, 46, 46, 0.15);
}

.card a{
  text-decoration: none;
}

.card a:hover{
  text-decoration: underline;
}

.card-img-top{
  background: #eef2ff;
  color: var(--accent);
}

/* Buttons */
.btn-primary{
  border-radius: 999px;
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover{
  background-color: var(--accent);
  border-color: var(--accent-dark);
}

.home-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 992px){
  .home-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* Home Tile */
#home {
  scroll-margin-top: 72px;
}

.home-tile{
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(17,24,39,0.10);
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.home-tile:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(17,24,39,0.12);
}

.home-tile img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.home-tile-caption{
  padding: 10px 12px;
}

.experience-logo{
  width: 120px;
  min-width: 120px;
  height: 120px;
  border-radius: 16px;
  border: 1px solid rgba(17,24,39,0.10);
  background: #fff;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* IMPORTANT: anchor should not change sizing */
.experience-logo-link{
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color:var(--accent);
}

.experience-logo-link:link {
  color: var(--accent);
}

.experience-card a {
  color: var(--accent) !important;
}

.experience-card a:hover {
  color: var(--accent-dark) !important;
}

/* IMPORTANT: override any global img rules */
.experience-logo-img{
  max-width: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  display: block;
  padding: 10px;
}

.experience-logo-placeholder {
  width: 100%;
  height: 100%;
  background: #f3f4f6;
}

.experience-card a {
  text-decoration: underline;
}

.chip-row{
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}

.chip{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.5;
  border: 1px solid rgba(17,24,39,0.12);
  background: rgba(194, 218, 255, 0.08);   /* Bootstrap primary-ish tint */
  color: #000000;                      /* Bootstrap primary */
}

.chip a{
  color: var(--accent);  /* keep chip text color */
  text-decoration: none;
}

.chip a:hover{
  color: var(--accent-dark);
  text-decoration: underline;
}

.card-title{
  color: var(--accent);
}

.card-title:hover{
  color: var(--accent-dark);
}

.home-carousel-img{
  height: 360px;        /* adjust if you want */
  object-fit: contain;  /* shows full image */
  background: #f8f9fa;  /* nice letterbox */
  border-radius: 16px;
}

.skill-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 992px){
  .skill-grid{
    grid-template-columns: 1fr 1fr; /* 2-col on desktop */
  }
}

.skill-pill{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.skill-meter{
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,0.12);
  background: rgba(17,24,39,0.04);
  color: rgba(17,24,39,0.85);
}

/* Slightly stronger as proficiency increases */
.skill-meter.skill-literate{
  opacity: 0.85;
}

.skill-meter.skill-conversational{
  opacity: 0.95;
  font-weight: 600;
}

.skill-meter.skill-fluent{
  opacity: 1;
  font-weight: 700;
}

/* Horizontal wrapping row */
.skill-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Skill name (row 1) */
.skill-name{
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
  text-align: center;
}

/* Fluency (row 2) */
.skill-proficiency{
  margin-top: 4px;
  font-size: 0.75rem;
  opacity: 0.75;
}

/* Optional: subtle emphasis by fluency */
.skill-chip:has(.skill-proficiency:contains("Fluent")){
  font-weight: 700;
}

.contact-section {
  padding: 2rem 0;
}

.contact-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin-bottom: 1.25rem;
}

.contact-heading {
  font-family: 'Highway';
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item a {
  opacity: 0.85;
}

.contact-item a:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .contact-row {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

.detail-link a {
  color: var(--accent);
  text-decoration: underline;
}

.detail-link a:visited {
  color: var(--accent);
}

/* hover for BOTH visited and unvisited */
.detail-link a:hover,
.detail-link a:visited:hover {
  color: var(--accent-dark);
}