/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0a0a0b;
  --color-bg-secondary: #111113;
  --color-text: #ffffff;
  --color-text-muted: #888894;
  --color-accent: #6366f1;
  --color-accent-light: #818cf8;
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color var(--transition);
}

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

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-content {
  max-width: 600px;
}

.hero-greeting {
  color: var(--color-accent-light);
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: 400;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-weight: 400;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--color-accent);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.cta-button:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

/* Hero Visual */
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
}

.floating-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.4);
  top: 0;
  right: 0;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: rgba(236, 72, 153, 0.3);
  bottom: 20%;
  left: 10%;
  animation-delay: -2s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: rgba(34, 211, 238, 0.3);
  top: 30%;
  left: 20%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-5deg); }
}

/* ===== Sections Common ===== */
.section-title {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-light);
  margin-bottom: 48px;
}

/* ===== About Section ===== */
.about {
  padding: 120px 0;
  background: var(--color-bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: all var(--transition);
}

.skill-tag:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--color-accent);
}

/* ===== Works Section ===== */
.works {
  padding: 120px 0;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.work-card {
  background: var(--color-bg-secondary);
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--transition);
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-8px);
}

.work-image {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.work-number {
  font-size: 5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: -0.05em;
}

.work-info {
  padding: 28px;
}

.work-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.work-info p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.work-tags {
  display: flex;
  gap: 8px;
}

.work-tags span {
  font-size: 0.8rem;
  color: var(--color-accent-light);
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ===== Contact Section ===== */
.contact {
  padding: 120px 0;
  background: var(--color-bg-secondary);
  text-align: center;
}

.contact-text {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.contact-email:hover {
  color: var(--color-accent-light);
}

.contact-email:hover::after {
  transform: scaleX(1);
}

.social-links {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.social-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-visual {
    display: none;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .nav-links {
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 100px 20px 60px;
  }
  
  .hero-description br {
    display: none;
  }
  
  .works-grid {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    flex-wrap: wrap;
    gap: 20px;
  }
}
