:root {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --text: #171717;
  --text-secondary: #525252;
  --text-muted: #a3a3a3;
  --border: #e5e5e5;
  --accent: #171717;
  --accent-hover: #404040;
  --gradient-start: #171717;
  --gradient-end: #404040;
}

* {
  box-sizing: border-box;
}

/* Cursor trail particle */
.cursor-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.6;
  transform: translate(-50%, -50%);
  animation: cursorFade 0.6s ease-out forwards;
}

@keyframes cursorFade {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

html {
  /* scroll-behavior handled by Lenis JS */
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

button {
  cursor: pointer;
}

/* Container */
.container {
  width: min(800px, 90%);
  margin: 0 auto;
}

/* Progress Bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 999;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  transition: width 0.15s ease-out;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: white;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.3px;
}

.brand__role {
  color: var(--text-muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav__link {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav__link:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.lang {
  display: flex;
  gap: 4px;
  background: var(--bg-elevated);
  padding: 4px;
  border-radius: 10px;
}

.lang__btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang__btn:hover {
  color: var(--text-secondary);
}

.lang__btn[aria-pressed="true"] {
  color: var(--text);
  background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Main */
.main {
  padding-bottom: 100px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section__title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 24px;
}

.section__text {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.8;
  max-width: 100%;
}

/* Hero */
.hero {
  padding: 100px 0 60px;
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Hero visual with doodles */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.hero__doodle {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.hero__doodle video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__doodle--left {
  animation: floatLeft 4s ease-in-out infinite;
}

.hero__doodle--right {
  animation: floatRight 4s ease-in-out infinite;
}

@keyframes floatLeft {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

@keyframes floatRight {
  0%, 100% {
    transform: translateY(-8px) rotate(3deg);
  }
  50% {
    transform: translateY(4px) rotate(-3deg);
  }
}

@media (max-width: 768px) {
  .hero__visual {
    gap: 16px;
  }
  
  .hero__doodle {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .hero__doodle {
    width: 60px;
    height: 60px;
  }
  
  .hero__visual {
    gap: 12px;
  }
}

.hero__photo {
  position: relative;
}

.hero__photo::before {
  content: "";
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 50%;
  opacity: 0.6;
  filter: blur(12px);
  z-index: -1;
}

.hero__photo img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
}

.hero__text {
  max-width: 480px;
}

.hero__greeting {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero__title {
  font-size: 42px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--text), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  margin: 12px 0 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
}

.hero__desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-top: 16px;
}

.hero__cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn--secondary:hover {
  background: var(--bg-elevated);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.link {
  font-size: 14px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

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

/* About Card */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-video {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.about-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-video {
    width: 100%;
    height: auto;
    max-width: 240px;
    margin: 0 auto;
  }
}

/* Skills */
.skills-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.skills-doodle {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.skills-doodle video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .skills-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .skills-doodle {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }
}

.skills {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.skills__item:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Contact */
.contact-header {
  display: block;
}

.contact-info {
  flex: 1;
}

.contact-doodle {
  width: 220px;
  height: 220px;
  margin: 40px auto 0;
}

.contact-doodle video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .contact-doodle {
    width: 180px;
    height: 180px;
    margin: 32px auto 0;
  }
}

.contact {
  margin-top: 24px;
  display: grid;
  gap: 8px;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.25s ease;
}

.contact__link:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateX(4px);
}

.contact__icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.footer span {
  color: var(--text-muted);
  font-size: 13px;
}

/* Language Blocks */
.lang-block {
  display: none;
}

.lang-block.is-active {
  display: block;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .header__inner {
    padding: 12px 0;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__photo img {
    width: 120px;
    height: 120px;
  }

  .section {
    padding: 60px 0;
  }

  .about-card {
    padding: 24px;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .lang {
    align-self: flex-end;
    margin-top: -36px;
  }

  .hero__title {
    font-size: 28px;
  }

  .contact__link {
    padding: 14px 16px;
  }
}
