:root {
  --bg: #efe7db;
  --card: #f7e9d6;
  --accent: #7b4b2a;
  --accent-2: #b77b3b;
  --muted: #6b6b6b;
}

/* Box-sizing for better control */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background-color: var(--bg);
  background-image: url('assets/bg.svg');
  background-attachment: fixed;
  color: #2b2b2b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: rgba(40, 30, 28, 0.95);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  display: flex;
  gap: 10px;
  align-items: center;
}

.logo img {
  width: 36px;
  height: 36px;
}

.topbar nav a {
  color: #fff;
  margin-left: 18px;
  text-decoration: none;
  opacity: 0.9;
}

/* Hero Section */
.hero {
  max-width: 100%;
  margin: 36px auto;
  padding: 20px;
  text-align: center;
}

.title {
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.typewriter {
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;  /* Choose a monospace font for typewriter effect */
  overflow: hidden;  /* Ensures the text doesn't overflow */
  border-right: .15em  hsl(0, 0%, 6%);  /* Simulate the cursor */
  white-space: nowrap;  /* Keeps the text on one line */
  animation: typing 3s steps(30) 1s 1 normal both, blink 0.75s step-end infinite;  /* Typing animation + cursor blink */
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width:50%;
  }
}

@keyframes blink {
  100% {
    border-color: transparent;  /* Makes the cursor "blink" */
  }
}

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

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  padding: 10px;
  transition: transform .6s ease;
}

/* Controls */
.controls {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.btn.vr {
  background: linear-gradient(90deg, #2b8aef, #2bb7a6);
  color: #fff;
}

.btn.view3 {
  background: linear-gradient(90deg, #3ad082, #1c7f6f);
  color: #fff;
}

.btn.back {
  background: #5b5b5b;
  color: #fff;
}

.btn:hover {
  transform: translateY(-4px);
  transition: transform .2s;
}

/* Audio Section */
.audio-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin: 18px auto;
  padding: 12px;
  background: var(--card);
  border-radius: 12px;
  border: 4px solid rgba(183, 123, 59, 0.12);
}

.audio-left img {
  width: 48px;
  height: 48px;
}

.audio-player {
  flex: 1;
}

.eq {
  display: flex;
  gap: 4px;
  width: 90px;
  justify-content: center;
  align-items: flex-end;
}

.eq div {
  width: 8px;
  height: 6px;
  background: #d9c3a5;
  border-radius: 3px;
  animation: beat 1s infinite ease-in-out;
  opacity: 0.9;
}

.eq div:nth-child(2) {
  animation-delay: .12s;
}

.eq div:nth-child(3) {
  animation-delay: .24s;
}

.eq div:nth-child(4) {
  animation-delay: .36s;
}

.eq div:nth-child(5) {
  animation-delay: .48s;
}

@keyframes beat {
  0% {
    height: 6px;
  }

  50% {
    height: 28px;
  }

  100% {
    height: 6px;
  }
}

/* Card Section */
.card {
  max-width: 760px;
  margin: 24px auto;
  padding: 18px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.card h2 {
  margin-top: 0;
  color: var(--accent);
}

.card ul {
  margin: 8px 0 0 18px;
  color: var(--muted);
}

/* Models Section */
.models {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 18px;
}

.model-card {
  width: 280px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  transition: transform .4s;
}

.model-card img {
  width: 100%;
  border-radius: 6px;
}

.model-card p {
  margin: 10px 0 0 0;
  color: var(--muted);
}

/* Flip effect */
.flip {
  perspective: 1000px;
}

.flip img {
  transform-style: preserve-3d;
  transition: transform .6s;
}

.flip:hover img {
  transform: rotateY(12deg) scale(1.02);
}

.center {
  display: flex;
  justify-content: center;
  margin: 18px;
}

.pulse {
  background: #a23be6;
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(162, 59, 230, 0.18);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all .7s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* Responsive Design */
@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .hero-image img {
    width: 90vw; /* Ensure it fits the screen */
    height: auto;
  }

  .models {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .controls {
    flex-direction: column;
    gap: 10px;
  }

  .pulse {
    padding: 10px 15px;
  }

  .footer {
    padding: 20px 10px;
  }
}

.footer {
  text-align: center;
  padding: 36px 12px;
  color: var(--muted);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 40px;
}

.chatbot-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ff6f61;
  color: white;
  padding: 15px 20px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.chatbot-btn:hover {
  background: #e05c51;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  position: absolute;
  top: 16px;
  right: 20px; /* Right align the hamburger menu */
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  nav.active {
    display: flex;
  }

  .topbar {
    align-items: flex-start;
  }

  nav a {
    margin: 10px 0;
  }
}
