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

:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #0085ca;
  --accent-hover: #0066a1;
  --text-color: #2d3436;
  --text-light: #636e72;
  --background: #ffffff;
  --background-alt: #f8f9fa;
  --border-color: #e9ecef;
  --max-width: 1400px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Wix Madefor Text", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
  font-weight: 400;
}

/* Typography */
::selection {
  background-color: var(--accent-color);
  color: white;
}

/* Navigation - Desktop Only */
nav {
  position: sticky;
  top: 0;
  z-index: 150;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.08);
}

nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18));
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.mobile-nav {
  display: none;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 12px 30px rgba(26, 26, 46, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.3px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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

.nav-links a:hover {
  color: var(--accent-color);
}

/* Main Layout Container */
.main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 3rem 2rem;
  align-items: start;
}

/* Left Column - Profile Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  padding-right: 1.5rem;
}

.profile-section {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  margin-bottom: 1.5rem;
  border: 4px solid var(--background);
  outline: 2px solid var(--border-color);
}

.hero-image:hover {
  transform: scale(1.05);
}

.sidebar h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  line-height: 1.2;
}

.sidebar .title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.sidebar .institution {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
}

.sidebar-contact {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.sidebar-contact a {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
}

.sidebar-contact a:hover {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.sidebar-bio {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* Right Column - Main Content */
.content {
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-color);
}

section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 100px;
  animation: fadeIn 0.6s ease-in-out;
}

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

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.8rem;
  letter-spacing: -0.3px;
}

p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  color: var(--text-color);
}

/* About Section */
#about {
  padding-top: 0;
}

#about p {
  font-size: 1.1rem;
}

#about p strong {
  color: var(--accent-color);
  font-weight: 700;
}

.research-focus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.research-area {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--background), var(--background-alt));
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.research-area-header h3 {
  margin-bottom: 0.4rem;
}

.research-area-header p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-light);
}

.research-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.research-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background-color: var(--background);
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.research-chip:hover {
  background-color: var(--accent-color);
  color: white;
  box-shadow: 0 4px 8px rgba(0, 133, 202, 0.25);
  transform: translateY(-1px);
}

.research-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.research-interests span {
  background: linear-gradient(
    135deg,
    var(--background-alt),
    var(--background)
  );
  color: var(--text-color);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.research-interests span:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* News */
.news-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.news-item {
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  background: var(--background-alt);
  border-left: 3px solid var(--accent-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

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

.news-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 0;
  min-width: 7.5rem;
}

.news-item p {
  margin: 0;
  color: var(--text-color);
  line-height: 1.55;
  flex: 1;
}

/* Publications */
.publication {
  margin-bottom: 1.6rem;
  padding: 1rem 1.1rem;
  background-color: var(--background-alt);
  border-radius: 8px;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: center;
  scroll-margin-top: 130px;
}

.publication:hover {
  border-left-color: var(--accent-color);
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
  background-color: var(--background);
}

.pub-thumbnail {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  align-self: center;
}

.pub-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 130px;
  object-fit: contain;
}

.pub-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-self: start;
}

.pub-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.pub-authors {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  font-weight: 400;
}

.pub-venue {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent-color);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.pub-award {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.1rem 0.5rem;
  border-radius: 12px;
  background-color: #ffd166;
  color: #5f370e;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pub-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.pub-links a {
  font-size: 0.82rem;
  color: var(--accent-color);
  text-decoration: none;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--accent-color);
  border-radius: 14px;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.pub-links a:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Research Projects */
.project {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--background-alt),
    var(--background)
  );
  border-radius: 8px;
  transition: all 0.3s ease;
}

.project:hover {
  box-shadow: var(--shadow-md);
}

.project-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-title::before {
  content: "▸";
  color: var(--accent-color);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.project:hover .project-title::before {
  transform: translateX(5px);
}

.project-description {
  color: var(--text-color);
  line-height: 1.8;
  padding-left: 1.5rem;
}

/* Events */
.events-list {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.event {
  margin-bottom: 1.8rem;
  padding: 1.5rem;
  background-color: var(--background);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.event:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.event-date {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-color);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.event a {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  margin-bottom: 0.3rem;
}

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

.event p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
}

/* Awards and CV Lists */
.styled-list {
  list-style: none;
  padding-left: 0;
}

.styled-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.styled-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Footer */
footer {
  margin-top: 5rem;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 968px) {
  /* Switch to single column layout */
  .main-container {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  /* Hide desktop nav */
  nav {
    display: none;
  }

  /* Mobile navigation */
  .mobile-nav {
    background-color: var(--background);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    display: block;
  }

  .mobile-nav-container {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-nav-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .mobile-nav-links {
    display: none;
    list-style: none;
    padding: 1rem 2rem;
    background: var(--background-alt);
  }

  .mobile-nav-links.active {
    display: block;
  }

  .mobile-nav-links a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
  }

  /* Adjust sidebar for mobile */
  .sidebar {
    position: static;
    padding: 3rem 2rem 2rem;
    border-bottom: 1px solid var(--border-color);
  }

  .sidebar h1 {
    font-size: 2.5rem;
  }

  .sidebar-bio {
    display: none;
  }

  .sidebar-contact {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .news-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .news-date {
    min-width: auto;
  }

  .publication {
    grid-template-columns: 1fr;
    margin-bottom: 1.4rem;
    padding: 0.95rem 1rem;
  }

  .pub-thumbnail {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 1rem;
  }

  .pub-thumbnail img {
    max-height: 150px;
  }

  .sidebar-contact a {
    padding: 0.4rem 1rem;
  }

  /* Adjust content for mobile */
  .content {
    padding: 2rem;
    border-left: none;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .sidebar h1 {
    font-size: 2rem;
  }

  .hero-image {
    width: 150px;
    height: 150px;
  }

  .mobile-nav-container {
    padding: 1rem;
  }

  .content {
    padding: 1.5rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}
