/* STARTPORTAL - AI Enterprise Solutions Modern Light Theme Styles */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #0284c7;
  --primary-light: #00d2ff;
  --primary-glow: rgba(2, 132, 199, 0.35);
  --primary-dark: #0369a1;
  --secondary: #2563eb;
  --accent: #10b981;
  --accent-purple: #8b5cf6;
  --bg-light: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-card: rgba(186, 230, 253, 0.7);
  --border-glow: rgba(2, 132, 199, 0.6);
  --text-main: #0f172a;
  --text-muted: #475569;
  --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
  text-align: right;
  background-color: #f0f9ff;
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 10%, rgba(186, 230, 253, 0.6), transparent 50%),
              radial-gradient(circle at 85% 50%, rgba(224, 242, 254, 0.8), transparent 40%),
              radial-gradient(circle at 15% 85%, rgba(217, 249, 157, 0.25), transparent 40%),
              #f8fafc;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #e2e8f0;
}
::-webkit-scrollbar-thumb {
  background: #38bdf8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* 3D WebGL Background Canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* App Container */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Glassmorphism Classes (Light Theme) */
.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(186, 230, 253, 0.8);
  box-shadow: 0 4px 20px rgba(0, 100, 200, 0.05);
}

.glass-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 1.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

/* Glass Card Edge Shimmer */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.75s ease;
  z-index: 1;
}

.glass-card:hover::before {
  left: 140%;
}

.glass-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.15), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Neon Glows & Moving Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 35%, #00d2ff 65%, #2563eb 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer 8s linear infinite;
}

@keyframes text-shimmer {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.text-gradient-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glowing Button with Periodic Light Shimmer Streak */
.glow-btn {
  position: relative;
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.glow-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: btn-shimmer 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.glow-btn:hover::after {
  animation: btn-shimmer-fast 0.8s ease-in-out;
}

@keyframes btn-shimmer {
  0% { left: -80%; }
  22% { left: 160%; }
  100% { left: 160%; }
}

@keyframes btn-shimmer-fast {
  0% { left: -80%; }
  100% { left: 160%; }
}

.glow-btn:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 12px 35px rgba(2, 132, 199, 0.5);
  color: #ffffff;
}

/* Outline Button with Subtle Shimmer */
.glow-btn-outline {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  color: #0284c7;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(2, 132, 199, 0.4);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

.glow-btn-outline::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(2, 132, 199, 0.12) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.glow-btn-outline:hover::after {
  left: 120%;
}

.glow-btn-outline:hover {
  background: rgba(224, 242, 254, 0.95);
  border-color: #0284c7;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.2);
  color: #0369a1;
  transform: translateY(-2px);
}

/* AI Badge with Periodic Light Shimmer */
.ai-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background: rgba(224, 242, 254, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.55);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0369a1;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.ai-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.65),
    transparent
  );
  transform: rotate(30deg);
  animation: badge-shimmer 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes badge-shimmer {
  0%, 30% { left: -100%; }
  50%, 100% { left: 220%; }
}

.ai-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

/* Floating animation */
.float-anim {
  animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

/* Product Icon Glow box with Light Sweep */
.icon-glow-box {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(224, 242, 254, 1), rgba(186, 230, 253, 0.7));
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #0284c7;
  font-size: 1.75rem;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
}

.icon-glow-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.group:hover .icon-glow-box::after,
.glass-card:hover .icon-glow-box::after {
  left: 150%;
}

.glass-card:hover .icon-glow-box {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.3);
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #ffffff;
}

/* Cyber Grid Lines Light */
.cyber-grid-bg {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(2, 132, 199, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(2, 132, 199, 0.06) 1px, transparent 1px);
}

/* Interactive Tabs */
.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: 1px solid transparent;
  color: var(--text-muted);
}

.tab-btn.active {
  color: #0284c7;
  background: rgba(224, 242, 254, 0.9);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
}

/* Live Chat / AI Assistant Modal */
.ai-chat-bubble {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 100;
}

.chat-window {
  position: fixed;
  bottom: 6.5rem;
  left: 2rem;
  width: 380px;
  max-width: calc(100vw - 4rem);
  height: 520px;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom left;
}

/* Logo styling */
.brand-logo-img {
  filter: drop-shadow(0 4px 10px rgba(2, 132, 199, 0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.brand-logo-img:hover {
  filter: drop-shadow(0 8px 20px rgba(2, 132, 199, 0.6));
  transform: scale(1.03);
}

/* Custom Range Slider Light */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(186, 230, 253, 0.8);
  height: 8px;
  border-radius: 4px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0284c7;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.6);
  border: 2px solid #fff;
  transition: transform 0.1s;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .chat-window {
    left: 1rem;
    right: 1rem;
    bottom: 5.5rem;
    width: auto;
    height: 480px;
  }
  .ai-chat-bubble {
    bottom: 1.25rem;
    left: 1.25rem;
  }
}
