/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables - Light Mode */
:root {
  --background: #f5f5f5;
  --foreground: #1a1a1a;
  --card: #ffffff;
  --card-foreground: #1a1a1a;
  --muted: #e0e0e0;
  --muted-foreground: #6b6b6b;
  --accent: #8b7ab8;
  --accent-foreground: #ffffff;
  --border: #d0d0d0;
  --ring: #a0a0a0;
  --green-pastel: #c8e6c9;
  --purple-pastel: #e1bee7;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  background: linear-gradient(135deg, #d4f1d4 0%, #e8d4f1 40%, #d4d4f1 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 4rem;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

h2 {
  font-size: 2rem;
  color: #8b7ab8;
}

h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
}

p {
  color: #4a4a4a;
}

.font-mono {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  letter-spacing: 0.05em;
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.max-w-3xl {
  max-width: 48rem;
  margin: 0 auto;
}

.max-w-4xl {
  max-width: 56rem;
  margin: 0 auto;
}

.max-w-5xl {
  max-width: 64rem;
  margin: 0 auto;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  background: transparent;
}

nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

nav .logo {
  font-family: monospace;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s;
}

nav .logo:hover {
  color: #6b6b6b;
}

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

nav .nav-links a {
  font-family: monospace;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: #6b6b6b;
}

nav .nav-links a.active::before {
  content: '→ ';
  position: absolute;
  left: -1.5rem;
  color: #1a1a1a;
}

/* Main Content */
main {
  min-height: 100vh;
  padding: 8rem 0 5rem;
}

@media (min-width: 1024px) {
  main {
    margin-right: 20rem;
    border-right: 2px solid rgba(0, 0, 0, 0.1);
    padding-right: 3rem;
  }
}

/* Sidebar */
.sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .sidebar {
    display: block;
    position: fixed;
    right: 2rem;
    top: 8rem;
    width: 16rem;
  }
}

.sidebar section {
  margin-bottom: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar section:first-child {
  border-top: none;
  padding-top: 0;
}

.sidebar h3 {
  font-family: 'Inter', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b7ab8;
  margin-bottom: 0.75rem;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.sidebar a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  display: inline-block;
}

.sidebar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

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

.sidebar a:hover::after {
  width: 100%;
}

.sidebar .todo-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--foreground);
}

.sidebar .todo-item .checkbox {
  font-family: monospace;
  margin-top: 0.125rem;
  color: var(--accent);
}

.sidebar .todo-item.done {
  color: var(--muted-foreground);
  text-decoration: line-through;
}

/* Spacing Utilities */
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-16 > * + * { margin-top: 4rem; }

/* Cards and Sections */
.card {
  border: 1px solid var(--border);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  border-radius: 8px;
}

.card:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.border-l-accent {
  border-left: 2px solid var(--accent);
  padding-left: 2rem;
}

.text-accent {
  color: var(--foreground);
}

.text-muted {
  color: var(--muted-foreground);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

.link-interactive {
  position: relative;
  display: inline-block;
  transition: color 0.3s;
  color: #1a1a1a;
}

.link-interactive::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #8b7ab8;
  transition: width 0.3s;
}

.link-interactive:hover {
  color: #8b7ab8;
}

.link-interactive:hover::after {
  width: 100%;
}

/* Project List */
.project-list,
.blog-list {
  list-style: none;
}

.project-item,
.blog-item {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  transition: background 0.3s;
}

.project-item:hover,
.blog-item:hover {
  background: rgba(69, 69, 69, 0.05);
}

.project-item:last-child,
.blog-item:last-child {
  border-bottom: 1px solid var(--border);
}

.project-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

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

.project-number {
  font-family: 'Inter', monospace;
  font-size: 0.875rem;
  color: #8b7ab8;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  font-family: 'Inter', monospace;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #6b6b6b;
  color: #6b6b6b;
}

.project-year {
  font-family: 'Inter', monospace;
  font-size: 0.875rem;
  color: #8b7ab8;
  text-align: right;
}

.arrow {
  font-family: 'Inter', monospace;
  font-size: 0.875rem;
  color: #1a1a1a;
  transition: transform 0.3s;
}

.project-item:hover .arrow,
.blog-item:hover .arrow {
  transform: translateX(0.25rem);
}

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

/* Experience Timeline */
.experience-item {
  border-left: 2px solid var(--muted);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.experience-date {
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Interests Grid */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.interests-list {
  list-style: none;
}

.interests-list li {
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

/* Blog Meta */
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.blog-date {
  font-family: 'Inter', monospace;
  font-size: 0.875rem;
  color: #6b6b6b;
}

.read-time {
  font-family: 'Inter', monospace;
  font-size: 0.875rem;
  color: #8b7ab8;
}

/* Form */
.subscribe-form {
  display: flex;
  gap: 0.5rem;
  max-width: 28rem;
}

.subscribe-form input {
  flex: 1;
  padding: 0.5rem 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-family: monospace;
  font-size: 0.875rem;
  transition: border-color 0.3s;
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--foreground);
}

.subscribe-form button {
  padding: 0.5rem 1.5rem;
  background: var(--foreground);
  color: var(--background);
  border: none;
  font-family: monospace;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.3s;
}

.subscribe-form button:hover {
  background: rgba(251, 251, 251, 0.9);
}

/* Featured Cards with Visual Elements */
.featured-project-card {
  background: linear-gradient(135deg, rgba(200, 230, 201, 0.3) 0%, rgba(225, 190, 231, 0.3) 100%);
  border: 2px solid var(--accent);
  padding: 2.5rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(139, 122, 184, 0.2);
}

.featured-project-card::before {
  content: '◆';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.2;
}

.featured-blog-card {
  background: linear-gradient(135deg, rgba(225, 190, 231, 0.3) 0%, rgba(200, 230, 201, 0.3) 100%);
  border: 2px solid var(--accent);
  padding: 2.5rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(139, 122, 184, 0.2);
}

.featured-blog-card::before {
  content: '✦';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.2;
}

.connect-card {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--border);
  padding: 2.5rem;
  border-radius: 12px;
  transition: border-color 0.3s;
}

.connect-card:hover {
  border-color: var(--accent);
}

/* Keywords Section */
.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.keyword-tag {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: background 0.3s, transform 0.2s;
}

.keyword-tag:hover {
  background: rgba(139, 122, 184, 0.2);
  transform: scale(1.05);
}

/* Row Layout */
.feature-row {
  width: 100%;
  margin-bottom: 3rem;
}

/* Flower icon style for bullet points */
.flower-bullet {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.flower-bullet::before {
  content: "✿";
  color: #1a1a1a;
  font-size: 14px;
}

/* Biography Content - Black Text & Flower Bullets */
.bio-content h2 {
  color: #1a1a1a;
}

.bio-content h3 {
  color: #1a1a1a;
}

.bio-content ul {
  list-style: none;
  padding-left: 1.5em;
}

.bio-content ul li {
  position: relative;
}

.bio-content ul li::before {
  content: "✿";
  color: #1a1a1a;
  font-size: 14px;
  position: absolute;
  left: -1.5em;
}

.bio-content p {
  color: #1a1a1a;
}

/* All list items with flower bullets */
.interests-list li::before {
  content: "✿";
  color: #1a1a1a;
  font-size: 14px;
  display: inline-block;
  width: 1.5em;
  margin-right: 0.5em;
}

/* Sidebar links with flower bullets */
.sidebar ul:not(.todo-list) li::before {
  content: "✿";
  color: #1a1a1a;
  font-size: 14px;
  margin-right: 0.5em;
}

.sidebar .todo-item .checkbox {
  font-family: monospace;
  margin-top: 0.125rem;
}

/* Replace checkbox symbols with flowers */
.sidebar .todo-item.done .checkbox::before {
  content: "✿";
  color: #1a1a1a;
  font-size: 14px;
  display: inline-block;
  width: 1.5em;
  margin-right: 0;
}

.sidebar .todo-item:not(.done) .checkbox::before {
  content: "✿";
  color: #1a1a1a;
  font-size: 14px;
  opacity: 0.4;
  display: inline-block;
  width: 1.5em;
  margin-right: 0;
}

/* ASCII Flower Art */
.ascii-flowers {
  position: relative;
  bottom: auto;
  right: auto;
  margin: 2rem auto 0;
  padding: 0.5rem;
  font-family: monospace;
  font-size: 0.65rem;
  line-height: 1.2;
  color: #1a1a1a;
  opacity: 1;
  pointer-events: none;
  white-space: pre;
  direction: ltr;
  text-align: center;
  display: block;
  width: fit-content;
}

@media (min-width: 768px) {
  .ascii-flowers {
    position: fixed;
    bottom: 0;
    right: 0;
    left: auto;
    margin: 0;
    padding: 0;
    max-width: none;
    text-align: left;
    width: auto;
    display: inline-block;
  }
}

@media (min-width: 1024px) {
  .ascii-flowers {
    right: 2rem;
    max-width: 16rem;
    width: 16rem;
    z-index: 5;
    padding: 0;
    display: inline-block;
    top: auto;
    bottom: 0;
    overflow: hidden;
    font-size: 0.74rem;
    line-height: 1.15;
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  nav .nav-links {
    gap: 1rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .featured-project-card::before,
  .featured-blog-card::before {
    font-size: 2rem;
  }

  .ascii-flowers {
    font-size: 0.75rem;
  }
}

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

  .keywords {
    gap: 0.5rem;
  }

  .keyword-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .ascii-flowers {
    display: none;
  }
}

/* Venn Diagram */
.venn-diagram {
  max-width: 400px;
  margin: 2rem auto;
  display: flex;
  justify-content: center;
}

.venn-diagram svg {
  width: 100%;
  height: auto;
}

/* Timeline Roadmap */
.timeline-roadmap {
  position: relative;
  padding: 3rem 0;
  margin: 2rem 0;
}

.timeline-roadmap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg,
    rgba(200, 230, 201, 0.6) 0%,
    rgba(232, 212, 241, 0.6) 50%,
    rgba(212, 212, 241, 0.6) 100%);
  transform: translateX(-50%);
  transform-origin: top;
  animation: timeline-line-draw 2s ease-out forwards;
}

@keyframes timeline-line-draw {
  from {
    transform: translateX(-50%) scaleY(0);
  }
  to {
    transform: translateX(-50%) scaleY(1);
  }
}

.roadmap-step {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.roadmap-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.roadmap-step.roadmap-left {
  justify-content: flex-end;
  padding-right: calc(50% + 2rem);
}

.roadmap-step.roadmap-right {
  justify-content: flex-start;
  padding-left: calc(50% + 2rem);
}

.roadmap-marker {
  position: absolute;
  left: 50%;
  top: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  background: #1a1a1a;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  z-index: 2;
  transition: transform 0.4s ease-out 0.2s;
}

.roadmap-step.visible .roadmap-marker {
  transform: translateX(-50%) scale(1);
}

.roadmap-content {
  background: rgba(255, 255, 255, 0.4);
  padding: 1.5rem;
  border: 2px solid rgba(139, 122, 184, 0.3);
  backdrop-filter: blur(8px);
  max-width: 400px;
}

.roadmap-content h3 {
  font-size: 1.125rem;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.roadmap-content p {
  color: #4a4a4a;
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 768px) {
  .timeline-roadmap::before {
    left: 1rem;
  }

  .roadmap-step.roadmap-left,
  .roadmap-step.roadmap-right {
    justify-content: flex-start;
    padding-left: 3rem;
    padding-right: 0;
  }

  .roadmap-marker {
    left: 1rem;
  }

  .roadmap-content {
    max-width: 100%;
  }
}
