* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html{
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

:root{
  --bg: #000000;
  --panel: #0b0c0f;
  --text: #f2f4f8;
  --muted: #b3b9c4;
  --border: #232733;
  --accent: #8ab4ff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.55);
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}


img{max-width:100%; height:auto; display:block;}

a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER (premium academic) */
.top{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0,0,0,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-row{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 0 16px;
  gap: 14px;
}

.brand{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.brand-topline{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.brand-topline::-webkit-scrollbar{
  display: none;
}

.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  max-width: 880px;
}

.brand-title{
  font-weight: 850;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: clamp(11px, 0.95vw, 13px);
  color: var(--text);
  white-space: nowrap;
}

.brand-subtitle{
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.3px;
  margin-top: 2px;
  white-space: nowrap;
}

.nav{
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  margin: 0 -2px;
  scrollbar-width: thin;
}

.nav a{
  color: rgba(255,255,255,0.72);
  font-weight: 650;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav a:hover{
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}

/* HERO */
.hero{ padding: 80px 0 60px; }

.statement-block{
  width: min(980px, 100%);
  margin: 0 auto;
}

.hero-separator{
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 22px;
}

.statement-title{
  margin: 0 0 26px 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  text-align: justify;
  text-align-last: left;
  letter-spacing: 2px;
}

.statement-subtitle{
  margin: 0 0 18px;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts{
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

/* SECTIONS */
.section{
  padding: 60px 0;
  border-top: 1px solid var(--border);
  background: #000000;
  scroll-margin-top: 130px;
}
.section.alt{ background: #000000; }

.hero{
  scroll-margin-top: 130px;
}

h2{
  font-size: 28px;
  margin: 0 0 20px;
}

.grid{
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.avatar{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 700;
}

/* LOCATION */
.location{
  display: grid;
  gap: 20px;
  grid-template-columns: 360px 1fr;
}

.map iframe{
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 12px;
}

/* SCIENTIFIC COMMITTEE + COORDINATION TEAM */
.committee-grid{
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.person{
  display: grid;
  gap: 16px;
  grid-template-rows: auto 1fr;
  align-content: start;
  color: inherit;
}

.person-media{
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.person-photo{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 12px;
  border: 1px solid var(--border);
}


.person-photo--bogdan{
  object-position: 50% 50%;
}

.person-photo--stefan{
  object-position: 56% 18%;
}

.person-media--stefan::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(12% 16% at 19% 17%, rgba(0,0,0,0.98) 0 52%, rgba(0,0,0,0) 78%);
}

/* placeholder (cand nu ai poza) */
.person-initials{
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 42px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.80);
}

.person-text{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.person-title{
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0;
}

.person-name{
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.person-role{
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
}

/* card clickabil */
.person-link{
  display: grid;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.person-link:hover{
  transform: translateY(-4px);
  border-color: rgba(138,180,255,0.55);
  text-decoration: none;
}

/* BIO PAGE */
.bio-page{
  padding: 80px 0;
}

.bio-container{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 60px;
  align-items: start;
}

.bio-photo{
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.bio-photo-frame{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.bio-photo-frame--stefan::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(12% 16% at 19% 17%, rgba(0,0,0,0.98) 0 52%, rgba(0,0,0,0) 78%);
}

.bio-photo--grayscale{
  filter: grayscale(100%);
}

.bio-photo-placeholder{
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 64px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.80);
}

.bio-content h1{
  margin: 0 0 18px 0;
  font-size: 36px;
  line-height: 1.15;
}

.bio-name{
  font-weight: 900;
}

.bio-content p{
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px 0;
}

.bio-back{
  margin-top: 18px;
  font-size: 16px;
}

/* RESPONSIVE */
@media (max-width: 1120px){
  .brand-topline{
    justify-content: flex-start;
  }

  .brand-text{
    max-width: none;
  }

  .brand-title{
    white-space: normal;
  }

  .location{
    grid-template-columns: 1fr;
  }

  .statement-title{
    letter-spacing: 1.2px;
  }

  .bio-container{
    grid-template-columns: 1fr;
    gap: 26px;
  }
}


@media (max-width: 600px){
  html{
    scroll-padding-top: 118px;
  }
  .container{ width: calc(100% - 24px); }
  .header-row{ padding: 14px 0 12px; gap: 12px; }
  .brand{
    gap: 10px;
    align-items: center;
  }
  .brand-topline{
    justify-content: center;
  }
  .brand-text{
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .brand-title{
    line-height: 1.3;
    font-size: 11px;
    white-space: normal;
  }
  .nav{
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .nav a{
    font-size: 14px;
    padding: 9px 11px;
    scroll-snap-align: start;
  }
  h1{ font-size: clamp(26px, 7vw, 34px); }
  h2{ font-size: clamp(20px, 5.5vw, 26px); }
  .panel{ padding: 18px; border-radius: 14px; }
  .section,
  .hero{
    scroll-margin-top: 118px;
  }
}

/* PRINT */
@media print{
  @page { margin: 12mm; }
  body{
    background: #ffffff !important;
    color: #000000 !important;
  }

  a{ color: #000000 !important; text-decoration: underline; }

  .top{
    position: static !important;
    background: #ffffff !important;
    border-bottom: 1px solid #d0d0d0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .nav a{
    color: #000 !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
  }

  .section, .section.alt{
    background: #fff !important;
    border-top: 1px solid #e0e0e0 !important;
  }

  .card{
    background: #fff !important;
    box-shadow: none !important;
    border: 1px solid #dcdcdc !important;
  }

  img{
    max-width: 100% !important;
    height: auto !important;
  }

  .person-photo{
    object-fit: cover !important;
    max-height: 240px;
  }

  .committee-grid, .grid, .location{
    break-inside: avoid;
    page-break-inside: avoid;
  }
}


/* Conference logo strip (PhD • ULBS • FITS) */
.conference-logos{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  flex: 0 0 auto;
  width: max-content;
}

.conference-logos a{
  display: inline-flex;
  align-items: center;
}

.conference-logo{
  display: block;
  width: auto;
  height: 38px;
  max-width: 150px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

.conference-logo.ulbs,
.conference-logo.fits{
  height: 56px;
  max-width: 170px;
}

/* Subtle optical alignment */
.conference-logo.phd{ transform: translateY(1px); }
.conference-logo.ulbs{ transform: translateY(2px); }
.conference-logo.fits{ transform: translateY(2px); }
/* PhD logo asset has white canvas; keep it readable on black */
.conference-logo.phd-on-white{
  background: #ffffff;
  padding: 7px 9px;
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.24);
}


@media (max-width: 640px){
  .conference-logos{
    gap: 8px;
    padding: 6px 8px;
    margin: 0 auto;
    max-width: none;
  }
  .conference-logo{
    height: 28px;
    max-width: 92px;
  }
  .conference-logo.ulbs,
  .conference-logo.fits{
    height: 40px;
    max-width: 118px;
  }
  .conference-logo.phd-on-white{
    padding: 5px 7px;
  }
}


.conference-logo.utalk{ transform: translateY(1px); }

/* U.talk page */
.utalk-page{
  padding: 72px 0 84px;
}

.utalk-hero{
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
  margin-bottom: 34px;
}

.utalk-logo-wrap{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
}

.utalk-logo-large{
  width: min(320px, 70vw);
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.utalk-panel{
  width: min(900px, 100%);
  margin: 0 auto;
}

.utalk-panel h1{
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  text-align: center;
}

.utalk-date{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}

.utalk-body p{
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 18px;
}

.utalk-meta{
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.utalk-meta p{
  margin: 0 0 10px;
  color: var(--text);
}

.utalk-names a{
  font-weight: 700;
}
