:root {
  --bg: #ffffff;
  --bg-alt: #fafbfc; 
  --text-main: #1f2937;    /* Deep Charcoal (Dark) */
  --text-meta: #6b7280;    /* Gray (Only for dates/labels) */
  --accent: #0066cc;
  --accent-light: #3388dd;
  --accent-soft: #e6f2ff;
  --border: #e5e7eb;
  --font-heading: 'Source Serif Pro', serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-main); /* Global Dark Text */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- ANIMATIONS (Restored) --- */
@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -20px) scale(1.05); }
}

@keyframes morphShape {
  0%, 100% { 
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(0deg);
  }
  50% { 
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    transform: rotate(180deg);
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Typography & Links --- */
p {
  margin-bottom: 1.2rem;
  color: var(--text-main); /* Ensures paragraphs are DARK */
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Bold/Underline specific links for readability */
p a, .highlights-list a, .item-description a {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

/* --- Header --- */
.main-header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 16px 0;
}

.main-nav a {
  padding: 8px 16px;
  color: var(--text-meta);
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: #111;
    font-weight: 600;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

/* --- LAYOUT: 2-Column Grid --- */
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 40px;
}

.grid-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

/* --- Left Sidebar (Profile) --- */
.left-sidebar {
  padding-top: 10px;
  position: relative;
}

/* Decorative Background Elements (Restored) */
.decoration-blob {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 102, 204, 0.1) 100%);
  border-radius: 50%;
  z-index: -1;
  animation: floatShape 8s ease-in-out infinite;
}

.decoration-shape {
  position: absolute;
  top: 120px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(0, 102, 204, 0.04);
  z-index: -1;
  animation: morphShape 10s linear infinite;
}

.profile-sticky {
  position: sticky;
  top: 100px;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #fff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.1;
  color: #111;
  margin-bottom: 12px;
}

.profile-titles p {
  margin-bottom: 2px;
  color: var(--text-meta);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Contact Info & Icons */
.profile-contact {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.contact-row a {
    color: var(--text-main);
    word-break: break-all;
}

.contact-row a:hover {
    color: var(--accent);
}

.icon {
    width: 18px;
    height: 18px;
    fill: var(--text-meta);
    flex-shrink: 0;
}

.contact-row:hover .icon {
    fill: var(--accent);
}

.profile-keywords {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.profile-keywords span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-meta);
  margin-bottom: 6px;
  font-weight: 500;
}

/* --- Right Content Area --- */
.main-content { min-width: 0; }

section { margin-bottom: 50px; }

h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  position: relative;
  color: #111;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
}

strong {
  font-weight: 600;
  color: #000;
}

/* Experience List */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.list-entry {
  padding-left: 15px;
  border-left: 3px solid var(--accent);
  background-color: #fff; /* Ensure bg is white */
}

/* Highlights List */
.highlights-list { list-style: none; }
.highlights-list li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.highlights-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* Interests Section */
.highlight-section {
  background-color: var(--bg-alt);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border);
}
.interests-list {
  list-style: none;
  columns: 2;
}
.interests-list li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  font-weight: 500;
}
.interests-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* --- RESEARCH PAGE AESTHETICS (Restored & Fixed) --- */

/* Page Title (Research.html) */
.page-title-container h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    padding: 40px 0;
    color: #111;
}

/* The .item styling you liked */
.item { 
    padding: 24px 0 24px 20px;
    margin-bottom: 24px;
    border-left: 3px solid transparent; /* The invisible border */
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
}

.item:hover {
    border-left-color: var(--accent); /* Color appears on hover */
    padding-left: 24px;
    background-color: rgba(250, 251, 252, 0.5); /* Subtle bg hint */
}

.item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.item-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: block;
    color: #111;
    transition: color 0.2s ease;
    margin-bottom: 8px;
}

.item-title:hover {
    color: var(--accent);
}

.item-meta {
    font-size: 0.9rem;
    color: var(--text-meta);
    margin-top: 4px;
    margin-bottom: 16px;
    font-weight: 400;
}

/* IMPORTANT: Changed color to var(--text-main) so it is NOT dimmed */
.item-description { 
    font-size: 1rem;
    color: var(--text-main); 
    line-height: 1.7;
}

/* --- Footer --- */
.page-footer {
  text-align: center;
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid var(--border);
  color: var(--text-meta);
  font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .grid-layout { grid-template-columns: 1fr; gap: 40px; }
  .left-sidebar { text-align: center; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
  .profile-photo { margin: 0 auto 20px auto; display: block; }
  .profile-keywords { border-top: none; margin-top: 15px; padding-top: 0; }
  .profile-keywords span { display: inline-block; margin: 0 10px 5px 0; background: var(--bg-alt); padding: 4px 8px; border-radius: 4px; }
  .contact-row { justify-content: center; }
  .interests-list { columns: 1; }
  .decoration-blob { left: 50%; transform: translateX(-50%); width: 220px; height: 220px; }
  .decoration-shape { top: 20px; right: 20px; }
}

/* --- Resume Button --- */
.resume-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent);
  color: #fff !important; /* Force white text */
  padding: 10px 0;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin: 16px 0 20px 0; /* Spacing around the button */
  transition: all 0.2s ease;
  height: 35px;
  width: 30%;
  box-shadow: 0 4px 12px rgba(137, 181, 225, 0.2);
}

.resume-button:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(79, 139, 200, 0.3);
  text-decoration: none;
}

.resume-button svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}