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

:root {
  --primary: #1B263B;
  --accent: #E63946;
  --secondary: #A8DADC;
  --background: #FDFCF0;
  --text: #2b2b2b;
  --text-muted: #5c5c5c;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

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

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(253, 252, 240, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  flex: 1;
  z-index: 2;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-image {
  flex: 1;
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 95%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  transition: var(--transition);
  margin-left: auto;
}

.hero-image img:hover {
  transform: rotate(0) scale(1.02);
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  margin-left: 1rem;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Features/Pain Points */
.features {
  padding: 8rem 0;
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 3rem;
  color: var(--primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.feature-card {
  padding: 3rem;
  background: var(--background);
  border-radius: 20px;
  transition: var(--transition);
  text-align: center;
}

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

.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.feature-icon img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover .feature-icon img {
  transform: scale(1.1) rotate(3deg);
}

/* Menu Preview */
.menu-preview {
  padding: 8rem 0;
}

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

.menu-item {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.menu-item:hover {
  transform: scale(1.02);
}

.menu-item-img {
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.menu-item-content {
  padding: 2rem;
}

.menu-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.2rem;
}

/* Order Section */
.order-section {
  padding: 5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 40px;
  margin: 4rem 2rem;
  text-align: center;
}

.order-section h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

/* FAQ */
.faq {
  padding: 8rem 0;
}

.faq-item {
  margin-bottom: 1.5rem;
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-question {
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  margin-top: 1rem;
  color: var(--text-muted);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
footer {
  padding: 5rem 0;
  background: var(--primary);
  color: var(--white);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  nav .container {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding-top: 140px;
    padding-bottom: 4rem;
    gap: 3rem;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero-image img {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
  .hero-image img:hover {
    transform: scale(1.02);
  }
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .order-section {
    padding: 3rem 1.5rem;
    margin: 3rem 1rem;
  }
  .order-section h2 {
    font-size: 2.2rem;
  }
  .features {
    padding: 4rem 0;
  }
  .menu-preview, .faq {
    padding: 4rem 0;
  }
  .chatbot-wrapper {
    bottom: 15px;
    right: 15px;
  }
  .chat-window {
    width: calc(100vw - 30px);
    height: 60vh;
    max-height: 500px;
    margin-bottom: 10px;
  }
}

/* Chatbot UI */
.chatbot-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(27, 38, 59, 0.3);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-trigger:hover {
  transform: scale(1.1);
  background: var(--accent);
}

.chat-window {
  width: 350px;
  height: 500px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: bottom right;
  border: 1px solid rgba(0,0,0,0.05);
}

.chat-window.closed {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(20px);
}

.chat-header {
  background: var(--primary);
  color: var(--white);
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header .logo {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.chat-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--background);
}

.ai-msg, .user-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.ai-msg {
  align-self: flex-start;
}

.user-msg {
  align-self: flex-end;
}

.ai-msg > div {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: 15px 15px 15px 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  font-size: 0.95rem;
}

.user-msg > div {
  background: var(--primary);
  color: var(--white);
  padding: 0.8rem 1rem;
  border-radius: 15px 15px 5px 15px;
  font-size: 0.95rem;
}

.chat-footer {
  padding: 1rem;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  gap: 0.5rem;
}

.chat-footer input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 25px;
  outline: none;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s;
}

.chat-footer input:focus {
  border-color: var(--primary);
}

.chat-footer .btn-send {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chat-footer .btn-send:hover {
  background: var(--accent);
  transform: scale(1.05);
}
