/* ==========================================================================
   dev4u.pl - Custom Stylesheet & Design System
   Modern Dark Cyber & Glassmorphism Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --bg-dark: #090d16;
  --bg-darker: #05080f;
  --bg-card: rgba(15, 23, 42, 0.75);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(56, 189, 248, 0.4);
  
  --color-primary: #0ea5e9;
  --color-primary-glow: rgba(14, 165, 233, 0.25);
  --color-accent: #10b981;
  --color-accent-glow: rgba(16, 185, 129, 0.25);
  --color-purple: #8b5cf6;
  --color-amber: #f59e0b;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: #f1f5f9;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Subtle Animated Cyber Grid Background */
.bg-cyber-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-radial-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.15) 0%, rgba(99, 102, 241, 0.05) 35%, transparent 70%);
}

.bg-radial-emerald {
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.12) 0%, transparent 50%);
}

.bg-radial-purple {
  background: radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-panel-hover:hover {
  border-color: var(--border-card-hover);
  box-shadow: 0 10px 30px -10px var(--color-primary-glow);
  transform: translateY(-3px);
}

.glass-nav {
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Glowing Badges & Dots */
.pulse-dot {
  position: relative;
}
.pulse-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }
}

/* Gradient Text */
.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #34d399 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Code & Terminal Styling */
.font-mono {
  font-family: var(--font-mono);
}

.terminal-window {
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #0f172a;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Custom interactive input & sliders */
input[type="radio"]:checked + label,
input[type="checkbox"]:checked + label {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

/* Glowing Button */
.btn-glow {
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}
.btn-glow:hover {
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.55);
  transform: translateY(-1px);
}

.btn-glow-emerald {
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.btn-glow-emerald:hover {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.55);
  transform: translateY(-1px);
}

/* Accordion Animations */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, opacity 0.3s ease;
  opacity: 0;
}
.faq-item.active .faq-content {
  max-height: 500px;
  opacity: 1;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* Integration Orbit / Connection Nodes */
.tech-pill {
  transition: all 0.2s ease;
}
.tech-pill:hover {
  transform: scale(1.05);
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(30, 41, 59, 0.9);
}

/* Toast Notification */
#toast {
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
}
