/* =====================================================================
   components.css — Section components
   Extracted from the old inline <style> block for easier editing.
   Loaded AFTER main.css and media.css so these rules win where intended
   (footer, academic-title, contact form, etc.). Depends on tokens.css.

   Contents:
     1. Social icons
     2. Research Interests
     3. Featured Projects (+ CiteOut cover)
     4. Publications
     5. References
     6. Footer
     7. Core Competencies
     8. Contact form
   ===================================================================== */

/* --- 1. Social Icons --- */
.social-links-row img {
  width: 24px;
  transition: transform 0.3s ease;
}
.social-links-row img:hover {
  transform: translateY(-3px) scale(1.12);
}

/* Section eyebrow shared by the academic-style headings */
.academic-title {
  text-align: left;
  margin-bottom: 48px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--pine);
  position: relative;
}
.academic-title::after { display: none; } /* drop the centered tick for left-aligned titles */

/* --- 2. Research Interests Section --- */
.interests-section { padding: 96px 0; background-color: var(--mist); }
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.interest-item {
  background: #fff;
  padding: 34px 28px;
  border-radius: 14px;
  text-align: left;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(12,61,46,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.interest-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(var(--pine), var(--h2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}
.interest-item:hover { transform: translateY(-8px); box-shadow: 0 16px 34px rgba(12,61,46,0.12); border-color: transparent; }
.interest-item:hover::before { transform: scaleY(1); }
.interest-icon { font-size: 2.2rem; margin-bottom: 16px; }
.interest-item h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em; }
.interest-item p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/* --- 3. Featured Projects Section --- */
.digital-projects-section { padding: 96px 0; background-color: var(--paper); }
.project-showcase {
  display: flex; align-items: stretch; gap: 0; background: #fff;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(12,61,46,0.10);
}
.project-image-wrapper { flex: 1.1; overflow: hidden; min-height: 320px; }
.project-image-wrapper img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease;
}
.project-showcase:hover .project-image-wrapper img { transform: scale(1.04); }
.project-details { flex: 1; padding: 46px; display: flex; flex-direction: column; justify-content: center; }
.project-tag { background: var(--h2-soft); color: var(--pine); margin-bottom: 16px; }
.showcase-title { font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); margin-bottom: 16px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.showcase-descr { color: var(--muted); line-height: 1.75; font-size: 0.98rem; margin-bottom: 26px; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tech-item { font-family: var(--font-mono); background: var(--mist); color: var(--pine); font-size: 0.75rem; padding: 6px 12px; border-radius: 6px; font-weight: 500; border: 1px solid var(--line); }
.view-project-btn { align-self: flex-start; background-color: var(--pine); color: #fff; text-decoration: none; padding: 13px 26px; border-radius: 8px; display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; box-shadow: 0 8px 20px rgba(12,61,46,0.18); transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease; }
.view-project-btn:hover { background-color: var(--h2); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(14,157,118,0.30); }
.showcase-stack { display: flex; flex-direction: column; gap: 32px; }
.project-showcase.reverse { flex-direction: row-reverse; }

/* CiteOut branded cover — self-contained, no external asset */
.citeout-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(14,157,118,0.55), transparent 55%),
    linear-gradient(135deg, #0c3d2e 0%, #0b1f19 100%);
  overflow: hidden;
}
.citeout-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 100% 30px;
  opacity: 0.5;
}
.cover-quote {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--h2);
  margin-bottom: 4px;
}
.cover-brand {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
}
.cover-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.7);
  position: relative;
}
.cover-styles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  position: relative;
}
.cover-styles span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
}
@media (max-width: 992px) {
  .project-showcase,
  .project-showcase.reverse { flex-direction: column; }
  .project-image-wrapper { min-height: 240px; }
  .project-details { padding: 34px; }
}

/* --- 4. Publications Section --- */
.research-section { padding: 96px 0; background-color: var(--mist); }
.research-list { display: flex; flex-direction: column; gap: 20px; position: relative; }
.research-item {
  display: flex; gap: 36px; background: #fff; padding: 32px 34px; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(12,61,46,0.04);
  border-left: 3px solid transparent; transition: transform 0.3s ease, border-left-color 0.3s ease, box-shadow 0.3s ease;
}
.research-item:hover { transform: translateX(8px); border-left-color: var(--h2); box-shadow: 0 14px 30px rgba(12,61,46,0.12); }
.research-year { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 600; color: var(--pine); min-width: 72px; padding-top: 2px; }
.research-info { flex: 1; }
.pub-tag { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; padding: 4px 11px; border-radius: 5px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; display: inline-block; }
.journal-tag { background: var(--h2-soft); color: #0b6b50; }
.conference-tag { background: #e5edf7; color: #275ea3; }
.preprint-tag { background: #f6ecd6; color: #9a6b12; }
.msc-thesis-tag { background: #ece2f5; color: #6a3f96; }
.res-title { font-family: var(--font-display); font-size: 1.22rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; line-height: 1.38; letter-spacing: -0.01em; }
.res-authors { color: var(--supportive-text-color); margin-bottom: 4px; font-size: 0.94rem; }
.res-authors strong { color: var(--pine); }
.res-journal { color: var(--muted); font-style: italic; margin-bottom: 16px; font-size: 0.92rem; }
.res-link { color: var(--pine); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; transition: color 0.2s ease, gap 0.2s ease; }
.res-link:hover { color: var(--h2); gap: 11px; }
@media (max-width: 768px) {
  .research-item { flex-direction: column; gap: 12px; padding: 26px 22px; }
  .research-year { min-width: auto; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
}

/* --- 5. References Section --- */
.references-section { padding: 96px 0; background-color: var(--paper); }
.references-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.reference-item {
  background: #fff; padding: 34px 26px; border-radius: 14px; text-align: center;
  border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(12,61,46,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid var(--pine);
}
.reference-item:hover { transform: translateY(-8px); box-shadow: 0 16px 34px rgba(12,61,46,0.12); }
.ref-icon { font-size: 2.2rem; margin-bottom: 16px; }
.ref-name { font-family: var(--font-display); font-size: 1.16rem; color: var(--ink); margin-bottom: 8px; font-weight: 600; letter-spacing: -0.01em; }
.ref-title { color: var(--supportive-text-color); font-size: 0.92rem; margin-bottom: 5px; font-weight: 500; }
.ref-org { color: var(--muted); font-size: 0.88rem; margin-bottom: 18px; font-style: italic; }
.ref-email {
  display: inline-block; color: var(--pine); font-weight: 500; text-decoration: none; font-size: 0.82rem;
  font-family: var(--font-mono);
  background-color: var(--h2-soft); padding: 8px 15px; border-radius: 6px; transition: background-color 0.3s ease, color 0.3s ease;
}
.ref-email:hover { background-color: var(--pine); color: #fff; }

/* --- 6. Footer --- */
.footer {
  background-color: var(--ink);
  color: rgba(255,255,255,0.72);
  text-align: center;
  padding: 34px 0;
  border-top: 3px solid var(--h2);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* --- 7. Core Competencies --- */
.skills-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--h2);
  margin-bottom: 18px;
}
.competency-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 26px;
  box-shadow: 0 6px 20px rgba(12,61,46,0.05);
}
.competency-group {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.competency-group:last-child { border-bottom: none; }
.competency-cat {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 12px;
}
.competency-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.competency-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}
.competency-item svg {
  flex-shrink: 0;
  color: var(--h2);
  padding: 7px;
  box-sizing: content-box;
  background: var(--h2-soft);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.competency-item:hover { color: var(--pine); }
.competency-item:hover svg { background: var(--pine); color: #fff; }

/* Send button stays in the primary green family */
.btn-red {
  background-color: var(--pine) !important;
  border-color: var(--pine) !important;
}
.btn-red:hover {
  background-color: var(--h2) !important;
  border-color: var(--h2) !important;
}

/* --- 8. Contact form inputs — tuned to the palette --- */
.contact form .input-box input,
.contact form textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact form .input-box input:focus,
.contact form textarea:focus {
  outline: none;
  border-color: var(--h2);
  box-shadow: 0 0 0 3px rgba(14,157,118,0.14);
}
