/* 
  Physical Thinker - Eutopia Aesthetics (Minimalist, Organic, Light Mode)
*/

:root {
  --bg-color: #FAF8F4;
  --bg-color-alt: #F4F1EA;
  --text-primary: #333333;
  --text-secondary: #6B6B6B;
  --accent-color: #C04848;
  --border-color: rgba(51, 51, 51, 0.1);
  --border-color-light: rgba(51, 51, 51, 0.05);
  
  --font-sans: 'Cormorant Garamond', 'Noto Sans JP', sans-serif;
  --font-serif: 'Shippori Mincho', 'Noto Serif JP', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #222222;
  text-wrap: balance; /* Modern browsers: balance title wrapping */
}

.phrase {
  display: inline-block;
}

p {
  font-family: var(--font-serif);
  overflow-wrap: anywhere;
}

.en-title, .feature-en {
  font-family: var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 500;
}

/* =========================================
   Layout & Container
   ========================================= */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 140px 0;
  position: relative;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-color);
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, var(--bg-color) 70%);
}

.blob {
  position: absolute;
  filter: blur(120px);
  border-radius: 50%;
  opacity: 0.5;
  animation: float 20s ease-in-out infinite alternate;
}

.blob-1 {
  width: 600px; height: 600px;
  background: #E8E0D5;
  top: -10%; left: -10%;
}

.blob-2 {
  width: 500px; height: 500px;
  background: rgba(192, 72, 72, 0.05); /* very subtle terracotta */
  bottom: -10%; right: -10%;
  animation-delay: -5s;
}

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

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 20px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  letter-spacing: 0.2rem;
  font-weight: 400;
}

.title {
  font-size: 3.8rem;
  font-weight: 400;
  margin-bottom: 3rem;
  line-height: 1.3;
}

.description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 5rem;
  line-height: 2.2;
}

.scroll-down-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
  font-family: var(--font-sans);
  text-transform: uppercase;
}

.scroll-down-btn svg {
  width: 20px;
  height: 20px;
  animation: bounce 2.5s infinite;
  stroke-width: 1.5;
}

.scroll-down-btn:hover {
  opacity: 1;
  color: var(--accent-color);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* =========================================
   About Section
   ========================================= */
.about-section {
  background-color: var(--bg-color-alt);
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.section-title.white {
  color: var(--text-primary);
}

.section-lead {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 5rem auto;
  line-height: 2;
}

.thinker-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.thinker-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color-light);
  padding: 3.5rem 2.5rem;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.thinker-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.03);
}

.thinker-card.highlight {
  background: #ffffff;
  border-top: 2px solid var(--accent-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.card-icon {
  width: 40px; height: 40px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
}

.highlight .card-icon {
  color: var(--accent-color);
}

.thinker-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.thinker-card p:last-child {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
}

/* =========================================
   Characteristics Section (The 5 traits)
   ========================================= */
.characteristics-section {
  background-color: var(--bg-color);
}

.features-grid {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding: 4rem 0;
  position: relative;
  transition: transform 0.4s ease;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-number {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 400;
  color: #e5dfd3;
  line-height: 1;
  min-width: 60px;
}

.feature-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.feature-content p:last-child {
  color: var(--text-secondary);
  line-height: 2;
}

/* =========================================
   Quotes / Context Section
   ========================================= */
.quotes-section {
  background-color: var(--bg-color-alt);
  padding: 140px 0;
}

.context-blocks {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
  max-width: 750px;
  margin: 0 auto;
}

.glass-panel {
  background: transparent;
  border-left: 1px solid var(--accent-color);
  padding: 0.5rem 0 0.5rem 2.5rem;
}

.context-block h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.context-block p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 2.1;
}

/* =========================================
   Learn More Section
   ========================================= */
.learn-more-section {
  background-color: var(--bg-color);
  padding: 100px 0;
  border-top: 1px solid var(--border-color-light);
}

.learn-more-link-wrapper {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.learn-more-tab {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 20px 40px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.learn-more-tab svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.learn-more-tab:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border-color: var(--accent-color);
}

.learn-more-tab:hover svg {
  opacity: 1;
  color: var(--accent-color);
}

/* =========================================
   Related Projects
   ========================================= */
.related-section {
  background-color: var(--bg-color);
  padding: 100px 0;
  border-top: 1px solid var(--border-color-light);
}

.related-cards {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.related-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 40px 50px;
  max-width: 480px;
  width: 100%;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: all 0.4s ease;
  position: relative;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  border-color: var(--accent-color);
}

.related-card-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  padding: 3px 10px;
  margin-bottom: 4px;
}

.related-card-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  margin: 0;
}

.related-card-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin: 0;
}

.related-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 8px 0 16px;
}

.related-card-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-top: auto;
}

.related-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card-link svg {
  transform: translateX(5px);
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: var(--bg-color);
  padding: 120px 0 60px;
  text-align: center;
}

.footer-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.footer-text {
  color: var(--text-secondary);
  margin-bottom: 3.5rem;
  font-size: 1rem;
}

.footer-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.eutopia-back-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--text-primary);
  color: var(--bg-color);
  border: 1px solid var(--text-primary);
  padding: 16px 35px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: all 0.4s ease;
}

.eutopia-back-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.eutopia-back-btn:hover {
  background: transparent;
  color: var(--text-primary);
}

.eutopia-back-btn:hover svg {
  transform: translateX(-5px);
}

.cta-button {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 16px 45px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.4s ease;
}

.cta-button:hover {
  background: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
}

.footer-bottom {
  margin-top: 100px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color-light);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
}

/* =========================================
   Animations & Reveals
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .title { 
    font-size: 2.2rem; 
    line-height: 1.2;
    margin-bottom: 2rem;
  }
  
  .subtitle { 
    font-size: 0.9rem; 
    margin-bottom: 1.5rem;
  }

  .description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 3.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }

  .feature-item {
    flex-direction: column;
    gap: 1.5rem;
    padding: 3rem 0;
  }
  
  .feature-number {
    font-size: 2.5rem;
  }
  
  .glass-panel {
    padding-left: 1.5rem;
  }

  .section {
    padding: 80px 0;
  }

  .footer-title {
    font-size: 1.5rem;
  }
}
