/* =========================================
   1. VARIABLES & RESET (VISTONAUT PREMIUM THEME)
   ========================================= */
:root {
  /* Vistonaut Premium Palette */
  --primary-color: #7b61ff;
  /* Deep Tech Violet */
  --primary-dark: #5a3ce1;
  /* Darker Violet */
  --secondary-color: #3b82f6;
  /* Tech Blue */
  --accent-cyan: #00f0ff;
  /* Neon Blue-Cyan */
  --success-color: #10b981;
  /* Emerald */
  --danger-color: #f43f5e;
  /* Rose */

  /* Deep Dark Space Backgrounds */
  --bg-gradient: linear-gradient(145deg, #090514 0%, #110820 40%, #05020a 100%);
  --card-bg: rgba(255, 255, 255, 0.03);
  /* Glassy Frost */
  --chat-bg: transparent;

  /* Text Colors (High Contrast) */
  --text-dark: #ffffff;
  /* Pure White */
  --text-medium: #e2e8f0;
  /* Light Grey */
  --text-light: #94a3b8;
  /* Muted Blue-Grey */

  /* Borders & Glows */
  --border-color: rgba(255, 255, 255, 0.08);
  --neon-shadow: 0 0 20px rgba(123, 97, 255, 0.3);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .logo, .badge {
  font-family: 'Outfit', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* Helper Class for Abstract BGs */
.relative-z {
  position: relative;
  z-index: 10;
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(10, 5, 16, 0.8);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

/* Logo */
.logo {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  background: none;
  -webkit-text-fill-color: initial;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  text-shadow: 0 0 8px var(--primary-color);
}

/* Button in Nav */
.nav-links .btn-primary {
  padding: 10px 24px !important;
}

/* Hamburger Menu Toggle (Hidden on Desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 3px 0;
  transition: 0.4s;
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 90vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 0 20px;
}

/* Glowing Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  animation: float 10s ease-in-out infinite alternate;
}
.glow-orb-1 {
  width: 60vw;
  height: 60vw;
  background: rgba(123, 97, 255, 0.15);
  top: -20vh;
  left: -20vw;
}
.glow-orb-2 {
  width: 50vw;
  height: 50vw;
  background: rgba(59, 130, 246, 0.12);
  bottom: -20vh;
  right: -10vw;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 50px); }
}

.hero-content {
  z-index: 10;
  max-width: 900px;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  opacity: 0;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease-out 0.1s forwards;
  opacity: 0;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #a2b0d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

/* BUTTONS */
.btn-primary {
  background: var(--text-dark);
  color: #05020a;
  padding: 14px 34px;
  border-radius: 8px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
  background: #f1f5f9;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 34px;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-family: 'Outfit', sans-serif;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* =========================================
   4. COMMON SECTIONS (Highlights, Why, Stats)
   ========================================= */
section {
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}

/* Highlights and Why Section with Shared Background */
.highlights,
.why {
  background: transparent; /* Relying on body gradient */
}

/* Cards Shared Styles */
.highlight-card,
.why-card {
  background: var(--card-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 16px;
  text-align: left; /* Shift from center to left for premium neatness */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 20px;
}

.highlight-card:hover,
.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.highlight-card h3,
.why-card h3 {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.highlight-card p,
.why-card p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Specific Section Layouts */
.highlights {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.highlight-card {
  width: 300px;
}

.why {
  text-align: center;
}

.why h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 60px;
  color: var(--text-dark);
  letter-spacing: -1px;
}

.why-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.why-card {
  width: 300px;
}

/* =========================================
   5. FOOTER
   ========================================= */
footer {
  background: rgba(5, 1, 10, 0.95);
  color: var(--text-light);
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

footer a {
  color: var(--text-medium);
  margin: 0 15px;
  font-size: 0.9rem;
}

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

.footer-links {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}


/* =========================================
   6. RESPONSIVE DESIGN (MOBILE)
   ========================================= */
@media (max-width: 768px) {

  /* Navbar */
  .navbar {
    padding: 15px 20px;
  }

  .menu-toggle {
    display: flex;
    /* Show hamburger on mobile */
    z-index: 101;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    /* Below navbar */
    right: -100%;
    width: 100%;
    background: rgba(10, 5, 16, 0.98);
    backdrop-filter: blur(20px);
    height: calc(100vh - 60px);
    justify-content: flex-start;
    padding-top: 50px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    border-left: 1px solid var(--border-color);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 20px 0;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  /* Hamburger Animation */
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero p {
    padding: 0 15px;
  }

  /* Fix Background Images on Mobile */
  .hero,
  .highlights,
  .why {
    background-attachment: scroll;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 12px 24px;
    text-align: center;
  }

  /* Sections */
  section {
    padding: 60px 20px;
  }

  .highlights,
  .why-cards {
    flex-direction: column;
    align-items: center;
  }

  .highlight-card,
  .why-card {
    width: 100%;
    max-width: 320px;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

/* =========================================
   7. CHAT PANEL & FAB
   ========================================= */
.chat-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4);
  z-index: 1000;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-fab:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.6);
}

.chat-panel {
  position: fixed;
  top: 0;
  right: -400px;
  /* Hidden by default */
  width: 380px;
  height: 100vh;
  background: rgba(15, 10, 30, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-color);
  z-index: 1001;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.chat-panel.open {
  right: 0;
}

.chat-header {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  color: var(--text-dark);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-chat {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
}

.close-chat:hover {
  color: var(--danger-color);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  word-wrap: break-word;
}

.message.bot {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-medium);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message.user {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 10px;
}

.chat-input-area input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 25px;
  color: white;
  font-family: inherit;
  outline: none;
}

.chat-input-area input:focus {
  border-color: var(--primary-color);
}

.chat-input-area button {
  background: var(--primary-color);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-input-area button:hover {
  background: var(--primary-dark);
}

/* Scrollbar for chat */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 768px) {
  .chat-panel {
    width: 100%;
    right: -100%;
  }
}