body{margin:0;padding:0;background-color:var(--background-color);color:var(--text-color);font-family:'mainFont', sans-serif}
@font-face {
    font-family: 'mainFont';
    src: url('/fonts/mainFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
/* Variables */
:root {
  --background-color: #111;
  --nav-background: #222;
  --text-color: #fff;
  --button-color: #007bff;
  --button-hover: #0056b3;
  --address-background: #333;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--background-color);
  font-family: 'mainFont', sans-serif;
  color: var(--text-color);
  z-index: -6;
}

/* Layout */
.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--nav-background);
  position: relative;
  z-index: 5;
}

.nav-logo {
  font-size: 1.5em;
  font-weight: bold;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Updated Pulse Button Styles */
.pulse-button {
  margin-top: 11px;
  background-color: var(--button-color);
  color: white;
  padding: 0.5rem 2rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.7rem;
  position: relative;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

.nav-buttons {
  display: flex;
  align-items: center;
}

.nav-buttons button {
  margin-left: 1rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 4px;
  background-color: #444;
  color: var(--text-color);
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-buttons button:hover {
  background-color: #555;
}

/* Icon Button */
.icon-button {
  background-color: transparent !important;
  padding: 0.5rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-button:hover svg {
  transform: scale(1.4);
  transition: ease;
}

.icon-button:last-child:hover svg {
  transform: scale(1.4);
  transition: ease;
}

.icon-button svg {
  width: 50px;
  height: 50px;
  fill: currentColor;
}

.icon-button:last-child svg {
  width: 22px;
  height: 22px;
}

/* Main Content Layout */
.content {
  display: flex;
  flex: 1;
  position: relative;
  z-index: 5;
}

.left-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 5rem;
}

.right-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Typography */
h1 {
  font-size: 6em;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInLeft 1.5s ease forwards;
}

h3 {
  font-size: 1.5em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInLeft 1.5s ease 0.3s forwards;
}

/* Button and Address Styles */
.button-address-container {
  display: flex;
  align-items: flex-start; 
  gap: 1rem;
  opacity: 0;
  animation: fadeInLeft 1.5s ease 0.6s forwards;
}

.button-address-container button {
  padding: 0.8rem 2rem;
  font-size: 1.2em;
  border: none;
  border-radius: 10px;
  background-color: var(--button-color);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

.button-address-container button:hover {
  background-color: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 123, 255, 0.4);
}

.address {
  padding: 1.1rem 1rem;
  background-color: gray;
  border-radius: 40px;
  font-size: 1.2em;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.address:hover {
  background-color: #444;
}

.address::after {
  content: "Click to copy";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8em;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.address:hover::after {
  opacity: 1;
}

.address.copied::after {
  content: "Copied!";
  background-color: #28a745;
}

/* Image Container */
.image-container {
  position: relative;
  width: 550px;
  height: 550px;
  z-index: 5;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation: fadeInRight 1.5s ease forwards;
}

.lottie-overlay {
  position: absolute;
  top: 240px;
  left: 20px;
  width: 40%;
  height: 40%;
  pointer-events: none;
}

/* Smoke Effect */
.constant-smoke {
  position: relative;
  color: var(--text-color);
  display: inline-block;
  z-index: 1;
}

.constant-smoke::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  color: rgba(255, 255, 255, 0.3);
  filter: blur(9px);
  animation: smoke 8s infinite;
}

/* About Section */
.about-section {
  min-height: 100vh;
  width: 100%;
  background-color: var(--nav-background);
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.about-image {
  flex: 1;
}

.about-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 1.2em;
  line-height: 1.6;
  margin: 0;
}

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Chatbot Section */
.chatbot-section {
  min-height: 100vh;
  background-color: var(--background-color);
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 5;
}

.chatbot-section h2 {
  font-size: 4em;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  z-index: 5;
}

/* Chat Container */
.chat-container {
  width: 100%;
  max-width: 800px;
  height: 600px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Message Styles */
.message {
  padding: 1rem;
  border-radius: 10px;
  max-width: 70%;
  word-wrap: break-word;
  animation: messagePopIn 0.3s ease-out;
  position: relative;
}

.message.user {
  background-color: var(--button-color);
  color: var(--text-color);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message.ai {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.1);
}

/* Chat Input */
.chat-input {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 5;
}

.chat-input input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-size: 1em;
}

.chat-input input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--button-color);
}

.chat-input button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  background-color: var(--button-color);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s;
}

.chat-input button:hover {
  background-color: var(--button-hover);
}

/* Cursor Bud Styles - Updated for simpler animation */
.cursor-bud {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  perspective: 1000px;
  contain: layout style paint;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.cursor-bud img {
  will-change: transform;
  filter: brightness(1.2) contrast(1.2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
  mix-blend-mode: screen;
  transition: all 0.3s ease;
}

.falling-buds {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: -5;
  overflow: hidden;
}

.bud {
  position: absolute;
  top: -50px;
  opacity: 0;
  animation: fallAnimation linear infinite;
}

.bud img {
  transform-origin: center center;
  filter: brightness(1.2) contrast(1.2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
  mix-blend-mode: screen;
}

/* Animations */
@keyframes smoke {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  20% { transform: translate(10px, -20px) scale(1.1); opacity: 0.5; }
  40% { transform: translate(20px, -40px) scale(1.2); opacity: 0.8; }
  60% { transform: translate(30px, -60px) scale(1.3); opacity: 0.4; }
  80% { transform: translate(40px, -80px) scale(1.4); opacity: 0.2; }
  100% { transform: translate(50px, -100px) scale(1.5); opacity: 0; }
}

@keyframes fallAnimation {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(calc(100vh + 50px));
    opacity: 0;
  }
}

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

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

@keyframes messagePopIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Media Queries */
@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }

  .left-side {
    padding-left: 2rem;
    align-items: center;
    text-align: center;
  }

  .button-address-container {
    flex-direction: column;
    align-items: center;
  }

  .image-container {
    width: 100%;
    height: auto;
    max-width: 550px;
    aspect-ratio: 1 / 1;
  }

  .about-content {
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
  }

  .about-section h2 {
    font-size: 3em;
  }

  .chat-container {
    height: 500px;
  }

  .message {
    max-width: 85%;
  }

  .chatbot-section h2 {
    font-size: 3em;
  }
}
