/* ============================================================
   Konstantinos Diamantaras – Site Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy:       #0d1f3c;
  --deep:       #071428;
  --gold:       #c8a96e;
  --gold-light: #e8cfa0;
  --cream:      #fdfdfb;/*hsl(38, 41%, 95%);*/
  --warm-white: hsl(37, 67%, 100%);
  --muted:      hsl(218, 23%, 60%);/*hsl(218, 23%, 63%);*/
  --text:       hsl(216, 43%, 18%);/*hsl(216, 43%, 18%);*/
  --border:     rgba(200, 169, 110, 0.3);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--warm-white);
  color: var(--text);
  font-family: 'Libre Baskerville', Georgia, serif;
  overflow-x: hidden;
}

/* ============================================================
   LANGUAGE TOGGLE (fixed, top-right)
   ============================================================ */
.lang-toggle {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(7, 20, 40, 0.9);
  backdrop-filter: blur(12px);
}
.lang-btn {
  padding: 0.4rem 1rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
}
.lang-btn.active  { background: var(--gold); color: var(--deep); }
.lang-btn:hover:not(.active) { color: var(--gold-light); }

/* ============================================================
   SITE NAV (page tabs, top-left)
   ============================================================ */
.site-nav {
  position: fixed;
  top: 1.5rem;
  left: 2rem;
  z-index: 200;
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(7, 20, 40, 0.9);
  backdrop-filter: blur(12px);
}
.nav-btn {
  padding: 0.4rem 1.2rem;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--muted);
  /*font-family: 'DM Mono', monospace;*/
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}
.nav-btn:last-child { border-right: none; }
.nav-btn.active { background: var(--navy); color: var(--gold); }
.nav-btn:hover:not(.active) { color: var(--gold-light); background: rgba(200,169,110,0.05); }

/* ============================================================
   LANGUAGE VISIBILITY
   ============================================================ */
body.lang-en .lang-el { display: none !important; }
body.lang-el .lang-en { display: none !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--deep);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(13,31,60,0) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 70% 30%, rgba(200,169,110,0.06) 0%, transparent 60%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 4rem 5rem 6rem;
  position: relative;
  z-index: 2;
}
.hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.05;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero-name > span > span { display: block; font-style: italic; color: var(--gold-light); }
.hero-divider {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 2rem 0;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}
.hero-affiliation {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}
.hero-affiliation strong {
  color: var(--cream);
  font-weight: 600;
  display: block;
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}
.hero-affiliation .dept {
  color: var(--gold-light);
  font-style: italic;
}
.hero-affiliation .uni {
  color: var(--gold-light);
}
.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(200,169,110,0.25);
  color: var(--muted);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  text-transform: uppercase;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); background: rgba(200,169,110,0.05); }
.social-link svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

.hero-photo-side {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}
.photo-frame {
  position: relative;
  opacity: 0;
  animation: fadeIn 1s 0.6s forwards;
}
.photo-frame::before {
  content: '';
  position: absolute;
  top: -16px; right: -16px;
  width: 100%; height: 100%;
  border: 1px solid rgba(200,169,110,0.3);
  pointer-events: none;
}
.photo-frame::after {
  content: '';
  position: absolute;
  bottom: -16px; left: -16px;
  width: 60%; height: 60%;
  border-bottom: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
  pointer-events: none;
}
.photo-frame img {
  width: 340px;
  height: 420px;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(15%) contrast(1.05);
}

/* ============================================================
   PAGE HEADER (for inner pages)
   ============================================================ */
.page-header {
  background: var(--deep);
  padding: 7rem 6rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-header-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}
.page-header-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s forwards;
}
.page-header-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--cream);
  opacity: 0;
  animation: fadeUp 0.7s 0.25s forwards;
}
.page-header-title em { font-style: italic; color: var(--gold-light); }
.page-header-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 4rem;
}

/* ---------- Section ---------- */
.section { margin-bottom: 5rem; }
.section.animate-hidden { opacity: 0; transform: translateY(30px); }
.section.visible        { opacity: 1; transform: translateY(0);    transition: opacity 0.7s, transform 0.7s; }

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.section-num {
  /*font-family: 'DM Mono', monospace;*/
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  flex-shrink: 0;
}
.section-title {
  /*font-family: 'Cormorant Garamond', serif;*/
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

/* ---------- Timeline ---------- */
.timeline {
  border-left: 1px solid var(--border);
  padding-left: 2rem;
  margin-left: 1rem;
}
.timeline-item {
  position: relative;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(200,169,110,0.1);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem; top: 1.6rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
}
/*.timeline-year  { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.timeline-role  { font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 0.2rem; }
.timeline-place { font-style: italic; color: var(--muted); font-size: 0.9rem; }*/
.timeline-year  { font-size: 0.9rem; font-weight: bold; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.timeline-role  { font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: 0.2rem; }
.timeline-place { font-style: italic; color: var(--text); font-size: 0.9rem; }

/* ---------- Research cards ---------- */
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.research-card {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 1.8rem;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.research-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.research-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height 0.3s;
}
.research-card:hover::before { height: 100%; }
.research-icon  { font-size: 1.4rem; margin-bottom: 0.8rem; }
.research-topic { font-size: 1.25rem; font-weight: 900; color: var(--navy); margin-bottom: 0.5rem; }
.research-desc  { font-size: 0.9rem; color: var(--text); line-height: 1.6; }

/* ---------- Highlight box ---------- */
.highlight-box {
  background: var(--navy);
  color: var(--cream);
  padding: 2rem 2.5rem;
  margin-top: 2rem;
  border-left: 3px solid var(--gold);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
}
.highlight-box strong { color: var(--gold-light); font-style: normal; }

/* ============================================================
   PUBLICATIONS PAGE
   ============================================================ */
.pub-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.pub-filter-btn {
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
}
.pub-filter-btn:hover,
.pub-filter-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(200,169,110,0.06); }

.pub-list { display: flex; flex-direction: column; gap: 1rem; }
.pub-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.25s, transform 0.25s;
}
.pub-item:hover { border-left-color: var(--gold); transform: translateX(4px); }
.pub-item.hidden { display: none; }

.pub-type-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background-color: var(--gold);
  color: var(--warm-white);
  border: 1px solid var(--border);
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.7rem;
}
.pub-title { font-weight: 700; color: var(--navy); font-size: 1rem; line-height: 1.45; margin-bottom: 0.4rem; }
.pub-authors {
  font-size: 0.9rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 0.3rem; }
.pub-venue { font-size: 0.9rem; color: var(--text); }
.pub-venue em { font-style: italic; }
.pub-year {
  font-size: 0.9rem;
  color: var(--gold);
  float: right;
  margin-top: 0.1rem;
  font-weight: 600;}

.stat-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.stat-box {
  text-align: center;
  padding: 0.5rem 0.7rem;
  background: var(--navy);
  border: 1px solid var(--border);
  flex: 1;
  min-width: 150px;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  display: block; }

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-grid { display: flex; flex-direction: column; gap: 1.2rem; }
.project-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 1.6rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.5rem;
  align-items: start;
  transition: transform 0.25s, box-shadow 0.25s;
}
.project-card:hover { transform: translateX(5px); box-shadow: -4px 0 0 var(--gold); }
.project-card.member { border-left-color: var(--muted); }
.project-card.member:hover { box-shadow: -4px 0 0 var(--muted); }

.project-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding-top: 0.2rem;
}
.project-card.member .project-year { color: var(--muted); }
.project-title { font-weight: 700; color: var(--navy); font-size: 0.97rem; line-height: 1.45; margin-bottom: 0.3rem; }
.project-role-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border: 1px solid;
  margin-bottom: 0.5rem;
}
.project-card:not(.member) .project-role-badge { color: var(--gold); border-color: var(--border); }
.project-card.member .project-role-badge { color: var(--muted); border-color: rgba(138,154,181,0.3); }
.project-desc {
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.6;
  font-style: italic; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--deep);
  color: var(--muted);
  text-align: center;
  padding: 2.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--border);
}
footer .gold { color: var(--gold); }
footer .orcid { color: rgba(138,154,181,0.5); font-size: 0.65rem; margin-top: 0.5rem; display: block; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo-side { padding: 2rem; order: -1; }
  .photo-frame img { width: 200px; height: 250px; }
  .hero-text { padding: 5rem 2rem 3rem; }
  .main-content { padding: 3rem 1.5rem; }
  .research-grid { grid-template-columns: 1fr; }
  .page-header { padding: 6rem 2rem 3rem; }
  .site-nav { left: 1rem; top: 1rem; }
  .lang-toggle { right: 1rem; top: 1rem; }
  .stat-row { gap: 1rem; }
  .project-card { grid-template-columns: 1fr; gap: 0.5rem; }
}
