@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --primary-gold: #ffb86b;
  --secondary-gold: #ff8c3c;
  --bg-dark: #050505;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent-neon: #ff6b35;
}

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

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--primary-gold), var(--secondary-gold));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gold);
}

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

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 0;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary-gold), #fff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  gap: 20px;
  border-bottom: 1px solid var(--glass-border);
  z-index: 99;
  animation: slideDown 0.3s ease-out forwards;
}

.nav-links.open {
  display: flex;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#menu-toggle {
  display: block;
  background: none;
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

#menu-toggle.active {
  transform: rotate(90deg);
}

#menu-toggle.active::after {
  content: '✕';
}

#menu-toggle:not(.active)::after {
  content: '☰';
}

#menu-toggle span {
  display: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    gap: 20px;
    border-bottom: 1px solid var(--glass-border);
    z-index: 99;
    animation: slideDown 0.3s ease-out forwards;
  }

  .nav-links.open {
    display: flex;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.header-actions {
  display: flex;
  gap: 15px;
}

.header-actions button {
  background: none;
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.header-actions button:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(255, 184, 107, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 800px;
  margin-bottom: 40px;
}

.cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
  color: #000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(255, 140, 60, 0.4);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 140, 60, 0.6);
}

.cta-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-button.secondary {
  background: var(--glass-bg);
  color: var(--primary-gold);
  border: 1px solid var(--glass-border);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background: rgba(255, 184, 107, 0.1);
  border-color: var(--primary-gold);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
  scroll-margin-top: 80px;
}

#hero {
  scroll-margin-top: 0;
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-gold);
}

.section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-footer-link {
  text-align: center;
  margin-top: 40px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-gold);
  background: rgba(255, 184, 107, 0.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: transform 0.6s ease;
}

.blog .card img {
  aspect-ratio: 16/9;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary-gold);
}

.card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  flex: 1;
}

.card .price {
  color: var(--primary-gold);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: auto;
}

.card .card-date {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  margin-top: 10px;
}

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

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.faq-item:hover {
  border-color: rgba(255, 184, 107, 0.3);
  transform: translateY(-5px);
}

.faq-item h3 {
  font-size: 1.2rem;
  color: var(--primary-gold);
  margin-bottom: 12px;
}

.faq-item p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.faq-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.faq-item a {
  color: var(--secondary-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.faq-item a:hover {
  color: var(--primary-gold);
}

.mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.mkt-card {
  padding: 30px;
}

.mkt-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.settings-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 400px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  padding: 40px;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-gold) var(--bg-dark);
}

.settings-panel[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.settings-content h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-gold);
}

.settings-content label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.settings-content input[type="range"] {
  width: 100%;
  margin-bottom: 25px;
  accent-color: var(--primary-gold);
}

.settings-row {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.settings-row button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.settings-row button:hover {
  background: var(--primary-gold);
  color: #000;
}

.smart-nav-btn,
.whatsapp-fab,
.joystick-fab,
.home-fab {
  position: fixed;
  right: 20px;
  width: 55px;
  height: 55px;
  z-index: 500;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.smart-nav-btn {
  bottom: 20px;
  font-size: 1.5rem;
  color: var(--primary-gold);
}

.whatsapp-fab {
  bottom: 95px;
}

.joystick-fab {
  bottom: 170px;
  font-size: 1.5rem;
}

.home-fab {
  bottom: 245px;
  font-size: 1.5rem;
  text-decoration: none;
  color: #fff;
}

.smart-nav-btn:hover,
.whatsapp-fab:hover,
.joystick-fab:hover,
.home-fab:hover {
  transform: scale(1.1);
  border-color: var(--primary-gold);
  background: rgba(255, 184, 107, 0.1);
}

.smart-nav-btn.up i {
  transform: rotate(180deg);
}

.joystick-container {
  position: fixed;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
}

.joystick-container.active {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

.footer {
  padding: 50px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid var(--glass-border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 25px;
  margin-bottom: 25px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-gold);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .section h2 {
    font-size: 1.8rem;
  }

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
  }

  .mkt-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 15px;
  }

  .footer-links {
    gap: 10px 15px;
  }
}

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto 25px;
  padding: 4px 16px 4px 20px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.search-wrapper:focus-within {
  border-color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 24px rgba(255, 184, 107, 0.12);
}

.search-icon {
  font-size: 1rem;
  opacity: 0.4;
  flex-shrink: 0;
  line-height: 1;
}

.search-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  padding: 10px 0;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-count {
  font-size: 0.78rem;
  color: var(--primary-gold);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.search-count.visible {
  opacity: 1;
}

.card.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  max-height: 0;
  padding: 0 20px;
  margin: 0;
  border-width: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}

.no-results {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  padding: 40px 20px;
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

.global-search {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 99;
  padding: 14px 20px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-search.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.global-search-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  padding: 4px 16px 4px 20px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.global-search-inner:focus-within {
  border-color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 24px rgba(255, 184, 107, 0.12);
}

.global-search-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  padding: 10px 0;
  outline: none;
}

.global-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

#global-search-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
}

#global-search-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-gold), var(--secondary-gold));
  z-index: 999;
  transition: width 0.1s linear;
  pointer-events: none;
}
