:root {
  /* Professional Modern Palette */
  --primary: #2563eb; /* Blue 600 */
  --primary-dark: #1e40af; /* Blue 700 */
  --primary-light: #3b82f6; /* Blue 500 */
  --background: #f9fafb; /* Gray 50 */
  --text: #111827; /* Gray 900 */
  --text-secondary: #6b7280; /* Gray 500 */
  --border-color: #e5e7eb; /* Gray 200 */
  
  /* Font families */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Inter', sans-serif;
}

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

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* Sidebar styling */
.sidebar {
  width: 80px;
  background-color: white;
  position: fixed;
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  z-index: 100;
  padding: 2rem 0;
  top: 60px;
  left: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-item {
  margin: 0;
}

.sidebar-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  border-radius: 8px;
  margin: 0 0.75rem;
}

.sidebar-link i {
  font-size: 1.5rem;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  color: var(--primary);
  background-color: #f3f4f6;
  text-decoration: none;
}

.sidebar-link.active {
  color: var(--primary);
  background-color: #eff6ff;
}

/* Tooltip */
.sidebar-link span {
  position: absolute;
  left: 90px;
  background-color: #1f2937;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--body-font);
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.sidebar-link:hover span {
  opacity: 1;
  visibility: visible;
  transform: translateX(5px);
}

.main-content {
  flex: 1;
  margin-left: 120px;
  width: calc(100% - 120px);
  overflow-x: hidden;
}

/* Mobile Navigation */
.mobile-navbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 1001;
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mobile-brand {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.mobile-toggle {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-dropdown.show {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  margin: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s ease;
  gap: 1rem;
}

.mobile-nav-link:hover {
  background-color: #f3f4f6;
  text-decoration: none;
}

.mobile-nav-link i {
  font-size: 1.25rem;
  color: var(--primary);
}

@media (max-width: 1024px) {
  .sidebar {
    display: none;
  }
  
  .mobile-navbar {
    display: flex;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
}

/* Typography */
.section-title {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

h1 {
  font-family: var(--heading-font);
}

h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: 600;
  color: var(--text);
}

p {
  margin-bottom: 1rem;
}

a {
  transition: color 0.2s ease;
}

/* Project Cards */
.project-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.project-card .overflow-hidden {
  margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

/* Timeline Items */
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  border-left: 2px solid var(--border-color);
  padding-left: 2rem;
  margin-left: 0.5rem;
}

.timeline-item:last-child {
  border-left: 2px solid transparent;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--border-color);
}

/* Publication Items */
.publication-item {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

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

/* Prose styles */
.prose {
  max-width: 65ch;
}

.prose-lg {
  font-size: 1.125rem;
  line-height: 1.7777778;
}

/* Scroll offset for sections */
.scroll-mt-24 {
  scroll-margin-top: 6rem;
}

@media (max-width: 1024px) {
  .scroll-mt-24 {
    scroll-margin-top: 5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }

  .project-card {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
  }

  .project-card .overflow-hidden {
    margin: -1.25rem -1.25rem 1.25rem -1.25rem;
  }
}
