body {
  font-family: "Inter", sans-serif;
  background-color: #1b1c1b; 
}

/* ---- NAVBAR ----*/
.navbar {
  display: flex;
  align-items: center;

  background-color: #273527;
  padding: 2rem 3rem;   /* scales naturally */
  font-size: 1.75rem;   /* overall scale control */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

html {
  scroll-behavior: smooth;
}


/* Branding */
.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ffffff;
}

.nav-title {
  font-size: 0.9rem;
  color: #c0c0c0;
}

/* Push links to center */
.nav-links {
  display: flex;
  gap: 3rem;
  margin: 0 auto;   /* THIS is the key */
}
/* Link styling */
.nav-link {
  color: #c0c0c0;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: white;
}

/* Active page */
.nav-link.active {
  /* font-weight: bold; */
  color: white;
}



.navbar a,
.navbar a:link,
.navbar a:visited,
.navbar a:hover,
.navbar a:active,
.navbar a:focus {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #bfc3bf;
  font-weight: bold;
  text-decoration: none;
}

.navbar a:hover {
  color: #ffffff;
}

:root {
  --nav-height: 0px;
}

#projects,
#experience {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}


/*---- ABOUT SECTION ---- */

.about-section {
  padding: 3rem 3rem 0rem;
  padding-top: 150px; /* match navbar height */
}

.about-container {
  display: flex;
  gap: 2rem;
  max-width: 150vw;
  width: 100%;
  margin: 0 auto;

}

/* Left: About text (2/3) */
.about-text {
  flex: 2;
}

.about-text h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #aab3aa;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  color: #cfd3cf;
}

/* Interests Header */
.about-text h4 {
  margin-top: 3rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aab3aa;
}

/* Interests List */
.about-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-text li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #cfd3cf;
}

.about-text li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #8fa58f;
}

/* Right: Links (1/3) */
.about-links h1 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}
.about-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-links a {
  text-decoration: none;
  color: #cfd3cf;
  font-weight: 600;
  font-size: 1rem;
}


/* ---------- Links Formatting ---------- */
.link-row {
  display: flex;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}

/* Labels: bold */
.link-label {
  color: #cbd5e1;
  font-weight: 700;
}

/* Links: normal weight + dotted underline */
.link-row a {
  color: #cbd5e1;
  font-weight: 500;
  text-decoration: underline;
  /* text-decoration-style: dotted; */
  text-underline-offset: 3px;
}

.link-row a:hover {
  color: #ffffff;
}

.link-text {
  color: #cbd5e1;
  font-weight: 500;
}


/* Box styling for About + Contact */
.about-text,
.about-links {
  background: rgba(79, 93, 74, 0.28);
  backdrop-filter: blur(2px); /* olive tint */
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 6px; /* sharp corners */
}


/* Copy button */
.copy-btn {
  margin-left: auto; /* pushes icon to the right */
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.6;
  color: #cbd5e1;
}

.copy-btn:hover {
  opacity: 1;
  color: #ffffff;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.copy-icon {
  width: 1rem;
  height: 1rem;
  fill: #cbd5e1; /* icon color */
  transition: fill 0.2s ease;
}

.copy-btn:hover .copy-icon {
  fill: #ffffff;
}


/* Toast notification */
.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;

  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  font-size: 0.85rem;

  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  width: min(60vw, 14rem); /* responsive, caps width */
  z-index: 9999;
}

.toast {
  width: 100%; /* all toasts same width */
  box-sizing: border-box;

  background: rgba(30, 30, 30, 0.97);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.15);

  font-size: 0.85rem; 
  opacity: 50;
  transform: translateY(8px);
  animation: toast-in 0.25s ease forwards;
}


@keyframes toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ---------- About Tabs ---------- */
.about-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.about-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #aab3aa;
  cursor: pointer;
}

.about-tab.active {
  color: #ffffff;
  border-bottom: 2px solid #8fa58f;
}

/* ---------- Tab Content ---------- */
.about-tab-content {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}

.about-tab-content.active {
  display: flex;
}
/* ---------- Coursework Formatting ---------- */
.course-group {
  margin-bottom: 1.25rem;
}

.course-group h5 {
  margin: 0 0 0.4rem 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa58f;
}

.course-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.course-group li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.95rem;
  color: #cfd3cf;
  margin-bottom: 0.35rem;
}

.course-group li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #8fa58f;
}


/* ---------- PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;

  max-width: 90vw;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  margin-top: 2.5rem;
}

/* ---- Color Theme Variables -- */
:root {
  --olive-dark: #4f5d4a;
  --olive-mid: #6b7a63;
  --olive-light: #8f9b87;

  --gray-dark: #1f1f1f;
  --gray-mid: #3a3a3a;
  --gray-light: #bfc3bf;

  --white: #ffffff;
}


.project-card {
  background: rgba(79, 93, 74, 0.28);
backdrop-filter: blur(2px); /* olive-tinted translucency */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;

  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.project-date {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border-radius: 4px;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.project-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--olive-dark), var(--gray-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  background: rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.projects-header {
  /* max-width: 10vw; */
  margin: 4rem auto 3rem auto;
  padding: 2rem 2.5rem;

  background: #273527; /* olive tint */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;

  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  justify-content: space-between;
}

.projects-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.projects-header span {
  font-size: 0.95rem;
  color: #bfc3bf;
}

.project-header h3 {
  color: #cfd3cf;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.project-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.project-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cfd3cf;
  margin-bottom: 1.25rem;
}

.project-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr; /* always two equal slots */
  gap: 0.75rem;
  margin-top: auto;
}


.project-buttons a {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  font-weight: 500;

  border-radius: 4px;
  text-decoration: none;

  background: rgba(255, 255, 255, 0.08);
  color: #cfd3cf;

  transition: background 0.2s ease, color 0.2s ease;
}

.project-buttons a:hover {
  background: var(--olive-mid);
  color: #ffffff;
}

/* Disabled / Private Repo Button */
.repo-disabled {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  font-weight: 500;

  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #9aa19a;
  background: transparent;

  cursor: default;
}

.button-placeholder {
  visibility: hidden;
}


.project-tags span {
  font-size: 0.7rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-light);
}

.project-tags {
  background: rgba(0, 0, 0, 0.15);
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}


/* ---------- Experience Section Wrapper ---------- */
#experience {
  margin: 4rem 0;
}

/* ---------- Experience Header Box ---------- */
.experience-header-box {
  
  
  margin: 0 auto 1.5rem auto;
  padding: 2rem 2.5rem;

  background: #273527;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;

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

.experience-header-box h2 {
  margin: 0;
  font-size: 2rem;
  color: #ffffff;
}

.experience-header-box span {
  font-size: 0.95rem;
  color: #bfc3bf;
}

/* ---------- Cards Container ---------- */
.experience-section {
  max-width: 90vw;
  margin: 0 auto;
}

/* ---------- Individual Experience Card ---------- */
.experience-card {
  background: rgba(79, 93, 74, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;

  padding: 2rem;
  margin-bottom: 1.25rem;
  max-width: 85vw;
  margin: 0 auto 1.25rem auto;

}

/* ---------- Card Header Row ---------- */
.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.experience-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #ffffff;
}

.experience-header span {
  font-size: 0.9rem;
  color: #bfc3bf;
}

/* ---------- Card Description ---------- */
.experience-card p {
  margin: 0;
  line-height: 1.6;
  color: #bfc3bf;
}

.experience-bullets {
  margin: 0;
  padding-left: 1.25rem;
}

.experience-bullets li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  color: #cfd3cf;
  font-size: 0.95rem;
}
