/* ============================================================
   AI THEME — 191tech Premium AI Design System
   Version: 2.0 | Slovak base
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS Variables ---------------------------------------- */
:root {
  --ai-bg:          #f8fafc; /* Veľmi svetlá sivá/biela (Slate 50) */
  --ai-bg2:         #ffffff; /* Čistá biela */
  --ai-bg3:         #f1f5f9; /* Slate 100 */
  --ai-card:        #ffffff;
  --ai-card-hover:  #f8fafc;
  --ai-border:      #e2e8f0; /* Jemná sivá línia */
  --ai-border-glow: rgba(14,165,233,0.3);
  --ai-cyan:        #0ea5e9; /* Sky Blue (Nebeská modrá) */
  --ai-purple:      #0284c7; /* Tmavšia modrá pre gradienty */
  --ai-pink:        #38bdf8; /* Svetlomodrá */
  --ai-green:       #10b981;
  --ai-text:        #0f172a; /* Tmavomodrá/Čierna (Slate 900) */
  --ai-text-muted:  #475569; /* Slate 600 */
  --ai-text-dim:    #64748b; /* Slate 500 */
  --ai-gradient:    linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  --ai-gradient2:   linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  --ai-shadow:      0 10px 25px rgba(0,0,0,0.05);
  --ai-shadow-cyan: 0 0 20px rgba(14,165,233,0.15);
  --ai-radius:      16px;
  --ai-radius-sm:   10px;
  --ai-transition:  all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Strong Bootstrap override — must come first ---------- */
body.ai-page,
html body.ai-page {
  background-color: var(--ai-bg) !important;
  background: var(--ai-bg) !important;
  color: var(--ai-text) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

/* Override Bootstrap section/container backgrounds */
.ai-page section,
.ai-page .container {
  background: transparent;
}

/* ---- Base Reset for AI pages ------------------------------ */
.ai-page {
  font-family: 'Inter', sans-serif;
  background-color: var(--ai-bg);
  color: var(--ai-text);
  line-height: 1.7;
}

.ai-page *,
.ai-page *::before,
.ai-page *::after {
  box-sizing: border-box;
}

.ai-page a {
  text-decoration: none;
  transition: var(--ai-transition);
}

.ai-page h1, .ai-page h2, .ai-page h3, .ai-page h4 {
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ai-text);
  margin-top: 0;
}

.ai-page p {
  color: var(--ai-text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.ai-page strong { color: var(--ai-text); }

/* ---- Layout Utilities ------------------------------------- */
.ai-section {
  padding: 90px 0;
}

.ai-section-sm {
  padding: 60px 0;
}

.ai-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ai-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.ai-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ai-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .ai-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ai-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ai-grid-2, .ai-grid-3, .ai-grid-4 { grid-template-columns: 1fr; }
  .ai-section { padding: 60px 0; }
  .ai-container { padding: 0 16px; }
}

/* ---- Section Labels --------------------------------------- */
.ai-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,243,255,0.08);
  border: 1px solid rgba(0,243,255,0.2);
  color: var(--ai-cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.ai-label-purple {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.3);
  color: var(--ai-purple);
}

/* ---- Section Title ---------------------------------------- */
.ai-section-title {
  margin-bottom: 56px;
  text-align: center;
}

.ai-section-title h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 16px;
}

.ai-section-title p {
  max-width: 580px;
  margin: 0 auto;
  font-size: 17px;
}

.ai-gradient-text {
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-gradient-text-2 {
  background: var(--ai-gradient2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- HERO SECTION ----------------------------------------- */
.ai-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--ai-bg);
  overflow: hidden;
  padding: 120px 0 80px;
}

.ai-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ai-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,243,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.ai-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .ai-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ai-hero-btns { justify-content: center; }
}

.ai-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,243,255,0.06);
  border: 1px solid rgba(0,243,255,0.2);
  color: var(--ai-cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.ai-hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--ai-cyan);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

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

.ai-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--ai-text);
}

.ai-hero p {
  font-size: 18px;
  color: var(--ai-text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 520px;
}

@media (max-width: 768px) {
  .ai-hero p { max-width: 100%; }
}

.ai-hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Hero Visual ------------------------------------------ */
.ai-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-hero-img-wrap {
  position: relative;
}

.ai-hero-img-wrap img {
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 0 40px rgba(0,243,255,0.3));
  animation: float-hero 6s ease-in-out infinite;
}

@keyframes float-hero {
  0%, 100% { transform: translateY(0px) rotateY(0deg); }
  50% { transform: translateY(-18px) rotateY(3deg); }
}

/* Hero page for sector pages - no image, centered */
.ai-hero-centered {
  text-align: center;
  min-height: 55vh;
  padding: 140px 0 80px;
}

.ai-hero-centered h1 {
  max-width: 800px;
  margin: 0 auto 24px;
}

.ai-hero-centered p {
  max-width: 600px;
  margin: 0 auto 40px;
}

.ai-hero-centered .ai-hero-btns {
  justify-content: center;
}

/* ---- BUTTONS ---------------------------------------------- */
.ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  transition: var(--ai-transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.ai-btn-primary {
  background: var(--ai-gradient);
  color: #fff;
  box-shadow: 0 0 0 rgba(0,243,255,0);
}

.ai-btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--ai-shadow-cyan);
  text-decoration: none;
}

.ai-btn-ghost {
  background: transparent;
  color: var(--ai-text);
  border: 1.5px solid var(--ai-border);
}

.ai-btn-ghost:hover {
  border-color: var(--ai-cyan);
  color: var(--ai-cyan);
  transform: translateY(-2px);
  text-decoration: none;
}

.ai-btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

/* ---- STATS BAR -------------------------------------------- */
.ai-stats-bar {
  background: var(--ai-bg2);
  border-top: 1px solid var(--ai-border);
  border-bottom: 1px solid var(--ai-border);
  padding: 40px 0;
}

.ai-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .ai-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.ai-stat-item {
  padding: 20px;
}

.ai-stat-number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.ai-stat-label {
  font-size: 13px;
  color: var(--ai-text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ---- CARDS ------------------------------------------------ */
.ai-card {
  background: var(--ai-card);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  padding: 32px;
  transition: var(--ai-transition);
  position: relative;
  overflow: hidden;
}

.ai-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ai-gradient);
  opacity: 0;
  transition: var(--ai-transition);
}

.ai-card:hover {
  background: var(--ai-card-hover);
  border-color: rgba(0,243,255,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,243,255,0.1);
}

.ai-card:hover::before {
  opacity: 1;
}

.ai-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(0,243,255,0.1);
  border: 1px solid rgba(0,243,255,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--ai-cyan);
  margin-bottom: 20px;
}

.ai-card-icon.purple {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.2);
  color: var(--ai-purple);
}

.ai-card-icon.pink {
  background: rgba(236,72,153,0.1);
  border-color: rgba(236,72,153,0.2);
  color: var(--ai-pink);
}

.ai-card-icon.green {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.2);
  color: var(--ai-green);
}

.ai-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ai-text);
}

.ai-card p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  color: var(--ai-text-muted);
}

/* Wide card for featured items */
.ai-card-wide {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: flex-start;
}

.ai-card-wide .ai-card-icon {
  width: 80px;
  height: 80px;
  font-size: 28px;
  border-radius: 18px;
  flex-shrink: 0;
}

/* ---- SECTOR HUB CARDS ------------------------------------- */
.ai-sector-card {
  background: var(--ai-card);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius);
  padding: 28px;
  transition: var(--ai-transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.ai-sector-card::after {
  content: '→';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(0px);
  font-size: 18px;
  color: var(--ai-cyan);
  opacity: 0;
  transition: var(--ai-transition);
}

.ai-sector-card:hover {
  background: var(--ai-card-hover);
  border-color: rgba(0,243,255,0.35);
  transform: translateY(-4px);
  box-shadow: var(--ai-shadow-cyan);
  text-decoration: none;
}

.ai-sector-card:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

.ai-sector-card .icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.ai-sector-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ai-text);
  margin-bottom: 8px;
}

.ai-sector-card p {
  font-size: 14px;
  color: var(--ai-text-muted);
  margin: 0;
}

/* ---- PROCESS STEPS ---------------------------------------- */
.ai-steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ai-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--ai-border);
}

.ai-step:last-child {
  border-bottom: none;
}

.ai-step-num {
  counter-increment: step;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,243,255,0.08);
  border: 1.5px solid var(--ai-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--ai-cyan);
  flex-shrink: 0;
}

.ai-step-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ai-text);
  padding-top: 12px;
}

.ai-step-body p {
  font-size: 15px;
  color: var(--ai-text-muted);
  margin: 0;
}

/* ---- USE CASE HIGHLIGHT ----------------------------------- */
.ai-highlight-box {
  background: linear-gradient(135deg, rgba(0,243,255,0.05) 0%, rgba(139,92,246,0.05) 100%);
  border: 1px solid rgba(0,243,255,0.2);
  border-radius: var(--ai-radius);
  padding: 48px;
}

.ai-highlight-box h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .ai-highlight-box { padding: 32px 24px; }
}

/* ---- FAQ -------------------------------------------------- */
.ai-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.ai-faq-item {
  background: var(--ai-card);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-sm);
  overflow: hidden;
  transition: var(--ai-transition);
}

.ai-faq-item:hover {
  border-color: rgba(0,243,255,0.25);
}

.ai-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  color: var(--ai-text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  transition: var(--ai-transition);
}

.ai-faq-question:hover {
  color: var(--ai-cyan);
}

.ai-faq-chevron {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,243,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ai-cyan);
  font-size: 12px;
  flex-shrink: 0;
  transition: var(--ai-transition);
}

.ai-faq-item.open .ai-faq-chevron {
  transform: rotate(180deg);
  background: rgba(0,243,255,0.2);
}

.ai-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 28px;
}

.ai-faq-item.open .ai-faq-answer {
  max-height: 400px;
  padding: 0 28px 24px;
}

.ai-faq-answer p {
  font-size: 15px;
  color: var(--ai-text-muted);
  margin: 0;
}

/* ---- CTA SECTION ------------------------------------------ */
.ai-cta-section {
  background: linear-gradient(135deg, rgba(0,243,255,0.06) 0%, rgba(139,92,246,0.06) 100%);
  border-top: 1px solid rgba(0,243,255,0.1);
  border-bottom: 1px solid rgba(139,92,246,0.1);
  padding: 90px 0;
  text-align: center;
}

.ai-cta-section h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  margin-bottom: 20px;
}

.ai-cta-section p {
  font-size: 18px;
  color: var(--ai-text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
}

/* ---- BREADCRUMB ------------------------------------------- */
.ai-breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--ai-text-dim);
}

.ai-breadcrumb a {
  color: var(--ai-text-dim);
  transition: color 0.2s;
}

.ai-breadcrumb a:hover { color: var(--ai-cyan); }

.ai-breadcrumb span { margin: 0 8px; }

/* ---- BADGE ------------------------------------------------ */
.ai-badge {
  display: inline-block;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--ai-green);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

/* ---- CHECKLIST LIST --------------------------------------- */
.ai-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ai-text-muted);
}

.ai-checklist li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: rgba(0,243,255,0.1);
  border: 1px solid rgba(0,243,255,0.3);
  border-radius: 50%;
  color: var(--ai-cyan);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- DIVIDER ---------------------------------------------- */
.ai-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,243,255,0.2), transparent);
  margin: 0;
}

/* ---- HEADER OVERRIDES for AI pages ------------------------ */
.ai-page #header {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(14,165,233,0.15);
  background-image: none !important;
}

.ai-page #header.menu-shrink {
  background: rgba(255,255,255,0.99) !important;
  background-color: rgba(255,255,255,0.99) !important;
  border-bottom: 1px solid rgba(14,165,233,0.2);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}



.ai-page .nav > li > a {
  color: var(--ai-text) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.ai-page .nav > li > a:hover {
  color: var(--ai-cyan) !important;
  background: transparent !important;
  text-shadow: 0 0 12px rgba(0,243,255,0.5);
}

.ai-page .dropdown-menu {
  background: rgba(10,20,38,0.97) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,243,255,0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6) !important;
}

.ai-page .dropdown-menu > li > a {
  color: var(--ai-text-muted) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  padding: 10px 18px !important;
  border-radius: 8px;
  margin: 2px 6px;
}

.ai-page .dropdown-menu > li > a:hover {
  background: rgba(0,243,255,0.08) !important;
  color: var(--ai-cyan) !important;
}

/* ---- PRELOADER for AI pages ------------------------------- */
.ai-page .preloader {
  background: #0f172a !important;
}

.ai-page .preloader .loader .loader-inner {
  border-color: var(--ai-cyan);
}

/* ---- FOOTER ----------------------------------------------- */
#footer_area,
.ai-page #footer_area {
  clear: both !important;
  display: block !important;
  float: none !important;
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
  background: var(--ai-bg2);
  border-top: 1px solid var(--ai-border);
  color: var(--ai-text-muted);
  padding: 60px 0 30px;
}

.ai-page .footer_social_icons a {
  color: var(--ai-text-muted);
}

.ai-page .footer_social_icons a:hover {
  color: var(--ai-cyan);
}

/* ---- FAQ SCRIPT ------------------------------------------- */
/* (handled by inline JS in pages) */

/* ---- ANIMATIONS ------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ai-animate {
  animation: fadeInUp 0.6s ease both;
}

.ai-animate-delay-1 { animation-delay: 0.1s; }
.ai-animate-delay-2 { animation-delay: 0.2s; }
.ai-animate-delay-3 { animation-delay: 0.3s; }

/* ---- RESPONSIVE FIXES ------------------------------------- */
@media (max-width: 768px) {
  .ai-step { grid-template-columns: 1fr; }
  .ai-step-num { width: 48px; height: 48px; font-size: 18px; }
  .ai-hero { min-height: auto; padding: 100px 0 60px; }
  .ai-card-wide { grid-template-columns: 1fr; }
  .ai-card-wide .ai-card-icon { width: 56px; height: 56px; }
}

.ai-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 991px) {
  .ai-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .ai-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
