body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #0A0A0A 0%, #2A2A2A 100%) fixed;
  color: #D3D3D3;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(42, 42, 42, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #BB86FC, #9575CD);
  border-radius: 4px;
  border: 1px solid rgba(187, 134, 252, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #9575CD, #BB86FC);
  box-shadow: 0 0 8px rgba(187, 134, 252, 0.3);
}

/* Loading Animation */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0A0A0A 0%, #2A2A2A 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s ease;
}

.loading-screen.fade-out {
  opacity: 0;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(187, 134, 252, 0.2);
  border-top: 3px solid #BB86FC;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInSpinner 0.6s ease forwards, spin 0.8s linear infinite;
  animation-delay: 0s, 0s;
}

.loading-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  animation: pulse 2s ease-in-out infinite;
}

.loading-tip {
  max-width: 400px;
  text-align: center;
  padding: 0 20px;
  opacity: 0;
  animation: fadeInTip 0.8s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInSpinner {
  to { opacity: 1; }
}

@keyframes fadeInTip {
  to { opacity: 1; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: rgba(42, 42, 42, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(187, 134, 252, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  color: #BB86FC;
}

.back-to-top:hover {
  background: rgba(187, 134, 252, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(187, 134, 252, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* Progress Bars */
.progress-container {
  margin-top: 8px;
  margin-bottom: 4px;
}

.progress-label {
  color: #A0A0A0;
  font-size: 12px;
  margin-bottom: 4px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(42, 42, 42, 0.6);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(187, 134, 252, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #BB86FC, #9575CD);
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(187, 134, 252, 0.3);
}

/* Learn More Button Spacing */
.learn-more-spacing {
  margin-top: 6px;
  display: inline-block;
}

/* Product Version Styling */
.product-version {
  font-size: 0.75rem;
  color: rgba(160, 160, 160, 0.7);
  font-weight: 400;
  margin-left: 8px;
}

.product-image-container {
  position: relative;
  margin-bottom: 1rem;
}

/* Typewriter Effect */
.typewriter-text {
  overflow: hidden;
  white-space: nowrap;
  animation: blink 1s infinite;
}

.typewriter-text.typed {
  white-space: normal;
  animation: none;
}

@keyframes blink {
  0%, 50% { border-right: 2px solid #BB86FC; }
  51%, 100% { border-right: 2px solid transparent; }
}

/* Parallax Effect for Images - REMOVED */
.parallax-image {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Animated Gradient Background for Sections */
.animated-gradient-section {
  position: relative;
}

.animated-gradient-section .section-highlight {
  position: relative;
  overflow: hidden;
}

.animated-gradient-section .section-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(187, 134, 252, 0.05), 
    rgba(149, 117, 205, 0.03), 
    rgba(42, 42, 42, 0.02), 
    rgba(187, 134, 252, 0.05));
  background-size: 400% 400%;
  animation: gradientFlow 8s ease infinite;
  pointer-events: none;
  z-index: 0;
  border-radius: 16px;
}

.animated-gradient-section .section-highlight > * {
  position: relative;
  z-index: 1;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Interactive Logo Animation */
.interactive-logo {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.interactive-logo:hover {
  animation: logo-spin 0.6s ease-in-out;
  transform: scale(1.15) rotate(360deg);
}

@keyframes logo-spin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(180deg); }
  100% { transform: scale(1.15) rotate(360deg); }
}

/* Mobile Menu Animation */
.mobile-menu {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-20px);
  opacity: 0;
}

.mobile-menu.menu-open {
  transform: translateY(0);
  opacity: 1;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  will-change: transform;
}
.gradient-text span {
  display: inline-block;
  animation: wave 1.2s infinite;
  animation-delay: calc(0.06s * var(--i));
  transform-origin: center;
}
@keyframes wave {
  0%, 100% { transform: translateY(0) rotateX(0); }
  50% { transform: translateY(-5px) rotateX(3deg); }
}
.gradient-text {
  background: linear-gradient(90deg, #BB86FC, #9575CD);
  -webkit-background-clip: text;
  background-clip: text;
  color: #BB86FC;
  animation: gradientShift 3s ease infinite;
}
.gradient-title {
  background: linear-gradient(90deg, #BB86FC, #9575CD, #BB86FC);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 2s ease infinite;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(187, 134, 252, 0.5);
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.card {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  background: rgba(42, 42, 42, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  transform: perspective(800px) translateZ(0);
  transform-style: preserve-3d;
  border: 1px solid rgba(187, 134, 252, 0.1);
  will-change: transform;
}
.card:hover {
  transform: perspective(800px) scale(1.02) translateZ(15px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3), 0 0 8px rgba(187, 134, 252, 0.15);
  border-color: rgba(187, 134, 252, 0.3);
}
.community-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.community-card:hover {
  transform: perspective(800px) scale(1.05) translateZ(20px);
  box-shadow: 0 8px 20px rgba(187, 134, 252, 0.2);
}
.glass-btn {
  background: rgba(42, 42, 42, 0.4);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  border: 1px solid rgba(187, 134, 252, 0.3);
  border-radius: 12px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  filter: brightness(1);
  will-change: transform, filter;
}
.glass-btn:hover {
  background: rgba(187, 134, 252, 0.2);
  transform: scale(1.02);
  filter: brightness(1.15);
  box-shadow: 0 0 12px rgba(187, 134, 252, 0.3);
}
.glass-btn:active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(187, 134, 252, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 0.4s ease-out;
}
@keyframes ripple {
  to { width: 120px; height: 120px; opacity: 0; }
}
.glowing-btn {
  animation: glow 2s ease-in-out infinite;
}
@keyframes glow {
  0% { box-shadow: 0 0 10px rgba(187, 134, 252, 0.3); }
  50% { box-shadow: 0 0 20px rgba(187, 134, 252, 0.5); }
  100% { box-shadow: 0 0 10px rgba(187, 134, 252, 0.3); }
}
.enhanced-blur {
  backdrop-filter: blur(20px) saturate(220%);
  -webkit-backdrop-filter: blur(20px) saturate(220%);
  background: rgba(42, 42, 42, 0.5);
  box-shadow: 0 0 15px rgba(187, 134, 252, 0.4);
}
.enhanced-blur:hover {
  background: rgba(187, 134, 252, 0.3);
  box-shadow: 0 0 20px rgba(187, 134, 252, 0.5);
}
.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.5));
}
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(187, 134, 252, 0.3), transparent);
  animation: slide 2.5s ease-in-out infinite;
}
@keyframes slide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.banner-content {
  transform: perspective(1000px) translateZ(0);
}
.banner-content p {
  margin-bottom: 3rem; /* Added to increase spacing between subtitle and button */
}
.banner-section {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.footer-logo:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}
.section-highlight {
  background: rgba(42, 42, 42, 0.3);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(187, 134, 252, 0.1);
  border: 1px solid rgba(187, 134, 252, 0.2);
  padding: 2rem;
  margin: 0 auto;
  max-width: 100%;
}
.product-grid {
  transition: height 0.5s ease;
}
.shift-left {
  transform: translateX(-20px);
}
.nav-menu a.active, .mobile-menu a.active {
  color: #BB86FC;
  font-weight: 600;
}
@media (max-width: 768px) {
  .shift-left {
    transform: translateX(0);
  }
  .banner-content p {
    margin-bottom: 1.5rem; /* Adjusted spacing for mobile */
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 640px) {
  .banner-content p {
    margin-bottom: 1rem; /* Further adjusted spacing for smaller screens */
  }
}
.hover-scale {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-scale:hover {
  transform: scale(1.05);
}
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(42, 42, 42, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(187, 134, 252, 0.3);
  border-radius: 12px;
  padding: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInNotification 0.5s ease forwards;
  z-index: 10000;
}
/* Product Cards Spacing */
.product-card {
  transition: background 0.3s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  margin-bottom: 6px;
}

.product-card p {
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-card .learn-more-spacing {
  margin-top: auto;
  align-self: flex-start;
}
@keyframes slideInNotification {
  to { opacity: 1; transform: translateY(0); }
}
.hamburger {
  display: none;
  cursor: pointer;
  z-index: 30;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  background-color: #D3D3D3;
  width: 28px;
  height: 3px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: absolute;
}
.hamburger-box {
  width: 28px;
  height: 20px;
  display: inline-block;
  position: relative;
}
.hamburger-inner {
  display: block;
  top: 50%;
  transform: translateY(-50%);
}
.hamburger-inner::before, .hamburger-inner::after {
  content: '';
  display: block;
  position: absolute;
}
.hamburger-inner::before {
  top: -8px;
}
.hamburger-inner::after {
  top: 8px;
}
.hamburger--spin.is-active .hamburger-inner {
  transform: translateY(-50%) rotate(225deg);
}
.hamburger--spin.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}
.hamburger--spin.is-active .hamburger-inner::after {
  top: 0;
  transform: rotate(-90deg);
}
.mobile-menu {
  transition: all 0.3s ease;
  background: rgba(42, 42, 42, 0.6);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  border: 1px solid rgba(187, 134, 252, 0.3);
}
.discord-panel {
  background: linear-gradient(135deg, #4c588f, #3b3344, rgb(34, 38, 56), #28232e, #4c588f);
  background-size: 600% 300%;
  animation: gradientFlow 7s ease infinite;
  border-radius: 8px;
  border: 1px solid rgba(187, 134, 252, 0.3);
  padding: 16px;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.discord-messages {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(187, 134, 252, 0.3);
  border-radius: 4px;
  background: rgba(42, 42, 42, 0.6);
  display: flex;
  flex-direction: column-reverse;
}
.discord-messages::-webkit-scrollbar {
  width: 6px;
}
.discord-messages::-webkit-scrollbar-track {
  background: #202225;
  border-radius: 3px;
}
.discord-messages::-webkit-scrollbar-thumb {
  background: #5865F2;
  border-radius: 3px;
}
.discord-message {
  display: flex;
  padding: 8px;
  margin-bottom: 8px;
  transition: background 0.2s ease;
}
.discord-message:hover {
  background: #32353B;
}
.discord-message img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
}
.discord-message-content {
  flex: 1;
}
.discord-message-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 4px;
}
.discord-message-author {
  font-weight: 600;
  font-size: 14px;
  margin-right: 8px;
}
.discord-message-timestamp {
  color: #72767D;
  font-size: 12px;
}
.discord-message-text {
  color: #DCDDDE;
  font-size: 14px;
  line-height: 1.4;
}
.discord-input {
  display: flex;
  align-items: center;
  margin-top: 16px;
  background: #40444B;
  border: 1px solid rgba(187, 134, 252, 0.3);
  border-radius: 4px;
  padding: 8px;
}
.discord-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: #DCDDDE;
  font-size: 14px;
}
.discord-input input:focus {
  outline: none;
}
.send-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s ease;
}
.send-button:hover {
  transform: scale(1.1);
}
.send-button img {
  width: 24px;
  height: 24px;
}
.discord-join-btn {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  background: #5865F2;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  border: 1px solid rgba(187, 134, 252, 0.3);
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.discord-join-btn:hover {
  background: #7289DA;
  transform: scale(1.02);
}
.discord-join-btn img {
  filter: brightness(0) invert(1);
}
#modal-overlay {
  opacity: 0;
  pointer-events: none;
}
#modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
#modal {
  opacity: 0;
  transform: translate(-50%, -60%);
}
#modal.active {
  opacity: 1;
  transform: translate(-50%, -50%);
}
@media (max-width: 1280px) {
  .section-highlight {
    max-width: 95%;
    padding: 1.5rem;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1024px) {
  .banner-section {
    height: 80vh;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-highlight {
    padding: 1.25rem;
  }
}
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-menu {
    display: none;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-top: 1px solid rgba(187, 134, 252, 0.3);
  }
  .mobile-menu a {
    font-size: 1rem;
    padding: 0.75rem 0;
  }
  .banner-section {
    height: 70vh;
  }
  .banner-content {
    transform: none !important;
    padding: 1rem;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-highlight {
    max-width: 100%;
    padding: 1rem;
  }
  .card {
    padding: 1rem;
  }
  #about, #products {
    margin-top: 3rem;
  }
  #community, #contact {
    margin-top: 3rem;
  }
  .discord-panel {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .banner-section {
    height: 60vh;
  }
  .banner-video {
    object-fit: cover;
  }
  .banner-logo {
    height: 20vh !important;
  }
  .banner-content h1 {
    font-size: 1.75rem !important;
  }
  .banner-content p {
    font-size: 0.95rem !important;
  }
  .banner-button {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }
  .section-highlight {
    max-width: 100%;
    padding: 0.75rem;
  }
  .card {
    padding: 0.75rem;
  }
  .mobile-menu a {
    font-size: 0.95rem;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .discord-message img {
    width: 32px;
    height: 32px;
  }
  .discord-message-author {
    font-size: 12px;
  }
  .discord-message-timestamp {
    font-size: 10px;
  }
  .discord-message-text {
    font-size: 12px;
  }
}