@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #09090b;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --border-line: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(255, 255, 255, 0.6);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg);
  background-image: linear-gradient(135deg, rgba(9, 9, 11, 0.78) 0%, rgba(9, 9, 11, 0.88) 100%), url('bg-sakura.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* --- Ambient Falling Pink & Rosa Sakura Leaves --- */
#leaf-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.leaf-wrapper {
  position: absolute;
  top: -60px;
  pointer-events: none;
  will-change: transform, opacity;
  animation: sakuraFall linear infinite;
}

@keyframes sakuraFall {
  0% {
    transform: translate3d(0, -60px, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: var(--leaf-opacity, 0.55);
  }
  88% {
    opacity: var(--leaf-opacity, 0.55);
  }
  100% {
    transform: translate3d(var(--drift, -200px), 105vh, 0) rotate(var(--rot, 360deg));
    opacity: 0;
  }
}

.leaf-svg {
  display: block;
  animation: sakuraSway 3s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

@keyframes sakuraSway {
  0% {
    transform: translateX(-24px) rotate(-20deg);
  }
  100% {
    transform: translateX(24px) rotate(20deg);
  }
}

/* --- One-Pager Zero-Scroll Container --- */
.one-pager {
  max-width: 1050px;
  height: 100vh;
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* --- Header --- */
.header {
  margin-bottom: 24px;
}

.name {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- 3-Column Grid Layout (Fits in One Page without Scrolling) --- */
.columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
  flex: 1;
  padding: 24px 0;
}

.column-section {
  display: flex;
  flex-direction: column;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

/* --- Top-to-Bottom Vertical Tech List --- */
.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-line);
  font-size: 0.96rem;
  color: var(--text-muted);
  font-weight: 400;
  transition: border-color 0.15s ease, color 0.15s ease;
  cursor: default;
}

.tech-item:hover {
  border-bottom-style: solid;
  border-bottom-color: var(--border-hover);
  color: #ffffff;
}

/* Official Devicon SVG logos */
.icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.tech-item:hover .icon {
  transform: scale(1.1);
}

/* --- Top-to-Bottom Vertical Links List --- */
.links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-line);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.link-item:hover {
  border-bottom-style: solid;
  border-bottom-color: var(--border-hover);
}

.link-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.link-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.link-item:hover .link-icon {
  transform: scale(1.1);
}

.link-label {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text-main);
}

.link-url {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.link-item:hover .link-url {
  color: var(--text-main);
}

/* --- Footer --- */
.footer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 12px;
}
