/* ==========
   Color system
   ========= */
:root {
@import url('https://fonts.cdnfonts.com/css/neue-montreal');
  --bg-desk: #c2beb6;
  --bg-monitor: #9b9696;
  --bg-inner: #f5f0ec; /* main backgroud*/
  --bg-section: #f5f0ec;
  --bg-login: #2a2828;
/* #2a2828 */
  --text-main: #2a2828; /* #f5f5f5;*/
  --text-muted: #c2beb6;
  --text-invert: #f5f5f5;
  --text-about: #2a2828;
  

  /* Accent color (currently light / minimal like mainfra.me) */
  --accent: #ffffff;        /* later you can change this, see notes below */
  --accent-soft: #2a2828;
/* #e0ddd8 */
  --border-monitor: #0c0c0c;
  --shadow-monitor: rgba(0, 0, 0, 0.55);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Menlo", "SF Mono", ui-monospace, "Roboto Mono", monospace;
}


/* =========================
   Global reset
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

/* =========================
   Body
   ========================= */
body {
  background: var(--bg-login);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* Full-width wrappers */
.desk,
.monitor {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* =========================
   Top bar (header)
   ========================= */
.monitor-top {
  width: 100%;
  background: var(--bg-header);
  color: var(--text-invert);
  font-size: 0.85rem;
}

/* Shared inner container for header + login banner
   (no max-width; full-width with padding) */
.header-inner {
  width: 100%;
  margin: 0;
  padding: 1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header left (name + subtitle) */
.monitor-top-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.brand-sub {
  font-size: 0.72rem;
  color: #a4a4a4;
}

/* Header right (nav) */
.monitor-top-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.monitor-top-right a {
  color: #dcdcdc;
  text-decoration: none;
  position: relative;
}

.monitor-top-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.18s ease-out;
}

.monitor-top-right a:hover::after {
  width: 100%;
}

/* =========================
   Login banner
   ========================= */
.login-banner {
  width: 100%;
  background: var(--bg-login);
  color: #d0d0d0;
  border-bottom: 1px solid var(--border-monitor);
}

.login-banner .header-inner {
  padding: 1.2rem 3rem;
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.name-title {
  font-family: 'Neue Montreal', var(--font-sans);
  font-size: 2.2rem;      /* slightly larger */
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin: 0 0 1.8rem;
  text-transform: none;   /* ensures not all caps */
}

/* =========================
   Main content
   ========================= */
.content {
  width: 100%;
  background: var(--bg-inner);
  padding-bottom: 3rem;
}

/* Section wrapper */
.section {
  padding: 3rem 3rem 0;
}

/* Inner content (full width, just here if you want later to re-add max-width) */
.section-inner {
  width: 100%;
  margin: 0;
}

/* Section titles */
.section-title {
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.8rem;
  font-family: var(--font-mono);
}

/* =========================
   About section
   ========================= */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1.4fr);
  gap: 3rem;
  align-items: start;
}

/* Neue Montreal for the bio text */
.about-text p {
  margin: 0 0 1rem;
  color: var(--text-about);
  font-size: 1.1rem;
  font-weight: 400;
  font-family: 'Neue Montreal', var(--font-sans);
}

/* Contact links under bio */
.contact-links {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-link {
  font-size: 0.9rem;
  color: #222222;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.1rem 0;
}

.contact-link i {
  font-size: 0.95rem;
}

.contact-link:hover {
  color: var(--bg-login);
}

/* Photo placeholder / box */
.about-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible; /* let image corners show! */
}

.about-img {
  width: 260px;
  height: auto;
  border-radius: 18px;             /* ⬅️ Rounded corners */
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.about-img:hover {
  transform: scale(1.02);
  filter: grayscale(10%);
}

.photo-placeholder {
  width: 220px;
  height: 260px;
  border-radius: 16px;
  background: #111111;
  color: #cccccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  box-shadow: 0 18px 30px rgba(0,0,0,0.45);
}

/* =========================
   Publications
   ========================= */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.pub-img {
  width: 100%;
  aspect-ratio: 4 / 3;        /* Forces 4:3 shape */
  object-fit: cover;          /* Ensures images fill area nicely */
  border-radius: 12px;        /* Matches your rounded style */
  background-color: #ddd;     /* Placeholder color while loading */
  flex-shrink: 0;
  width: 170px;
}

.pub-item {
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(0,0,0,0.06);
}

.pub-meta {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
}

.pub-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-invert);
  
}

.pub-authors {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.pub-link,
.pub-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.pub-link {
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #b0aca6;
  text-decoration: none;
  color: #f7f3ee;
  background: #222222;
}
/* f7f3ee */
.pub-link i {
  font-size: 0.9rem;
}

.pub-link:hover {
  background: var(--text-invert);
  color: var(--bg-login);
}

.pub-tag {
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  background: #3f3f3f;
  color: #f7f3ee;
}

/* Publication thumbnails */
.pub-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(0,0,0,0.06);
}

.pub-thumb {
  width: 150px;
  height: 110px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.pub-item-text {
  flex: 1;
}

@media (max-width: 768px) {
  .pub-item {
    flex-direction: column;
    align-items: center;
  }

  .pub-thumb {
    width: 100%;
    max-width: 250px;
  }

  .pub-item-text {
    text-align: center;
  }
}

/* =========================
   Hobbies
   ========================= */
#hobbies p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* =========================
   Footer
   ========================= */
.footer {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: #7a7a7a;
}

.footer-inner {
  width: 100%;
  margin: 0;
  padding: 1.5rem 3rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  text-align: center;
}

.footer-spacer {
  opacity: 0.7;
}

/* =========================
   Responsive tweaks
   ========================= */
@media (max-width: 900px) {
  .header-inner {
    padding: 1rem 1.5rem;
  }

  .login-banner .header-inner {
    padding: 1.2rem 1.5rem;
  }

  .section {
    padding: 2.5rem 1.5rem 0;
  }

  .footer-inner {
    padding: 1.5rem 1.5rem 0;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    justify-content: flex-start;
  }

  .photo-placeholder {
    width: 190px;
    height: 230px;
  }
}

@media (max-width: 640px) {
  .monitor-top .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .monitor-top-right {
    gap: 1rem;
  }

  .section {
    padding: 2.2rem 1.2rem 0;
  }

  .footer-inner {
    padding: 1.5rem 1.2rem 0;
  }
}
