/* ============= GLOBAL RESET ============= */
:root {
    --text-main: #1f2937;
    --text-light: #6b7280;
    --accent: #1e3a8a; /* Academic Blue */
    --accent-hover: #1e40af; /* Slightly lighter blue for hover */
    --bg-white: #ffffff;
    --bg-footer: #0f172a; 
    --font-serif: "Merriweather", serif;
    --font-sans: "Inter", sans-serif;
  }
  
  *, *::before, *::after { box-sizing: border-box; }
  
  body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-white);
    min-height: 100vh; 
    overflow-y: auto; 
    display: flex;
    flex-direction: column;
  }
  
  a {
    text-decoration: none;
    color: var(--accent);
    /* IMPROVEMENT 3: Smooth transition for hover effects */
    transition: all 0.2s ease-in-out;
  }
  a:hover {
    text-decoration: underline;
    color: var(--accent-hover);
  }
  
  /* ============= BANNER ============= */
  .hero-container {
    position: relative;
    width: 100%;
    height: 60vh; 
    flex-shrink: 0;
    background-color: #000;
    overflow: hidden;
  }
  
  .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; 
    opacity: 0.9; /* Slight increase in visibility */
    display: block;
  }
  
  /* IMPROVEMENT 1: Stronger Gradient so Nav Text is Readable */
  .hero-overlay {
    position: absolute;
    inset: 0;
    /* Darker at the top to make "Research/Teaching" pop */
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
  }
  
  .hero-nav {
    position: absolute;
    top: 1.5rem;
    right: 2.5rem;
    display: flex;
    gap: 2rem;
    z-index: 10;
  }
  
  .hero-nav a {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600; /* Made slightly bolder for readability */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* Added stronger shadow for contrast against sky */
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); 
    opacity: 0.9;
  }
  .hero-nav a:hover {
    opacity: 1;
    text-decoration: none; /* Clean look on hover */
    border-bottom: 2px solid #fff; /* Underline effect */
  }
  
  .hero-welcome {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 5;
    text-align: center;
    width: 100%;
  }
  
  .hero-welcome h1 {
    font-family: var(--font-serif);
    font-size: 4rem; 
    margin: 0;
    font-weight: 300;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  }
  
  /* ============= MAIN CONTENT ============= */
  .container {
    flex-grow: 1;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex; 
    align-items: flex-start; 
    justify-content: center;
  }
  
  .profile-grid {
    display: grid;
    grid-template-columns: 240px 1fr; 
    gap: 3.5rem;
    align-items: flex-start;
    width: 100%;
    margin-top: 4rem; 
    margin-bottom: 4rem; 
  }
  
  /* LEFT COLUMN */
  .left-col {
    display: flex;
    flex-direction: column;
  }
  
  .profile-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f3f4f6; 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
  }
  
  .link-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .link-list li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    font-weight: 500;
  }
  
  .icon {
    width: 28px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.2rem;
    color: #64748b; /* Sleek slate gray */
    transition: color 0.2s;
  }
  
  /* Hover effect: Icon turns blue when you hover the text */
  .link-list li:hover .icon {
    color: var(--accent);
  }
  
  /* RIGHT COLUMN */
  .right-col {
    /* IMPROVEMENT 2: Alignment Fix */
    /* Removing padding so text aligns perfectly with top of photo */
    padding-top: 0; 
    margin-top: -8px; /* Slight negative margin to perfect the optical alignment */
  }
  
  .name-header {
    font-family: var(--font-serif);
    font-size: 2.5rem; /* Made slightly larger */
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #111;
    line-height: 1.1;
  }
  
  .bio-text p {
    line-height: 1.7; /* Increased breathability */
    margin-bottom: 1.2rem;
    font-size: 1rem; /* Slightly larger text for readability */
    color: #374151; /* Softer black, easier on eyes */
    text-align: justify;
  }
  
  .highlight { font-weight: 600; color: #111; }
  
  .market-note {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e5e7eb;
  }
  
  /* ============= FOOTER ============= */
  .site-footer {
    width: 100%;
    background-color: var(--bg-footer);
    color: #94a3b8;
    text-align: left;       
    padding: 1.5rem 2rem; /* More padding for elegance */
    font-size: 0.85rem;
    flex-shrink: 0;
  }
  
  /* ============= RESPONSIVE ============= */
  @media (max-width: 850px) {
    .hero-container { height: 35vh; } 
    .profile-grid { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
    .container { padding: 0 1.5rem; }
    .left-col { max-width: 250px; margin: 0 auto; text-align: center; }
    .link-list li { justify-content: center; } 
    .name-header { text-align: center; margin-top: 0; }
    .site-footer { text-align: center; }
  }