/* Vasty Platforms - Antigravity Inspired Theme */

/* Root Variables (Dark Mode Default) */
:root {
  --primary: #8AB4F8;
  /* Google Blue */
  --primary-hover: #AECBFA;
  --bg-dark: #050505;
  /* Deep Black */
  --text-main: #FFFFFF;
  --text-muted: #9AA0A6;
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --navbar-bg: rgba(5, 5, 5, 0.8);
  --navbar-border: rgba(255, 255, 255, 0.05);
}

/* Light Mode Variables */
[data-theme="light"] {
  --bg-dark: #FFFFFF;
  --text-main: #1F1F1F;
  --text-muted: #4B5563;
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --navbar-border: rgba(0, 0, 0, 0.05);
}

/* Light Mode Element Overrides */
[data-theme="light"] {
  color-scheme: light;
}

[data-theme="light"] .background-glow {
  background: radial-gradient(circle, rgba(138, 180, 248, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
}

[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #1F1F1F;
}

[data-theme="light"] .glass-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(138, 180, 248, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(90deg, #1A73E8, #4285F4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] #site-navbar {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] #site-navbar header {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] #site-navbar header a,
[data-theme="light"] #site-navbar header button {
  color: #1F1F1F;
}

[data-theme="light"] #site-navbar header .text-gray-400 {
  color: #6B7280 !important;
}

[data-theme="light"] #site-navbar header .text-gray-400:hover {
  color: #1F1F1F !important;
}

[data-theme="light"] #site-navbar header .text-white {
  color: #1F1F1F !important;
}

[data-theme="light"] #site-navbar header .text-blue-400 {
  color: #1A73E8 !important;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: #1F1F1F;
}

[data-theme="light"] p {
  color: #4B5563;
}

[data-theme="light"] .text-white {
  color: #1F1F1F !important;
}

[data-theme="light"] .text-gray-400 {
  color: #6B7280 !important;
}

[data-theme="light"] .group:hover .group-hover\:text-slate-300 {
  color: #64748B !important;
}

/* Remove particles opacity reduction in light mode - handled by JS now */

[data-theme="light"] .bg-white\/5 {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .bg-white\/10 {
  background-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .text-blue-400 {
  color: #1A73E8 !important;
}

[data-theme="light"] .text-blue-500 {
  color: #1557B0 !important;
}

[data-theme="light"] .hover\:text-blue-400:hover {
  color: #1A73E8 !important;
}

[data-theme="light"] .hover\:text-blue-300:hover {
  color: #4285F4 !important;
}

[data-theme="light"] .bg-blue-400 {
  background-color: #1A73E8 !important;
}

[data-theme="light"] .bg-blue-500 {
  background-color: #1557B0 !important;
}

[data-theme="light"] .hover\:bg-blue-500:hover {
  background-color: #1557B0 !important;
}

[data-theme="light"] .border-white\/5,
[data-theme="light"] .border-white\/10 {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] #mobile-menu {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] #mobile-menu a,
[data-theme="light"] #mobile-menu button {
  color: #1F1F1F;
}

[data-theme="light"] #mobile-menu .text-gray-300 {
  color: #6B7280 !important;
}

[data-theme="light"] #mobile-menu .text-gray-300:hover {
  color: #1F1F1F !important;
}

[data-theme="light"] .bg-blue-500\/10 {
  background-color: rgba(26, 115, 232, 0.1) !important;
}

[data-theme="light"] .bg-amber-500\/10 {
  background-color: rgba(217, 119, 6, 0.1) !important;
}

[data-theme="light"] .bg-slate-500\/10 {
  background-color: rgba(100, 116, 139, 0.1) !important;
}

[data-theme="light"] .text-amber-400 {
  color: #D97706 !important;
}

[data-theme="light"] .text-slate-400,
[data-theme="light"] .text-slate-300 {
  color: #64748B !important;
}

[data-theme="light"] .group:hover .group-hover\:text-amber-400 {
  color: #D97706 !important;
}

[data-theme="light"] .group:hover .group-hover\:text-slate-300 {
  color: #64748B !important;
}

/* Background Elements */
.background-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(138, 180, 248, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: -2;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

/* Global Styles */
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h4,
h5,
h6 {
  color: var(--text-main);
  font-weight: 500;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

/* Buttons - Pill Shaped */
.btn-primary {
  background-color: var(--primary);
  color: #202124;
  border-radius: 9999px;
  padding: 12px 32px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(138, 180, 248, 0.2);
}

[data-theme="light"] .btn-primary {
  background-color: #1A73E8;
  color: #FFFFFF;
}

[data-theme="light"] .btn-primary:hover {
  background-color: #1557B0;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid rgba(138, 180, 248, 0.3);
  border-radius: 9999px;
  padding: 12px 32px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background-color: rgba(138, 180, 248, 0.08);
  border-color: var(--primary);
  color: var(--primary-hover);
}

[data-theme="light"] .btn-secondary {
  color: #1A73E8;
  border-color: rgba(26, 115, 232, 0.3);
}

[data-theme="light"] .btn-secondary:hover {
  background-color: rgba(26, 115, 232, 0.08);
  border-color: #1A73E8;
  color: #1557B0;
}

/* Glass Cards - More Opaque/Subtle */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.glass-card:hover {
  background: var(--glass-bg);
  transform: translateY(-4px);
  border-color: var(--primary);
}

/* Navbar Styles */
#site-navbar {
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  transition: all 0.3s ease;
}

/* Navbar when scrolled */
#site-navbar.scrolled {
  border-bottom: 1px solid var(--navbar-border);
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
}

/* Theme Toggle Button */
#theme-toggle,
#theme-toggle-mobile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(138, 180, 248, 0.15);
  border: 2px solid rgba(138, 180, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #AECBFA;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(138, 180, 248, 0.2);
}

#theme-toggle:hover,
#theme-toggle-mobile:hover {
  background: rgba(138, 180, 248, 0.25);
  border-color: rgba(138, 180, 248, 0.6);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(138, 180, 248, 0.4);
  color: #FFFFFF;
}

[data-theme="light"] #theme-toggle,
[data-theme="light"] #theme-toggle-mobile {
  background: rgba(26, 115, 232, 0.1);
  border-color: rgba(26, 115, 232, 0.3);
  color: #1A73E8;
  box-shadow: 0 0 10px rgba(26, 115, 232, 0.15);
}

[data-theme="light"] #theme-toggle:hover,
[data-theme="light"] #theme-toggle-mobile:hover {
  background: rgba(26, 115, 232, 0.2);
  border-color: rgba(26, 115, 232, 0.5);
  box-shadow: 0 0 20px rgba(26, 115, 232, 0.3);
  color: #1557B0;
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(90deg, #8AB4F8, #AECBFA);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(138, 180, 248, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* Mobile: hide cursor glow */
@media (max-width: 768px) {
  .cursor-glow {
    display: none;
  }
}

/* Theme Toggle Icons */
/* Dark mode (default) - Show SUN icon (to switch to light) */
#theme-toggle .fa-sun,
#theme-toggle-mobile .fa-sun {
  display: block;
}

#theme-toggle .fa-moon,
#theme-toggle-mobile .fa-moon {
  display: none;
}

/* Light mode - Show MOON icon (to switch to dark) */
[data-theme="light"] #theme-toggle .fa-sun,
[data-theme="light"] #theme-toggle-mobile .fa-sun {
  display: none;
}

[data-theme="light"] #theme-toggle .fa-moon,
[data-theme="light"] #theme-toggle-mobile .fa-moon {
  display: block;
}

/* Mobile theme toggle icon container */
#theme-toggle-mobile .w-10 {
  background: rgba(138, 180, 248, 0.15);
  border-color: rgba(138, 180, 248, 0.4);
  color: #AECBFA;
}

[data-theme="light"] #theme-toggle-mobile .w-10 {
  background: rgba(26, 115, 232, 0.1);
  border-color: rgba(26, 115, 232, 0.3);
  color: #1A73E8;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast */
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  min-width: 260px;
  z-index: 60;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Fullscreen nav menu transition */
.nav-menu {
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-menu.open {
  transform: translateY(0);
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  z-index: 50;
  background: linear-gradient(90deg, #8AB4F8, #AECBFA);
  box-shadow: 0 2px 6px rgba(138, 180, 248, 0.25);
  transition: width 0.1s linear;
}

/* Service Cards */
.service-card {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
}

/* Mobile enhancements */
@media (max-width: 767.98px) {
  .chips-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .chips-scroll::-webkit-scrollbar {
    display: none;
  }

  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.35) inset;
}

@media (prefers-reduced-motion: reduce) {

  .service-card,
  .reveal {
    transition: none !important;
    transform: none !important;
  }
}

/* Chatbot UI */
.chat-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.chat-fab:hover {
  transform: scale(1.08);
}

.chat-window {
  position: fixed;
  bottom: 80px;
  right: 1.5rem;
  width: 320px;
  max-height: 70vh;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem;
}

.chat-message {
  margin-bottom: 0.75rem;
  display: flex;
}

.bot-message .message-bubble {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  max-width: 80%;
}

.user-message {
  justify-content: flex-end;
}

.user-message .message-bubble {
  background: var(--primary);
  color: #202124;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  max-width: 80%;
}

.chat-quick-replies {
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-reply-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.quick-reply-btn:hover {
  background: var(--glass-border);
}

.chat-footer {
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}