/* ============================================================
   MAIN STYLESHEET
   ============================================================
   This file controls how the page looks (colors, spacing, fonts).
   The overlay pop-up has its own file: overlay.css
   ============================================================ */


/* ---------- COLOR PALETTE ----------
   Change these hex codes to change the site's colors.
   They're used everywhere via var(--name).
*/
:root {
  --teal:        #2E8B9B;   /* main accent color */
  --teal-light:  #3DA5B8;   /* lighter teal */
  --ink:         #111;      /* main text color */
  --ink-soft:    #555;      /* secondary text */
  --ink-faint:   #999;      /* faint text (dates, labels) */
  --bg:          #ffffff;   /* page background */
  --card:        #f7f7f5;   /* card background */
  --card-hover:  #f0efeb;   /* card background on hover */
  --border:      #ececec;   /* card borders */
}


/* ---------- BASIC RESETS ----------
   Removes default browser spacing so we can control it ourselves.
*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ---------- BODY ---------- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding: 3rem 1.25rem 4rem;   /* top, sides, bottom */
}


/* ---------- LAYOUT WRAPPER ----------
   Limits the page width to 520px and centers it.
*/
.wrap {
  max-width: 520px;
  margin: 0 auto;
}


/* ============================================================
   HEADER (top of page: avatar, name, bio)
   ============================================================ */

.header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* The circular initials at the top */
.avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Your name (big heading) */
h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

/* Handle in teal */
.handle {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Bio paragraph */
.bio {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto;
}

/* Location badge with the dot */
.location {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.location::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}


/* ============================================================
   SECTIONS (Experience, Education, etc.)
   ============================================================ */

.section {
  margin-bottom: 2rem;
}

/* The small uppercase label above each section */
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

/* Container that stacks cards vertically */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}


/* ============================================================
   CLICKABLE CARDS (Experience, Education entries)
   ============================================================ */

.card {
  width: 100%;
  text-align: left;
  padding: 0.95rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s ease;
  display: block;
  text-decoration: none;
}

.card:hover {
  background: var(--card-hover);
  border-color: var(--teal);
  transform: translateY(-1px);
}

/* Top row of a card: title on left, date on right */
.card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.card-title {
  font-size: 0.92rem;
  font-weight: 500;
}

.card-meta {
  font-size: 0.72rem;
  color: var(--ink-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Subtitle (the organisation name) */
.card-sub {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}


/* ============================================================
   EXTERNAL LINK BUTTONS (Email, LinkedIn at top of page)
   ============================================================ */

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.18s ease;
}

.link-card:hover {
  background: var(--card-hover);
  border-color: var(--teal);
  transform: translateY(-1px);
}

/* The arrow on the right side of link buttons */
.link-arrow {
  color: var(--ink-faint);
  transition: transform 0.18s ease, color 0.18s ease;
}

.link-card:hover .link-arrow {
  color: var(--teal);
  transform: translateX(2px);
}


/* ============================================================
   LANGUAGES (3-column grid of small boxes)
   ============================================================ */

.langs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.lang {
  padding: 0.7rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.lang:hover {
  background: var(--card-hover);
  border-color: var(--teal);
  transform: translateY(-1px);
}

.lang-name {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.lang-level {
  font-size: 0.68rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ============================================================
   TAGS (Skills, Certifications, Honors)
   ============================================================ */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.4rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;     /* big number = pill shape */
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 400;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.tag:hover {
  background: var(--card-hover);
  border-color: var(--teal);
  color: var(--teal);
}

/* "Featured" tags are bold black to stand out */
.tag.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tag.featured:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}


/* ============================================================
   PROJECTS PLACEHOLDER (the dashed "Coming soon" box)
   ============================================================ */

.project-placeholder {
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 10px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

footer .domain {
  color: var(--teal);
}


/* ============================================================
   MOBILE ADJUSTMENTS
   ============================================================
   These rules only apply when the screen is narrower than 420px
   (i.e. on phones).
*/
@media (max-width: 420px) {

  body {
    padding: 2rem 1rem 3rem;
  }

  /* Show languages in 2 columns instead of 3 on small screens */
  .langs {
    grid-template-columns: 1fr 1fr;
  }

}
