@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700&display=swap");

:root {
  --bg: #070707;
  --text: #f5f5f5;
  --muted: #888;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.04);
  --accent: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  overflow-x: hidden;
  min-height:100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   Background
========================= */

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.grid {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);

  background-size: 80px 80px;

  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}

.glow-1 {
  top: 5%;
  left: 10%;
  background: white;
}

.glow-2 {
  top: 40%;
  right: 0;
  background: #777;
}

/* =========================
   Header
========================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 6vw;

  border-bottom: 1px solid transparent;

  z-index: 100;

  transition: 0.3s;
}

.header.scrolled {
  background: rgba(7, 7, 7, 0.75);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo span,
.footer-logo span {
  color: #aaa;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: #aaa;
  font-size: 13px;
  transition: 0.25s;
}

.nav a:hover {
  color: white;
}


/* =========================
   Hero
========================= */

.hero {
  min-height: 100vh;

  position: relative;

  display: flex;
  align-items: center;

  padding: 120px 10vw;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-label {
  color: #888;
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-bottom: 25px;
}

.hero h1 {
  font-size: clamp(70px, 10vw, 150px);
  line-height: 0.88;
  letter-spacing: -0.08em;
  font-weight: 800;
}

.hero h1 span {
  color: #777;
}

.hero-description {
  margin-top: 35px;

  color: #aaa;

  font-size: 15px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 35px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 20px;

  padding: 15px 22px;

  font-size: 12px;
  font-weight: 600;

  border: 1px solid var(--line);

  transition: 0.3s;
}

.button span {
  transition: 0.3s;
}

.button:hover span {
  transform: translate(4px, -4px);
}

.button.primary {
  background: white;
  color: black;
}

.button.primary:hover {
  background: #ddd;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Orbit */

.hero-orbit {
  position: absolute;

  width: min(45vw, 600px);
  height: min(45vw, 600px);

  right: 3vw;
  top: 50%;

  transform: translateY(-50%);

  opacity: 0.7;
}

.orbit {
  position: absolute;
  inset: 0;

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.orbit-1 {
  animation: rotate 25s linear infinite;
}

.orbit-2 {
  inset: 15%;

  border-style: dashed;

  animation: rotateReverse 18s linear infinite;
}

.orbit-center img{
  position: absolute;

  top: 50%;
  left: 50%;

  width: 120px;
  height: 120px;

  transform: translate(-50%, -50%);

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;

  display: grid;
  place-items: center;

  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.orbit-center span {
  font-size: 28px;
  font-weight: 800;
}
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateReverse {
  to {
    transform: rotate(-360deg);
  }
}

/* Scroll */

.scroll {
  position: absolute;

  bottom: 35px;
  left: 10vw;

  display: flex;
  align-items: center;
  gap: 15px;

  color: #666;

  font-size: 9px;
  letter-spacing: 0.2em;
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: #555;
}

/* =========================
   Sections
========================= */

.section {
  width: min(1200px, 80vw);
  margin: auto;

  padding: 150px 0;
}

.section-heading {
  margin-bottom: 70px;
}

.section-heading p {
  color: #666;
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: 15px;
}

.section-heading h2 {
  font-size: clamp(40px, 5vw, 70px);
  letter-spacing: -0.06em;
}

/* =========================
   About
========================= */

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 10vw;
  align-items: center;
}

.about-text .large-text {
  font-size: clamp(40px, 5vw, 65px);
  line-height: 1.1;
  letter-spacing: -0.06em;
  font-weight: 700;
  margin-bottom: 40px;
}

.about-text .large-text span {
  color: #777;
}

.about-text > p:not(.large-text) {
  color: #888;
  max-width: 600px;
  line-height: 2;
  margin-bottom: 20px;
  font-size: 14px;
}

.about-card {
  padding: 30px;

  border: 1px solid var(--line);
  background: var(--card);

  backdrop-filter: blur(20px);
}

.card-top {
  display: flex;
  justify-content: space-between;

  color: #666;

  font-size: 9px;
  letter-spacing: 0.15em;
}

.profile-icon img{
  width: 100px;
  height: 100px;

  display: grid;
  place-items: center;

  margin: 70px auto 30px;

  border: 1px solid #444;
  border-radius: 50%;

  font-size: 25px;
  font-weight: 800;
}

.about-card h3 {
  text-align: center;
  font-size: 20px;
}

.about-card > p {
  text-align: center;
  color: #777;
  font-size: 12px;
  margin-top: 8px;
}

.profile-links {
  text-align: center;
  margin-top: 30px;
}

.profile-links a {
  font-size: 11px;
  border-bottom: 1px solid #555;
  padding-bottom: 5px;
}

/* =========================
   Projects
========================= */

.projects {
  border-top: 1px solid var(--line);
}

.project {
  display: grid;

  grid-template-columns: 100px 1fr 50px;

  align-items: center;

  padding: 40px 0;

  border-bottom: 1px solid var(--line);

  transition: 0.3s;
}

.project:hover {
  padding-left: 20px;
  padding-right: 20px;

  background: rgba(255, 255, 255, 0.03);
}

.project-number {
  color: #555;
  font-size: 11px;
}

.project-category {
  color: #666;
  font-size: 9px;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.project h3 {
  font-size: 25px;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.project-info > p:last-child {
  color: #777;
  font-size: 12px;
}

.project-arrow {
  font-size: 25px;
  transition: 0.3s;
}

.project:hover .project-arrow {
  transform: translate(5px, -5px);
}

/* =========================
   Skills
========================= */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skill {
  min-height: 220px;

  padding: 30px;

  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  transition: 0.3s;
}

.skill > span {
  color: #555;
  font-size: 10px;
}

.skill h3 {
  margin-top: 60px;

  font-size: 22px;
  letter-spacing: -0.04em;
}

.skill p {
  margin-top: 8px;

  color: #666;

  font-size: 11px;
}

/* =========================
   GitHub
========================= */

.github-section {
  width: 100%;
  padding: 100px 10vw;
}

.github-box {
  min-height: 500px;

  padding: 70px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  border: 1px solid var(--line);

  background:
    radial-gradient(
      circle at 70% 30%,
      rgba(255, 255, 255, 0.08),
      transparent 40%
    ),
    rgba(255, 255, 255, 0.02);
}

.github-box > p {
  color: #666;
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.github-box h2 {
  font-size: clamp(50px, 8vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.08em;
  margin-bottom: 50px;
}

/* =========================
   Contact
========================= */

.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 50px 0;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-content > p {
  color: #777;
  font-size: 13px;
  line-height: 1.8;
}

.contact-link {
  font-size: 30px;
  font-weight: 700;

  display: flex;
  gap: 20px;

  border-bottom: 1px solid #444;

  padding-bottom: 5px;
}

.contact-link span {
  transition: 0.3s;
}

.contact-link:hover span {
  transform: translate(5px, -5px);
}

/* =========================
   Footer
========================= */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 40px 6vw;

  border-top: 1px solid var(--line);

  color: #555;
}

.footer-logo {
  font-size: 18px;
  font-weight: 800;
}

.footer p,
.footer a {
  font-size: 10px;
}

.footer a:hover {
  color: white;
}

/* =========================
   Animation
========================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Mobile
========================= */

@media (max-width: 800px) {
  .header {
    height: 70px;
    padding: 0 6vw;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 100svh;

    padding: 120px 7vw 80px;

    align-items: flex-start;
  }

  .hero h1 {
    font-size: clamp(60px, 18vw, 100px);
  }

  .hero-orbit {
    width: 90vw;
    height: 90vw;

    right: -30vw;
    top: 55%;

    opacity: 0.3;
  }

  .scroll {
    left: 7vw;
  }

  .section {
    width: 86vw;
    padding: 100px 0;
  }

  .section-heading {
    margin-bottom: 45px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-card {
    max-width: 500px;
  }

  .project {
    grid-template-columns: 45px 1fr 25px;
    padding: 30px 0;
  }

  .project h3 {
    font-size: 19px;
  }

  .project-info > p:last-child {
    line-height: 1.7;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .skill {
    min-height: 180px;
    padding: 20px;
  }

  .skill h3 {
    margin-top: 40px;
    font-size: 17px;
  }

  .github-section {
    padding: 50px 7vw;
  }

  .github-box {
    min-height: 400px;
    padding: 35px;
  }

  .contact-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .contact-link {
    font-size: 24px;
  }

  .footer {
    flex-direction: column;
    gap: 20px;
  }
}
