/* Vector Labs AI - Custom Advanced CSS styling */

/* Custom Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --color-bg: #030014;
  --color-grid: rgba(99, 102, 241, 0.04);
  --color-cyan-glow: rgba(6, 182, 212, 0.4);
  --color-purple-glow: rgba(139, 92, 246, 0.4);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: #f3f4f6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #02000a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b5cf6, #06b6d4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a78bfa, #22d3ee);
}

/* High-tech Blueprint Grid Background */
.cyber-grid {
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, var(--color-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-grid) 1px, transparent 1px);
  position: relative;
}

.cyber-grid::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle 800px at 50% 200px, rgba(99, 102, 241, 0.08), transparent 80%);
  pointer-events: none;
}

/* Glowing Neon Borders */
.glow-border {
  position: relative;
  transition: all 0.3s ease;
}

.glow-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(to right, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  transition: all 0.3s ease;
}

.glow-border:hover::before {
  background: linear-gradient(to right, #06b6d4, #8b5cf6);
}

/* Smooth Gradient text */
.gradient-text-cyan-purple {
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #d946ef 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Keyframe animations for glow elements */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.15); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 10s ease-in-out infinite;
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(17, 12, 34, 0.55);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-panel-heavy {
  background: rgba(10, 5, 24, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Shimmer Hover Effect */
.shimmer-hover {
  position: relative;
  overflow: hidden;
}

.shimmer-hover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 55%
  );
  transform: rotate(-45deg);
  transition: all 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

.shimmer-hover:hover::after {
  opacity: 1;
  left: 100%;
  top: 100%;
}

/* Custom font styles */
.font-display {
  font-family: 'Outfit', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Scroll-triggered reveal animation utilities */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Custom Chatbot Bubble Styling */
.chat-bubble-user {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border-radius: 18px 18px 2px 18px;
}

.chat-bubble-bot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  border-radius: 18px 18px 18px 2px;
}

/* The language bar stays visible above navigation at every screen size. */
:root { --language-bar-height: 48px; }
html { scroll-padding-top: 140px; }
*, *::before, *::after { box-sizing: border-box; }
.language-bar { position: fixed; inset: 0 0 auto; z-index: 100; background: #0c0920; border-bottom: 1px solid #ffffff20; }
.language-bar-inner { max-width: 1280px; min-height: var(--language-bar-height); margin: auto; padding: 4px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.language-label { font-size: 12px; color: #cbd5e1; }
.language-options { display: flex; gap: 4px; }
.language-options button { min-height: 40px; padding: 6px 14px; border: 1px solid transparent; border-radius: 8px; color: #d1d5db; font-size: 13px; cursor: pointer; }
.language-options button:hover { background: #ffffff0d; }
.language-options button[aria-pressed="true"] { background: #06b6d426; border-color: #22d3ee80; color: #67e8f9; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #67e8f9; outline-offset: 4px; }
#main-header { top: var(--language-bar-height); }
body:not(.tools-page) > section:first-of-type { padding-top: 176px; }
#home { height: auto; min-height: 100svh; padding-bottom: 64px; }
#main-header > div:first-child { gap: 20px; }
#main-header a[href="index.html"] > div { flex-shrink: 0; }
#mobile-menu { max-height: calc(100dvh - 150px); overflow-y: auto; }
#mobile-menu-btn { width: 44px; height: 44px; flex-shrink: 0; }
.grid > *, .flex > * { min-width: 0; }
p, h1, h2, h3, h4, a, label { overflow-wrap: anywhere; }
img, video { max-width: 100%; }
html[lang="si"] body, html[lang="si"] .font-display, html[lang="si"] .font-mono { font-family: 'Nirmala UI', 'Iskoola Pota', sans-serif; line-height: 1.8; letter-spacing: normal; }
html[lang="ko"] body, html[lang="ko"] .font-display, html[lang="ko"] .font-mono { font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; line-height: 1.7; letter-spacing: normal; word-break: keep-all; }
.tools-page { padding-top: var(--language-bar-height); height: 100dvh; }
.tools-page > header { gap: 16px; }
.tools-workspace { min-height: 0; }
.tools-chat { min-height: 0; min-width: 0; }
.tools-widgets { overflow-y: auto; }
.tools-chat > .glass-panel { gap: 12px; }
.tools-chat > .glass-panel > div:last-child { flex-shrink: 0; }
#chat-input { min-width: 0; }
#chat-history { overscroll-behavior: contain; overflow-wrap: anywhere; }
#chat-form button { min-height: 44px; }
#suggestion-chips button { min-height: 40px; }
.tools-page input, .tools-page select { font-size: 16px; }
@media (max-width: 1199px) {
  #main-header nav.hidden.md\:flex { display: none; }
  #main-header .hidden.md\:block { display: none; }
  #main-header #mobile-menu-btn { display: block; }
  #main-header #mobile-menu:not(.hidden) { display: block; }
  .tools-page > header nav { display: none; }
  .tools-page > header > div:first-child > span { display: none; }
}
@media (max-width: 1279px) {
  .tools-workspace { display: block; overflow-y: auto; }
  .tools-workspace > aside:first-child { display: none; }
  .tools-chat { height: max(560px, calc(100dvh - 120px)); }
  .tools-widgets { width: 100%; border-left: 0; border-top: 1px solid #ffffff20; }
  .tools-chat > .glass-panel > div:last-child { display: flex; }
  .tools-widgets > div { max-width: 720px; margin: auto; }
}
@media (max-width: 639px) {
  .language-bar-inner { padding-inline: 12px; gap: 4px; }
  .language-label { font-size: 0; }
  .language-label i { font-size: 20px; }
  .language-options { flex: 1; justify-content: flex-end; }
  .language-options button { padding-inline: 12px; }
  #main-header > div:first-child { padding-inline: 16px; gap: 10px; }
  #main-header a[href="index.html"] { gap: 8px; }
  #main-header a[href="index.html"] > span { font-size: 16px; letter-spacing: 0; margin-left: 0; }
  #home h1 { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.25; }
  #home .animate-float { animation: none; }
  #toast-notification { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  #contact-form input, #contact-form textarea { font-size: 16px; }
  .tools-page > header { padding: 10px 12px; }
  .tools-page > header a > span { font-size: 14px; letter-spacing: 0; }
  .tools-page > header > div:last-child { margin-left: auto; }
  .tools-chat > .glass-panel { flex-wrap: wrap; padding: 16px; }
  #chat-history { padding: 16px; }
  #chat-form { gap: 8px; }
  #chat-form button { padding-inline: 14px; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-on-scroll { opacity: 1; transform: none; }
}
