@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Noto+Serif+KR:wght@400;600;900&display=swap');

:root {
  --color-mocha-mousse: #a88a7c;
  --color-mocha-dark: #6d5248;
  --color-greige: #c9c5ba;
  --color-greige-light: #e5e3de;
  --color-skyblue: #87CEEB;
  --color-skyblue-dark: #67aedb;
  --color-text: #2c2927;
  --color-text-light: #5e5955;
  --color-bg: #fffcf8; /* Warm light bulb tone */
  --color-white: #ffffff;
  
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif-kr: 'Noto Serif KR', 'Playfair Display', serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: radial-gradient(circle at 50% 0%, var(--color-white) 0%, transparent 60%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
  font-family: var(--font-serif-kr);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ANTI-GRAVITY FLOATING EFFECT */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* GLASSMORPHISM HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 252, 248, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 197, 186, 0.3);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.logo {
  font-family: var(--font-serif-kr);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-mocha-dark);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-skyblue-dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-skyblue-dark);
  transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* MAIN LAYOUT */
main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* FOOTER */
footer {
  background-color: var(--color-text);
  color: var(--color-greige);
  padding: 4rem 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* CHATBOT BUTTON */
.chatbot-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--color-skyblue), var(--color-skyblue-dark));
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(103, 174, 219, 0.5);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-btn:hover {
  transform: scale(1.1) translateY(-5px);
}

.chatbot-btn::before {
  content: '퍼니';
  font-family: var(--font-serif-kr);
  font-size: 1.1rem;
}

/* HERO SECTION */
.hero {
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 0 2rem;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../assets/hero.jpg') center/cover no-repeat;
  opacity: 0.3;
  z-index: -1;
  filter: blur(8px);
  transform: scale(1.05); /* parallax padding */
}

.hero h1 {
  font-size: 4rem;
  color: var(--color-mocha-dark);
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin-bottom: 3rem;
}

.hero-image-container {
  width: 100%;
  max-width: 900px;
  height: 400px;
  margin-bottom: 3rem;
  position: relative;
  border-radius: 20px;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(168, 138, 124, 0.3);
  /* This floating effect gives the japandi antigravity feel */
}

.quick-menu {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.quick-menu a.nav-tag {
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
  background: var(--color-greige-light);
  cursor: pointer;
  display: inline-block;
}

.quick-menu a.nav-tag:hover {
  background: var(--color-mocha-mousse);
  color: white;
}

/* PAGE WRAPPER */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.page-title {
  text-align: center;
  font-size: 3rem;
  color: var(--color-mocha-dark);
  margin-bottom: 1rem;
}

.page-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(201, 197, 186, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(201, 197, 186, 0.3);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(168, 138, 124, 0.3);
}

.card-img {
  height: 250px;
  width: 100%;
  background-color: var(--color-greige-light);
  object-fit: cover;
}

.card-content {
  padding: 2rem;
}

.card-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--color-skyblue);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-mocha-dark);
}

/* INTERACTIVE SLIDER BAR */
.interaction-bar {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-greige-light);
}

.interaction-bar label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--color-mocha-mousse);
}

/* BIG TYPOGRAPHY SECTION (Safety) */
.huge-number {
  font-size: 5rem;
  font-weight: 900;
  color: var(--color-mocha-mousse);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.infographic-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 5rem;
}

.infographic-row:nth-child(even) {
  flex-direction: row-reverse;
}

.infographic-text {
  flex: 1;
}

.infographic-img {
  flex: 1;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  overflow: hidden;
}

.infographic-img img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(80%) contrast(1.2); /* Black and white artisan feel */
  transition: filter 0.5s;
}

.infographic-img img:hover {
  filter: grayscale(0%) contrast(1);
}

/* DIAGRAM AS PROCESS */
.process-diagram {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 3rem;
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(201, 197, 186, 0.2);
  margin-top: 3rem;
  position: relative;
}

.process-diagram::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-greige-light);
  z-index: 1;
}

.process-step {
  position: relative;
  z-index: 2;
  text-align: center;
  background: white;
  padding: 1rem;
}

.process-icon {
  width: 80px;
  height: 80px;
  background: var(--color-mocha-mousse);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 1rem;
  box-shadow: 0 5px 15px rgba(168, 138, 124, 0.4);
}

.process-step h4 {
  color: var(--color-mocha-dark);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .infographic-row { flex-direction: column !important; gap: 2rem; }
  .process-diagram { flex-direction: column; gap: 3rem; }
  .process-diagram::before {
    top: 10%; bottom: 10%; left: 50%; width: 2px; height: auto;
  }
}
