@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;
}

/* Custom Scrollbar */
::-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 */
.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);
}

/* Mobile Menu Styles */
@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 */
.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);
}

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

/* Services */
.services {
  padding: 100px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.services h2,
.about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--primary-gold);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  text-decoration: none;
  display: block;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-gold);
  background: rgba(255, 184, 107, 0.05);
}

.img-wrap {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
}

.service-card img {
  width: 100%;
  transition: transform 0.6s ease;
}

.service-card:hover img {
  transform: scale(1.1);
}

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

.service-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

/* About Content Glassmorphism */
.about-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.about-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* Settings Panel */
.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;
}

/* FABs - Standardized Stack (Bottom-Right) */
.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;
}

.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 Floating Container */
.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 */
.footer {
  padding: 50px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid var(--glass-border);
}

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

  .logo {
    font-size: 1.4rem;
  }
}