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

body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #fffdf2;
  color: #222;
}

.section-title {
  font-family: 'Angkor', sans-serif;
  font-size: 2.8rem;
  color: #000;
  text-align: center;
  margin-left: 6vw; 
  margin-bottom: 2.5rem;
}

.floating-apple {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  width: 30px;
  transition: transform 0.3s ease;
  animation: drop-disappear 1s forwards;
}

@keyframes drop-disappear {
  0% { transform: translateY(0px) scale(1); opacity: 1; }
  100% { transform: translateY(60px) scale(0.5); opacity: 0; }
}


/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  font-family: 'Satisfy', cursive;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6rem;
  color: white;
  text-align: center;
  line-height: 1.2;
}


/* Hero Slogan */
.hero-subtitle {
  font-family: 'Angkor', cursive;
  font-size: 2.8rem;
  text-align: center;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  white-space: nowrap;
}

@media screen and (max-width: 768px) {
  .hero-subtitle {
    font-size: 1.6rem; 
    bottom: 1.2rem;
  }
}

/* Header Navigation */
.header {
  background-color: #ffe8dc;
  padding: 1rem 2rem;
}

.nav-bar ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.nav-bar a {
  text-decoration: none;
  color: #000;
  font-family: 'Angkor', cursive;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  background-color: #fff4ef;
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow: 2px 2px 0 #000;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.nav-bar a:hover {
  background-color: #f7a9a8;
  color: #000;
  animation: wiggleButton 0.4s ease;
}


.nav-bar a:active {
  transform: scale(0.95);
  box-shadow: 1px 1px 0 #000;
}


@keyframes wiggleButton {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
  75% { transform: rotate(-1deg); }
  100% { transform: rotate(0deg); }
}


@media screen and (max-width: 768px) {
  .hero-section {
    height: 75vh;
  }
  .nav-bar a {
    font-size: 0.9rem;
    padding: 0.4rem 0.9rem;
    border-radius: 10px;
  }

  .nav-bar ul {
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 4rem;
  }

  .subtitle {
    font-size: 1.8rem;
    left: 1.5rem;
    bottom: 1rem;
  }
}

/* FLAVOR Section */
.flavor-section {
  background-color: #ffffff;
  padding: 5rem 0;
}

.flavor-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 6vw;
  max-width: 1400px;
  margin: 0 auto;
  gap: 3rem;
}


.flavor-content {
  flex: 1;
  max-width: 700px;
  font-family: 'Harmattan', sans-serif;
  font-size: 1.2rem;
  line-height: 1.9;
  color: #222;
}

.flavor-content h2 {
  font-family: 'Angkor', serif;
  font-size: 2.6rem;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  color: #000;
  text-align: left;
}

.flavor-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.chili-doodle {
  width: 380px;
  height: auto;
  margin-top: 1rem;
  margin-left: 2rem;
  animation: float 3s ease-in-out infinite;
  align-self: flex-start; 
  transform: translateY(0);
  position: relative;
  top: -30px;
}

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

/* ========== Mobile ========== */
@media screen and (max-width: 768px) {
  .chili-doodle {
    width: 100px; /* 控制宽度，不再拉高整体高度 */
    height: auto;
    margin: 1.5rem auto 0 auto; /* 上边距+居中 */
    display: block;
  }

  .flavor-inner {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
  }

  .chili-doodle {
    position: absolute;
    top: 2rem;   
    right: 1rem;
    width: 80px;
    height: auto;
  }

  .flavor-content {
    padding-top: 4.5rem;
  }

  .flavor-content h2 {
    position: relative;
    z-index: 2;        
  }
}


/* Meet the Chefs Section */

.chef-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #000;
  border-radius: 16px;
  overflow: hidden;
  width: 160px;
  background-color: #fff;
}


.chef-img {
  max-height: 200px;    
  width: auto;           
  padding: 0.8rem;
  display: block;
  margin: 0 auto;        
}

.chefs-section {
  background-color: #FFE9DE;
  padding: 4rem 6vw;
}

.chefs-section .section-title {
  text-align: left;
  margin-left: 1.5rem;
}


.chef-block {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  gap: 2rem;
}

/* 左侧头像 + 名字条 */
.chef-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chef-name {
  font-family: 'Angkor', sans-serif;
  font-size: 1.2rem;
  text-align: center;
  padding: 0.8rem 1rem;
}

.chef-name.blue {
  background-color: #aad4ff;
}
.chef-name.red {
  background-color: #f7a9a8;
}
.chef-name.yellow {
  background-color: #fdd76a;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.chef-block {
  animation: slideInLeft 0.6s ease-out forwards;
  opacity: 0;
}

/* Each.chef-card chili avatar is added with a slight sway */
.chef-img {
  animation: wiggle 3s infinite ease-in-out;
  transform-origin: center;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
}

/* 右侧介绍卡 */
.chef-info {
  flex: 1;
  border: 2px solid #222;
  background-color: #fffaeb;
  border-radius: 10px;
  padding: 1.2rem;
}

.chef-info strong {
  display: block;
  margin-bottom: 0.5rem;
}

.chef-info p {
  font-family: 'Harmattan', sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  color: #222;
}

/* ========== Mobile ========== */
@media screen and (max-width: 768px) {
    .chefs-section {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
  
    .chefs-section .section-title {
      text-align: left;
      margin-left: 0;
    }

  .section-title {
    font-size: 2rem;
    text-align: center;
    padding-left: 0;
  }
  .chef-block {
    flex-direction: column;
    align-items: center;
  }

  .chef-card {
    width: 160px;
  }

  .chef-info {
    width: 100%;
    margin-top: 1.5rem;
  }

  .section-title {
    text-align: center;
    padding-left: 0;
  }
}

.dishes-section {
  padding: 5rem 6vw;
  background-color: #fffefc;
  text-align: center;
}

.dishes-header {
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.dishes-header h2 {
  font-family: 'Angkor', sans-serif;
  font-size: 2.6rem;
  color: #000;
}

.dish-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.dish-card {
  width: 240px;
  border: 2px solid #000;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.dish-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  border-color: #333;
}

.dish-card img {
  width: 100%;
  height: auto; 
  display: block;
}

.dish-name {
  flex-grow: 1; 
  font-family: 'Angkor', sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 1rem;
  color: #000;
  width: 100%;
  text-align: center;
  line-height: 1.4;
  margin: 0;
  display: flex;
  align-items: center; 
  justify-content: center;
  margin-top: -25px;           
  box-shadow: 0 -3px 8px rgba(0,0,0,0.1);  
  z-index: 2;                  
  position: relative;        
  }

  .dish-card {
    position: relative;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  a:visited {
    color: inherit;
    text-decoration: none;
  }
  

  .dish-card::after {
    content: "";
    position: absolute;
    bottom: 60px;   
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fffefc 100%);
    z-index: 1;
  }
  

.dish-card:nth-child(1) .dish-name {
  background-color: #f7a9a8;
}
.dish-card:nth-child(2) .dish-name {
  background-color: #aad4ff;
}
.dish-card:nth-child(3) .dish-name {
  background-color: #fdd76a;
}

/* Fancy glowing button effect */
.badge {
  font-family: 'Angkor', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  background-color: black;
  color: #caff81;
  padding: 0.6rem 1.2rem;
  border-radius: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 transparent;
  cursor: pointer;
}

.badge:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #caff81, 0 0 20px #caff81;
}

.badge:active {
  transform: scale(0.97);
  box-shadow: 0 0 4px #caff81 inset;
}

.tagline {
  font-family: 'Angkor', sans-serif;
  font-size: 2rem;
  color: #000;
  text-align: right;
  white-space: nowrap;
  margin-top: 4rem;
  padding-bottom: 0.5rem; 
  overflow: hidden;
  border-right: 3px solid #000;
  width: 0;
  animation: typing 10s steps(35, end) infinite, blink-caret 0.8s step-end infinite;
  animation-delay: 1.5s;
}


@keyframes typing {
  0% { width: 0 }
  40% { width: 100% }   
  60% { width: 100% }   
  80% { width: 0 }  
  100% { width: 0 }
}

@keyframes blink-caret {
  0%, 100% { border-color: transparent; }
  50% { border-color: #000; }
}


/* ========== Mobile ========== */
@media screen and (max-width: 768px) {
  .dishes-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .dish-grid {
    flex-direction: column;
    align-items: center;
  }

  .dish-card {
    width: 90%;
  }

  .tagline {
    font-size: 1.6rem;
  }
}

.site-footer {
  background-color: #000;
  color: #fff;
  padding: 2rem 6vw;
}

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

.footer-img {
  width: 130px;
  height: auto;
  flex-shrink: 0;
}

.footer-note h2 {
  font-family: 'Angkor', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.footer-note {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
}


@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-img {
    width: 100px;
  }

  .footer-note {
    font-size: 0.95rem;
  }
}
