:root {
  /* Ocean Palette */
  --frozen-water: #bee9e8;
  --pacific-blue: #62b6cb;
  --yale-blue: #1b4965;
  --pale-sky: #cae9ff;
  --fresh-sky: #5fa8d3;

  /* Theme Mapping */
  --bg-color: #f2f7fb; /* Cool structural background */
  --card-bg: #ffffff;
  --text-color: var(--yale-blue); /* Deep rich blue for maximum readability and sleekness */
  --text-light: #507186; /* Muted blue-grey */
  --accent-color: #2c729c; /* Slightly darkened pacific-blue for better contrast against white */
  --accent-light: var(--pale-sky);
  --hover-bg: var(--frozen-water);
  --border-color: #d8e5ee;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* Dropped serif for absolute modern sleekness */
  
  --shadow: 0 2px 10px rgba(27, 73, 101, 0.05);
  --shadow-hover: 0 6px 20px rgba(27, 73, 101, 0.09);
  --radius: 6px; /* Sharper corners remove the "cartoony" bubble feel */
  --transition: all 0.25s ease-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em; /* Tighter letter spacing is very sleek */
}

h1 { font-size: 2.2rem; line-height: 1.2; font-weight: 700; }
h2 { font-size: 1.6rem; margin-top: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
h3 { font-size: 1.3rem; margin-top: 1.5rem; color: var(--accent-color); font-weight: 600; }

p { margin-bottom: 1.2rem; color: var(--text-color); font-weight: 400; }
a { color: var(--accent-color); text-decoration: none; transition: var(--transition); border-bottom: 1px solid transparent; }
a:hover { border-bottom-color: var(--accent-color); color: var(--yale-blue); }

ul, ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }

/* Layout Grid */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
}

/* Responsive Layout Moved to Bottom */

/* Sidebar Profile */
.sidebar {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color); /* Added fine border */
  position: sticky;
  top: 3rem;
  height: max-content;
  text-align: center;
  transition: var(--transition);
}

.sidebar:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.profile-img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--border-color); /* Reduced border entirely from being bubbly */
  background: var(--bg-color);
  transition: var(--transition);
}

.profile-img:hover {
  transform: scale(1.02);
}

.sidebar h2 { border: none; font-size: 1.4rem; margin: 0; padding: 0; }
.sidebar h3 { font-family: var(--font-sans); font-size: 0.9rem; color: var(--text-light); margin-top: 0.5rem; font-weight: 500; letter-spacing: 0.01em; text-transform: uppercase; }

.contact-info { margin-top: 2rem; text-align: left; font-size: 0.9rem; border-top: 1px solid var(--border-color); padding-top: 1.5rem; }
.contact-info p { margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.75rem; color: var(--text-light); }
.contact-info i { color: var(--accent-color); width: 20px; text-align: center; }

/* Navigation */
.nav { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.5rem; text-align: left; }
.nav a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid transparent;
}

.nav a:hover, .nav a.active {
  background-color: var(--hover-bg);
  color: var(--yale-blue);
  border: 1px solid var(--pale-sky);
}

.social-links { margin-top: 2rem; display: flex; justify-content: center; gap: 1rem; }
.social-links a { 
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius); /* Made icons square-sleek instead of circular */
  background: var(--bg-color); color: var(--accent-color); border: 1px solid var(--border-color);
}
.social-links a:hover {
  background: var(--pacific-blue); color: white; border-color: var(--pacific-blue); transform: translateY(-2px);
}

/* Main Content */
.main-content {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom list styling for Hugo markdown output */
.main-content ul {
  list-style-type: none;
  padding-left: 0;
}

.main-content ul li {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
}

.main-content ul li strong {
  color: var(--yale-blue);
}

.main-content ul li::before {
  content: "■"; /* using a sleek square instead of a bubbly circle */
  color: var(--accent-color); 
  font-weight: 400; 
  position: absolute; 
  left: 0; 
  font-size: 0.8rem;
  top: 4px;
}

/* Vertical Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 39px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  padding-left: 90px;
}

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

.timeline-img {
  position: absolute;
  left: 15px;
  top: 0;
  width: 50px;
  height: 50px;
  border-radius: var(--radius); /* Sleek square instead of massive circle */
  background-color: var(--card-bg);
  border: 2px solid var(--pacific-blue);
  overflow: hidden;
  z-index: 1;
}

.timeline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-content {
  background: transparent;
  padding: 0 0.5rem;
  position: relative;
}

.timeline-content h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  color: var(--yale-blue);
  font-size: 1.2rem;
}

.timeline-content h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.timeline-content h4 strong {
  color: var(--accent-color);
}

.timeline-content p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Document Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0px;
}
.tab-btn {
  background: transparent;
  color: var(--text-light);
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab-btn:hover {
  color: var(--accent-color);
}
.tab-btn.active {
  color: var(--yale-blue);
  border-bottom: 3px solid var(--yale-blue);
}
.tab-content {
  animation: fadeIn 0.4s;
}

/* Home Page Hero Banner */
.hero-banner {
  width: 100%;
  height: 250px;
  margin-bottom: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color); /* Removed 4px bubbly border */
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-banner:hover .banner-img {
  transform: scale(1.02);
}

/* Responsiveness (Phones & Tablets) */
@media (max-width: 800px) {
  .container { 
    grid-template-columns: 1fr; 
    padding: 2rem 1rem;
    gap: 2rem;
  }
  .sidebar { position: static; height: auto; }
  .main-content { padding: 2rem 1.5rem; }
  .hero-banner { height: 200px; }
}

@media (max-width: 500px) {
  .container { padding: 1rem 0.5rem; gap: 1rem; }
  .sidebar { padding: 2rem 1rem; margin-bottom: 0; }
  .main-content { padding: 1.5rem 1rem; }
  .profile-img { width: 130px; height: 130px; margin-bottom: 1rem; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; margin-top: 1.5rem; }
  .hero-banner { height: 150px; margin-bottom: 1.5rem; }
  
  .timeline-item { padding-left: 65px; margin-bottom: 2.5rem; }
  .timeline-img { width: 40px; height: 40px; left: 10px; }
  .timeline::after { left: 29px; }
  
  /* Horizontal scroll for tabs on mobile so they don't awkwardly wrap */
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 1.5rem;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    flex: 0 0 auto;
  }
}
