/* --- UPDATED CSS: Academic site with New Hero & Small Footer --- */

:root {
  /* Matching the purple accent from reference */
  --brand: oklch(50% 0.3 280); 
  --brand-soft: oklch(50% 0.3 280 / 0.1);
  --brand-hover: oklch(45% 0.3 280);
  
  --bg: #ffffff;
  --surface: oklch(97% 0.01 250);
  --border: oklch(92% 0.02 250);
  --text: oklch(15% 0.02 250);
  --text-muted: oklch(40% 0.02 250);
  
  --radius: 12px;
  --max-w: 1100px; /* slightly narrower for the compact look */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Lexend', system-ui, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; transition: .2s ease; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* --- Nav (remains the same) --- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem; max-width: var(--max-w); margin: 0 auto;
}
.brand { font-weight: 600; font-size: 1rem; color: var(--text); }
.nav-links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 400; }
.nav-links a:hover { color: var(--brand); }
.btn-contact {
  padding: 0.4rem 0.9rem; border: 1px solid var(--brand); color: var(--brand);
  border-radius: 99px; font-weight: 500; font-size: 0.85rem;
}
.btn-contact:hover { background: var(--brand); color: white; }
.nav-toggle { display: none; }

/* --- HERO REDESIGN SECTION --- */
.hero { padding: 8rem 0; min-height: 80vh; display: flex; align-items: center; }

/* 3-column wrapper: Social | Text | Image */
.hero-layout-wrapper {
  display: grid;
  grid-template-columns: 50px 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* 1. The Left Social Icons Column */
.hero-social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.hero-social-icon {
  color: var(--brand);
  font-size: 1.5rem; /* size of icons */
  opacity: 0.8;
}
.hero-social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* 2. The Inner Grid (Text + Image) */
.hero-grid-redesign {
  grid-column: 2 / -1; /* spans text and image columns */
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

/* Text Content styling */
.hero-text-content { max-width: 32rem; }
.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}
.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0 0 1.5rem;
}
.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  font-weight: 300;
}

/* Contact Button matching reference */
.btn-primary-redesign {
  padding: 0.8rem 1.5rem;
  background: var(--brand);
  color: white;
  border-radius: var(--radius);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary-redesign:hover { background: var(--brand-hover); }

/* 3. Image Blob container */
.hero-img-blob-container {
  aspect-ratio: 1;
  background: var(--brand); /* The color surrounding the portrait */
  
  /* THIS CREATES THE BLOB SHAPE (matching reference) */
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  
  overflow: hidden;
  box-shadow: 0 10px 30px oklch(50% 0.3 280 / 0.1);
}

.hero-img-blob-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Scales the portrait inside the blob */
  transform: scale(1.1); 
}

/* --- FOOTER (SIGNIFICANTLY SMALLER) --- */
.footer-small {
  border-top: 1px solid var(--border);
  padding: 1rem 0; /* Minimal vertical padding */
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem; /* Smaller font */
  margin-top: auto; /* Pushes footer down if content is short */
}
.footer-small p { margin: 0; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero { padding: 4rem 0; }
  .hero-layout-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-social {
    grid-row: 2; /* moves icons below title on mobile */
    flex-direction: row;
    justify-content: center;
  }
  .hero-grid-redesign {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-text-content { margin: 0 auto; }
  .hero-img-blob-container { width: 80%; margin: 0 auto; }
}
