/* Color palette inspired by soft teal / lavender style */
:root {
  --bg: #f6f7fb;
  --bg-alt: #ffffff;
  --accent: #5bb4b0;        /* teal */
  --accent-soft: #e3f2f1;   /* very light teal */
  --accent-strong: #845ec2; /* soft violet accent */
  --text-main: #2b2d42;
  --text-muted: #6c6f7f;
  --border: #dde1f0;

  --badge-python: #42b7b1;
  --badge-matlab: #da7148;
  --badge-bash: #656e71;
  --badge-r: #5892d9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #f0f4ff, #f6f7fb);
  color: var(--text-main);
}

/* Layout */

.page {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 2rem 1rem 4rem;
  gap: 2rem;
}

.sidebar {
  flex: 0 0 280px;
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Sidebar content */

.profile {
  text-align: center;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  objet-position: center;
  border: 4px solid var(--accent);
}

.name {
  margin: 0.25rem 0;
  font-size: 1.5rem;
}

.tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-block {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-block a {
  color: var(--accent-strong);
  text-decoration: none;
}

.links-block {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.links-block a {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-main);
  background: #fafbff;
}

.links-block a:hover {
  border-color: var(--accent);
}

/* CV Button */

.cv-button {
  display: block;
  margin-top: 1.5rem;
  padding: 0.55rem 0.9rem;
  text-align: center;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
}

.cv-button:hover {
  filter: brightness(1.05);
}

/* Navigation */

.nav {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-main);
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Cards */

.card {
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.card h3 {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

/* Timeline */

.timeline {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.timeline li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1.1rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Research */

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.research-card:first-child {
  grid-column: 1 / -1;
}

.research-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1.2rem;
  background: #fbfcff;
}

.research-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-size: 1.1rem;
}

.research-image-container {
  margin-bottom: 1rem;
  text-align: center;
}

.research-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.astrovascpy-image {
  object-fit: cover;
  object-position: top;
  max-height: 400px;
}

.research-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: var(--text-main);
}

.research-citation {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Projects */

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

.project-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 1rem 1.1rem;
  background: #fbfcff;
}

.project-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0;
}

.project-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--accent-strong);
}

.project-link.disabled {
  color: var(--text-muted);
  cursor: default;
  font-style: italic;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  background: var(--accent-soft);
  border-radius: 4px;
}

/* Skills badges */

.skill-badges {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #ffffff;
  text-decoration: none;
  border: none;
}

.badge-python {
  background: var(--badge-python);
}

.badge-matlab {
  background: var(--badge-matlab);
}

.badge-bash {
  background: var(--badge-bash);
}

.badge-r {
  background: var(--badge-r);
}

/* Publications */

.pub-list {
  padding-left: 1rem;
}

.pub-list li {
  margin-bottom: 0.8rem;
}

/* Education and Career */

.education-image-container {
  text-align: center;
  margin-top: 1rem;
}

.education-image {
  max-width: 550px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

/* Footer */

.footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-bottom: 1.5rem;
}

/* Links */

a {
  color: var(--accent-strong);
}

a:hover {
  text-decoration: underline;
}

/* Contact section */
.contact-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.contact-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

.contact-image {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.contact-info {
  flex: 1;
}

.contact-links i {
  color: var(--accent);
  margin-right: 0.5rem;
  width: 20px;
  display: inline-block;
  text-align: center;
}

.office-locations {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.office-locations h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.location {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

.location:last-child {
  margin-bottom: 0;
}

.location i {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.location-details {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-main);
}

.location-details strong {
  color: var(--accent-strong);
}

/* Responsive */

@media (max-width: 900px) {
  .page {
    flex-direction: column;
    padding: 1rem 1rem 3rem;
  }

  .sidebar {
    position: static;
    width: 100%;
  }

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

  .research-card:first-child {
    grid-column: 1;
  }

  .cv-button {
  display: block;
  margin-top: 1.2rem;
  padding: 0.55rem 0.9rem;
  text-align: center;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
}

  .cv-button:hover {
    filter: brightness(1.05);
  }

  .contact-content {
    flex-direction: column;
    align-items: center;
  }

  .contact-images {
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
  }

  .contact-image {
    width: 130px;
    height: 130px;
  }
}
