html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  background: #8c52ff;
  position: relative;
  text-align: center;
}

nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.4);
  padding: 1rem 0;
  z-index: 1001;
  display: flex;
  justify-content: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #7ba9ff;
}

#color-swipe {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #8c52ff, #004aad, #23a6d5, #7ba9ff);
  z-index: 1000;
  pointer-events: none;
  transition: width 0.8s ease;
  mix-blend-mode: normal;
}

#home {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  color: white;
  padding: 0 2vw;
  overflow: hidden;
}

.infinity {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('https://i.imgur.com/uiVsiW4.png') no-repeat center center;
  background-size: contain;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.content {
  z-index: 1;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.title {
  font-size: 13vw;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
  animation: popIn 1s ease-out;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
  overflow: visible;
  display: inline-block;
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.title .flex {
  color: #1d419f;
}

.title .core {
  color: #233ce6;
}

.description {
  font-size: 1.8vw;
  margin-top: 1rem;
  color: white;
  line-height: 1.3;
  max-width: 700px;
  text-align: center;
}

.slogan {
  font-family: 'Norwester', sans-serif;
  font-size: 4vw;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8rem;
  color: #ffffff;
  text-shadow:
    0 0 12px #1d419f,
    0 0 24px #004aad,
    0 0 36px #23a6d5;
  animation: popOutSlogan 2s ease forwards;
}

@keyframes popOutSlogan {
  0% {
    opacity: 0;
    transform: scale(0.7);
    filter: drop-shadow(0 0 0 #1e3a8a);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter:
      drop-shadow(0 0 12px #1d419f)
      drop-shadow(0 0 24px #004aad)
      drop-shadow(0 0 36px #23a6d5);
  }
}

.arrow-bounce {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-color: #0a2472;
  border-radius: 50%;
  border: 3px solid #7ba9ff;
  box-shadow: 0 0 10px rgba(123, 169, 255, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  animation: bounce 2s infinite;
  z-index: 2;
}

.arrow-bounce:hover {
  background-color: #1a3a9a;
}

.arrow-bounce svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #7ba9ff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

.product-section {
  background: #f4f4ff;
  padding: 5rem 2rem;
  min-height: 100vh;
  position: relative;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  border-radius: 8px;
  height: auto;
  object-fit: contain;
}

.product-card h3 {
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.product-card .desc {
  color: #444;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.product-card .price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #233ce6;
}

.buy-now-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #233ce6;
  color: white;
  padding: 1rem 0;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  z-index: 1002;
  display: none;
}

.buy-now-fixed.visible {
  display: block;
}

@media (max-width: 768px) {
  .title { font-size: 10vw; }
  .description { font-size: 3vw; }
  .slogan { font-size: 5vw; }
  .product-grid { grid-template-columns: 1fr; }
}#chatbot {
  width: 350px;
  height: 480px;
  background: white;
  border: 2px solid #233ce6;
  border-radius: 16px;
  position: fixed;
  bottom: 100px;
  right: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  z-index: 1005;
  transition: all 0.3s ease;
}

#chatbot.hidden {
  display: none;
}

#chat-header {
  background: #233ce6;
  color: white;
  padding: 1rem;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
}

#chat-log {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.user-msg, .bot-msg {
  margin-bottom: 0.75rem;
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  line-height: 1.4;
  word-wrap: break-word;
  font-size: 0.95rem;
}

.user-msg {
  background: #e1e5ff;
  align-self: flex-end;
  text-align: right;
}

.bot-msg {
  background: #f1f1f1;
  align-self: flex-start;
}

#chat-input-container {
  display: flex;
  border-top: 1px solid #ccc;
}

#chat-input {
  flex: 1;
  padding: 0.7rem;
  border: none;
  font-size: 1rem;
}

#chat-input:focus {
  outline: none;
}

#chat-input-container button {
  background: #233ce6;
  color: white;
  border: none;
  padding: 0.7rem 1.1rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
}

#chat-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #233ce6;
  color: white;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1004;
  transition: background 0.3s ease;
}

#chat-toggle:hover {
  background: #1b2f99;
}
