/* Cafe Theme CSS Variables */
:root {
  /* Main Colors - 植物カフェ風（北欧カフェイメージ） */
  --primary-bg: linear-gradient(135deg, #f8faf8 0%, #f0f4f0 100%);
  --text-primary: #2d3d2d;
  --text-secondary: #5a6b5a;
  
  /* Accent Colors */
  --accent-primary: #9cb39c;
  --accent-secondary: #b5c7b5;
  --accent-gradient: linear-gradient(45deg, #9cb39c, #b5c7b5);
  
  /* Component Colors */
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(0, 0, 0, 0.08);
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
  
  /* Animations */
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s ease-in-out;
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--primary-bg);
  background-attachment: fixed;
  min-height: 100vh;
}

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

/* Header Section */
.header-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(156, 179, 156, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(181, 199, 181, 0.08) 0%, transparent 50%);
  z-index: -1;
}

.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.profile-image-container {
  position: relative;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  background: white;
  transition: var(--transition-fast);
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.profile-name {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 2px 2px 4px rgba(107, 68, 35, 0.1);
  margin: 0;
}

.profile-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 300;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.social-links a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--card-border);
}

.social-links a:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* GitHub Stats */
.github-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.stat-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-fast);
  border: 1px solid var(--card-border);
  min-width: 100px;
}

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

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Section Styles */
.about-section,
.projects-section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--card-border);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-20 {
  margin-top: 20px;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .social-links,
  .github-stats {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .profile-image {
    box-shadow: none;
  }
}