@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #4f46e5; /* Indigo */
  --primary-light: #e0e7ff;
  --secondary-color: #0ea5e9; /* Sky Blue */
  --text-dark: #0f172a;
  --text-medium: #334155;
  --text-light: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-medium);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4.5rem;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-card);
  animation: float 6s ease-in-out infinite;
  user-select: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: 3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: #3b32b3;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-medium);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color);
}

section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 2rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* Profile Section */
.profile-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.profile-text {
  font-size: 1.05rem;
}

.profile-text p {
  margin-bottom: 1.5rem;
  color: var(--text-medium);
}

.profile-info {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.info-item {
  display: flex;
  margin-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.75rem;
}

.info-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  font-weight: 600;
  width: 100px;
  color: var(--text-dark);
}

.info-value {
  color: var(--text-medium);
  flex: 1;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.skill-category h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-bar-wrapper {
  margin-bottom: 0.25rem;
}

.skill-name-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.skill-bar-bg {
  background-color: #f1f5f9;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  height: 100%;
  border-radius: 4px;
  /* Simple transition to support load effects */
  transition: width 1s ease-out;
}

/* Works Section */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.work-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.work-img-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #e0e7ff, #e0f2fe);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  user-select: none;
}

.work-info {
  padding: 1.5rem;
}

.work-info h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.work-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* Contact Section */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: var(--text-medium);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.social-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 1.5rem;
  color: var(--text-medium);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.social-btn:hover {
  transform: translateY(-5px);
  color: white;
  box-shadow: var(--shadow-lg);
}

.social-btn.github:hover {
  background-color: #24292e;
  border-color: #24292e;
}

.social-btn.twitter:hover {
  background-color: #1da1f2;
  border-color: #1da1f2;
}

.social-btn.email:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero {
    padding: 4rem 0 3rem;
  }
  
  .hero h1 {
    font-size: 2.3rem;
  }
  
  .profile-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .skills-grid, .works-grid {
    grid-template-columns: 1fr;
  }
}
