/* 2089 Design: Layered Clarity — VIBRANT EDITION */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-gradient-start: #fdfbf7;
  --bg-gradient-end: #f0ebe3;
  --text-primary: #1a0e2e;
  --text-secondary: #3d2a5c;
  --text-muted: #6b4f8c;
  --accent-flutter: #02569B;
  --accent-flutter-light: #0553a0;
  --accent-fire: #FF6F00;
  --accent-fire-light: #ff8f2c;
  --accent-purple: #7c3aed;
  --accent-purple-light: #9f6ef2;
  --accent-teal: #0d9488;
  --border-light: #e2d9cd;
  --border-medium: #c9bdb0;
  --sidebar-width: 380px;
  --font-sans: 'Space Grotesk', sans-serif;
  --font-serif: 'DM Serif Display', serif;
}

body {
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Particle Canvas — now with color hints */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  align-items: stretch;
}

/* Sidebar — warm, vibrant */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: sticky;
  top: 0;
  border-right: 1px solid var(--border-light);
  background: rgba(253, 251, 247, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  padding: 48px 32px;
  overflow-y: auto; 
  scrollbar-width: thin;
  scrollbar-color: var(--accent-flutter) var(--border-light);
}

/* Custom scrollbar for WebKit browsers */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 10px;
}

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

.sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.profile-block {
  margin-bottom: 32px;
}

.profile-image-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(0%) contrast(1.1) saturate(1.1);
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(2, 86, 155, 0.15);
}

.profile-image:hover {
  filter: grayscale(0%) contrast(1.15) saturate(1.2);
  box-shadow: 0 12px 28px rgba(2, 86, 155, 0.25);
}

.profile-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 2px solid var(--accent-flutter);
  border-radius: 6px;
  opacity: 0.4;
  pointer-events: none;
}

.identity {
  margin-bottom: 32px;
}

.name {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-flutter) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title-primary {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.title-secondary {
  font-size: 0.95rem;
  color: var(--accent-flutter);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
  margin: 24px 0;
}

.bio-compact {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 500;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 32px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-flutter);
  padding-left: 8px;
}

.nav-icon {
  width: 24px;
  color: var(--accent-flutter);
  transition: all 0.3s ease;
}

.nav-link:hover .nav-icon {
  color: var(--accent-fire);
  transform: scale(1.1);
}

.sidebar-footer {
  font-size: 0.85rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-status 2s infinite;
  box-shadow: 0 0 10px #22c55e80;
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.contact-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.contact-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.contact-link:hover {
  color: var(--accent-flutter);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  color: var(--text-muted);
  font-size: 1.3rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--accent-flutter);
  transform: translateY(-3px);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 48px 64px;
  max-width: calc(100% - var(--sidebar-width));
}

/* Hero Statement — vibrant gradient text */
.hero-statement {
  margin-bottom: 80px;
  padding-top: 20px;
}

.statement-large {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.statement-line {
  display: block;
}

.statement-line:nth-child(1) { color: var(--text-primary); }
.statement-line:nth-child(2) { color: var(--accent-flutter); }
.statement-line:nth-child(3) { color: var(--text-primary); }
.statement-line:nth-child(4) {
  background: linear-gradient(135deg, var(--accent-flutter), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.statement-line em {
  font-style: italic;
  color: var(--accent-fire);
}

.statement-quote {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  border-left: 3px solid var(--accent-flutter);
  padding-left: 24px;
  font-weight: 400;
  background: linear-gradient(90deg, rgba(2, 86, 155, 0.05), transparent);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
}

/* Section Blocks */
.section-block {
  margin-bottom: 100px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 48px;
}

.section-number {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--accent-flutter);
  font-weight: 600;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Timeline — colorful markers */
.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-flutter), var(--accent-purple), var(--accent-fire));
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
  padding-left: 40px;
}

.timeline-marker {
  position: absolute;
  left: -20px;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--bg-gradient-start);
  border: 2px solid var(--accent-flutter);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 var(--accent-flutter);
}

.timeline-item:hover .timeline-marker {
  background: var(--accent-flutter);
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(2, 86, 155, 0.2);
}

.timeline-item:nth-child(2) .timeline-marker { border-color: var(--accent-purple); }
.timeline-item:nth-child(2):hover .timeline-marker { background: var(--accent-purple); box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.2); }
.timeline-item:nth-child(3) .timeline-marker { border-color: var(--accent-fire); }
.timeline-item:nth-child(3):hover .timeline-marker { background: var(--accent-fire); box-shadow: 0 0 0 6px rgba(255, 111, 0, 0.2); }

.timeline-period {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-flutter);
  margin-bottom: 8px;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.timeline-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 500;
}

.timeline-details {
  list-style: none;
}

.timeline-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-details li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-flutter);
  font-size: 1.1rem;
}

/* Craft Grid — colorful categories */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.craft-category {
  border-top: 2px solid var(--border-light);
  padding-top: 24px;
}

.craft-category.highlight {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(2, 86, 155, 0.05), rgba(124, 58, 237, 0.05));
  margin-top: 20px;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent-flutter);
}

.craft-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 600;
}

.craft-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.craft-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: white;
  border: 1.5px solid var(--border-light);
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
  cursor: default;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.craft-item i {
  color: var(--accent-flutter);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.craft-item:hover {
  background: var(--accent-flutter);
  color: white;
  border-color: var(--accent-flutter);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(2, 86, 155, 0.2);
}

.craft-item:hover i {
  color: white !important;
}

.craft-category:nth-child(2) .craft-item i { color: var(--accent-fire); }
.craft-category:nth-child(2) .craft-item:hover { 
  background: var(--accent-fire); 
  border-color: var(--accent-fire); 
  box-shadow: 0 8px 16px rgba(255, 111, 0, 0.2); 
}

.craft-category:nth-child(3) .craft-item i { color: var(--accent-teal); }
.craft-category:nth-child(3) .craft-item:hover { 
  background: var(--accent-teal); 
  border-color: var(--accent-teal); 
  box-shadow: 0 8px 16px rgba(13, 148, 136, 0.2); 
}

.craft-category.highlight .craft-item i { color: var(--accent-purple); }
.craft-category.highlight .craft-item:hover { 
  background: var(--accent-purple); 
  border-color: var(--accent-purple); 
  box-shadow: 0 8px 16px rgba(124, 58, 237, 0.2); 
}

.craft-item.large {
  font-size: 1.2rem;
  padding: 14px 24px;
}

/* Project Grid — colorful interactions */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 48px;
}

.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1.5px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
}

.project-glow {
  position: absolute;
  top: 0;
  left: -20px;
  right: -20px;
  bottom: 0;
  background: transparent;
  transition: all 0.3s ease;
  z-index: -1;
  border-radius: 8px;
}

.project-card:hover {
  padding-left: 20px;
  border-bottom-color: var(--accent-flutter);
}

.project-card:hover .project-glow {
  background: linear-gradient(90deg, rgba(2, 86, 155, 0.06), transparent);
}

.project-content {
  flex: 1;
}

.project-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.project-card:hover .project-name {
  color: var(--accent-flutter);
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.project-tech {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-flutter);
  font-weight: 600;
}

.project-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: var(--accent-flutter);
  font-size: 1.2rem;
}

.project-card:hover .project-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Currently Banner — gradient background */
.currently-banner {
  background: linear-gradient(135deg, var(--accent-flutter), var(--accent-purple));
  padding: 24px 32px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(2, 86, 155, 0.25);
}

.currently-content {
  display: flex;
  align-items: baseline;
  gap: 24px;
  color: white;
}

.currently-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.9;
  font-weight: 600;
}

.currently-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Footer */
.main-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1.5px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Magnetic effect */
.magnetic {
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.4, 1);
}

/* Responsive */
@media (max-width: 1024px) {
  :root { --sidebar-width: 320px; }
  .main-content { padding: 48px 40px; }
}

@media (max-width: 768px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 32px 24px;
  }
  .main-content {
    max-width: 100%;
    padding: 40px 24px;
  }
  .profile-image-wrapper { width: 100px; height: 100px; }
  .name { font-size: 2.2rem; }
  .craft-grid { grid-template-columns: 1fr; }
  .craft-category.highlight { grid-column: span 1; }
  .statement-large { font-size: 2.5rem; }
}

@media (max-width: 480px) {
  .sidebar { padding: 24px 20px; }
  .main-content { padding: 32px 20px; }
  .project-name { font-size: 1.4rem; }
  .currently-content { flex-direction: column; gap: 8px; }
}
