@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: #020617;
  --bg-secondary: #0f172a;
  --primary-color: #3b82f6;
  --secondary-color: #06b6d4;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --accent-gradient: linear-gradient(135deg, #3b82f6, #06b6d4);
}

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

html {
  scroll-padding-top: 6rem;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  text-align: center;
}

header .name {
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.main-container {
  display: flex;
  margin-top: 5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  gap: 2rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media screen and (max-width: 768px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

.left-nav {
  position: sticky;
  top: 7rem;
  width: 280px;
  height: fit-content;
}

.nav-list {
  list-style: none;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-list li {
  padding: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  border-radius: 1rem;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-list li:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.nav-list li.selected {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.3);
}

#right-ct {
  flex: 1;
}

.content {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.6s ease-out forwards;
}

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

.about-top {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.about-text {
  flex: 1;
}

.jp-img {
  width: 180px;
  height: 180px;
  border-radius: 2rem;
  object-fit: cover;
  border: 4px solid var(--glass-border);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

h3, h4, h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; color: var(--primary-color); }

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style-type: none;
  margin-bottom: 1.5rem;
}

ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.organization {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: none;
  border-left: 2px solid var(--glass-border);
  margin-bottom: 0;
}

.organization:last-child {
  padding-bottom: 0;
}

.organization::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 4px solid var(--bg-color);
  z-index: 1;
}

.org-header {
  margin-bottom: 1.5rem;
}

.org-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.org-name-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.org-date {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.role-title {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.25rem;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.skill-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  color: var(--text-secondary);
}

.achievement-list {
  margin-top: 1rem;
}

.achievement-list li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

@media screen and (max-width: 600px) {
  .org-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.hidden { display: none; }

@media screen and (max-width: 900px) {
  .main-container {
    flex-direction: column;
    padding: 1rem;
  }
  
  .about-top {
    flex-direction: column-reverse;
    align-items: center;
    gap: 1.5rem;
  }

  .jp-img {
    width: 150px;
    height: 150px;
  }
  
  .left-nav {
    position: static;
    width: 100%;
  }
  
  .nav-list {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 0.75rem;
    scrollbar-width: none;
  }
  
  .nav-list::-webkit-scrollbar { display: none; }
  
  .nav-list li {
    white-space: nowrap;
    margin-bottom: 0;
  }
}
