/* style.css */

/* ---------- Color & typography ---------- */
:root {
    --bg: #e5e7eb;          /* light gray background */
    --bg-gradient-top: #f9fafb;
    --surface: #ffffff;
    --border: #e5e7eb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #1f4f82;      /* sober blue */
    --accent-soft: #eff6ff;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(
      180deg,
      var(--bg-gradient-top) 0%,
      var(--bg) 100%
    );
    color: var(--text-main);
    line-height: 1.6;
  }
  
  /* ---------- Layout wrapper ---------- */
  .site-wrapper {
    max-width: 1080px;
    margin: 2.5rem auto;
    padding: 2rem 2.2rem 2.8rem;
    background: var(--surface);
    border-radius: 18px;
    box-shadow:
      0 18px 45px rgba(15, 23, 42, 0.08),
      0 1px 2px rgba(15, 23, 42, 0.05);
  }
  
  /* Make it nicer on small screens */
  @media (max-width: 720px) {
    .site-wrapper {
      margin: 1.2rem;
      padding: 1.5rem 1.2rem 2rem;
    }
  }
  
  /* ---------- Header & nav ---------- */
  header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .header-top {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-content: space-between;
  }
  
  @media (max-width: 720px) {
    .header-top {
      flex-direction: column;
      align-items: flex-start;
    }
  }
  
  .profile {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--accent);
  }
  
  .profile-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }
  
  .site-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
  }
  
  .site-subtitle {
    margin: 0;
    font-size: 0.97rem;
    color: var(--text-muted);
  }
  
  .profile-tags {
    font-size: 0.88rem;
    color: var(--text-muted);
  }
  
  /* Nav */
  nav {
    display: flex;
    gap: 0.75rem;
    font-size: 0.95rem;
  }
  
  nav a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }
  
  nav a:hover {
    color: var(--text-main);
    background: #f3f4f6;
  }
  
  nav a.active {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: #bfdbfe;
  }
  
  /* ---------- Sections ---------- */
  section {
    margin-bottom: 2.25rem;
  }
  
  section:last-of-type {
    margin-bottom: 0;
  }
  
  section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }
  
  .section-label {
    width: 4px;
    height: 1.1rem;
    border-radius: 999px;
    background: #cbd5f5;
  }
  
  .muted {
    color: var(--text-muted);
    font-size: 0.92rem;
  }
  
  /* ---------- Cards & grids ---------- */
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.7rem;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  }
  
  .card:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
    border-color: #d1d5db;
  }
  
  .card-title {
    font-weight: 600;
    margin-bottom: 0.1rem;
  }
  
  .card-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
  }
  
  /* Grid for apps & simulations */
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
  }
  
  /* ---------- Buttons & links ---------- */
  .button-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    margin-top: 0.35rem;
    background: #f9fafb;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  }
  
  .button-link::after {
    content: "↗";
    font-size: 0.8rem;
  }
  
  .button-link:hover {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  }
  
  /* ---------- Lists ---------- */
  ul.clean-list {
    list-style: none;
    padding-left: 0;
  }
  
  ul.clean-list li {
    margin-bottom: 0.4rem;
  }
  
  /* ---------- Footer ---------- */
  footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
  }
  
  /* Profile photo replacement */
.profile-photo {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  }
  
  /* Social / academic profile links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.4rem;
  }
  
  .social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #f9fafb;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition:
      background 0.15s ease,
      border-color 0.15s ease,
      color 0.15s ease,
      box-shadow 0.15s ease;
  }
  
  .social-link:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.07);
  }
  
  .social-link img {
    width: 16px;
    height: 16px;
    object-fit: contain;
  }
  